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

Escape Characters

Community Beginner ,
Mar 25, 2008 Mar 25, 2008

Copy link to clipboard

Copied

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

Views

1.9K

Translate

Translate

Report

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

Copy link to clipboard

Copied

That looks correct.

Aandi Inston

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi Aandi,

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

Thanks,

Krishnan

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi,

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

Thanks,

Karthik

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST
Hi,

I had to put \\ (double slashes) to display the ( special characters.
Thanks for your help.

Votes

Translate

Translate

Report

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