From: Lionel R. <lro...@li...> - 2007-02-26 11:13:51
|
Hi, sorry to resend this problem, I didn't have any response and the problem always exists, all accentued characters are set to "?" when I save figures in pdf format. Does someone have a solution to that? MPL 0.87.7 on Edgy Eft thanks -- Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
From: <jk...@ik...> - 2007-02-26 11:35:53
|
Lionel Roubeyrie <lro...@li...> writes: > sorry to resend this problem, I didn't have any response and the > problem always exists, all accentued characters are set to "?" when > I save figures in pdf format. Does someone have a solution to that? Does saving the figure as eps and converting to pdf work for you? The pdf backend doesn't support unicode, since I've never been able to really understand how encoding strings in pdf works. (Nicolas Grilly's recent patch fixed something related to encodings, so perhaps he understands them better?) Patches are of course welcome. I'm afraid I'm currently too busy with my day job to do any major hacking on the pdf backend. -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Lionel R. <lro...@li...> - 2007-02-26 11:53:47
|
Le Lundi 26 F=E9vrier 2007 12:35, Jouni K. Sepp=E4nen a =E9crit=A0: > Does saving the figure as eps and converting to pdf work for you? The > pdf backend doesn't support unicode, since I've never been able to > really understand how encoding strings in pdf works. (Nicolas Grilly's > recent patch fixed something related to encodings, so perhaps he > understands them better?) > > Patches are of course welcome. I'm afraid I'm currently too busy with > my day job to do any major hacking on the pdf backend. Hi Jouni, converting eps to pdf works, but fonts are not well rendered, and I need ve= ry=20 high quality results for our publisher. =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
From: Darren D. <dd...@co...> - 2007-02-26 13:21:13
|
On Monday 26 February 2007 06:53:22 am Lionel Roubeyrie wrote: > Le Lundi 26 F=E9vrier 2007 12:35, Jouni K. Sepp=E4nen a =E9crit=A0: > > Does saving the figure as eps and converting to pdf work for you? The > > pdf backend doesn't support unicode, since I've never been able to > > really understand how encoding strings in pdf works. (Nicolas Grilly's > > recent patch fixed something related to encodings, so perhaps he > > understands them better?) > > > > Patches are of course welcome. I'm afraid I'm currently too busy with > > my day job to do any major hacking on the pdf backend. > > Hi Jouni, > converting eps to pdf works, but fonts are not well rendered, and I need > very high quality results for our publisher. What are you using to do the conversion? epstopdf should maintain the=20 integrity of the fonts. |
From: Lionel R. <lro...@li...> - 2007-02-26 14:19:41
|
Le Lundi 26 F=E9vrier 2007 14:20, Darren Dale a =E9crit=A0: > What are you using to do the conversion? epstopdf should maintain the > integrity of the fonts. epstopdf should maintain... but not, it doesn't do that!=20 =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
From: <jk...@ik...> - 2007-02-26 15:44:20
|
Lionel Roubeyrie <lro...@li...> writes: > Le Lundi 26 Février 2007 14:20, Darren Dale a écrit : >> What are you using to do the conversion? epstopdf should maintain the >> integrity of the fonts. > epstopdf should maintain... but not, it doesn't do that! What exactly is the problem with the converted pdf file? Try opening it in Adobe Reader and viewing Document Properties / Fonts. Do you see any "Type 3" fonts, and what are their names? -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Lionel R. <lro...@li...> - 2007-02-26 17:01:34
|
Hi, =46onts are BitStream VeraSans-Roman, TrueType. Le Lundi 26 F=E9vrier 2007 16:43, Jouni K. Sepp=E4nen a =E9crit=A0: > What exactly is the problem with the converted pdf file? Try opening > it in Adobe Reader and viewing Document Properties / Fonts. Do you see > any "Type 3" fonts, and what are their names? =2D-=20 Lionel Roubeyrie - lro...@li... Chag=E9 d'=E9tudes et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr |
From: Nicolas G. <nic...@ga...> - 2007-02-26 16:01:51
|
Hello Lionel, On 2/26/07, Lionel Roubeyrie <lro...@li...> wrote: > sorry to resend this problem, I didn't have any response and the problem > always exists, all accentued characters are set to "?" when I save figures in > pdf format. Does someone have a solution to that? > MPL 0.87.7 on Edgy Eft Can you send me a little test script showing what you are trying to do? I'll run it with the patched PDF backend. I use this backend daily to produce PDF files containing accentuated characters. Thanks, Nicolas |
From: Lionel R. <lro...@li...> - 2007-02-26 17:03:46
|
Hi Nicolas, I just want to set xlabels with : MOIS=3D['janvier',=20 u'f=E9vrier', 'mars', 'avril', 'mai', 'juin', 'juillet', 'aout', 'septembre', 'octobre', 'novembre', u'd=E9cembre'] resulting in 'f?vrier' and 'd?cembre' in the pdf file. Le Lundi 26 F=E9vrier 2007 17:01, Nicolas Grilly a =E9crit=A0: > Hello Lionel, > > On 2/26/07, Lionel Roubeyrie <lro...@li...> wrote: > > sorry to resend this problem, I didn't have any response and the problem > > always exists, all accentued characters are set to "?" when I save > > figures in pdf format. Does someone have a solution to that? > > MPL 0.87.7 on Edgy Eft > > Can you send me a little test script showing what you are trying to > do? I'll run it with the patched PDF backend. I use this backend daily > to produce PDF files containing accentuated characters. > > Thanks, > > Nicolas > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users =2D-=20 Lionel Roubeyrie - lro...@li... Chag=E9 d'=E9tudes et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr |
From: Nicolas G. <nic...@ga...> - 2007-02-26 18:34:02
|
T24gMi8yNi8wNywgTGlvbmVsIFJvdWJleXJpZSA8bHJvdWJleXJpZUBsaW1haXIuYXNzby5mcj4g d3JvdGU6Cj4gSSBqdXN0IHdhbnQgdG8gc2V0IHhsYWJlbHMgd2l0aCA6Cj4gTU9JUz1bJ2phbnZp ZXInLAo+IHUnZsOpdnJpZXInLCAnbWFycycsICdhdnJpbCcsICdtYWknLCAnanVpbicsICdqdWls bGV0JywgJ2FvdXQnLAo+ICdzZXB0ZW1icmUnLCAnb2N0b2JyZScsICdub3ZlbWJyZScsIHUnZMOp Y2VtYnJlJ10KPiByZXN1bHRpbmcgaW4gJ2Y/dnJpZXInIGFuZCAnZD9jZW1icmUnIGluIHRoZSBw ZGYgZmlsZS4KCk9rLiBUaGlzIGlzIGV4YWN0bHkgd2hhdCBJIGRvIHdpdGggbWF0cGxvdGxpYiwg YnV0IEkgdXNlIHRoZSBtb3N0CnJlY2VudCB2ZXJzaW9uIGNoZWNrZWQgb3V0IGZyb20gU3VidmVy c2lvbiByZXBvc2l0b3J5LiBDYW4geW91IGluc3RhbGwKbWF0cGxvdGxpYiBvbiB5b3VyIHN5c3Rl bSwgZGlyZWN0bHkgZnJvbSBTdWJ2ZXJzaW9uLCBhbmQgdGVzdCB5b3VyCnNjcmlwdCBhZ2Fpbj8K |
From: Lionel R. <lro...@li...> - 2007-02-27 09:46:28
|
Thanks for the tips Nicolas, I'm going to switch to SVN and try your patch. Le Lundi 26 F=C3=A9vrier 2007 19:33, Nicolas Grilly a =C3=A9crit=C2=A0: > On 2/26/07, Lionel Roubeyrie <lro...@li...> wrote: > > I just want to set xlabels with : > > MOIS=3D['janvier', > > u'f=C3=A9vrier', 'mars', 'avril', 'mai', 'juin', 'juillet', 'aout', > > 'septembre', 'octobre', 'novembre', u'd=C3=A9cembre'] > > resulting in 'f?vrier' and 'd?cembre' in the pdf file. > > Ok. This is exactly what I do with matplotlib, but I use the most > recent version checked out from Subversion repository. Can you install > matplotlib on your system, directly from Subversion, and test your > script again? > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users =2D-=20 Lionel Roubeyrie - lro...@li... Chag=C3=A9 d'=C3=A9tudes et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr |
From: <jk...@ik...> - 2007-02-26 18:39:24
|
Lionel Roubeyrie <lro...@li...> writes: > Fonts are BitStream VeraSans-Roman, TrueType. Then this is not the usual font problem where fonts get converted either into Type 3 or into raw drawing commands. Can you put example files (both eps and pdf) on some website so we can try to understand what is wrong with them? -- Jouni K. Seppänen http://www.iki.fi/jks |
From: Lionel R. <lro...@li...> - 2007-02-27 09:43:37
|
Oups, sorry for the mistake, the Vera font in the resulting pdf file from=20 epstopdf is effectively converted to T3Font_0 Type 3.=20 You can have a look here: http://www.limair.asso.fr/share/pre2.eps and http://www.limair.asso.fr/share/pre2.pdf Thanks Le Lundi 26 F=E9vrier 2007 19:38, Jouni K. Sepp=E4nen a =E9crit=A0: > Lionel Roubeyrie <lro...@li...> writes: > > Fonts are BitStream VeraSans-Roman, TrueType. > > Then this is not the usual font problem where fonts get converted > either into Type 3 or into raw drawing commands. Can you put example > files (both eps and pdf) on some website so we can try to understand > what is wrong with them? =2D-=20 Lionel Roubeyrie - lro...@li... Chag=E9 d'=E9tudes et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr |
From: <jk...@ik...> - 2007-02-27 10:33:36
|
Lionel Roubeyrie <lro...@li...> writes: > Oups, sorry for the mistake, the Vera font in the resulting pdf file from > epstopdf is effectively converted to T3Font_0 Type 3. > You can have a look here: > http://www.limair.asso.fr/share/pre2.eps and > http://www.limair.asso.fr/share/pre2.pdf The Type 3 font is present in the eps file, so it is not created by the conversion to pdf. Perhaps it is an artifact of the "distilling" done by matplotlib; if you set ps.usedistiller to None, what does the eps file look like? Somehow the Cmr and Cmmi fonts survive as TrueType. One quick workaround for your problem could be to turn all text into mathtext: replace e.g. "février" by r"$\rm{f\'evrier}$" and for the yticklabels do something like (caveat: untested code) for x in getp(gca(), 'yticklabels'): setp(x, 'text', r'$\rm{%s}$' % getp(x, 'text')) (Or is there an easier way to select Computer Modern Roman as the font?) -- Jouni K. Seppänen http://www.iki.fi/jks |