convert unicode characters to visibly similar ascii characters

Jim jim.hefferon at gmail.com
Wed Jul 2 02:42:41 CEST 2008


On Jul 1, 8:29 pm, John Machin <sjmac... at lexicon.net> wrote:
> On Jul 2, 9:55 am, Jim <jim.heffe... at gmail.com> wrote:
>
> Comments on the above grep output:
> 1. You have SOFT HYPHEN twice, mapping it to u'-' and '-'
Hmph. I'll correct that.  Thanks.
> 2. The idea of a soft hyphen is as a hint to a hyphenator about where
> to insert a hyphen if one is necessary and the hyphenator is suspected
> of acting cluelessly without the hint. IMHO, asciification should
> substitute u'', not u'-'.
Thanks also here.  I'll think about it.
> 3. Read PEP 8. s/:/: /
I don't like the spacing in 8, personally.

Thanks,
Jim



More information about the Python-list mailing list