Bruno Haible wrote:
> You can also look at the gettext docs in HTML format.
>
> $ cd .../gettext-0.10.36/doc
> $ texi2html -expandinfo -number -split_chapter gettext.texi
Thanks for the hint. The command looks complicated, why are all these
arguments needed? A "make html" in the gettext Makefile would be useful.
> texi2html produces better results than any man2html program could ever
> give. The reason is that "good-old man format" is, at the base, a
> layout description language, like TeX, and its conversion to a
> structured format like HTML is impossible.
True. Althoug man pages are very readable, they are plain text. There isn't
much structure information to convert them to HTML. Nevertheless, I mostly
manage to find what I need in manpages. And references like csh(1) can be
used as hyper-links. I even have a Vim script for this.
> > Question: How do I know that the CODESET name is invalid? That is, trying
> > to use it with iconv_open() will result in failure.
>
> msgfmt will tell you about this case. If msgfmt (version 0.10.36)
> doesn't warn, then the CODESET name in the PO file is OK.
I was talking about bind_textdomain_codeset(). How can I check if the CODESET
passed to it will result in translated messages? Preferably it would do an
iconv_open() to check that conversion between the encoding of the messages and
the encoding I specified is possible. If this fails, I would warn the user
that message are going to be unreadable, and switch back to English. Eh,
probably first switch to English and then give that message!
Anyway, at the moment it doesn't work at all, and I can't find a reason why it
would fail. iconv_open() should work fine with "euc-jp" and "utf-8".
--
If someone questions your market projections, simply point out that your
target market is "People who are nuts" and "People who will buy any damn
thing". Nobody is going to tell you there aren't enough of those people to go
around.
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.moolenaar.net \\\
((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
\\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/