Eric Firing wrote: > Michael Droettboom wrote: > >>> I am still having a strange problem: ESP Ghostscript 815.04 (ubuntu >>> feisty) chokes on the apostrophe in text, such as in table_demo and >>> one or two others. I think this is just a crazy bug in this version >>> of gs; you aren't having any such problems, are you? The problem >>> does not appear with cairo.ps output because it encodes the text >>> strings in some bizarre fashion. >> Thanks. I've fixed this on the branch and trunk. > > Mike, > > Thank you--so, is this a workaround for a gs bug, or does the single > quote have some special meaning in postscript? When I first ran into > the problem I googled and looked at some PS documentation, and I > couldn't find anything indicating that the plain single quote > character as a literal was forbidden. 0x27 is fine as a literal, but it maps to "apostrophe", not "singlequote". The former isn't present in any of the Postscript tables of the fonts I looked at (Vera and the standard Windows fonts), so gs was crashing on the missing character. So, I just added a line to convert all apostrophes to singlequotes. Don't know if that's the right thing to do, but it works.
Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel