Re: [NTG-context] lpeg pattern in function

2021-08-07 Thread Marcus Vinicius Mesquita via ntg-context
Thank you, Hans. Very nice indeed your solutions. Marcus Vinicius On Sat, Aug 7, 2021 at 5:37 AM Hans Hagen wrote: > On 8/6/2021 10:58 PM, Marcus Vinicius Mesquita via ntg-context wrote: > > Dear list, > > in the mwe below, the expected result is ok for most entries but fails > > when the word

Re: [NTG-context] lpeg pattern in function

2021-08-07 Thread Hans Hagen via ntg-context
On 8/6/2021 10:58 PM, Marcus Vinicius Mesquita via ntg-context wrote: Dear list, in the mwe below, the expected result is ok for most entries but fails when the word contains the letters ó or ô. We get zoolco instead of zoológico, and termtro instead of termômetro. What am I doing wrong? mwe:

[NTG-context] lpeg pattern in function

2021-08-06 Thread Marcus Vinicius Mesquita via ntg-context
Dear list, in the mwe below, the expected result is ok for most entries but fails when the word contains the letters ó or ô. We get zoolco instead of zoológico, and termtro instead of termômetro. What am I doing wrong? mwe: \def\stripnumber#1% {\cldcontext{lpeg.match(lpeg.stripper("[¹²³⁴⁵