OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] Translate words in html files.


Oh, I did not realize you were using "jw" as your processing tool. That tool uses the obsolete DSSSL stylesheets, while I was describing what can be done with the XSL stylesheets. I can't help you with the DSSSL stylesheets. You should seriously consider switching to an XSL-based system.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

On 2/17/2015 11:01 AM, Markos wrote:
On 17-02-2015 13:46, Michael.Urban@jpl.nasa.gov wrote:
Your message dated: Tue, 17 Feb 2015 12:45:42 -0200
Hi,

Which document I need to edit to change the words that are generated in
html format?

I don't know the details of the Docbook structure. I'm just a user.

For example, I would like to produce html documents in Esperanto, then I
would like to change:

*Table of Contents ->  Indekso
I looked into doing this some years ago but could not get a consensus
from Esperantists on best translations.  Anyway, I think you want to add
a file, eo.xml, to the stylesheet's 'common/' directory, and add a
suitable line to l10n.xml

(Is 'indekso' the right word for 'Table of Contents'?  Isn't 'Enhavoj'
better?  'Next' could better be 'sekva' or even 'sekve')


Hi Michael and Bob

I discovered that there is already an eo.xml file in the directory:
/usr/share/xml/docbook/stylesheet/docbook-xsl/common

But when I put in the header of the source text (hackakvoj.xml) the
<article lang = "eo"> the following error appears:

$ jw hackakvoj.xml
Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/docbook-utils/docbook-utils.dsl#html
Working on: /home/nei/c2o/fontes_xml/eo/akvo/hackakvoj/hackakvoj.xml
openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:280:10:E:
L10N ERROR: generate-toc-in-front
openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:425:12:E:
L10N ERROR: gentext-intra-label-sep
openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:472:12:E:
L10N ERROR: gentext-label-title-sep
openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:425:12:E:
L10N ERROR: gentext-intra-label-sep
<DIV
CLASS="mediaobject"
 ><P
 ><IMG
SRC="bildoj/email_graf.png"></P
 ></DIV
 ><P
 >&#13;</P
 >Done.

Should I change in the header of  source file the line?
"/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd"

Any tip?

Thanks,
Markos


Source file (hackakvoj.xml):

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd">

<article lang="eo">

<articleinfo>
<title>Water - AKVO - Integrada Rigardo</title>
<authorgroup>
<author><firstname>Markos</firstname>
<affiliation>
<address>
</address>
</affiliation>
</author>
</authorgroup>
<pubdate>Januaro 2015</pubdate>
</articleinfo>

<sect1>
<title>Sugestoj estas bonvena!</title>
<figure><title>retadreso:</title>
<mediaobject>
<imageobject>
<imagedata fileref="bildoj/email_graf.png"/>
</imageobject>
</mediaobject>
</figure>
</sect1>

<sect1>
<title>Akvo - kio estas?</title>
<para></para>
</sect1>

</article>

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]