diff options
author | Norbert Preining <norbert@preining.info> | 2022-11-26 03:01:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-11-26 03:01:43 +0000 |
commit | e847537e7eb9b357896add98741bf14318405fab (patch) | |
tree | 0de2a80f1223a606689981b18a53eec857f5f811 /support/bib2gls | |
parent | 7f9bf70fd6cdeda88e8e41a4dae6eac9827bb04e (diff) |
CTAN sync 202211260301
Diffstat (limited to 'support/bib2gls')
28 files changed, 52 insertions, 1 deletions
diff --git a/support/bib2gls/CHANGES b/support/bib2gls/CHANGES index a3e2fbcaac..f4c605a222 100644 --- a/support/bib2gls/CHANGES +++ b/support/bib2gls/CHANGES @@ -1,3 +1,11 @@ +v3.2 (2022-11-24): + + * Added --[no-]obey-aux-catcode + + The default is --no-obey-aux-catcode, which ignores catcode + changing commands found in the aux file. + (Issue #22 https://github.com/nlct/bib2gls/issues/22) + v3.1 (2022-11-05): * If new versions of glossaries.sty, mfirstuc.sty and glossaries-extra.sty diff --git a/support/bib2gls/bib2gls-begin.pdf b/support/bib2gls/bib2gls-begin.pdf Binary files differindex c825f2b8c0..49c4081c8d 100644 --- a/support/bib2gls/bib2gls-begin.pdf +++ b/support/bib2gls/bib2gls-begin.pdf diff --git a/support/bib2gls/bib2gls-en.xml b/support/bib2gls/bib2gls-en.xml index 1deb254d84..50abc80670 100644 --- a/support/bib2gls/bib2gls-en.xml +++ b/support/bib2gls/bib2gls-en.xml @@ -43,6 +43,7 @@ file is in or in a location that can be found by kpsewhich.</entry> <entry key="syntax.tex.encoding">{0} <name> Set the character encoding for the output files.</entry> <entry key="syntax.interpret">{0} Enable interpreter.</entry> <entry key="syntax.break.space">{0} Interpret tilde character as normal space.</entry> +<entry key="syntax.obey.aux.catcode">{0} Obey known category code changing commands encountered in the aux file.</entry> <entry key="syntax.packages">{1}, {0} <list> Instruct interpreter to assume the listed packages have been used in the document. (The packages must be known by the interpreter.)</entry> <entry key="syntax.ignore.packages">{1}, {0} <list> Don''t check the log file for the listed packages.</entry> <entry key="syntax.custom.packages">{0} <list> Instruct the interpreter to parse the listed packages.</entry> diff --git a/support/bib2gls/bib2gls.1 b/support/bib2gls/bib2gls.1 index 448bd6550f..b9c0737f62 100644 --- a/support/bib2gls/bib2gls.1 +++ b/support/bib2gls/bib2gls.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "BIB2GLS 1" -.TH BIB2GLS 1 "2022-10-09" "perl v5.34.1" "bib2gls" +.TH BIB2GLS 1 "2022-11-24" "perl v5.34.1" "bib2gls" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -210,6 +210,13 @@ Interpret \f(CW\*(C`~\*(C'\fR (tilde) character and \f(CW\*(C`\enobreakspace\*(C .IP "\fB\-\-no\-break\-space\fR" 4 .IX Item "--no-break-space" Interpret \f(CW\*(C`~\*(C'\fR (tilde) and \f(CW\*(C`\enobreakspace\*(C'\fR as a non-breaking space (default). +.IP "\fB\-\-obey\-aux\-catcode\fR" 4 +.IX Item "--obey-aux-catcode" +Obey known category code changing commands encountered in the aux +file. +.IP "\fB\-\-no\-obey\-aux\-catcode\fR" 4 +.IX Item "--no-obey-aux-catcode" +Ignore category code changing commands encountered in the aux file. .IP "\fB\-\-cite\-as\-record\fR" 4 .IX Item "--cite-as-record" Treat \f(CW\*(C`\ecitation\*(C'\fR as an ignored record. diff --git a/support/bib2gls/bib2gls.pdf b/support/bib2gls/bib2gls.pdf Binary files differindex e23282b73c..ac6fe779c8 100644 --- a/support/bib2gls/bib2gls.pdf +++ b/support/bib2gls/bib2gls.pdf diff --git a/support/bib2gls/examples/sample-authors.pdf b/support/bib2gls/examples/sample-authors.pdf Binary files differindex 5094e02ec7..9d03fab6d6 100644 --- a/support/bib2gls/examples/sample-authors.pdf +++ b/support/bib2gls/examples/sample-authors.pdf diff --git a/support/bib2gls/examples/sample-bacteria.pdf b/support/bib2gls/examples/sample-bacteria.pdf Binary files differindex f8bc312fef..56c4305f5c 100644 --- a/support/bib2gls/examples/sample-bacteria.pdf +++ b/support/bib2gls/examples/sample-bacteria.pdf diff --git a/support/bib2gls/examples/sample-chemical.pdf b/support/bib2gls/examples/sample-chemical.pdf Binary files differindex 0d303e4783..cd908a360d 100644 --- a/support/bib2gls/examples/sample-chemical.pdf +++ b/support/bib2gls/examples/sample-chemical.pdf diff --git a/support/bib2gls/examples/sample-citations.pdf b/support/bib2gls/examples/sample-citations.pdf Binary files differindex 46c9b2e8a9..c43a35719a 100644 --- a/support/bib2gls/examples/sample-citations.pdf +++ b/support/bib2gls/examples/sample-citations.pdf diff --git a/support/bib2gls/examples/sample-constants.pdf b/support/bib2gls/examples/sample-constants.pdf Binary files differindex 07c5a9b596..0b69633203 100644 --- a/support/bib2gls/examples/sample-constants.pdf +++ b/support/bib2gls/examples/sample-constants.pdf diff --git a/support/bib2gls/examples/sample-hierarchical.pdf b/support/bib2gls/examples/sample-hierarchical.pdf Binary files differindex 9f83fe64da..466ea4f9d4 100644 --- a/support/bib2gls/examples/sample-hierarchical.pdf +++ b/support/bib2gls/examples/sample-hierarchical.pdf diff --git a/support/bib2gls/examples/sample-markuplanguages.pdf b/support/bib2gls/examples/sample-markuplanguages.pdf Binary files differindex 959a97cfbf..def5425c19 100644 --- a/support/bib2gls/examples/sample-markuplanguages.pdf +++ b/support/bib2gls/examples/sample-markuplanguages.pdf diff --git a/support/bib2gls/examples/sample-maths.pdf b/support/bib2gls/examples/sample-maths.pdf Binary files differindex 327dea9a3e..de2eb3515b 100644 --- a/support/bib2gls/examples/sample-maths.pdf +++ b/support/bib2gls/examples/sample-maths.pdf diff --git a/support/bib2gls/examples/sample-media.pdf b/support/bib2gls/examples/sample-media.pdf Binary files differindex 085fba316a..6abb0ecfc0 100644 --- a/support/bib2gls/examples/sample-media.pdf +++ b/support/bib2gls/examples/sample-media.pdf diff --git a/support/bib2gls/examples/sample-msymbols.pdf b/support/bib2gls/examples/sample-msymbols.pdf Binary files differindex 1a9fef2971..3db76c0e6d 100644 --- a/support/bib2gls/examples/sample-msymbols.pdf +++ b/support/bib2gls/examples/sample-msymbols.pdf diff --git a/support/bib2gls/examples/sample-multi1.pdf b/support/bib2gls/examples/sample-multi1.pdf Binary files differindex 0376963383..8cea7bcde5 100644 --- a/support/bib2gls/examples/sample-multi1.pdf +++ b/support/bib2gls/examples/sample-multi1.pdf diff --git a/support/bib2gls/examples/sample-multi2.pdf b/support/bib2gls/examples/sample-multi2.pdf Binary files differindex c356c6c2f9..92a16ca528 100644 --- a/support/bib2gls/examples/sample-multi2.pdf +++ b/support/bib2gls/examples/sample-multi2.pdf diff --git a/support/bib2gls/examples/sample-nested.pdf b/support/bib2gls/examples/sample-nested.pdf Binary files differindex 9b59f762b1..952939e39f 100644 --- a/support/bib2gls/examples/sample-nested.pdf +++ b/support/bib2gls/examples/sample-nested.pdf diff --git a/support/bib2gls/examples/sample-people.pdf b/support/bib2gls/examples/sample-people.pdf Binary files differindex 8824610553..9e4a223ba1 100644 --- a/support/bib2gls/examples/sample-people.pdf +++ b/support/bib2gls/examples/sample-people.pdf diff --git a/support/bib2gls/examples/sample-textsymbols.pdf b/support/bib2gls/examples/sample-textsymbols.pdf Binary files differindex 64aab9e3ac..0663ccc47b 100644 --- a/support/bib2gls/examples/sample-textsymbols.pdf +++ b/support/bib2gls/examples/sample-textsymbols.pdf diff --git a/support/bib2gls/examples/sample-textsymbols2.pdf b/support/bib2gls/examples/sample-textsymbols2.pdf Binary files differindex f50f6f721d..07ffce53db 100644 --- a/support/bib2gls/examples/sample-textsymbols2.pdf +++ b/support/bib2gls/examples/sample-textsymbols2.pdf diff --git a/support/bib2gls/examples/sample-units1.pdf b/support/bib2gls/examples/sample-units1.pdf Binary files differindex f5c7275af8..9bc41618ee 100644 --- a/support/bib2gls/examples/sample-units1.pdf +++ b/support/bib2gls/examples/sample-units1.pdf diff --git a/support/bib2gls/examples/sample-units2.pdf b/support/bib2gls/examples/sample-units2.pdf Binary files differindex 7445d761e6..2ebc649aba 100644 --- a/support/bib2gls/examples/sample-units2.pdf +++ b/support/bib2gls/examples/sample-units2.pdf diff --git a/support/bib2gls/examples/sample-units3.pdf b/support/bib2gls/examples/sample-units3.pdf Binary files differindex 2d1e53be63..be092481fc 100644 --- a/support/bib2gls/examples/sample-units3.pdf +++ b/support/bib2gls/examples/sample-units3.pdf diff --git a/support/bib2gls/examples/sample-usergroups.pdf b/support/bib2gls/examples/sample-usergroups.pdf Binary files differindex 27bcbecd59..d38ce54eb2 100644 --- a/support/bib2gls/examples/sample-usergroups.pdf +++ b/support/bib2gls/examples/sample-usergroups.pdf diff --git a/support/bib2gls/src/bib2gls.bib b/support/bib2gls/src/bib2gls.bib index 9f2d002928..dde9f5d1fd 100644 --- a/support/bib2gls/src/bib2gls.bib +++ b/support/bib2gls/src/bib2gls.bib @@ -10041,6 +10041,20 @@ primary formats, if enabled.}, parent={commandlineoptions} } +@switch{switch.obey-aux-catcode, + name={\longargfmt{obey\dhyphen aux\dhyphen catcode}}, + user1={}, + category={switch}, + parent={commandlineoptions} +} + +@switch{switch.no-obey-aux-catcode, + name={\longargfmt{no\dhyphen obey\dhyphen aux\dhyphen catcode}}, + user1={}, + category={switch}, + parent={commandlineoptions} +} + @switch{switch.cite-as-record, name={\longargfmt{cite\dhyphen as\dhyphen record}}, user1={}, diff --git a/support/bib2gls/src/bib2gls.pod b/support/bib2gls/src/bib2gls.pod index e9f821d907..e75573aa2c 100644 --- a/support/bib2gls/src/bib2gls.pod +++ b/support/bib2gls/src/bib2gls.pod @@ -89,6 +89,15 @@ Interpret C<~> (tilde) character and C<\nobreakspace> as a normal space. Interpret C<~> (tilde) and C<\nobreakspace> as a non-breaking space (default). +=item B<--obey-aux-catcode> + +Obey known category code changing commands encountered in the aux +file. + +=item B<--no-obey-aux-catcode> + +Ignore category code changing commands encountered in the aux file. + =item B<--cite-as-record> Treat C<\citation> as an ignored record. diff --git a/support/bib2gls/src/bib2gls.tex b/support/bib2gls/src/bib2gls.tex index dd56fedc31..679fab16ed 100644 --- a/support/bib2gls/src/bib2gls.tex +++ b/support/bib2gls/src/bib2gls.tex @@ -3498,6 +3498,18 @@ this setting. For example, if \csfmt{superiortwo} is defined as then it will be interpreted as \hex{00B2} (superscript two) even if this setting is on. +\argsection{obey-aux-catcode} + +By default, the \ext{aux} parser ignores category code changing +commands. This option will instruct the parser to implement the +category code, but note that it can only do this for known commands +that the parser is able to implement. + +\argsection{no-obey-aux-catcode} + +Instructs the \ext{aux} parser to ignore category code changing +commands. (Default.) + \section{Record Options} \argsection{cite-as-record} |