Page 1 of 1

Escaping qoutes while annotating

Posted: 2006-06-29T05:00:28-07:00
by abhishekv1
Hi,

I am trying to annotate text over an image.
Th text is:
Let's meet

But it's not getting annotated properly even after escaping.
I am doing:
-annotate 0x0+0+0 'Let\'s Meet'
This works :
-annotate 0x0+0+0 "Let\'s Meet"

But mine is a program in Php where user can enter text and using convert I annotate the text on the image. So user can enter single qoutes or double qoutes, I need a way so that the qoutes are escaped perfectly. Is there a solution ?

The IM version I am using is 6.2.7.

Regards,
Abhishek

Posted: 2006-07-27T23:13:14-07:00
by anthony
Your problem is technically a PHP problem not IM.
Even so I have some example sof quoting text (for shell) in IM Examples, Drawing Section.
http://www.cit.gu.edu.au/~anthony/graph ... w/#special

This may be of help, though it isn't PHP specific.

Posted: 2006-08-07T06:16:41-07:00
by abhishekv1
Hi,

Thx for the link. It was a great help.
My problem was not of PHP...I was parsing the special characters
in PHP but was not able to parse in IM while making the convert command
and hitting the system call. Basically I was using annotate and was not
able to parse single quotes (') and backslashes(\); the link you sent was
a great help. My problem is solved now.

Thanks,
Regards,
Abhishek