[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-texinfo] Country code and encoding in Docbook output: solution
From: |
Nicolas Maufrais |
Subject: |
[help-texinfo] Country code and encoding in Docbook output: solution |
Date: |
Thu, 4 Jan 2007 00:34:45 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello,
I did some tests about the encoding missing in the French XML manual,
and the language code not being copied into. Here's my conclusion:
The following commands:
@documentlanguage (country code)
@documentencoding (encoding)
have to be located on a line below @setfilename xyz
For example:
@setfilename cinelerra_cv_manual_fr.info
@documentencoding ISO-8859-15
@documentlanguage fr
And then, everything's properly set in the XML output:
<?xml version="1.0" encoding="iso-8859-15"?>
...
<book id="book-root" lang="fr">
So, if you want to produce a Docbook file from a texinfo file whose
language and encoding isn't English and US-ASCII, don't forget to use
those 2 commands and put them just below the @setfilename command. The
place where they should be isn't explained in the texinfo manual.
Nicolas Maufrais.
On Wed, Jan 03, 2007 at 02:24:17AM +0100, Nicolas MAUFRAIS wrote:
> On Tue, Jan 02, 2007 at 07:14:27PM -0600, Karl Berry wrote:
> > As for the 1st line, it should be <?xml version="1.0"
> > encoding="ISO-8859-15"?> I think.
> >
> > Are you writing to stdout by chance? I think if you write to a file,
> > the encoding will appear. At least it does for me.
>
> Karl,
>
> Here's what I did:
> /usr/local/bin/makeinfo_cvs --docbook --no-number-sections --no-warn
> cinelerra_cv_manual_fr.texi
>
> I just tried:
> /usr/local/bin/makeinfo_cvs --docbook --no-number-sections --no-warn -o
> cinelerra_cv_manual_fr.xml cinelerra_cv_manual_fr.texi
>
> But still no encoding specified in the XML output.
>
> I do not install makeinfo CVS. The make process fails, but the makeinfo
> CVS binary is made. So I manually copy the binary to
> /usr/local/bin/makeinfo_cvs and run it from there.
>
> That's strange indeed, because:
> - I notice that bug in the past
> - I then did some other test, and saw the encoding in the XML output
> However, I did some tests, and it's possible I did add manually the
> encoding in the XML output.
>
> Nicolas Maufrais.
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~ BOYCOTT SUSE & NOVELL (C)(TM)(R) MICRO$OFT ~
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> _______________________________________________
> Texinfo home page: http://www.gnu.org/software/texinfo
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-texinfo
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ BOYCOTT SUSE & NOVELL (C)(TM)(R) MICRO$OFT ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~