On 17.08.2021 05:13, James Smith wrote:
Do you see why this command is unterminated?
$ convert -draw 'text 2,120 "Where: x\'s"'
I'm trying to build a string for a command and run it from python.
I can't run it from the shell. :-(
Depending on the quotes it's sometimes helpful to use the other quote
type as surrounding brace and escape the inner
convert -draw "text 2,120 \"Where: x's\""
If (since) it's only a string argument to the convert command it may
also be possible to use other typographical quotes (Unicode supports
a lot) in the inner string, so that you don't even need escapes? E.g.
convert -draw "text 2,120 “Where: x's”"
Janis
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)