Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"The voters have spoken, the bastards..." -- unknown


computers / comp.text.tex / Advance notification of change to glossaries .glsdefs file format

SubjectAuthor
o Advance notification of change to glossaries .glsdefs file formatNicola Talbot

1
Advance notification of change to glossaries .glsdefs file format

<si4qi7$6hh$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!JCVzOQGAoGYUFtnWRhWqqw.user.46.165.242.75.POSTED!not-for-mail
From: n.talbot@uea.ac.uk (Nicola Talbot)
Newsgroups: comp.text.tex
Subject: Advance notification of change to glossaries .glsdefs file format
Date: Sat, 18 Sep 2021 14:45:43 +0100
Organization: Aioe.org NNTP Server
Message-ID: <si4qi7$6hh$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="6705"; posting-host="JCVzOQGAoGYUFtnWRhWqqw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Content-Language: en-GB
X-Mozilla-News-Host: news://news.tiscali.co.uk:119
X-Notice: Filtered by postfilter v. 0.9.2
 by: Nicola Talbot - Sat, 18 Sep 2021 13:45 UTC

If any developer has an editor plugin or script that tries to parse the
glsdefs files created by glossaries.sty (typically to pick up entry
labels for autocomplete), the next version of glossaries (v4.47) will be
changing the format slightly in order to fix a bug.

This file is created if you define entries within the document
environment or if you use glossaries-extra.sty with the package option
docdef=atom. Examples:

\documentclass{article}
\usepackage{glossaries}

\begin{document}
\newglossaryentry{test}{name={test},description={sample}}
\gls{test}.
\end{document}

or

\documentclass{article}
\usepackage[docdef=atom]{glossaries-extra}

\newglossaryentry{test}{name={test},description={sample}}

\begin{document}
\gls{test}.
\end{document}

Currently this will write the data for each entry in the .glsdefs file as:

\ifglsentryexists{<label>}{}%
{%
\gls@defglossaryentry{<label>}%
{%
<key value list>
}%
}%

The new format will be:

\glsdefs@newdocentry{<label>}%
{%
<key value list>
}%

This new internal command means that any future modifications will
hopefully not require any further changes in the file format.

So if, for example, you are using the regular expression

^\\gls@defglossaryentry\{(.+)\}%$

then you'd need to change it to

^\\(:?gls@defglossaryentry|glsdefs@newdocentry)\{(.+)\}%$

(If you are instead using the `writeglslabels` package option to pick up
the labels, there will also be a bug fix to remove the spurious
\glolist@ on the last line of the glslabels file.)

Regards
Nicola Talbot
--
Home: http://www.dickimaw-books.com/
Creating a LaTeX Minimal Example:
http://www.dickimaw-books.com/latex/minexample/

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor