From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "C.S. Dalawat" Newsgroups: gmane.emacs.devel Subject: Re: Diacritical marks Date: Mon, 25 Mar 2002 10:18:41 +0530 Sender: emacs-devel-admin@gnu.org Message-ID: <200203250448.KAA06297@ipc64.mri.ernet.in> References: <200203221906.g2MJ6P316753@emr.cs.iit.edu> <200203241552.g2OFqmM02674@aztec.santafe.edu> Reply-To: dalawat@mri.ernet.in NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1017031898 27205 127.0.0.1 (25 Mar 2002 04:51:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2002 04:51:38 +0000 (UTC) Cc: reingold@emr.cs.iit.edu, emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16pMSI-00074g-00 for ; Mon, 25 Mar 2002 05:51:38 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16pMaA-0001kG-00 for ; Mon, 25 Mar 2002 05:59:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16pMRv-0008Oo-00; Sun, 24 Mar 2002 23:51:15 -0500 Original-Received: from ipc2.mri.ernet.in ([202.41.87.2]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16pMRQ-0008Mj-00; Sun, 24 Mar 2002 23:50:45 -0500 Original-Received: from ipc64.mri.ernet.in (root@ipc64.mri.ernet.in [202.41.87.64]) by ipc2.mri.ernet.in (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id KAA16411; Mon, 25 Mar 2002 10:18:46 +0530 Original-Received: (from dalawat@localhost) by ipc64.mri.ernet.in (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA06297; Mon, 25 Mar 2002 10:18:41 +0530 X-Authentication-Warning: ipc64.mri.ernet.in: dalawat set sender to dalawat@mri.ernet.in using -f Original-To: rms@gnu.org In-Reply-To: <200203241552.g2OFqmM02674@aztec.santafe.edu> (message from Richard Stallman on Sun, 24 Mar 2002 08:52:48 -0700 (MST)) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2178 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2178 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 _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel