From: Shigeharu T. <sh...@ie...> - 2004-07-27 05:29:59
|
shige 07/27 2004 ---------------- In Postscript terminal, '\\' is treated with some differences between enhanced and noenhanced. In PS_put_text() of term/post.trm, it will be '\\' + '\\' and may be fine in PS file. On the oter hand, ENHPS_put_text() puts 1) '\\' if the next character is '\\' or '(' or ')', 2) '\\' + octal if the following 3 charcters are octal, 3) none otherwise. I think the behavior 3) is not so good. The following patch for src/term.c of gnuplot-4.0.0 solves it, but it may cause other problem (I don't know well). ----- From here ----- --- src/term.c.ORG Wed Apr 14 02:24:02 2004 +++ src/term.c Tue Jul 27 12:35:45 2004 @@ -2270,6 +2270,14 @@ } break; } + else{ + if (term->flags & TERM_IS_POSTSCRIPT){ + (term->enhanced_open)(fontname, fontsize, base, widthflag, showflag, overprint); + (term->enhanced_writec)('\\'); + (term->enhanced_writec)('\\'); + } + break; + } ++p; /* HBB 20030122: Avoid broken output if there's a \ ----- To here ----- +========================================================+ Shigeharu TAKENO NIigata Institute of Technology kashiwazaki,Niigata 945-1195 JAPAN sh...@ie... TEL(&FAX): +81-257-22-8161 +========================================================+ |