unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Diacritical marks
       [not found] <200203221906.g2MJ6P316753@emr.cs.iit.edu>
@ 2002-03-24 15:52 ` Richard Stallman
  2002-03-25  4:48   ` C.S. Dalawat
  2002-03-25  4:58   ` C.S. Dalawat
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Stallman @ 2002-03-24 15:52 UTC (permalink / raw)
  Cc: dalawat

    It seems the problem is the function standard-display-european.  Calling that 
    function causes the problem.

We should probably investigate this problem.
Could you send us a simple test case to observe it?

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Diacritical marks
  2002-03-24 15:52 ` Diacritical marks Richard Stallman
@ 2002-03-25  4:48   ` C.S. Dalawat
  2002-03-25  5:51     ` Eli Zaretskii
  2002-03-25  4:58   ` C.S. Dalawat
  1 sibling, 1 reply; 4+ messages in thread
From: C.S. Dalawat @ 2002-03-25  4:48 UTC (permalink / raw)
  Cc: reingold, emacs-devel

[-- 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Diacritical marks
  2002-03-24 15:52 ` Diacritical marks Richard Stallman
  2002-03-25  4:48   ` C.S. Dalawat
@ 2002-03-25  4:58   ` C.S. Dalawat
  1 sibling, 0 replies; 4+ messages in thread
From: C.S. Dalawat @ 2002-03-25  4:58 UTC (permalink / raw)
  Cc: emacs-devel

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

My email to Reingold yesterday, brought up to date :

> Date: 24 Mar 2002 11:53:31 +0530
> From: "C.S. Dalawat" <dalawat@mri.ernet.in>
> To: reingold@emr.cs.iit.edu
> Subject: another possible solution
> Reply-to: dalawat@mri.ernet.in
> 
> I'm quite pleased to discover the following trick.  Thanks for having
> brought up the topic again ; I'll certainly be using this trick
> constantly in my work.
> 
> We allow diary entries or month names to contain accented characters,
> they get passed on to the Diary or the Calendar buffer as they are and
> will get displayed correctly if the user has set
> 
> (standard-display-european 1).
> 
> When TeXing the Calendar, cal-tex.el passes on the accented characters
> to calendar.tex as they are.  No substitutions.  But now calendar.tex
> contains the magic incantations
> 
> \catcode`\É=\active \defÉ{{\'E}}
> \catcode`\È=\active \defÈ{{\`E}}
> \catcode`\Ê=\active \defÊ{{\^E}}
> \catcode`\Ë=\active \defË{{\"E}}
> \catcode`\À=\active \defÀ{{\`A}}
> \catcode`\Â=\active \defÂ{{\^A}}
> \catcode`\Î=\active \defÎ{{\^I}}
> \catcode`\Ï=\active \defÏ{{\"I}}
> \catcode`\Ô=\active \defÔ{{\^O}}
> \catcode`\Ù=\active \defÙ{{\`U}}
> \catcode`\Û=\active \defÛ{{\^U}}
> \catcode`\Ç=\active \defÇ{{\c C}}
> 
> \catcode`\é=\active \defé{{\'e}}
> \catcode`\è=\active \defè{{\`e}}
> \catcode`\ê=\active \defê{{\^e}}
> \catcode`\ë=\active \defë{{\"e}}
> \catcode`\à=\active \defà{{\`a}}
> \catcode`\â=\active \defâ{{\^a}}
> \catcode`\î=\active \defî{{\^\i}}
> \catcode`\ï=\active \defï{{\"\i}}
> \catcode`\ô=\active \defô{{\^o}}
> \catcode`\ù=\active \defù{{\`u}}
> \catcode`\û=\active \defû{{\^u}}
> \catcode`\ç=\active \defç{{\c c}}
> 
> No need for any special fonts like ec, which some users might not
> have.  cm will do.  
> 
> Other accented characters could be included among the \active ones ;
> for example the German ß could be handled by adding the line
>
> \catcode`\ß=\active \defß{{\ss}}.
> 
> Try out the following (plain) TeX file diacritical.tex :
> 
% diacritical.tex begins here

\catcode`\É=\active \defÉ{{\'E}}
\catcode`\È=\active \defÈ{{\`E}}
\catcode`\Ê=\active \defÊ{{\^E}}
\catcode`\Ë=\active \defË{{\"E}}
\catcode`\À=\active \defÀ{{\`A}}
\catcode`\Â=\active \defÂ{{\^A}}
\catcode`\Î=\active \defÎ{{\^I}}
\catcode`\Ï=\active \defÏ{{\"I}}
\catcode`\Ô=\active \defÔ{{\^O}}
\catcode`\Ù=\active \defÙ{{\`U}}
\catcode`\Û=\active \defÛ{{\^U}}
\catcode`\Ç=\active \defÇ{{\c C}}

\catcode`\é=\active \defé{{\'e}}
\catcode`\è=\active \defè{{\`e}}
\catcode`\ê=\active \defê{{\^e}}
\catcode`\ë=\active \defë{{\"e}}
\catcode`\à=\active \defà{{\`a}}
\catcode`\â=\active \defâ{{\^a}}
\catcode`\î=\active \defî{{\^\i}}
\catcode`\ï=\active \defï{{\"\i}}
\catcode`\ô=\active \defô{{\^o}}
\catcode`\ù=\active \defù{{\`u}}
\catcode`\û=\active \defû{{\^u}}
\catcode`\ç=\active \defç{{\c c}}

Ma chère maman,\smallskip
depuis ton départ tout le monde s'ennuie ici. Nous
allons très souvent chez M Foucher, ainsi que tu
nous l'as recommandé. Il nous a proposé de suivre
les leçons qu'on donne à son fils ; nous l'avons
remercié. Nous travaillons tous les matins le latin
et les mathématiques. Une lettre cachetée de noir
et adressée à Abel est arrivée le soir de ton
départ. M Foucher vous la fera passer. Il a eu la
bonté de nous mener au muséum.
Reviens bien vite. Sans toi nous ne savons que dire
et que faire, nous sommes tout embarrassés. Nous
ne cessons de penser à toi. Maman ! Maman !\smallskip
Ton fils respectueux.\smallskip
Victor.

\bye

% diacritical.tex endshere

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Diacritical marks
  2002-03-25  4:48   ` C.S. Dalawat
@ 2002-03-25  5:51     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2002-03-25  5:51 UTC (permalink / raw)
  Cc: rms, reingold, emacs-devel


On Mon, 25 Mar 2002, C.S. Dalawat wrote:

> because I had set 
> 
> (standard-display-european 1).

Just for the record: standard-display-european is semi-obsolete, and 
should be avoided.  set-language-environment or 
set-terminal-coding-system do the same as good or better.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-25  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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
2002-03-25  5:51     ` Eli Zaretskii
2002-03-25  4:58   ` C.S. Dalawat

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).