Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
We should move this to the thread What alternative for scantokens( "btex " & texcommands & " etex”)? I’ve put my vardef there. The calls to this vardef are created by lua code. I need to fix two things: use a string variable to build a btex-etex construct and be able to use (almost) any

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
Gerben Wierda schrieb am 29.03.2020 um 15:06: On 29 Mar 2020, at 14:35, Wolfgang Schuster > wrote: Gerben Wierda schrieb am 29.03.2020 um 14:30: On 29 Mar 2020, at 12:58, Wolfgang Schuster > wrote: Gerben

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
> On 29 Mar 2020, at 14:35, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 29.03.2020 um 14:30: >>> On 29 Mar 2020, at 12:58, Wolfgang Schuster >>> wrote: >>> >>> Gerben Wierda schrieb am 29.03.2020 um 12:52: I am using MetaFun (Lua code) to create METAPOST commands from an

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
> On 29 Mar 2020, at 12:58, Wolfgang Schuster > wrote: > > Gerben Wierda schrieb am 29.03.2020 um 12:52: >> I am using MetaFun (Lua code) to create METAPOST commands from an XML file. >> One of the issues I am running into that in METAPOST I have to handle >> strings with " characters in

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
Gerben Wierda schrieb am 29.03.2020 um 14:30: On 29 Mar 2020, at 12:58, Wolfgang Schuster wrote: Gerben Wierda schrieb am 29.03.2020 um 12:52: I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle

[NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Gerben Wierda
I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle strings with " characters in them and METAPOST doesn’t like those. The argument using the string Foo "Bar” Foo turns into someCall( "Foo “Bar”

Re: [NTG-context] How do I handle strings with " characters in it in METAPOST?

2020-03-29 Thread Wolfgang Schuster
Gerben Wierda schrieb am 29.03.2020 um 12:52: I am using MetaFun (Lua code) to create METAPOST commands from an XML file. One of the issues I am running into that in METAPOST I have to handle strings with " characters in them and METAPOST doesn’t like those. The argument using the string Foo