[NTG-context] Fuzzy paragraph when exporting to XML

Hans Hagen j.hagen at xs4all.nl
Sun May 1 11:01:38 CEST 2022


On 5/1/2022 12:17 AM, Aditya Mahajan via ntg-context wrote:
> On Sat, 30 Apr 2022, Hans Hagen via ntg-context wrote:
> 
>> On 4/29/2022 4:59 PM, Aditya Mahajan via ntg-context wrote:
>>> Hi,
>>>
>>> I am trying to debug a bug-report for t-vim:
>> https://github.com/adityam/filter/issues/64 Exporting with trackers=export*
>> gives a warning:
>>>
>>>       backend         > export > fuzzy paragraph:
>>>
>>> I have managed to narrow it down to the attached MWE (which does not depend
>> on the t-vim module at all). Compiling it using
>>>
>>>       $context --trackers=export\* lines
>>>
>>> gives the fuzzy paragraph warning. Any hints on how to resolve this?
>> As you like challenges ... you can way more narrow it down ...
>>
>> \setupbackend[export=yes]
>>
>> \starttext
>> {
>>       \forgetall
>>     % \forgeteverypar
>>       x\strut\par
>> }
>> \stoptext
>>
>> the problem is that you basically loose *all* par related tagging now so
>> you need to bring that back, which is (of course i had to look it up) is
>> done with for instance \forgeteverypar which forgets (as in \forgetall)
>> but not really all
> 
> Thanks!
> 
> I manually tag start and end of lines anyways (using \SYNBOL ... \SYNEOL), so I can add \dotagsetparcounter in \SYNBOL and that removes the warning!
dangerous ... what if you get

<snipper par n><snipper par n+1><snipper par n+2>

every line cna be a par or the while can have the same par number ...

<line>
<line>
<line>
<line>

these par numbers are used to determine what text belongs to a 
meanignful something

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
-----------------------------------------------------------------


More information about the ntg-context mailing list