Hi,

Thanks for your message and suggestion. I've emailed Bob directly, and will
report back what I learn to make this work.

The issue might(?) be due to a difference between xsltproc and saxon,
though this is speculation on my part.

Another, simpler point I'm stuck on: I need to select a different font for
the Japanese index, i.e., I need to detect @type='ja' in the <index>
element and switch fonts.

I tried this in my customization layer:

<xsl:template match="indexentry">
>   <xsl:choose>
>    <xsl:when test="contains(' ja ', parent::type)">
>       <fo:inline font-family="'Zen Old Mincho'">
>         <xsl:apply-templates/>
>       </fo:inline>
>    </xsl:when>
>     <xsl:otherwise>
>       <xsl:apply-templates/>
>     </xsl:otherwise>
>   </xsl:choose>
> </xsl:template>


...but it seems to have no effect.

I have no idea if the system for generating an index actually outputs
DocBook <indexentry> elements, or just directly outputs to FO.

Thanks again,

M.

On Thu, Dec 30, 2021 at 12:28 AM Bernhard Kleine <bernhard.kle...@gmx.net>
wrote:

> Please ask Bob about to different indeces separated by type. IIRC that has
> not been functional in docbook although it looked functional. With some
> update I got working properly. Maybe you have to update something. I had
> the same problem 1 1/2 year ago: Index for scientific names and for german
> one. But it finally worked.
>
> I donot remember what has changed therefore ask Bob Stayton direcly.
>
> KR Bernhard
>
>
> Am 29.12.2021 um 10:31 schrieb M. Downing Roberts:
>
> I have <indexterm> elements in my document, like this:
>
> <indexterm type="en"><primary>Hypothesis</primary></indexterm>
>> <indexterm type="ja"><primary>仮説</primary></indexterm>
>
>
> And <index> elements at the end, like this:
>
> <index type="en"><title>Index</title></index>
>> <index type="ja"><title>索引</title></index>
>
> --
> spitzhalde9
> D-79853 lenzkirchbernhard.kle...@gmx.netwww.b-kleine.com, www.urseetal.net
> Ich darf auf mein neues Buch "670 Falterarten im Hochschwarzwald" aufmerksam 
> machen
> (Infos bei mir)
> -
> thunderbird
> GPG schlüssel: D5257409
> fingerprint:
> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>
>

Reply via email to