diff options
author | Karl Berry <karl@freefriends.org> | 2009-11-13 16:23:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-11-13 16:23:27 +0000 |
commit | 6cc2c89243924fb671f0ad637ed718b99933fbde (patch) | |
tree | 6a827d14bb8c3089e7525b43a81c2510167848fb /Master/texmf-dist/tex/latex/glossaries/expl/glossaries-accsupp.sty | |
parent | 9f6934cabc90af62c40c7ed913cf91f6a9c6f61a (diff) |
glossaries 2.4 (10nov09)
git-svn-id: svn://tug.org/texlive/trunk@16008 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/glossaries/expl/glossaries-accsupp.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/glossaries/expl/glossaries-accsupp.sty | 424 |
1 files changed, 384 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/glossaries/expl/glossaries-accsupp.sty b/Master/texmf-dist/tex/latex/glossaries/expl/glossaries-accsupp.sty index a5bc70c915e..6daba59c4d4 100644 --- a/Master/texmf-dist/tex/latex/glossaries/expl/glossaries-accsupp.sty +++ b/Master/texmf-dist/tex/latex/glossaries/expl/glossaries-accsupp.sty @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files glossaries.dtx and glossaries.ins and the derived files glossaries.sty, mfirstuc.sty, glossary-hypernav.sty, glossary-list.sty, glossary-long.sty, glossary-longragged.sty, glossary-super.sty, glossary-superragged.sty, glossary-tree.sty, glossaries-accsupp.sty, glossaries-babel.sty, glossaries-dictionary-Brazilian.dict, glossaries-dictionary-Danish.dict, glossaries-dictionary-Dutch.dict, glossaries-dictionary-English.dict, glossaries-dictionary-French.dict, glossaries-dictionary-German.dict, glossaries-dictionary-Irish.dict, glossaries-dictionary-Italian.dict, glossaries-dictionary-Magyar.dict, glossaries-dictionary-Polish.dict, glossaries-dictionary-Spanish.dict, minimalgls.tex, sample.tex, sample4col.tex, sampleaccsupp.tex, sampleAcr.tex, sampleAcrDesc.tex, sampleDB.tex, sampleDesc.tex, sampleEq.tex, sampleEqPg.tex, sampleNtn.tex, sampleSec.tex, sampletree.tex, sampleutf8.tex, samplexdy.tex, samplexdy-mc.xdy, database1.tex, database2.tex, glossaries.perl. +%% This work consists of the files glossaries.dtx and glossaries.ins and the derived files glossaries.sty, mfirstuc.sty, glossary-hypernav.sty, glossary-list.sty, glossary-long.sty, glossary-longragged.sty, glossary-super.sty, glossary-superragged.sty, glossary-tree.sty, glossaries-accsupp.sty, glossaries-babel.sty, glossaries-polyglossia.sty, glossaries-dictionary-Brazilian.dict, glossaries-dictionary-Danish.dict, glossaries-dictionary-Dutch.dict, glossaries-dictionary-English.dict, glossaries-dictionary-French.dict, glossaries-dictionary-German.dict, glossaries-dictionary-Irish.dict, glossaries-dictionary-Italian.dict, glossaries-dictionary-Magyar.dict, glossaries-dictionary-Polish.dict, glossaries-dictionary-Spanish.dict, minimalgls.tex, sample.tex, sample4col.tex, sampleaccsupp.tex, sampleAcr.tex, sampleAcrDesc.tex, sampleacronyms.tex, sampleDB.tex, sampleDesc.tex, sampleEq.tex, sampleEqPg.tex, sampleNtn.tex, sampleSec.tex, sampletree.tex, sampleutf8.tex, samplexdy.tex, samplexdy-mc.xdy, database1.tex, database2.tex, glossaries.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -39,29 +39,198 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-accsupp}[2009/03/02 v0.1 (NLCT)] +\ProvidesPackage{glossaries-accsupp}[2009/11/02 v0.2 (NLCT)] +\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{glossaries}} +\ProcessOptions \RequirePackage{glossaries} \RequirePackage{accsupp} +\define@key{glossentry}{access}{% + \def\@glo@access{#1}% +} +\define@key{glossentry}{textaccess}{% + \def\@glo@textaccess{#1}% +} +\define@key{glossentry}{firstaccess}{% + \def\@glo@firstaccess{#1}% +} +\define@key{glossentry}{pluralaccess}{% + \def\@glo@pluralaccess{#1}% +} +\define@key{glossentry}{firstpluralaccess}{% + \def\@glo@firstpluralaccess{#1}% +} +\define@key{glossentry}{symbolaccess}{% + \def\@glo@symbolaccess{#1}% +} +\define@key{glossentry}{symbolpluralaccess}{% + \def\@glo@symbolpluralaccess{#1}% +} +\define@key{glossentry}{descriptionaccess}{% + \def\@glo@descaccess{#1}% +} +\define@key{glossentry}{descriptionpluralaccess}{% + \def\@glo@descpluralaccess{#1}% +} +\def\@gls@noaccess{\relax} +\let\@gls@oldnewglossaryentryprehook\@newglossaryentryprehook +\renewcommand*{\@newglossaryentryprehook}{% + \@gls@oldnewglossaryentryprehook + \def\@glo@access{\@glo@symbol}% + \def\@glo@textaccess{\@glo@access}% + \def\@glo@firstaccess{\@glo@access}% + \def\@glo@pluralaccess{\@glo@textaccess}% + \def\@glo@firstpluralaccess{\@glo@pluralaccess}% + \def\@glo@symbolaccess{\relax}% + \def\@glo@symbolpluralaccess{\@glo@symbolaccess}% + \def\@glo@descaccess{\relax}% + \def\@glo@descpluralaccess{\@glo@descaccess}% +} +\let\@gls@oldnewglossaryentryposthook\@newglossaryentryposthook +\renewcommand*{\@newglossaryentryposthook}{% + \@gls@oldnewglossaryentryposthook + \expandafter + \protected@xdef\csname glo@\@glo@label @access\endcsname{% + \@glo@access}% + \expandafter + \protected@xdef\csname glo@\@glo@label @textaccess\endcsname{% + \@glo@textaccess}% + \expandafter + \protected@xdef\csname glo@\@glo@label @firstaccess\endcsname{% + \@glo@firstaccess}% + \expandafter + \protected@xdef\csname glo@\@glo@label @pluralaccess\endcsname{% + \@glo@pluralaccess}% + \expandafter + \protected@xdef\csname glo@\@glo@label @firstpluralaccess\endcsname{% + \@glo@firstpluralaccess}% + \expandafter + \protected@xdef\csname glo@\@glo@label @symbolaccess\endcsname{% + \@glo@symbolaccess}% + \expandafter + \protected@xdef\csname glo@\@glo@label @symbolpluralaccess\endcsname{% + \@glo@symbolpluralaccess}% + \expandafter + \protected@xdef\csname glo@\@glo@label @descaccess\endcsname{% + \@glo@descaccess}% + \expandafter + \protected@xdef\csname glo@\@glo@label @descpluralaccess\endcsname{% + \@glo@descpluralaccess}% +} +\newcommand*{\glsentryaccess}[1]{% + \csname glo@#1@access\endcsname +} +\newcommand*{\glsentrytextaccess}[1]{% + \csname glo@#1@textaccess\endcsname +} +\newcommand*{\glsentryfirstaccess}[1]{% + \csname glo@#1@firstaccess\endcsname +} +\newcommand*{\glsentrypluralaccess}[1]{% + \csname glo@#1@pluralaccess\endcsname +} +\newcommand*{\glsentryfirstpluralaccess}[1]{% + \csname glo@#1@firstpluralaccess\endcsname +} +\newcommand*{\glsentrysymbolaccess}[1]{% + \csname glo@#1@symbolaccess\endcsname +} +\newcommand*{\glsentrysymbolpluralaccess}[1]{% + \csname glo@#1@symbolpluralaccess\endcsname +} +\newcommand*{\glsentrydescaccess}[1]{% + \csname glo@#1@descaccess\endcsname +} +\newcommand*{\glsentrydescpluralaccess}[1]{% + \csname glo@#1@descaccess\endcsname +} \newcommand*{\glsaccsupp}[2]{% \BeginAccSupp{ActualText=#1}#2\EndAccSupp{}% } -\renewcommand{\glsdisplay}[4]{% - \protected@edef\@glo@symbol{#3}% - \ifx\@glo@symbol\relax +\newcommand*{\xglsaccsupp}[2]{% + \protected@edef\@gls@replacementtext{#1}% + \expandafter\glsaccsupp\expandafter{\@gls@replacementtext}{#2}% +} +\DeclareRobustCommand*{\glsnameaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentryaccess{#2}}% + \ifx\@glo@access\@gls@noaccess + #1% + \else + \xglsaccsupp{\@glo@access}{#1}% + \fi +} +\DeclareRobustCommand*{\glstextaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentrytextaccess{#2}}% + \ifx\@glo@access\@gls@noaccess + #1% + \else + \xglsaccsupp{\@glo@access}{#1}% + \fi +} +\DeclareRobustCommand*{\glspluralaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentrypluralaccess{#2}}% + \ifx\@glo@access\@gls@noaccess + #1% + \else + \xglsaccsupp{\@glo@access}{#1}% + \fi +} +\DeclareRobustCommand*{\glsfirstaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentryfirstaccess{#2}}% + \ifx\@glo@access\@gls@noaccess + #1% + \else + \xglsaccsupp{\@glo@access}{#1}% + \fi +} +\DeclareRobustCommand*{\glsfirstpluralaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentryfirstpluralaccess{#2}}% + \ifx\@glo@access\@gls@noaccess + #1% + \else + \xglsaccsupp{\@glo@access}{#1}% + \fi +} +\DeclareRobustCommand*{\glssymbolaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentrysymbolaccess{#2}}% + \ifx\@glo@access\@gls@noaccess + #1% + \else + \xglsaccsupp{\@glo@access}{#1}% + \fi +} +\DeclareRobustCommand*{\glssymbolpluralaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentrysymbolpluralaccess{#2}}% + \ifx\@glo@access\@gls@noaccess + #1% + \else + \xglsaccsupp{\@glo@access}{#1}% + \fi +} +\DeclareRobustCommand*{\glsdescriptionaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentrydescaccess{#2}}% + \ifx\@glo@access\@gls@noaccess #1% \else - \expandafter\glsaccsupp\expandafter{\@glo@symbol}{#1}% + \xglsaccsupp{\@glo@access}{#1}% \fi - #4% } -\renewcommand{\glsdisplayfirst}[4]{% - \protected@edef\@glo@symbol{#3}% - \ifx\@glo@symbol\relax +\DeclareRobustCommand*{\glsdescriptionpluralaccessdisplay}[2]{% + \protected@edef\@glo@access{\glsentrydescpluralaccess{#2}}% + \ifx\@glo@access\@gls@noaccess #1% \else - \expandafter\glsaccsupp\expandafter{\@glo@symbol}{#1}% + \xglsaccsupp{\@glo@access}{#1}% \fi - #4% +} +\DeclareRobustCommand*{\glsaccessdisplay}[3]{% + \@ifundefined{gls#1accessdisplay}% + {% + \PackageError{glossaries-accsupp}{No accessibility support + for key `#1'}{}% + }% + {% + \csname gls#1accessdisplay\endcsname{#2}{#3}% + }% } \def\@gls@#1#2[#3]{% \glsdoifexists{#2}% @@ -72,12 +241,16 @@ \ifglsused{#2}% {% \def\@glo@text{\csname gls@\@glo@type @display\endcsname - {\glsentrytext{#2}}{\glsentrydesc{#2}}{\glsentrysymbol{#2}}% + {\glstextaccessdisplay{\glsentrytext{#2}}{#2}}% + {\glsdescriptionaccessdisplay{\glsentrydesc{#2}}{#2}}% + {\glssymbolaccessdisplay{\glsentrysymbol{#2}}{#2}}% {#3}}% }% {% \def\@glo@text{\csname gls@\@glo@type @displayfirst\endcsname - {\glsentryfirst{#2}}{\glsentrydesc{#2}}{\glsentrysymbol{#2}}% + {\glsfirstaccessdisplay{\glsentryfirst{#2}}{#2}}% + {\glsdescriptionaccessdisplay{\glsentrydesc{#2}}{#2}}% + {\glssymbolaccessdisplay{\glsentrysymbol{#2}}{#2}}% {#3}}% }% \ifglsused{#2}% @@ -85,8 +258,9 @@ \@gls@link[#1]{#2}{\@glo@text}% }% {% - \ifthenelse{\equal{\@glo@type}{\acronymtype}\and - \boolean{glsacrfootnote}}% + \gls@checkisacronymlist\@glo@type + \ifthenelse{\(\boolean{@glsisacronymlist}\AND + \boolean{glsacrfootnote}\) \OR\NOT\boolean{glshyperfirst}}% {% \@gls@link[#1,hyper=false]{#2}{\@glo@text}% }% @@ -106,12 +280,16 @@ \ifglsused{#2}% {% \def\@glo@text{\csname gls@\@glo@type @display\endcsname - {\Glsentrytext{#2}}{\glsentrydesc{#2}}{\glsentrysymbol{#2}}% + {\glstextaccessdisplay{\Glsentrytext{#2}}{#2}}% + {\glsdescriptionaccessdisplay{\glsentrydesc{#2}}{#2}}% + {\glssymbolaccessdisplay{\glsentrysymbol{#2}}{#2}}% {#3}}% }% {% \def\@glo@text{\csname gls@\@glo@type @displayfirst\endcsname - {\Glsentryfirst{#2}}{\glsentrydesc{#2}}{\glsentrysymbol{#2}}% + {\glsfirstaccessdisplay{\Glsentryfirst{#2}}{#2}}% + {\glsdescriptionaccessdisplay{\glsentrydesc{#2}}{#2}}% + {\glssymbolaccessdisplay{\glsentrysymbol{#2}}{#2}}% {#3}}% }% \ifglsused{#2}% @@ -119,8 +297,9 @@ \@gls@link[#1]{#2}{\@glo@text}% }% {% - \ifthenelse{\equal{\@glo@type}{\acronymtype}\and - \boolean{glsacrfootnote}}% + \gls@checkisacronymlist\@glo@type + \ifthenelse{\(\boolean{@glsisacronymlist}\AND + \boolean{glsacrfootnote}\) \OR\NOT\boolean{glshyperfirst}}% {% \@gls@link[#1,hyper=false]{#2}{\@glo@text}% }% @@ -139,12 +318,16 @@ \ifglsused{#2}% {% \def\@glo@text{\csname gls@\@glo@type @display\endcsname - {\glsentrytext{#2}}{\glsentrydesc{#2}}{\glsentrysymbol{#2}}% + {\glstextaccessdisplay{\glsentrytext{#2}}{#2}}% + {\glsdescriptionaccessdisplay{\glsentrydesc{#2}}{#2}}% + {\glssymbolaccessdisplay{\glsentrysymbol{#2}}{#2}}% {#3}}% }% {% \edef\@glo@text{\csname gls@\@glo@type @displayfirst\endcsname - {\glsentryfirst{#2}}{\glsentrydesc{#2}}{\glsentrysymbol{#2}}% + {\glsfirstaccessdisplay{\glsentryfirst{#2}}{#2}}% + {\glsdescriptionaccessdisplay{\glsentrydesc{#2}}{#2}}% + {\glssymbolaccessdisplay{\glsentrysymbol{#2}}{#2}}% {#3}}% }% \ifglsused{#2}% @@ -152,8 +335,9 @@ \@gls@link[#1]{#2}{\MakeUppercase{\@glo@text}}% }% {% - \ifthenelse{\equal{\@glo@type}{\acronymtype}\and - \boolean{glsacrfootnote}}{% + \gls@checkisacronymlist\@glo@type + \ifthenelse{\(\boolean{@glsisacronymlist}\AND + \boolean{glsacrfootnote}\) \OR\NOT\boolean{glshyperfirst}}{% \@gls@link[#1,hyper=false]{#2}{\MakeUppercase{\@glo@text}}% }% {% @@ -172,21 +356,26 @@ \ifglsused{#2}% {% \def\@glo@text{\csname gls@\@glo@type @display\endcsname - {\glsentryplural{#2}}{\glsentrydescplural{#2}}% - {\glsentrysymbolplural{#2}}{#3}}% + {\glspluralaccessdisplay{\glsentryplural{#2}}{#2}}% + {\glsdescriptionpluralaccessdisplay{\glsentrydescplural{#2}}{#2}}% + {\glssymbolpluralaccessdisplay{\glsentrysymbolplural{#2}}{#2}}% + {#3}}% }% {% \def\@glo@text{\csname gls@\@glo@type @displayfirst\endcsname - {\glsentryfirstplural{#2}}{\glsentrydescplural{#2}}% - {\glsentrysymbolplural{#2}}{#3}}% + {\glsfirstpluralaccessdisplay{\glsentryfirstplural{#2}}{#2}}% + {\glsdescriptionpluralaccessdisplay{\glsentrydescplural{#2}}{#2}}% + {\glssymbolpluralaccessdisplay{\glsentrysymbolplural{#2}}{#2}}% + {#3}}% }% \ifglsused{#2}% {% \@gls@link[#1]{#2}{\@glo@text}% }% {% - \ifthenelse{\equal{\@glo@type}{\acronymtype}\and - \boolean{glsacrfootnote}}% + \gls@checkisacronymlist\@glo@type + \ifthenelse{\(\boolean{@glsisacronymlist}\AND + \boolean{glsacrfootnote}\) \OR\NOT\boolean{glshyperfirst}}% {% \@gls@link[#1,hyper=false]{#2}{\@glo@text}% }% @@ -206,13 +395,17 @@ \ifglsused{#2}% {% \def\@glo@text{\csname gls@\@glo@type @display\endcsname - {\Glsentryplural{#2}}{\glsentrydescplural{#2}}% - {\glsentrysymbolplural{#2}}{#3}}% + {\glspluralaccessdisplay{\Glsentryplural{#2}}{#2}}% + {\glsdescriptionpluralaccessdisplay{\glsentrydescplural{#2}}{#2}}% + {\glssymbolpluralaccessdisplay{\glsentrysymbolplural{#2}}{#2}}% + {#3}}% }% {% \def\@glo@text{\csname gls@\@glo@type @displayfirst\endcsname - {\Glsentryfirstplural{#2}}{\glsentrydescplural{#2}}% - {\glsentrysymbolplural{#2}}{#3}}% + {\glsfirstpluralaccessdisplay{\Glsentryfirstplural{#2}}{#2}}% + {\glsdescriptionpluralaccessdisplay{\glsentrydescplural{#2}}{#2}}% + {\glssymbolpluralaccessdisplay{\glsentrysymbolplural{#2}}{#2}}% + {#3}}% }% \ifglsused{#2}% {% @@ -240,21 +433,26 @@ \ifglsused{#2}% {% \def\@glo@text{\csname gls@\@glo@type @display\endcsname - {\glsentryplural{#2}}{\glsentrydescplural{#2}}% - {\glsentrysymbolplural{#2}}{#3}}% + {\glspluralaccessdisplay{\glsentryplural{#2}}{#2}}% + {\glsdescriptionpluralaccessdisplay{\glsentrydescplural{#2}}{#2}}% + {\glssymbolpluralaccessdisplay{\glsentrysymbolplural{#2}}{#2}}% + {#3}}% }% {% \def\@glo@text{\csname gls@\@glo@type @displayfirst\endcsname - {\glsentryfirstplural{#2}}{\glsentrydescplural{#2}}% - {\glsentrysymbolplural{#2}}{#3}}% + {\glsfirstpluralaccessdisplay{\glsentryfirstplural{#2}}{#2}}% + {\glsdescriptionpluralaccessdisplay{\glsentrydescplural{#2}}{#2}}% + {\glssymbolpluralaccessdisplay{\glsentrysymbolplural{#2}}{#2}}% + {#3}}% }% \ifglsused{#2}% {% \@gls@link[#1]{#2}{\MakeUppercase{\@glo@text}}% }% {% - \ifthenelse{\equal{\@glo@type}{\acronymtype}\and - \boolean{glsacrfootnote}}% + \gls@checkisacronymlist\@glo@type + \ifthenelse{\(\boolean{@glsisacronymlist}\AND + \boolean{glsacrfootnote}\)\OR\NOT\boolean{glshyperfirst}}% {% \@gls@link[#1,hyper=false]{#2}{\MakeUppercase{\@glo@text}}% }% @@ -265,6 +463,152 @@ \glsunset{#2}% }% } +\ifglsxindy + \renewcommand*{\@glossaryentryfield}{% + \string\\accsuppglossaryentryfield} +\else + \renewcommand*{\@glossaryentryfield}{% + \string\accsuppglossaryentryfield} +\fi +\ifglsxindy + \renewcommand*{\@glossarysubentryfield}{% + \string\\accsuppglossarysubentryfield} +\else + \renewcommand*{\@glossarysubentryfield}{% + \string\accsuppglossarysubentryfield} +\fi +\newcommand*{\accsuppglossaryentryfield}[5]{% + \glossaryentryfield{#1}% + {\glsnameaccessdisplay{#2}{#1}}% + {\glsdescriptionaccessdisplay{#3}{#1}}% + {\glssymbolaccessdisplay{#4}{#1}}{#5}% +} +\newcommand*{\accsuppglossarysubentryfield}[6]{% + \glossaryentryfield{#1}{#2}% + {\glsnameaccessdisplay{#3}{#2}}% + {\glsdescriptionaccessdisplay{#4}{#2}}% + {\glssymbolaccessdisplay{#5}{#2}}{#6}% +} +\renewcommand*{\newacronymhook}{% + \edef\@gls@keylist{\glsshortkey access=\the\glslongtok,% + \the\glskeylisttok}% + \expandafter\glskeylisttok\expandafter{\@gls@keylist}% +} +\renewcommand*{\DefaultNewAcronymDef}{% + \edef\@do@newglossaryentry{% + \noexpand\newglossaryentry{\the\glslabeltok}% + {% + type=\acronymtype,% + name={\the\glsshorttok},% + description={\the\glslongtok},% + descriptionaccess=\relax, + text={\the\glsshorttok},% + textaccess={\the\glslongtok},% + access={\noexpand\@glo@textaccess},% + sort={\the\glsshorttok},% + descriptionplural={\the\glslongtok\noexpand\acrpluralsuffix},% + firstaccess=\relax, + first={\noexpand\glsdescriptionaccessdisplay + {\the\glslongtok}{\the\glslabeltok}\space + (\noexpand\glstextaccessdisplay + {\the\glsshorttok}{\the\glslabeltok})},% + plural={\the\glsshorttok\acrpluralsuffix},% + firstplural={\noexpand\glsdescriptionpluralaccessdisplay + {\noexpand\@glo@descplural}{\the\glslabeltok}\space + (\noexpand\glspluralaccessdisplay + {\noexpand\@glo@plural}{\the\glslabeltok})},% + firstpluralaccess=\relax, + \the\glskeylisttok + }% + }% + \@do@newglossaryentry +} +\renewcommand*{\DescriptionFootnoteNewAcronymDef}{% + \edef\@do@newglossaryentry{% + \noexpand\newglossaryentry{\the\glslabeltok}% + {% + type=\acronymtype,% + name={\noexpand\acronymfont{\the\glsshorttok}},% + sort={\the\glsshorttok},% + text={\the\glsshorttok},% + textaccess={\the\glslongtok},% + access={\noexpand\@glo@textaccess},% + plural={\the\glsshorttok\noexpand\acrpluralsuffix},% + symbol={\the\glslongtok},% + symbolplural={\the\glslongtok\noexpand\acrpluralsuffix},% + \the\glskeylisttok + }% + }% + \@do@newglossaryentry +} +\renewcommand*{\DescriptionNewAcronymDef}{% + \edef\@do@newglossaryentry{% + \noexpand\newglossaryentry{\the\glslabeltok}% + {% + type=\acronymtype,% + name={\noexpand + \acrnameformat{\the\glsshorttok}{\the\glslongtok}},% + access={\noexpand\@glo@textaccess},% + sort={\the\glsshorttok},% + first={\the\glslongtok},% + firstaccess=\relax, + firstplural={\the\glslongtok\noexpand\acrpluralsuffix},% + text={\the\glsshorttok},% + textaccess={\the\glslongtok},% + plural={\the\glsshorttok\noexpand\acrpluralsuffix},% + symbol={\noexpand\@glo@text},% + symbolaccess={\noexpand\@glo@textaccess},% + symbolplural={\noexpand\@glo@plural},% + \the\glskeylisttok}% + }% + \@do@newglossaryentry +} +\renewcommand*{\FootnoteNewAcronymDef}{% + \edef\@do@newglossaryentry{% + \noexpand\newglossaryentry{\the\glslabeltok}% + {% + type=\acronymtype,% + name={\noexpand\acronymfont{\the\glsshorttok}},% + access={\noexpand\@glo@textaccess},% + sort={\the\glsshorttok},% + text={\the\glsshorttok},% + textaccess={\the\glslongtok},% + plural={\the\glsshorttok\noexpand\acrpluralsuffix},% + description={\the\glslongtok},% + descriptionplural={\the\glslongtok\noexpand\acrpluralsuffix},% + \the\glskeylisttok + }% + }% + \@do@newglossaryentry +} +\renewcommand*{\SmallNewAcronymDef}{% + \edef\@do@newglossaryentry{% + \noexpand\newglossaryentry{\the\glslabeltok}% + {% + type=\acronymtype,% + name={\noexpand\acronymfont{\the\glsshorttok}},% + access={\noexpand\@glo@symbolaccess},% + sort={\the\glsshorttok},% + text={\noexpand\@glo@symbol},% + textaccess={\noexpand\@glo@symbolaccess},% + plural={\noexpand\@glo@symbolplural},% + first={\the\glslongtok},% + firstaccess=\relax, + firstplural={\the\glslongtok\noexpand\acrpluralsuffix},% + description={\noexpand\@glo@first},% + descriptionplural={\noexpand\@glo@firstplural},% + symbol={\the\glsshorttok},% + symbolaccess={\the\glslongtok},% + symbolplural={\the\glsshorttok\noexpand\acrpluralsuffix},% + \the\glskeylisttok + }% + }% + \@do@newglossaryentry +} + \newcommand*{\glsshortaccesskey}{\glsshortkey access}% + \newcommand*{\glsshortpluralaccesskey}{\glsshortpluralkey access}% + \newcommand*{\glslongaccesskey}{\glslongkey access}% + \newcommand*{\glslongpluralaccesskey}{\glslongpluralkey access}% \endinput %% %% End of file `glossaries-accsupp.sty'. |