From: Gerben Wierda <gerben.wierda@rna.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: How do I handle strings with " characters in it in METAPOST?
Date: Sun, 29 Mar 2020 12:52:11 +0200 [thread overview]
Message-ID: <2CE77B0F-FC9E-4EDB-8A40-F4C5DC3A99B8@rna.nl> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2020-03-29 10:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-29 10:52 Gerben Wierda [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2CE77B0F-FC9E-4EDB-8A40-F4C5DC3A99B8@rna.nl \
--to=gerben.wierda@rna.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).