[NTG-context] Re: export and tagging

2025-07-27 Thread Hans Hagen via ntg-context
[export=yes,xhtml=yes] \setupexport [svgstyle=mathtest-style, hyphen=yes, width=60em] the next upload will support the hyphen option (was disabled in lmtx although we can actually do it there too) \enabledirectives[export.css.hyphens=yes] \enabledirectives[export.css.textwidth=100em

[NTG-context] Re: export and tagging

2025-07-26 Thread Matthias Weber
=mathtest-style, hyphen=yes, width=60em] \enabledirectives[export.css.hyphens=yes] \enabledirectives[export.css.textwidth=100em] \starttext \placefigure [force] [figure:crc2] {Hacker} {\externalfigure[hacker.jpg][width=.6\textwidth, alternativetext={ A lot of math: $\int_0^\infty e^{-x^2

[NTG-context] Re: success and a query

2025-07-05 Thread Hans Hagen via ntg-context
sys.mkxl one can chaneg this: \enforced\let\newcontextversion\gobbleoneargument fwiw, \enforced is like \aliased (inherits all properties) but only is permissive when used in the format file begin example %\enabledirectives[overloadmode=error] \definehighlight [Important]   [styl

[NTG-context] Re: success and a query

2025-07-05 Thread vm via ntg-context
the line number of the warning in the log in one line off: csname overload > warning, protection level 3, control sequence 'Important', properties 'frozen instance protected', file './context 128.tex', line 13 01 begin example 02 %\enabledir

[NTG-context] Re: success and a query

2025-07-04 Thread Wolfgang Schuster
gnore the mention of \newcontextversion (something Hans should put in overloadmode) you should take a look at the \starttitle warning. begin example %\enabledirectives[overloadmode=error] \definehighlight [Important] [style=bold] \definehighlight [Unimportant] [style=italic] \starttex

[NTG-context] Re: PDFs for the visually impaired

2025-07-02 Thread John Was
Wed, 2 Jul 2025 at 01:38, Matthias Weber wrote: > You can try > > > \enabledirectives [backend.usetags=testing] > \setuptagging [state=start] > \setupstructure [state=start] > \setupbackend [format=PDF/A-3a] > % \setupbackend [format=pdf/ua-1] > > \setupinteraction [page=y

[NTG-context] Re: PDFs for the visually impaired

2025-07-01 Thread Matthias Weber
You can try \enabledirectives [backend.usetags=testing] \setuptagging [state=start] \setupstructure [state=start] \setupbackend [format=PDF/A-3a] % \setupbackend[format=pdf/ua-1] \setupinteraction [page=yes, menu=on

[NTG-context] Re: Alternate text for figures that includes math

2025-06-19 Thread Matthias Weber
Thanks, Pablo (and everybody else reading this), I should have put my question differently. When using the math.textblobs tracker, this code: \enabledirectives [backend.usetags=testing] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a] \setupbackend

[NTG-context] Alternate text for figures that includes math

2025-06-15 Thread Matthias Weber
below)? I can do this manually, but my figures contain quite a bit of math, and it would be nice if alternate text for math is provided consistently throughout the document. Thanks, Matthias \usemodule[mathml] \enabledirectives [backend.usetags=testing] \setuptagging[state=start

[NTG-context] Re: upload

2025-06-12 Thread Rik Kabel
tives; fwiw: i've been running the highest level of protection already for years now (error mode) .. you can try \enabledirectives [overloadmode=error] at the top of your file to see how badly you behave -- a few fixes here and there (related to mailing list questions and reports

[NTG-context] upload

2025-06-12 Thread Hans Hagen
he highest level of protection already for years now (error mode) .. you can try \enabledirectives [overloadmode=error] at the top of your file to see how badly you behave -- a few fixes here and there (related to mailing list questions and reports); nothing spectacular -- some preparations w

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-05-11 Thread Hans Hagen
: \setupbackend   [format={pdf/a-2a},    profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}] \setuptagging   [state=start] \enabledirectives    [backend.usetags=mkiv] Specification: ISO 19005-2:2011, Clause: 6.2.4.3, Test number: 3 DeviceCMYK shall only be used if a device independent DefaultCMYK

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-05-11 Thread juh+ntg-context--- via ntg-context
] \enabledirectives [backend.usetags=mkiv] Specification: ISO 19005-2:2011, Clause: 6.2.4.3, Test number: 3 DeviceCMYK shall only be used if a device independent DefaultCMYK colour space has been set or if a DeviceN-based DefaultCMYK colour space has been set when the DeviceCMYK colour

[NTG-context] Re: TDM Reservation Protocol (TDMRep)

2025-05-01 Thread Rik Kabel
: |\setupbackend[format={PDF/UA-1}] \setuptagging[state=start] \enabledirectives[backend.usetags=crap] \startluacode lpdf.injectxmpinfo("xml://rdf:RDF","1",false) \stopluacode | Many thanks for the code, Rik. Just in case anyone intends to use any form of TDM reservation, it

[NTG-context] Re: TDM Reservation Protocol (TDMRep)

2025-05-01 Thread Rik Kabel
}] \setuptagging[state=start] \enabledirectives[backend.usetags=crap] \startluacode lpdf.injectxmpinfo("xml://rdf:RDF","1",false) \stopluacode | Many thanks for the code, Rik. Just in case anyone intends to use any form of TDM reservation, it seems that it might break PDF/A validatio

[NTG-context] Re: TDM Reservation Protocol (TDMRep)

2025-05-01 Thread Steffen Wolfrum
-archive.com/ntg-context@ntg.nl/msg64956.html> and inserted > it successfully as follows: > > > \setupbackend[format={PDF/UA-1}] > \setuptagging[state=start] > \enabledirectives[backend.usetags=crap] > \startluacode > lpdf.injectxmpinfo("xml://rdf:RDF"

[NTG-context] Re: TDM Reservation Protocol (TDMRep)

2025-05-01 Thread Steffen Wolfrum
list at https://www.mail- >> archive.com/ntg-context@ntg.nl/msg64956.html and inserted it >> successfully as follows: >> >> |\setupbackend[format={PDF/UA-1}] \setuptagging[state=start] >> \enabledirectives[backend.usetags=crap] \startluacode >> lpdf.injectxmpinfo(&

[NTG-context] Re: TDM Reservation Protocol (TDMRep)

2025-05-01 Thread Pablo Rodriguez via ntg-context
On 5/1/25 00:02, Rik Kabel wrote: > [...] > I took the route described in the mailing list at https://www.mail- > archive.com/ntg-context@ntg.nl/msg64956.html and inserted it > successfully as follows: > > |\setupbackend[format={PDF/UA-1}] \setuptagging[state=start] &

[NTG-context] Re: TDM Reservation Protocol (TDMRep)

2025-05-01 Thread Pablo Rodriguez via ntg-context
Many thanks for the reference. > Perhaps ConTeXt could introduce something similar where invisible > pages or invisible layers of nonsense are auto-generated but can't > be seen on screen or when a document is printed? There is something similar (Hans already mentioned it): \enabledir

[NTG-context] Re: TDM Reservation Protocol (TDMRep)

2025-04-30 Thread Rik Kabel
successfully as follows: |\setupbackend[format={PDF/UA-1}] \setuptagging[state=start] \enabledirectives[backend.usetags=crap] \startluacode lpdf.injectxmpinfo("xml://rdf:RDF","xmlns:tdm='http://www.w3.org/ns/tdmrep/'>1"

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Wolfgang Schuster
2025.04.28 14:29): \enabledirectives [backend.usetags=testing] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a] \setupbackend[format=pdf/ua-1] \setupexternalfigures[location=default] \starttext \externalfigure[hacker][label={this is an image

[NTG-context] Re: Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Ulrike Fischer
0250427 + ConTeXt LMTX 2025.04.28 14:29): >> >> \enabledirectives [backend.usetags=testing] >> \setuptagging[state=start] >> \setupstructure[state=start] >> \setupbackend >>[format=PDF/A-3a] >> \setupbackend[format=pdf/ua-1] >> \setupexternalfigur

[NTG-context] Images and Accessibility (ConTeXt LMTX 2025.04.28)

2025-04-29 Thread Matthias Weber
Dear All, I am starting a new thread as requested. I can confirm that > > the following should work with current latest (from yesterday, > LuaMetaTeX 2.11.07 20250427 + ConTeXt LMTX 2025.04.28 14:29): > > \enabledirectives [backend.usetags=testing] > \setupt

[NTG-context] Re: upload

2025-04-29 Thread Pablo Rodriguez via ntg-context
in german) that is the background for this > announcement: https://bfsg-gesetz.de/ <https://bfsg-gesetz.de/> Hi Steffen, the following should work with current latest (from yesterday, LuaMetaTeX 2.11.07 20250427 + ConTeXt LMTX 2025.04.28 14:29): \enabledirectives [backend.usetags=tes

[NTG-context] Re: Tagging Math

2025-04-16 Thread Matthias Weber
parent.dict.Alt = pdfunicode(label ~= "" and label or "image") > > And it should work for PDF/UA-1. Please, don’t forget that I don’t use > math in ConTeXt at all (only for these testings). > > Source for the attached PDF document: > > \enabledi

[NTG-context] Re: Tagging Math

2025-04-15 Thread Pablo Rodriguez via ntg-context
= pdfunicode(label ~= "" and label or "image") And it should work for PDF/UA-1. Please, don’t forget that I don’t use math in ConTeXt at all (only for these testings). Source for the attached PDF document: \enabledirectives [backend.usetags=testing] \setups

[NTG-context] Re: Tagging Math

2025-04-15 Thread Matthias Weber
Thanks Pablo, I don’t understand how to do this. The following compiles, but I don’t think the label made it into the pdf. \enabledirectives [backend.usetags=crap] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a, intent=sRGB IEC61966

[NTG-context] Re: Tagging Math

2025-04-10 Thread Matthias Weber
gt; > > > /Mikael > > > On Thu, Apr 10, 2025 at 7:58 PM Matthias Weber > wrote: >> >> Dear All, >> >> >> Following the instructions in tagging.pdf, >> >> I tried >> >> \setupbackend[format=pdf/ua-2] >> \setuptaggi

[NTG-context] Re: Tagging Math

2025-04-10 Thread Mikael Sundqvist
backend[format=pdf/ua-2] > \setuptagging[state=start] > > \enabledirectives [backend.usetags=crap] > > \registermathsymbol[default][en][ z ][the variable] > \registermathsymbol[default][en][ k ][the index] > > > \starttext > \startformula > \startalign > \NC \left|(z_0+h)^

[NTG-context] Tagging Math

2025-04-10 Thread Matthias Weber
Dear All, Following the instructions in tagging.pdf, I tried \setupbackend[format=pdf/ua-2] \setuptagging[state=start] \enabledirectives [backend.usetags=crap] \registermathsymbol[default][en][ z ][the variable] \registermathsymbol[default][en][ k ][the index] \starttext \startformula

[NTG-context] Re: non standard tag for structure

2025-04-10 Thread Pablo Rodriguez via ntg-context
you can forget this thread in favour of “Alternate text for images?”. I was ignorant when I started the thread that there was: \enabledirectives [backend.usetags=crap] This was the way to avoid the use of the right tagging for PDF/UA-1. I hope it i

[NTG-context] Re: Alternate text for images?

2025-04-09 Thread Pablo Rodriguez via ntg-context
be PDF document \enabledirectives [backend.usetags=testing] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a, intent=sRGB IEC61966-2.1, level=0] \setupbackend[format=pdf/ua-1] \setupexternalfigures[location=default] \starttext \externalfigure[cow][label

[NTG-context] Re: Alternate text for images?

2025-04-09 Thread Matthias Weber
AM, Matthias Weber wrote: >>> [...] >>> in order to provide screen readability (but the above doesn’t >>> work, the PDF doesn’t have the alternate text). >> >> This one will add an Alt to the element >> >>\externalfigure[cow][label={this is a

[NTG-context] Re: Alternate text for images?

2025-04-08 Thread Pablo Rodriguez via ntg-context
lfigure[cow][label={this is a cow}] Matthias, this should work: \enabledirectives [backend.usetags=crap] \setuptagging[state=start] \setupstructure[state=start] \setupbackend [format=PDF/A-3a, intent=sRGB IEC61966-2.1, level=0] \setupbackend[format=pdf

[NTG-context] Re: Alternate text for images?

2025-04-08 Thread Pablo Rodriguez via ntg-context
On 4/7/25 22:23, Hans Hagen wrote: > On 4/5/2025 9:05 AM, Pablo Rodriguez via ntg-context wrote: >> [...] >> At least, the validator only complains for the use of /DocumentFragment >> (unknown to PDF-1.7). > > I think that (cf the tagging.pdf manual) > > \enabl

[NTG-context] Re: Alternate text for images?

2025-04-07 Thread Hans Hagen
\externalfigure[cow][label={this is a cow}] \stoptext At least, the validator only complains for the use of /DocumentFragment (unknown to PDF-1.7). I think that (cf the tagging.pdf manual) \enabledirectives [backend.usetags=crap] should work and one can define ones own mappings BTW

[NTG-context] How to typeset interactive, hyphenated URLs in a bibliography?

2025-04-06 Thread Riviera Taylor
,prefix=no] \startbuffer[text] \quote{Welcome to my website} \cite[smith2025]. \stopbuffer \savebuffer[list=text,file=text.tex,prefix=no] \starttext \setupinteraction[state=start,color=black] \environment bib_env \enabledirectives[hyphenators.urls.packslashes] \sethyphenate

[NTG-context] \currentlistentrynumber and \currentlistlocation

2025-03-01 Thread Pablo Rodriguez via ntg-context
Dear list, I’m struggling with an alternative list setup: \showframe \setupinteraction [state=start, style=, focus=standard] \enabledirectives[references.border=red] \definelistalternative [pmcols] [renderingsetup=pmcol] \startsetups [pmcol] \ifnum

[NTG-context] \setuplist[chapter][alternative=d] inside margins

2025-02-26 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample: \starttext \showframe %\setuppapersize[A5] \setupinteraction [state=start, color=,] \enabledirectives[references.border=darkgreen] \definestructureconversionset[rom][n,R] \protected\def\doPageNumber#1% {#1\narrownobreakspace

[NTG-context] Re: upload

2025-02-16 Thread Thomas Meyer
}, ] \setuptagging   [state=start] \enabledirectives   [backend.usetags=mkiv]   \starttext   a   \stoptext is green with VeraPDF! Many thanks for your testing, Thomas. format={pdf/ua-2} is not defined I think, see: https:// source.contextgarden.net/tex/context/base/mkiv/lpdf-fmt.lua It’s

[NTG-context] Re: upload

2025-02-16 Thread Pablo Rodriguez via ntg-context
On 2/16/25 11:09, Thomas Meyer wrote: > \setupbackend[ > format={pdf/ua-1}, > profile={default_rgb.icc,default_gray.icc}, > ] > > \setuptagging >   [state=start] > > \enabledirectives >   [backend.usetags=mkiv] > >   \starttext >   a >   \stoptext > &

[NTG-context] Re: upload

2025-02-16 Thread Thomas Meyer
\setupbackend[ format={pdf/ua-1}, profile={default_rgb.icc,default_gray.icc}, ] \setuptagging   [state=start] \enabledirectives   [backend.usetags=mkiv]   \starttext   a   \stoptext is green with VeraPDF! format={pdf/ua-2} is not defined I think, see: https://source.contextgarden.net/tex

[NTG-context] Re: images with alt text

2025-02-06 Thread Florent Michel
; >>> even more crap .. let's wait till abbreviations are completely >>> forbiddeb >>> >>> (and also units and such ) >>> >> From what I see, /E may be helpful (similar to /ActualText). >>> > >>> > Imo it's useless: >>

[NTG-context] Re: images with alt text

2025-02-06 Thread Steffen Wolfrum
>> I think this may be a requirement for text-to-speech conversions. >>> >>> >>> >>> even more crap .. let's wait till abbreviations are completely forbiddeb >>> >>> (and also units and such ) >>> >> From w

[NTG-context] Re: images with alt text

2025-02-06 Thread Steffen Wolfrum
;> > (2) after that it is suposed to be known >> > (3) if one jumps into a document in the middle one cannot expect it to be >> > repeated every time >> > (4) if that *is* expoected there is no need to use abbreviations at all >> > (5) so, why should a '

[NTG-context] Re: images with alt text

2025-02-06 Thread Florent Michel
nown >> > (3) if one jumps into a document in the middle one cannot expect it to >> be repeated every time >> > (4) if that *is* expoected there is no need to use abbreviations at all >> > (5) so, why should a 'read out' document have all abbreviations with an &g

[NTG-context] Re: images with alt text

2025-02-06 Thread Steffen Wolfrum
r me, the real problem with accessibility (and penalties for > >> non-accessible documents) is that it will force all documents to be > >> machine-readable (so we have to feed AI with all our public documents, > >> whether we like it or not). > > > > i as

[NTG-context] Re: images with alt text

2025-02-05 Thread luigi scarso
to use abbreviations at all >> > (5) so, why should a 'read out' document have all abbreviations with an >> expanded meaning and a typeset text not >> > >> >> For me, the real problem with accessibility (and penalties for >> >> non-acc

[NTG-context] Re: images with alt text

2025-02-04 Thread Florent Michel
nts) is that it will force all documents to be > >> machine-readable (so we have to feed AI with all our public documents, > >> whether we like it or not). > > > > i assume that such a machine learning or pattern recognotion app can > quite well figure out t

[NTG-context] Re: images with alt text

2025-02-04 Thread Steffen Wolfrum
and a typeset text not > >> For me, the real problem with accessibility (and penalties for >> non-accessible documents) is that it will force all documents to be >> machine-readable (so we have to feed AI with all our public documents, >> whether we like it or n

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Florent Michel
gt; >> viewerprefix=\romanpage -, > >> ] > >> > >> \dorecurse {6} \ipsum > >> > >> \stoptext > >> ``` > >> > >> In section 2, pages are shown with roman numerals in the document and > as (roman numerals)-(arabic numer

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-25 Thread Shiv Shankar Dayal
> (roman numerals)-(arabic numerals) in the outline with Okular and Evince. I >> don't know how to get only the first part, though. >> >> Best regards, >> Florent >> >> Le mar. 24 sept. 2024 à 17:20, Shiv Shankar Dayal >> a écrit : >>>

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
gt; Florent > > Le mar. 24 sept. 2024 à 17:20, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> a écrit : > >> > Did you try a different PDF viewer? The display of the PDF outline >> > probably depends on the viewer. >> >> I used Evince and Okular(I a

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Florent Michel
obably depends on the viewer. > > I used Evince and Okular(I am on Linux) and both work for LaTeX > generated pdfs. > > > Maybe try > > \enabledirectives[references.bookmarks.preroll] > > or > > \setupheads[expansion=yes] > > T

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Shiv Shankar Dayal
> Did you try a different PDF viewer? The display of the PDF outline > probably depends on the viewer. I used Evince and Okular(I am on Linux) and both work for LaTeX generated pdfs. > Maybe try > \enabledirectives[references.bookmarks.preroll] > or > \setupheads[expansion=ye

[NTG-context] Re: Example for switching page numbering from roman to numeric in PDF outline

2024-09-24 Thread Henning Hraban Ramm
outline probably depends on the viewer. Maybe try \enabledirectives[references.bookmarks.preroll] or \setupheads[expansion=yes] I’m not sure if the numbering of bookmarks is related to expansion of their text. Hraban

[NTG-context] Re: images with alt text

2024-09-23 Thread Hans Hagen via ntg-context
machine learning or pattern recognotion app can quite well figure out that it's an abbreviation I mean, no such as "\enabledirectives[backend.pdf.nounicode=❌]" allowed. well, everything is allowed ... after all why do we typeset and visualize otherwise ... it depends on the audience

[NTG-context] Re: images with alt text

2024-09-22 Thread Pablo Rodriguez via ntg-context
ine-readable (so we have to feed AI with all our public documents, whether we like it or not). I mean, no such as "\enabledirectives[backend.pdf.nounicode=❌]" allowed. Pablo ___ If your question is of interest

[NTG-context] Re: Validation of pdf/A-2a

2024-09-14 Thread Thomas Meyer
ou cna try this: \setupinteraction   [title=TITLE,    subtitle=SUBTITLE,    author=AUTHOR,    keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] \setupbackend   [format={pdf/a-2a},    profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}] \setuptagging   [state=start] \enabledirectives   [backe

[NTG-context] Re: Validation of pdf/A-2a

2024-09-13 Thread Hans Hagen via ntg-context
ction [title=TITLE, subtitle=SUBTITLE, author=AUTHOR, keyword={{KEYWORD1, KEYWORD2}, KEYWORD3}] \setupbackend [format={pdf/a-2a}, profile={default_cmyk.icc,default_rgb.icc,default_gray.icc}] \setuptagging [state=start] \enabledirectives [backend.usetags=mkiv] \starttext \ch

[NTG-context] Re: list of used files

2024-07-20 Thread Henning Hraban Ramm
Hans provided me with a patch that allows \enabledirectives[system.dumpfiles=json] It will be in the next update, I guess. I’m using it with the new tool "addtogit.py" in https://codeberg.org/fiee/context-tools to add all files that are necessary for a ConTeXt job to the current git

[NTG-context] Re: list of used files

2024-07-20 Thread Henning Hraban Ramm
Am 20.07.24 um 10:04 schrieb Hans Hagen: subconscious you know the answer:    look at the log file Not only sub*; I forgot to mention I’d like to avoid parsing that. of course you can also try \enabledirectives[system.dumpfiles=lua] and stare at the resulting job log file (jlg) Thank

[NTG-context] Re: list of used files

2024-07-20 Thread Hans Hagen
les" of course you can also try \enabledirectives[system.dumpfiles=lua] and stare at the resulting job log file (jlg) (the default is xml but i noticed some empty entries in there ... a very old feature so i need to travel back in time now) if files are missi

[NTG-context] weekend update

2024-06-21 Thread Hans Hagen via ntg-context
={two}] \getbuffer \stopTEXpage \startTEXpage[offset=1ts] \setupstacking[criterium={one,two}] \getbuffer \stopTEXpage \stoptext -- support for more private pdf \enabledirectives[backend.pdf.nounicode=noai] \enabledirectives[backend.pdf.nounicode=nopilot] \enabledirectives[backend.pdf.noun

[NTG-context] Re: (off-topic) hovering over links in Acrobat Reader

2024-06-21 Thread Hans Hagen
erpret the page stream for urls). Anyway, a next upload will have this: % \disabledirectives[backends.references.descriptions] % just link % \enabledirectives [backends.references.descriptions] % some detail (some todo) (default) % \enabledirectives [backends.referenc

[NTG-context] (off-topic) hovering over links in Acrobat Reader

2024-06-19 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following source: \setupbodyfont[dejavu, sans, 24pt] \setupinteraction[state=start, style=, color=, contrastcolor=, display=new] \enabledirectives[references.border=darkgreen] \def\myurl#1% {{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}} \protect

[NTG-context] Re: [ remove all metadata in pdf ]

2024-06-10 Thread Pablo Rodriguez via ntg-context
On 6/10/24 17:49, vm via ntg-context wrote: > Is there a parameter for context lmtx to strip all metadata from the > generated pdf? > Or is that a better task for exiftool afterwards? \enabledirectives[backend.date=none] But this doesn’t remove all metadata. Title, Producer and XMP d

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-19 Thread Hans Hagen
t; to send the errors to another file for careful study? (using Linux if that matters) You can enable trackers like \enabletrackers[figures.*] But that just gives more log messages for debugging. You get the list of all trackers with: context --global m-trackers.mkiv For your use case, direct

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-17 Thread Henning Hraban Ramm
reful study? (using Linux if that matters) You can enable trackers like \enabletrackers[figures.*] But that just gives more log messages for debugging. You get the list of all trackers with: context --global m-trackers.mkiv For your use case, directives are more helpful, like \enabledirectives[lo

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread Marco Patzer
On Mon, 19 Feb 2024 09:45:03 +0800 黄复雄 wrote: > I recommend you to always show missing font markers in PDF documents > with \replacemissingcharacters Or let context throw an error in case a font/char is missing: %% alternative: %% context --errors='*' \enabledirecti

[NTG-context] Re: cont-new.mkiv and \everymathematics

2024-01-21 Thread Hans Hagen via ntg-context
mands, \enabledirectives[overloadmode=error] % or warning can give you some protection Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
poor explanation of the issue. Wanting to give a minimal sample, I didn’t add my full interaction setup: \setupinteraction [state=start, style=, color=, contrastcolor=, display=new, focus=standard] \enabledirectives [references.border=darkgreen] I

[NTG-context] Re: colors for links

2023-10-14 Thread Pablo Rodriguez
f the issue. Wanting to give a minimal sample, I didn’t add my full interaction setup: \setupinteraction [state=start, style=, color=, contrastcolor=, display=new, focus=standard] \enabledirectives [references.border=darkgreen] I wanted to be able to setup the i

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
On 10/12/2023 3:14 PM, Pablo Rodriguez wrote: Hi Hans, I have the following source, which tries to resemble three kinds of links: \setupinteraction[state=start, style=, focus=standard] \def\inone#1{% \start\setupinteraction[color=darkgreen]% \enabledirectives

[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
Hi Hans, I have the following source, which tries to resemble three kinds of links: \setupinteraction[state=start, style=, focus=standard] \def\inone#1{% \start\setupinteraction[color=darkgreen]% \enabledirectives[references.border=darkgreen]% \goto{#1}[url(#1)]\stop

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\).pdf". Sorry for the obscure question, but how can I access this with "\goto{link

[NTG-context] escaping \ in Lua

2023-09-05 Thread Pablo Rodriguez
Dear list, I have the following source: \setupinteraction[state=start, display=new] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\

[NTG-context] Re: Reinserting a section title followed by (continued) after a page break

2023-09-04 Thread Hans Hagen via ntg-context
a bit more readable If you load the module in lmtx you get an error on \checkparameters which is not available in lmtx (here \ifparameters is a primitive) because \doifelseassignment is the real tester (checkparameters is more an mkii thing). However, when you \enabledirectives[overloadmode=

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
aid that \in{attachment}[foobar] doesn‘t generate a link in your sample. Or do you get a link border from the following source? \setupinteraction[state=start] \enabledirectives[references.border=green] \starttext \startTEXpage[offset=1em] \attachment[ file={hacker.jpg}, m

Re: [NTG-context] letfrozen?

2023-06-13 Thread Hans van der Meer via ntg-context
is: >>>> \def\HOME{myhome} >>>> \writestatus{1}{\meaning\HOME} >>>> \letfrozen\HOME >>>> \writestatus{2}{\meaning\HOME} >>>> \def\HOME{other home} >>>> \writestatus{3}{\meaning\HOME} >>>>  >>&

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans Hagen via ntg-context
 Is this mechanism broken? It looks so useful to prevent accidental redefinition! here i run with \enabledirectives[overloadmode=error] (you can do that in cont-sys.mkxl) \enabledirectives[overloadmode=warning] Hans Pity. Now I get on loading the tex file: "csname overload >

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans van der Meer via ntg-context
home} >> \writestatus{3}{\meaning\HOME} >>  >> Is this mechanism broken? It looks so useful to prevent accidental >> redefinition! > > here i run with > > \enabledirectives[overloadmode=error] > > (you can do that in cont-sys.mkxl) > > \enabledi

Re: [NTG-context] letfrozen?

2023-06-12 Thread Hans Hagen via ntg-context
ms to contradict this: \def\HOME{myhome} \writestatus{1}{\meaning\HOME} \letfrozen\HOME \writestatus{2}{\meaning\HOME} \def\HOME{other home} \writestatus{3}{\meaning\HOME}  Is this mechanism broken? It looks so useful to prevent accidental redefinition! here i run with \enabledirec

Re: [NTG-context] LMTX: request for \tracinglostchars=3

2022-12-22 Thread Leah Neukirchen via ntg-context
>> LuaTeX+MKIV, probably because there is code to fallback to other fonts?) > and if you want to quit: > > \enabledirectives[logs.errors=missing characters] Ok, this is useful. I looked around, but I couldn't find a similar feature for w

Re: [NTG-context] LMTX: request for \tracinglostchars=3

2022-12-22 Thread Hans Hagen via ntg-context
d if you want to quit: \enabledirectives[logs.errors=missing characters] Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 4

Re: [NTG-context] Missing parinitskips in \normalizelinemode=0

2022-10-19 Thread Hans Hagen via ntg-context
On 10/19/2022 3:01 AM, Max Chernoff via ntg-context wrote: Hi Hans, When running in \normalizelinemode=0, the \parinitleftskip and \parinitrightskip nodes are either nonexistant or invisible from Lua, causing tex.linebreak to not work correctly. This sample file: \enabledirectives

[NTG-context] Missing parinitskips in \normalizelinemode=0

2022-10-18 Thread Max Chernoff via ntg-context
Hi Hans, When running in \normalizelinemode=0, the \parinitleftskip and \parinitrightskip nodes are either nonexistant or invisible from Lua, causing tex.linebreak to not work correctly. This sample file: \enabledirectives[system.callbacks.permitoverloads] \normalizelinemode=0

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-04 Thread Leah Neukirchen via ntg-context
Hans Hagen via ntg-context writes: > Hi, > > does (the obsolete) > > \enabledirectives[backend.pdf.forcecidset] > > help No; same blank page. :( (Also MKIV works without CIDSet...) I looked into /StemV 0 (which was different in MKIV) but that works with the TTF files,

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-04 Thread Hans Hagen via ntg-context
Hi, does (the obsolete) \enabledirectives[backend.pdf.forcecidset] help Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038

Re: [NTG-context] No error when loading a non-existent module

2022-08-26 Thread Hans Hagen via ntg-context
On 8/26/2022 3:00 AM, Max Chernoff wrote: Hi Hans, On Thu, 2022-08-25 at 08:57 +0200, Hans Hagen wrote: On 8/25/2022 2:19 AM, Max Chernoff via ntg-context wrote: But ... you can already do \enabledirectives[logs.errors=*] or \enabledirectives[logs.errors=missing modules] Didn't know

Re: [NTG-context] No error when loading a non-existent module

2022-08-25 Thread Hans Hagen via ntg-context
On 8/26/2022 3:00 AM, Max Chernoff wrote: Hi Hans, On Thu, 2022-08-25 at 08:57 +0200, Hans Hagen wrote: On 8/25/2022 2:19 AM, Max Chernoff via ntg-context wrote: But ... you can already do \enabledirectives[logs.errors=*] or \enabledirectives[logs.errors=missing modules] Didn't know

Re: [NTG-context] No error when loading a non-existent module

2022-08-25 Thread Max Chernoff via ntg-context
Hi Hans, On Thu, 2022-08-25 at 08:57 +0200, Hans Hagen wrote: > On 8/25/2022 2:19 AM, Max Chernoff via ntg-context wrote: > But ... you can already do > > \enabledirectives[logs.errors=*] > > or > > \enabledirectives[logs.errors=missing modules] Didn't know about

Re: [NTG-context] No error when loading a non-existent module

2022-08-24 Thread Hans Hagen via ntg-context
cuments that currently work, but I think that this change is worth it, since I'd rather have something break loudly (throwing an error) rather than silently (producing a semi-corrupt document). But ... you can already do \enabledirectives[logs.errors=*] or \enabledirectives[logs.errors=miss

Re: [NTG-context] Few quick questions

2022-03-09 Thread Christoph Hintermüller via ntg-context
ry much. If there is not any other tool it seems that there are no errors. > The following will not report missing tags but will find other > common issues and report them on the console: > > context --errors='*' I guess this is equal to \enabledirectives[logs.errors] Wit

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Hans Hagen via ntg-context
typescript \starttypescript [jun-pr-lib] \definetypeface [jun-pr-lib] [rm] [serif] [jun-pr-lib] [default] \stoptypescript % some tracking stuff \enabletrackers[fonts.missing=replace] \enabledirectives[logs.errors] % text, we use lib-fb-jun first, then jun-pr-lib \starttext \setupbod

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread J .  P . Ascher via ntg-context
ipt > > \starttypescript[serif] [jun-pr-lib] [name] > \definefontsynonym [Serif] [JunicodeRoman] [fallbacks=preferlibertine] > \stoptypescript > > \starttypescript [jun-pr-lib] >\definetypeface [jun-pr-lib] [rm] [serif] [jun-pr-lib] [default] > \stoptypescript > > %

Re: [NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread Youssef Cherem via ntg-context
ib] [name] >\definefontsynonym [Serif] [JunicodeRoman] [fallbacks=preferlibertine] > \stoptypescript > > \starttypescript [jun-pr-lib] > \definetypeface [jun-pr-lib] [rm] [serif] [jun-pr-lib] [default] > \stoptypescript > > > % some tracking stuff > > \enabletrac

[NTG-context] Fallback fails for Linux Libertine O to Junicode over private area, debugging?

2022-01-07 Thread J .  P . Ascher via ntg-context
-lib] [rm] [serif] [jun-pr-lib] [default] \stoptypescript % some tracking stuff \enabletrackers[fonts.missing=replace] \enabledirectives[logs.errors] % text, we use lib-fb-jun first, then jun-pr-lib \starttext \setupbodyfont[lib-fb-jun] {\em emph. lib-fb-jun: \Uchar61125 \char64259 \utfchar{"e

Re: [NTG-context] Errors in source files return success

2021-12-26 Thread Marco Patzer via ntg-context
On Thu, 18 Nov 2021 19:27:25 +0100 Marco Patzer via ntg-context wrote: > Is there a way to return failure if *any* error is encountered or > do they need to be enabled each individually? A solution is to use patterns (supported in the upcoming upload): \enabledirectives [logs.

Re: [NTG-context] upload

2021-12-25 Thread Marco Patzer via ntg-context
tting the last run and if there are still unresolved issues, it could then report the correct return value to the environment. The runner is responsible for the final return value, not the individual context run AFAIK. > you need to be explicit: > > \enabledirectives [logs.errors={missi

  1   2   3   4   >