Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Escape Characters

Community Beginner ,
Mar 25, 2008 Mar 25, 2008
Hi,

I am trying to print out text with forbidden characters. For example, I am trying to print (Hello World) on the postscript file.

this is what I have

175 602 moveto (\(Hello World\)) show

This line is not loaded. Please help me.
TOPICS
Programming
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 25, 2008 Mar 25, 2008
That looks correct.

Aandi Inston
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 25, 2008 Mar 25, 2008
Hi Aandi,

I got to replace ( by using \( but \) can not be compiled by Ghostscript.

Thanks,

Krishnan
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 26, 2008 Mar 26, 2008
The line you posted is valid PostScript. So something else is wrong.
GhostScript doesn't compile anything, it interprets. I guess you are
getting an error - what is it?

Aandi Inston
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2008 Mar 26, 2008
You need to define a font before you use "show", e.g.

/Helvetica findfont 10 scalefont setfont

Then GhostScript will work, Acrobat (6) will work, Preview will work.
Without it neither will work.
It seems that these guys do not have a default font.

Miklos
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 26, 2008 Mar 26, 2008
Hi,

The Ghostscript view just gives me a message. Loading.......

Thanks,

Karthik
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 27, 2008 Mar 27, 2008
That isn't an error. Maybe you could post a complete program, not just
one line, and we could test it ourselves with different interpreters.

Aandi Inston
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 02, 2008 Apr 02, 2008
LATEST
Hi,

I had to put \\ (double slashes) to display the ( special characters.
Thanks for your help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines