Am 01.12.19 um 14:04 schrieb Gavin Smith:
On Wed, Nov 13, 2019 at 01:52:34PM +0100, Georg-Johann Lay wrote:
Writing documentation for a ${variable} feature, "${variable}" should
appear
in the index also under "{". Hence I added a @sortas somethink like
that:
@cindex $@{variable@} @sortas{@{variable}
However, the entry appears in section "$".
@-commands inside @sortas were not supported. I've tried to implement
it in git commit c0483b7b5, so that @, { and } can be used in index sort
keys.
Thank you, I downloaded your version and built from source. The git log
shows the change you mentioned.
However the artifact is still the same: It works for PDF, but not for
HTML. Here is a test case:
\input texinfo
@defcodeindex inik
@syncodeindex inik cp
@node Vars
@top Vars
@inikindex $@{variable@}
@inikindex $@{variable@} @sortas{@{variable}
Text text text text text text text.
@node Index
@printindex cp
@bye
And then compile with
$ makeinfo --html --no-split -c
TREE_TRANSFORMATIONS=regenerate_master_menu -c
TREE_TRANSFORMATIONS=insert_nodes_for_sectioning_commands manual.texi
$ makeinfo --pdf --no-split -c
TREE_TRANSFORMATIONS=regenerate_master_menu -c
TREE_TRANSFORMATIONS=insert_nodes_for_sectioning_commands manual.texi
Then the PDF index looks fine and like:
$
${variable}: Vars
{
${variable}: Vars
whereas the HTML index is:
$
${variable}: Vars
${variable}: Vars
and there is no "{" section in the HTML index, and no indication of such
a section in the HTML source.
Johann
p.s. please CC me in your answer to bug-texinfo@, I am not subscribed to
this list.