I solved my problem:

My folder path in fedora: usr/share/sgm/docbook/xsl-stylesheets
in this folder you can find all language files. 

To change the word "chapter %n %f" I add in my own stylesheet xsl this code:

<xsl:param name="local.l10n.xml" select="document('')"/> 
  <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0";> 
   <l:l10n english-language-name="German" language="de" xmlns:l=
"http://docbook.sourceforge.net/xmlns/l10n/1.0";>
     <l:gentext key="chapter" text="Kapitel"/>
     <l:context name="title-numbered">
       <l:template name="chapter" text="%n. %t"/>
     </l:context>
     <l:context name="xref">
       <l:template name="chapter" text="%n. %t"/>
     </l:context>
   </l:l10n>

  </l:i18n>

A customized stylesheet can easily intgerated with following command in  
terminal:

a2x -v -a lang=de --doctype=book --format=pdf --fop --xsl-file=NAME.xsl --icons 
filename.adoc



Am Mittwoch, 25. Mai 2016 00:08:47 UTC+2 schrieb Dan Allen:
>
>
> On Tue, May 24, 2016 at 4:16 AM, 'Marco Ciampa' via asciidoc <
> [email protected] <javascript:>> wrote:
>
>> To stop just the "Chapter" prepend, add in your document:
>>
>> // Disable chapter label
>> :chapter-label:
>>
>> or add to the a2x command line:
>>
>> -a chapter-label=""
>>
>
> This works for asciidoctor-pdf, but I think it's different for a2x. I'm 
> pretty sure in a2x you need to customize the XSL stylesheet (or perhaps 
> pass a stringparam somewhere). The Chapter prefix happens automatically 
> when the doctype is book.
>
> -Dan
>
>
> -- 
> Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to