On 7/29/2025 8:07 PM, Pablo Rodriguez via ntg-context wrote:
Hi Hans,
I did some basic testing with language tagging and but I’m afraid even
`agr` still gives `agr` (not `grc`).
we're currently messing around with these mappings for tags and think we
have at least a solution to 'always' pass a test ... it's a real mess in
pdf and all this pdf tagging (standard, updating, validating, whatever
one can call it) is (apart from the totally random nesting restrictions)
not really moving forward in a positive way but we have to deal with it
as it's out of our (probably the whole tex communities) control so the
best we can do is try to keep up
one problem is that basically in a tex situation anything can be within
anything even when very structured
Is language tagging still to be finished?
you need to load a goodie (for now)
\setuplanguage[agr][goodies={lang-agr.llg}]
% \setupbackend[format=pdf/ua-2,level=0]
%\setuptagging[state=start]
%\setupbackend[export=yes]
%\setupbodyfont[pagella]
highlight and startstop support it; we can add to more elements but when
i looked at it very few made sense so in the end i commented the 'add to
all' code because we dont' want the overhead on things like rules or
frames or ... it's not like there has been requests for a language tag
in the past (it actually then makes more sense to think about some
specific language environment with an encapsulating element; something
we might try on the 4 parallel bibles run)
\definehighlight[isdutch] [language=nl,color=darkred]
\definehighlight[isgerman] [language=de,color=darkblue]
\definestartstop[someczech] [language=cz,color=darkgreen]
\definestartstop[somefrench][language=fr,color=darkyellow]
\definestartstop[greektome] [language=agr,color=darkmagenta]
BTW, is there any way to know which commands have language tagging (a
`language` key enabled?
Just for the record, my testing sample was:
\setuptagging[state=start]
\setupstructure[state=start]
\setupbackend [format=pdf/ua-2]
\starttext
\startparagraph
\doloopoverlist{agr, ua, deo, farsi, cn, kr, gr, es-la, mo}
{\setuphighlight[whatever][language=\recursestring]
\highlight[whatever]
{testing language: \currentlanguage}}
\stopparagraph
\doloopoverlist{agr, ua, deo, farsi, cn, kr, gr, es-la, mo}
{\startblockquote[\recursestring]
\dorecurse{3}{\startparagraph
testing language: \currentlanguage
\stopparagraph}
\stopblockquote}
\stoptext
Many thanks for your help,
so you want language on a paragraph> btw, paragraph is kind of costly,
maybe i need to check that too; there is also bpar but that one is
ungrouped
so (to all) ... what enviromnments need a language switch (i have a list
but wanna know anyway as spending a few hours on it ... well ...)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________