This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tchrist
Recipients Nicholas.Cole, ezio.melotti, inigoserna, loewis, tchrist, vstinner, zeha
Date 2011-08-12.02:28:01
SpamBayes Score 5.3997155e-05
Marked as misclassified No
Message-id <1313116082.92.0.238212663948.issue12568@psf.upfronthosting.co.za>
In-reply-to
Content
I can attest that being able to get the columns of a grapheme cluster is very important for printing, because you need this to do correct linebreaking.  There might be something you can steal from 

   http://search.cpan.org/perldoc?Unicode::GCString
   http://search.cpan.org/perldoc?Unicode::LineBreak

which implements UAX#14 on linebreaking and UAX#11 on East Asian widths.  

I use this in my own code to help format Unicode strings my columns or lines.  The right way would be to build this sort of knowledge into string.format(), but that is much harder, so an intermediary library module seems good enough for now.
History
Date User Action Args
2011-08-12 02:28:03tchristsetrecipients: + tchrist, loewis, vstinner, ezio.melotti, inigoserna, zeha, Nicholas.Cole
2011-08-12 02:28:02tchristsetmessageid: <1313116082.92.0.238212663948.issue12568@psf.upfronthosting.co.za>
2011-08-12 02:28:02tchristlinkissue12568 messages
2011-08-12 02:28:01tchristcreate