[NTG-context] Bug in verbatim wrapping examples on wiki
Hans Hagen
j.hagen at freedom.nl
Mon Feb 6 18:59:16 CET 2023
On 2/5/2023 4:52 PM, Pablo Rodriguez via ntg-context wrote:
> On 2/5/23 13:13, Hans Hagen via ntg-context wrote:
>> On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote:
>>> [...]
>>> Are we missing something or is this a bug?
>> what do you expect as result? (maybe try \righthyphenmin=1)
>
> Line breaks are removing characters.
>
> In the sample below, output from
>
> \hsize\zeropoint
> \sha{a1b2c3d4}
>
> reads:
>
> a
> _
> _
> _
> _
> 3d4
>
> Iâm afraid \righthyphenmin=-1 prevents hyphenation (it seems to do it
> everywhere).
This
\unexpanded\def\sha#1%
{\begingroup
\sethyphenationfeatures[sha]%
\showglyphs
\righthyphenmin1
#1%
\endgroup}
gives
a·
·
·
·
·
·
4
-----------------------------------------------------------------
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