RE: [PHP-GTK-DOC] Re: configure.in: Encoding from xml files?
| From: | Steph | Date: | Thu, 29 Jul 2004 12:08:49 +0000 |
| Subject: | RE: [PHP-GTK-DOC] Re: configure.in: Encoding from xml files? | ||
| References: | 1 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-957@lists.php.net to get a copy of this message | ||
Christian:
case "$LANG" in
ja|tw|ko) ENCODING="UTF-8";;
he) ENCODING="windows-1255";;
cs|hu) ENCODING="ISO-8859-2";;
*) ENCODING="ISO-8859-1";;
esac
Nobody has to specify encoding. They just have to specify the language,
e.g. ./configure --lang=cs
If the xml pages have a different encoding from the rest of the pages in
that translation directory, they're wrong. There needs to be a
per-directory standard. The only reason I ever wrote in the option to
specify encoding was because the .ja guys can work in three very different
encodings; it's all very well to say 'well let them then', but if they
committed those files there's a fair chance that the next person along
wouldn't be able to read them. The idea was to allow them to write in their
favoured encoding and then copy across the UTF-8 file produced by running
configure locally, to the original directory, and commit that rather than
their original xml page - thereby avoiding the problem of mixed encodings in
the cvs directory.
Hope that makes sense,
- Steph
> -----Original Message-----
> From: Andrei Zmievski [mailto:andrei@gravitonic.com]
> Sent: 29 July 2004 07:44
> To: cweiske@cweiske.de
> Cc: PHP-GTK Doc list
> Subject: [PHP-GTK-DOC] Re: configure.in: Encoding from xml files?
>
>
> > Now what happens if the original pages are already in utf-8 or e.g.
> > iso-8859-15?
> > I would like to change the script in the way that it reads the first
> > line of every *.xml file and determine the encoding that way.
> > Has someone a reason against it?
>
> You mean, modify configure so that it determines encoding automatically
> and runs iconv if necessary? How much slower would this be?
>
> Also, I just implemented a system that produces a short HTML file
> listing the latest docs updates (based on your work with
> testclasses.xml). It relies on UTF8Dir and testclasses.xml. Will your
> changes affect that?
>
> -Andrei
> * What were the first 15 billion years of the universe like for you? *
>
> --
> PHP-GTK Documentation Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>