ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* catch % in gsub("%", "\\letterpercent")
@ 2020-08-27 15:11 Pablo Rodriguez
  2020-08-27 15:30 ` Taco Hoekwater
  2020-08-27 15:39 ` Hans van der Meer
  0 siblings, 2 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2020-08-27 15:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have and \xmlraw command that gives some text with percent signs.
ConTeXt parses them as comments (so no output).

Using Lua gsub(), I need to replace something like:

  string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent")

How do I need to invoke % to get the character found?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2020-08-27 17:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-27 15:11 catch % in gsub("%", "\\letterpercent") Pablo Rodriguez
2020-08-27 15:30 ` Taco Hoekwater
2020-08-27 15:56   ` Pablo Rodriguez
2020-08-27 16:16     ` Wolfgang Schuster
2020-08-27 17:16       ` Pablo Rodriguez
2020-08-27 17:35         ` Wolfgang Schuster
2020-08-27 17:49           ` Pablo Rodriguez
2020-08-27 15:39 ` Hans van der Meer

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).