#1120: UTF8-Bytestring Pango interface.
-----------------------------+----------------------------------------------
  Reporter:  guest           |       Owner:  axel  
      Type:  enhancement     |      Status:  new   
  Priority:  normal          |   Milestone:        
 Component:  Pango bindings  |     Version:  0.9.12
Resolution:                  |    Keywords:        
-----------------------------+----------------------------------------------
Comment (by axel):

 Duncan,

 it sounds as if you are suggesting an additional interface that re-
 implements every existing Pango function using a PackedString such that
 the UTF8 <-> Unicode conversion is still done by our Pango binding. If
 you'd actually use ByteString where every element presumably occupies 8
 bits, how would you store Unicode characters in it?

 What JPB suggests is an interface using raw UTF8 strings that avoids the
 overhead of our Pango interface. I guess he would use some packed
 representation such as ByteString, but I'm not sure.

 I don't have a problem adding both interfaces. However, to ensure that
 "normal" people are not confused, could we have these additional APIs in
 Pango.PackedString.* and Pango.ByteString.* or similar?

-- 
Ticket URL: <http://hackage.haskell.org/trac/gtk2hs/ticket/1120#comment:5>
Gtk2Hs <http://haskell.org/gtk2hs/>
The Gtk2Hs project
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to