On 10-02-2015 10:54, Thomas Schraitle wrote:
Hi Markos,

On Tue, 10 Feb 2015 10:22:28 -0200
Markos<mar...@c2o.pro.br>  wrote:

I use Docbook to write documents in Portuguese and English.

I would like to start using Esperanto with Docbook.

How to write the letters of Esperanto with diacritic marks, ĉ, ĝ, ĥ,
ĵ, ŝ, and ŭ?
As you would do with any other (European) language: use UTF-8 as your
main encoding and add the diacritic letters directly.

If that doesn't work, you have to find out the Unicode codepoint of
your letter. For example, the codepoint for "ĝ" would be U+011D which
you write in your text as&#x011d;.

You can use DuckDuckGo to get the above number, for example
https://duckduckgo.com/?q=unicode+%C4%9D&ia=answer


Thanks for the tip.

I used the codes found in http://unicode-table.com/en/sets/esperanto/ page

<para>&#264; &#284; &#292; &#308; &#348; &#364; &#265; &#285; &#293; &#349; &#365; ?</para>

and generated:

Ĉ Ĝ Ĥ Ĵ Ŝ Ŭ ĉ ĝ ĥ ŝ ŭ

But just another question.

Doesn't matter if I use in the header:

<? xml version = "1.0" encoding = "ISO-8859-1"?>
or
<? xml version = "1.0" encoding = "utf-8"?>

And also don't makes any difference to use:

<article lang = "en">
or
<article lang = "pt-br">

The codes &#264; &#284; ... works fine.

But if I use:

<article lang = "eo">

Appears an error :

Why?

Thanks for your attention,
Markos

Error when I use lang = "eo"

$ jw esperanto.xml
Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/docbook-utils/docbook-utils.dsl#html
Working on: esperanto.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
&#264; &#284; &#292; &#308; &#348; &#364; &#265; &#285; &#293; &#349;
&#365; </P
Done.

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

Reply via email to