Re: [asciidoc-discuss] configuration questions : toc questions ...ZZ

2007-02-25 Thread Karsten Schulz
Hi,

Am Sonntag, 25. Februar 2007 16:22 schrieb Erich Hoffmann:
> Hi Karsten. Tag auch! :)

;-)

> /etc/asciidoc/docbook.conf and xhtml.conf.  If there in the
> [header]-section lang="en" is changed to lang="de", then

thank you for that tip. But I use a build script, wich produces english 
and german versions of my texts, so I need to change this setting on 
the fly.

> Now I'd be interested in where in the docbook-&-c-files this output
> is defined- or should I read the "definitive guide" to docbook?

I think so... But I am not a docbook pro (too much '<'s and '>'s...)

Karsten


-- 
"Diese Aktivität ist wirklich unproduktiv!"
Seven of Nine, Raumschiff Voyager

___
Asciidoc-discuss mailing list
[email protected]
http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss


Re: [asciidoc-discuss] configuration questions : toc questions ...ZZ

2007-02-25 Thread Erich Hoffmann
Hi Karsten. Tag auch! :)

Am Sonntag, 25. Februar 2007 13:07 schrieb Karsten Schulz:
> Hi Erich,
>
> Am Sonntag, 25. Februar 2007 12:45 schrieb Erich Hoffmann:
> > When publishing a document with a2x to xhtml, I get a toc on top with
> > the title "Table of Contents".  Where can I change that, e.g. to
> (...)
> # I just lazily use a2x to copy icons and stylesheets
> # and produce the docbook file 8-)
> a2x --copy --icons -d article -f xhtml ${DOCFILE_DE}
>
> # Then I replace article lang ="en" with article lang="de" in
> # the docbook file:
> sed -i -e 's/article lang="en"/article lang="de"/' ${DOCFILE_DE}.xml

Thanks a lot.  This works.  But you inspired me to look into
/etc/asciidoc/docbook.conf and xhtml.conf.  If there in the
[header]-section lang="en" is changed to lang="de", then
we don't need the sed operation and "table of contents" becomes
"Inhaltsverzeichnis" by default.

Now I'd be interested in where in the docbook-&-c-files this output
is defined- or should I read the "definitive guide" to docbook?

Cheers,

erich



___
Asciidoc-discuss mailing list
[email protected]
http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss


Re: [asciidoc-discuss] configuration questions : toc questions ...ZZ

2007-02-25 Thread Karsten Schulz
Hi Erich,

Am Sonntag, 25. Februar 2007 12:45 schrieb Erich Hoffmann:
> When publishing a document with a2x to xhtml, I get a toc on top with
> the title "Table of Contents".  Where can I change that, e.g. to
> "Inhaltsverzeichnis" (or get rid of the whole line)?  Or rename
> "Chapter" to "Abschnitt"?

I don't know if there is a better way, but I usually execute the 
following commands to produce german versions of my ascidoc articles:

# I just lazily use a2x to copy icons and stylesheets
# and produce the docbook file 8-)
a2x --copy --icons -d article -f xhtml ${DOCFILE_DE}

# Then I replace article lang ="en" with article lang="de" in 
# the docbook file:
sed -i -e 's/article lang="en"/article lang="de"/' ${DOCFILE_DE}.xml

# after that, I process docbook to xhtml; this produces a 
# german version now:
xsltproc --nonet ${XHTML_XSL} ${DOCFILE_DE}.xml > 
${DOCDIR}/${DOCFILE_DE}.html

I am sure, there are more elegant solutions, but I didn't dug deeper in 
it yet.

> [...]
> I get the toc, but no numberings.  Looked in the configuration files, 
> manpages, changed the a2x script, am a bit helpless.  That must be
> something obvious that I am overlooking.

I am afraid, I have no solution for this problem! Anyone?

Karsten

___
Asciidoc-discuss mailing list
[email protected]
http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss