[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question about hyphens in DocBook output
From: |
Gavin Smith |
Subject: |
Question about hyphens in DocBook output |
Date: |
Fri, 25 Nov 2016 14:27:54 +0000 |
If in a Texinfo input file I have
@cindex --wuh
@findex --wuh
in the DocBook output, this becomes
<indexterm role="cp"><primary>–wuh</primary></indexterm>
<indexterm role="fn"><primary>–wuh</primary></indexterm>
We see that the index test is identical. However, in the source code
in DocBook.pm, the '_index_entry' function, there's the following
line:
$self->{'document_context'}->[-1]->{'monospace'}->[-1] = 1
if ($index_entry->{'in_code'});
The 'in_code' value in fact is not (never?) set, so this doesn't make
a difference. (It should be set in
Texinfo::Structuring::_do_index_keys.) However, if it is set, then the
output looks like
<indexterm role="fn"><primary>--wuh</primary></indexterm>
Is this output correct, or should it be something else instead?
- Question about hyphens in DocBook output,
Gavin Smith <=