unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "C.S. Dalawat" <dalawat@mri.ernet.in>
Cc: reingold@emr.cs.iit.edu, emacs-devel@gnu.org
Subject: Re: Diacritical marks
Date: Mon, 25 Mar 2002 10:18:41 +0530	[thread overview]
Message-ID: <200203250448.KAA06297@ipc64.mri.ernet.in> (raw)
In-Reply-To: <200203241552.g2OFqmM02674@aztec.santafe.edu> (message from Richard Stallman on Sun, 24 Mar 2002 08:52:48 -0700 (MST))

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4129 bytes --]

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


  reply	other threads:[~2002-03-25  4:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200203221906.g2MJ6P316753@emr.cs.iit.edu>
2002-03-24 15:52 ` Diacritical marks Richard Stallman
2002-03-25  4:48   ` C.S. Dalawat [this message]
2002-03-25  5:51     ` Eli Zaretskii
2002-03-25  4:58   ` C.S. Dalawat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200203250448.KAA06297@ipc64.mri.ernet.in \
    --to=dalawat@mri.ernet.in \
    --cc=emacs-devel@gnu.org \
    --cc=reingold@emr.cs.iit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).