Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

There are bugs and then there are bugs. And then there are bugs. -- Karl Lehenbauer


computers / comp.text.tex / Re: Indexing markup

SubjectAuthor
* Indexing markupPeter Flynn
`- Re: Indexing markupPeter Flynn

1
Indexing markup

<keplddFnbgsU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6688&group=comp.text.tex#6688

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Indexing markup
Date: Mon, 12 Jun 2023 23:43:57 +0100
Lines: 28
Message-ID: <keplddFnbgsU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net k3TEEFDfmf/UTjQi9uHwCwPf22to6GRn2UiYrcg376p3tL0JH+
Cancel-Lock: sha1:bQPldudpndaXEM9z/RuWoGWe+2Q=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Content-Language: en-US
 by: Peter Flynn - Mon, 12 Jun 2023 22:43 UTC

I am going through some undocumented code for writing about XML, where
attribute names needed to be indexed, flagged by an at-sign like @href.

The @ sign is of course already in used in makeindex data as the
"actual" (literal-to-end-of-argument) flag, used to allow font changes
like \index{keyword@\textit{keyword}}.

The code is quite clear that it is generating LaTeX \index commands
using an = sign instead of an @ sign. Oddly, this seems to be supported
by makeindex even without the /actual "="/ directive.

So there are explanatory entries like \index{@href=\texttt{@href}
(attribute)}, which end up in the .idx file as (eg)
\indexentry{href=\texttt{@href} (attribute)}{3}

With or without the /actual "="/ directive, when these are processed by
makeindex they result in a line like \item href}, 3
with a bogus closing curly brace and no @ sign.

The code was at some stage functioning and and correctly indexing.

What is the right way to index strings starting with an @ sign?
The makeindex man page implies (towards the end) that a double @@ sign
will work.

Suggestions on the back of a catalogue index card to me, please :-)

Re: Indexing markup

<ker3n9Fu1tsU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=6692&group=comp.text.tex#6692

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: Indexing markup
Date: Tue, 13 Jun 2023 12:54:17 +0100
Lines: 9
Message-ID: <ker3n9Fu1tsU1@mid.individual.net>
References: <keplddFnbgsU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net mZ9MtVFPwLO3QNReDF4W6ApfvTXOQr9SfXd1eTH0K1P2pFmwAx
Cancel-Lock: sha1:r0OKDh1Po7qY13Ayi8JGlaaQgAI=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Content-Language: en-US
In-Reply-To: <keplddFnbgsU1@mid.individual.net>
 by: Peter Flynn - Tue, 13 Jun 2023 11:54 UTC

On 12/06/2023 23:43, Peter Flynn wrote:

> What is the right way to index strings starting with an @ sign?

A night's sleep and some good coffee revealed that defining
\at as an at-sign works just fine.

Peter

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor