help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding german and french quotes to latin-ltx.el


From: Reiner Steib
Subject: Re: adding german and french quotes to latin-ltx.el
Date: Thu, 06 May 2004 21:09:33 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

On Thu, May 06 2004, Karl Eichwalder wrote:

> As I said: added to latin-ltx.el - the structure of this file is very
> clear.  

On emacs-devel you wrote “I don't know how to edit latin-ltx.el to
provide a patch”?  I've posted a patch on emacs-devel now.

> Of course, adding something to an official Emacs file is only the
> 2nd best solution.  I'd prefere defadvice, customize, or setq.

Oliver Scholz pointed me to `quail-defrule' (see his posting).  Now I
use this code (shortened version, I also have added ℂ, ℕ, ...):

--8<---------------cut here---------------start------------->8---
(when (and (load "quail/latin-ltx" t)
           ;; make "TeX" the default input method:
           (setq default-input-method "TeX"))
  ;; [...]
  (quail-defrule "\\lq"   ?\‘ "TeX") ;; U+2018 : LEFT SINGLE QUOTATION MARK
  (quail-defrule "\\rq"   ?\’ "TeX") ;; U+2019 : RIGHT SINGLE QUOTATION MARK
  (quail-defrule "\\glq"  ?\‚ "TeX") ;; U+201A : SINGLE LOW-9 QUOTATION MARK
  (quail-defrule "\\grq"  ?\‘ "TeX") ;; U+2018 : LEFT SINGLE QUOTATION MARK
  (quail-defrule "\\lqq"  ?\“ "TeX") ;; U+201C : LEFT DOUBLE QUOTATION MARK
  (quail-defrule "\\rqq"  ?\” "TeX") ;; U+201D : RIGHT DOUBLE QUOTATION MARK
  (quail-defrule "\\glqq" ?\„ "TeX") ;; U+201E : DOUBLE LOW-9 QUOTATION MARK
  (quail-defrule "\\grqq" ?\“ "TeX") ;; U+201C : LEFT DOUBLE QUOTATION MARK
  (quail-defrule "\\flq"  ?\‹ "TeX") ;; U+2039
  (quail-defrule "\\frq"  ?\› "TeX") ;; U+203A
  (quail-defrule "\\flqq" ?\« "TeX") ;; U+00AB
  (quail-defrule "\\frqq" ?\» "TeX") ;; U+00BB
  ;; [...]
  (message "Installed additions to TeX input method."))
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]