[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode quotes in C
Glenn Maynard writes:
> I've thrown together a small script to generate en.po from a
> default.pot, changing ` and ' to ‘ and ’, and " to “ and ”,
> attempting to leave apostrophes alone.
Cool!
> I'm sure it doesn't parse all potfiles cleanly
To fix this, you could use the 'msgexec' program from the next gettext
tools (see ftp://alpha.gnu.org/gnu/gettext/). msgexec expects a
script which deals with the content of a single message. This should
make the trans_quotes.pl script simpler.
> An option to not use these translations (for programs using it
> specifically) would be useful, as a lot of terminals support UTF-8
> but don't handle those particular characters correctly yet.
In gettext, I've used the PO file name en@xxxxxxx for this purpose.
Someone who sets LANGUAGE=en@quot will get the smart quotes,
someone who sets LANGUAGE=en will not get them.
Bruno
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/