On 5/30/2024 9:39 AM, Linas Stonys wrote:
Thanks Max, I'm thinking the same to add attribute and property with corresponding tags and then add whatsits on the 255 box shipout. I just need to think about discardable items. If one wants to mark up tex sources for xml or tagged pdf a common issue how to safely mark start and end of semantic text without effecting output. For example if there would be few primitives which could add an attribute or/and properties to next (yet to be created) non discardable item like \luaAddFeaturesNodeNext {{attr=1, properties={"<section>}}} \section{foo} \luaAddFeaturesNodePrev{{attr=1, properties={"</section>}}} It could save a lot of headache.
and also introduce new ones: (1) it's not tex primitive syntax, (2) you'd have to disable it anytime you have some nested boxing going on (a bit like with \everyhbox etc)
Of course this is not an easy task because of page breaks.
indeed, but i assume you know your macros and this never generic 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 -----------------------------------------------------------------