ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How do I handle strings with " characters in it in METAPOST?
@ 2020-03-29 10:52 Gerben Wierda
  2020-03-29 10:58 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Gerben Wierda @ 2020-03-29 10:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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” Foo”)

I guess I have to change the string into something with explicit character codes for the " characters, maybe?

In a later stage, these strings will be typeset by the ConTeXt side of things so they fit into a certain area within the METAPOST picture.

What is my best approach?

G
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-29 14:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-29 10:52 How do I handle strings with " characters in it in METAPOST? Gerben Wierda
2020-03-29 10:58 ` Wolfgang Schuster
2020-03-29 12:30   ` Gerben Wierda
2020-03-29 12:35     ` Wolfgang Schuster
2020-03-29 13:06       ` Gerben Wierda
2020-03-29 13:09         ` Wolfgang Schuster
2020-03-29 14:25           ` Gerben Wierda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).