[gs-bugs] [Bug 691864] New: `, GRAVE ACCENT, U+0060, =?UTF-8?Q?=20becomes=20=E2=80=98?=, LEFT SINGLE QUOTATION MARK, U+2018

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue Jan 4 00:37:55 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=691864

           Summary: `, GRAVE ACCENT, U+0060, becomes ‘, LEFT SINGLE
                    QUOTATION MARK, U+2018
           Product: Ghostscript
           Version: 9.00
          Platform: Macintosh
        OS/Version: Mac System 9.x
            Status: NEW
          Severity: normal
          Priority: P4
         Component: PDF Interpreter
        AssignedTo: alex.cherepanov at artifex.com
        ReportedBy: Peter_Dyballa at Freenet.DE
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0


In GNU Emacs (versions 23.2 or 24.0.50) I can use the built-in ps-print to
print the ascii(7) man page, rendered in some buffer. The generated PostScript
file has `, GRAVE ACCENT, U+0060, three times. When converted to PDF the
backtick has be become a typographic quote ‘, LEFT SINGLE QUOTATION MARK,
U+2018. A Lisp programme with ‘ as the quote character is not really legible.

(It also appears that the PS Interpreter presents the backquote as a
typographic quote.)

How can this behaviour be corrected that the ` is saved?

Interestingly a simple PostScript file like

    %!PS
    /Courier findfont
    15 scalefont
    setfont
    72 200 moveto
    (This is in `Courier') show

shows the GRAVE ACCENT correctly when viewing the PS or the PDF file. Similarly
doc-view-mode in GNU Emacs renders the PS file from printing the ascii(7) man
page correctly in PNG format. The ` is apparently still a `. The conversion
happens with gs and these options:

    "-dSAFER" ;; Avoid security problems when rendering files from untrusted
              ;; sources.
        "-dNOPAUSE" "-sDEVICE=png16m" "-dTextAlphaBits=4"
        "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET")

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list