[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Diacritical marks
From: |
C.S. Dalawat |
Subject: |
Re: Diacritical marks |
Date: |
Mon, 25 Mar 2002 10:18:41 +0530 |
Let me first say how much we all owe to you, Sir.
The problem with diacritical marks turns out to be a TeX problem
rather than an Emacs problem. Yesterday, I found a reasobaly
satisfactory solution which I'll be flattered if it were to be
included in cal-tex.el.
My problem was the following. I had set
(setq calendar-month-name-array
["Janvier" "Février" "Mars" "Avril" "Mai" "Juin"
"Juillet" "Août" "Septembre" "Octobre" "Novembre" "Décembre"])
in my .emacs and entries like
%%(diary-anniversary 24 7 1998) Maïwenn l'Hermine (%d).
%%(diary-block 4 7 2002 12 7 2002) École d'été sur la conjecture de Birch et
Swinnerton-Dyer, Paris.
in my diary file. When I did M-x calendar, the month names would get
displayed correctly :
Février 2002 Août 2002
L M M J V S D L M M J V S D
1 2 3 1 2 3 4
4 5 6 7 8 9 10 5 6 7 8 9 10 11
11 12 13 14 15 16 17 12 13 14 15 16 17 18
18 19 20 21 22 23 24 19 20 21 22 23 24 25
25 26 27 28 , 26 27 28 29 30 31 ;
when I did view-diary-entries in the *Calendar* buffer, I'd get
Jeudi, 11 Juillet 2002
======================
École d'été sur la conjecture de Birch et Swinnerton-Dyer, Paris.
Mercredi, 24 Juillet 2002
=========================
Maïwenn l'Hermine (4).
because I had set
(standard-display-european 1).
The problem was that when I did t m (cal-tex-cursor-month) or things
like that, the month names and diary entries would get passed on the
buffer calendar.tex as
\calmonth{Février}{2002}
\calmonth{Août}{2002}
\caldate{Juillet}{11}{École d'été sur la conjecture de Birch et
Swinnerton-Dyer, Paris.}{}{192/173}{}%
\caldate{Juillet}{24}{Maïwenn l'Hermine (4). }{}{205/160}{}%
and when you tex such a buffer, all the accented characters would be
eaten up : the .log file says things like
Missing character: There is no É in font cmbx12!
Missing character: There is no Û in font cmbx12!
Missing character: There is no É in font cmr6!
Missing character: There is no é in font cmr6!
Missing character: There is no ï in font cmr6!
and upon printing, they would come out as
FVRIER 2002 , AOT 2002 ,
11 24
cole d't sur la conjecture de Mawenn l'Hermine (4) .
Birch et Swinnerton-Dyer,
Paris ,
without the accented characters.
The solution is to make cal-tex.el add the following TeX code to the
calendar.tex buffer somewhere at the beginning (e.g. it works if you
put it right after \documentstyle[12pt]{article})
\catcode`\À=\active \defÀ{{\`A}}
\catcode`\Â=\active \defÂ{{\^A}}
\catcode`\Ç=\active \defÇ{{\c C}}
\catcode`\È=\active \defÈ{{\`E}}
\catcode`\É=\active \defÉ{{\'E}}
\catcode`\Ê=\active \defÊ{{\^E}}
\catcode`\Ë=\active \defË{{\"E}}
\catcode`\Î=\active \defÎ{{\^I}}
\catcode`\Ï=\active \defÏ{{\"I}}
\catcode`\Ô=\active \defÔ{{\^O}}
\catcode`\Ù=\active \defÙ{{\`U}}
\catcode`\Û=\active \defÛ{{\^U}}
\catcode`\à=\active \defà{{\`a}}
\catcode`\â=\active \defâ{{\^a}}
\catcode`\ç=\active \defç{{\c c}}
\catcode`\è=\active \defè{{\`e}}
\catcode`\é=\active \defé{{\'e}}
\catcode`\ê=\active \defê{{\^e}}
\catcode`\ë=\active \defë{{\"e}}
\catcode`\î=\active \defî{{\^\i}}
\catcode`\ï=\active \defï{{\"\i}}
\catcode`\ô=\active \defô{{\^o}}
\catcode`\ù=\active \defù{{\`u}}
\catcode`\û=\active \defû{{\^u}}
and then TeX does not complain about any missing characters. Voilà.
I should probably write to Knuth to include this code in plain.tex.
Best regards,
Chandan Singh Dalawat
Harish-Chandra Research Institute
Chhatnag Road, Jhunsi
Allahabad 211 019 (India)
Telephone : [91] (532) 66.75.09, 66.75.11*4063
Telefax : [91] (532) 66.75.76, 64.05.96