On 8 March 2012 10:01, Tomek Kaczanowski <[email protected]> wrote: > Hello Lex, > >> Tomek, >> >> When you ask questions here please always specify the version of >> asciidoc and the backends and toolchains you are using. > Ups, sorry! > > In this case only asciidoc version matters. I use 8.6.5. > >> Styling of the docbook indexes is dependent on the toolchain you use. >> See >> FAQhttp://www.methods.co.nz/asciidoc/faq.html#_sources_of_information_on... >> for information on toolchain configuration. > The thing I'm talking happens when asciidoc.py or a2x generates > docbook file. Then, for every "indexterm:[first,second]" the following > XML snippet is generated: > <indexterm><primary>first></primary><secondary>second<second></ > indexterm> > <indexterm><primary>second</primary><indexterm> > > which is as the asciidoc documentation states: > "Index terms that have secondary and tertiary entries also generate > separate index terms for the secondary and tertiary entries." > > The idea that a separate index term should be generated for secondary > and tertiary entries is weird. I wish it was configurable, so I could > tell asciidoc NOT to do it. >
Hi Tomek, Weird is in the eye of the beholder :) You can configure it, like my answer to your other query, a custom docbook45.conf will allow you to customise the [indexterm-inlinemacro] section so it does not generate separate entries for secondary and tertiary. This will be more reliable than sed since it will be immune to any changes that future asciidoc releases might make to the output generated by that section. Cheers Lex > Right now I have some scripts (using sed) which remove the unwanted > indexterms, but that is a hack I would rather not use. > > -- > Regards, > Tomek Kaczanowski > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/asciidoc?hl=en. > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
