AW: French characters

Dear Matt,
thank you for your hints. If I understand you right, Matlibplot should be able to display the french characters and there is no need for \acute etc. That's interesting and I would appreciate it. However e.g. title('Température') does not work properly. Instead of é I see a rectangle on the screen. May be something is wrong with my installation?
Regards
Gerhard

···

-----Ursprüngliche Nachricht-----
Von: Matt Newville [mailto:newville@…189…]
Gesendet: Dienstag, 11. Januar 2005 18:03
An: matplotlib-users@lists.sourceforge.net; Mayer Gerhard
Betreff: Re: [Matplotlib-users] French characters

I think you'd have to add \acute to the overunder dictionary in mathtext.py and then use as '\acute{e}'. That assumes that a "`"
is close enough for the accent mark. If so, it's possible that other accent marks as well, though I don't see how to get an umlaut or cedilla.

As a general question, can mathtext directly access characters in the TeX font tables? Would that simply involve adding more entries to latex_to_bakoma in _mathtext_data.py??? If so, that might make it easier to reproduce many of the TeX accents (including umlaut), as the double-dot and acute marks have actual places in the font tables. It migh also make \AA (\Angstrom) less of a corner case.

--Matt

On Tue, 11 Jan 2005, Mayer Gerhard wrote:

Hi all,
I cannot figure out howto use french characters using the Agg backend.
E.g. title(r'Temp \\acute e rature') does not work.
Has anyone an idea howto do it?
Gerhard

Hi,

thank you for your hints. If I understand you right,
Matlibplot should be able to display the french characters and
there is no need for \acute etc.

Sorry for the confusion, that's not what I meant. I think that
the acute sign would have to be added to the list of symbols that
mathtext can handle. That would probably mean both special code
in mathtext.py and an entry in _mathtext_data.py. I'm not sure
what the right entry in the font table would be, as I don't
understand the entries in the latex_to_bakoma dictionary in
_mathtext_data.py at all.

--Matt