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 Arfrever, Nicholas.Cole, ezio.melotti, inigoserna, loewis, poq, tchrist, vstinner, zeha
Date 2012-03-10.18:57:37
SpamBayes Score 8.172856e-09
Marked as misclassified No
Message-id <3652.1331405845@chthon>
In-reply-to <4F5BA345.3080802@v.loewis.de>
Content
>Martin v. L=C3=B6wis <martin@v.loewis.de> added the comment:

>> Martin, I think you meant to write "if w =3D=3D 'A':".
>> Some very common characters have ambiguous widths though (e.g. the Greek =
>alphabet), so you can't just raise an error for them.

>That's precisely why I don't think this should be in the library, but
>in the application. Application developers who need that also need
>to concern themselves with the border cases, and decide on how
>they need to resolve them.

The column-width of a string is not an application issue.  It is
well-defined by Unicode.  Again, please see how we've done it in 
Perl, where tr11 is fully implemented.  The columns() method from 
Unicode::GCString always gives the right answer per the Standard for
any string, even what you are calling ambiguous ones.

This is not an applications issue -- at all.

--tom
History
Date User Action Args
2012-03-10 18:57:38tchristsetrecipients: + tchrist, loewis, vstinner, ezio.melotti, Arfrever, inigoserna, zeha, poq, Nicholas.Cole
2012-03-10 18:57:37tchristlinkissue12568 messages
2012-03-10 18:57:37tchristcreate