]> code.delx.au - gnu-emacs/blobdiff - leim/quail/cyrillic.el
merge trunk
[gnu-emacs] / leim / quail / cyrillic.el
index 1294fa6b9f15cbbdebf3dea432a906eaa5e5e21f..2683d601ba21cd0d2d84be6a1a4146dd2e939214 100644 (file)
@@ -1,9 +1,9 @@
 ;;; cyrillic.el --- Quail package for inputting Cyrillic characters
 
-;; Copyright (C) 1997, 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+;; Copyright (C) 1997, 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 ;;   Free Software Foundation, Inc.
 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-;;   2006, 2007, 2008
+;;   2006, 2007, 2008, 2009, 2010
 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
 ;;   Registration Number H14PRO021
 
  "\e,L9FC:5=\e(B Russian typewriter layout (ISO 8859-5 encoding)."
  nil t t t t nil nil nil nil nil t)
 
-;;  1! 2" 3' 4* 5: 6, 7. 8; 9( 0) -_ =+ \e,L!\e(B
-;;   \e,L9\e(B  \e,LF\e(B  \e,LC\e(B  \e,L:\e(B  \e,L5\e(B  \e,L=\e(B  \e,L3\e(B  \e,LH\e(B  \e,LI\e(B  \e,L7\e(B  \e,LE\e(B  \e,LJ\e(B
+;;  \e,Lp\e(B1 -2 /3 "4 :5 ,6 .7 _8 ?9 %0 != ;\ |+
+;;   \e,L9\e(B  \e,LF\e(B  \e,LC\e(B  \e,L:\e(B  \e,L5\e(B  \e,L=\e(B  \e,L3\e(B  \e,LH\e(B  \e,LI\e(B  \e,L7\e(B  \e,LE\e(B  \e,LJ\e(B )(
 ;;    \e,LD\e(B  \e,LK\e(B  \e,L2\e(B  \e,L0\e(B  \e,L?\e(B  \e,L@\e(B  \e,L>\e(B  \e,L;\e(B  \e,L4\e(B  \e,L6\e(B  \e,LM\e(B
-;;     \e,LO\e(B  \e,LG\e(B  \e,LA\e(B  \e,L<\e(B  \e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("~" ?+)
  ("Q" ?\e,L9\e(B)
  ("W" ?\e,LF\e(B)
  ("E" ?\e,LC\e(B)
  ("L" ?\e,L4\e(B)
  (":" ?\e,L6\e(B)
  ("\"" ?\e,LM\e(B)
- ("|" ?|)
+ ("|" ?\()
  ("Z" ?\e,LO\e(B)
  ("X" ?\e,LG\e(B)
  ("C" ?\e,LA\e(B)
  ("M" ?\e,LL\e(B)
  ("<" ?\e,L1\e(B)
  (">" ?\e,LN\e(B)
- ("?" ??)
+ ("?" ?\e,L!\e(B)
  )
 
 ;; Maintain the obsolete name for now.
  "\e,L9FC:5=\e(B Russian computer layout"
  nil t t t t nil nil nil nil nil t)
 
-;;  1! 2" 3\e,Lp\e(B 4; 5% 6: 7? 8* 9( 0) -_ =+ \e,Lq!\e(B
+;;  1! 2" 3\e,Lp\e(B 4; 5% 6: 7? 8* 9( 0) -_ =+ \/ \e,Lq!\e(B
 ;;   \e,L9\e(B  \e,LF\e(B  \e,LC\e(B  \e,L:\e(B  \e,L5\e(B  \e,L=\e(B  \e,L3\e(B  \e,LH\e(B  \e,LI\e(B  \e,L7\e(B  \e,LE\e(B  \e,LJ\e(B
 ;;    \e,LD\e(B  \e,LK\e(B  \e,L2\e(B  \e,L0\e(B  \e,L?\e(B  \e,L@\e(B  \e,L>\e(B  \e,L;\e(B  \e,L4\e(B  \e,L6\e(B  \e,LM\e(B
 ;;     \e,LO\e(B  \e,LG\e(B  \e,LA\e(B  \e,L<\e(B  \e,L8\e(B  \e,LB\e(B  \e,LL\e(B  \e,L1\e(B  \e,LN\e(B  .,
  ("0" ?0)
  ("-" ?-)
  ("=" ?=)
+ ("|" ?/)
  ("`" ?\e,Lq\e(B)
  ("q" ?\e,LY\e(B)
  ("w" ?\e,Lf\e(B)
@@ -1004,17 +1005,18 @@ Most convenient for entering Russian, but all Cyrillic characters
 are included.  Should handle most cases.  However:
   for \e,Lf\e(B (TSE) use \"c\", never \"ts\"
   \e,Li\e(B (SHCHA = Bulgarian SHT) = \"shch\", \"sj\", \"/sht\" or \"/t\",
-  \e,Lm\e(B (REVERSE ROUNDED E) = \"e'\" or \"e`\"
+  \e,Lm\e(B (REVERSE ROUNDED E) = \"e\\\"
   \e,Le\e(B (KHA) when after \e,La\e(B (S) = \"x\" or \"kh\"
   \e,Lj\e(B (HARD SIGN) = \"~\", \e,LJ\e(B (CAPITAL HARD SIGN) = \"~~\",
   \e,Ll\e(B (SOFT SIGN) = \"'\", \e,LL\e(B (CAPITAL SOFT SIGN) = \"''\",
   \e,Lo\e(B (YA) = \"ya\", \"ja\" or \"q\".
 
 Russian alphabet: a b v=w g d e yo=jo zh z i j=j' k l m n o p r s t
-u f h=kh=x c ch sh shch=sj=/s=/sht ~ y ' e' yu=ju ya=ja=q
+u f h=kh=x c ch sh shch=sj=/s=/sht ~ y ' e\\ yu=ju ya=ja=q
 
-Also included are Ukrainian \e,Lt\e(B (YE) = \"/e\" and \e,Lw\e(B (YI) = \"yi\",
-Belarusian \e,L~\e(B (SHORT U) = \"u'\",
+Also included are Ukrainian \e,Lt\e(B (YE) = \"/e\", \e,Lw\e(B (YI) = \"yi\",
+\e$,1)Q\e(B (GHE WITH UPTURN) = \"g'\",
+Belarusian \e,L~\e(B (SHORT U) = \"u~\",
 Serbo-Croatian \e,Lr\e(B (DJE) = \"/d\", \e,L{\e(B (CHJE)= \"/ch\",
 Macedonian \e,Ls\e(B (GJE) = \"/g\", \e,Lu\e(B (DZE) = \"/s\", \e,L|\e(B (KJE) = \"/k\",
 cyrillic \e,Lv\e(B (I DECIMAL) = \"/i\", \e,Lx\e(B (JE) = \"/j\",
@@ -1022,65 +1024,80 @@ cyrillic \e,Lv\e(B (I DECIMAL) = \"/i\", \e,Lx\e(B (JE) = \"/j\",
  nil t t t t nil nil nil nil nil t)
 
 (quail-define-rules
- ("a" ?\e,LP\e(B) 
- ("a'" ["\e,LP\e(B'"])  ("a`" ["\e,LP\e$(O+\\e(B"]) ;; combining
- ("b" ?\e,LQ\e(B) ("v" ?\e,LR\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\e(B) ("JU" ?\e,LN\e(B)
  ("Ya" ?\e,LO\e(B) ("YA" ?\e,LO\e(B) ("Ja" ?\e,LO\e(B) ("JA" ?\e,LO\e(B) ("Q" ?\e,LO\e(B)
 
- ("/e" ?\e,Lt\e(B) ("yi" ?\e,Lw\e(B) ("u'" ?\e,L~\e(B)
+ ("/e" ?\e,Lt\e(B) ("yi" ?\e,Lw\e(B) ("u'" ?\e,L~\e(B) ("u~" ?\e,L~\e(B)
+ ("g'" ?\e$,1)Q\e(B)
  ("/d" ?\e,Lr\e(B) ("/ch" ?\e,L{\e(B)
  ("/g" ?\e,Ls\e(B) ("/s" ?\e,Lu\e(B) ("/k" ?\e,L|\e(B)
  ("/i" ?\e,Lv\e(B) ("/j" ?\e,Lx\e(B) ("/l" ?\e,Ly\e(B) ("/n" ?\e,Lz\e(B) ("/z" ?\e,L\7f\e(B)
- ("/E" ?\e,L$\e(B) ("YE" ?\e,L$\e(B) ("Yi" ?\e,L'\e(B) ("YI" ?\e,L'\e(B) ("U'" ?\e,L.\e(B)
+ ("/E" ?\e,L$\e(B) ("YE" ?\e,L$\e(B) ("Yi" ?\e,L'\e(B) ("YI" ?\e,L'\e(B) ("U'" ?\e,L.\e(B) ("U~" ?\e,L.\e(B)
+ ("G'" ?\e$,1)P\e(B)
  ("/D" ?\e,L"\e(B) ("/Ch" ?\e,L+\e(B) ("/CH" ?\e,L+\e(B)
  ("/G" ?\e,L#\e(B) ("/S" ?\e,L%\e(B) ("/K" ?\e,L,\e(B)
  ("/I" ?\e,L&\e(B) ("/J" ?\e,L(\e(B) ("/L" ?\e,L)\e(B) ("/N" ?\e,L*\e(B) ("/Z" ?\e,L/\e(B)
 
+ ;; Combining accents as a separate character
+ ("//'" ?\e$(O+Z\e(B) ("//`" ?\e$(O+\\e(B)
+
+ ;; In the following two rules the accent is not a separate character
+ ("i`" ?\e$,1(}\e(B) ("I`" ?\e$,1(-\e(B)
+
+ ("/-"  ?\e$(G!9\e(B)  ;; EN DASH
+ ("/--" ?\e$(G!7\e(B)  ;; EM DASH
+ ("/*" ?\e$(O#@\e(B)   ;; BULLET
+ ("/." ?\e$,1s$\e(B)   ;; ONE DOT LEADER
+ ("/.." ?\e$(G!-\e(B)  ;; TWO DOT LEADER
+ ("/..." ?\e$A!-\e(B) ;; HORIZONTAL ELLIPSIS
+ ("/,," ?\e,Y%\e(B)  ;; DOUBLE LOW-9 QUOTATION MARK
+ ("/," ?\e$,1rz\e(B)   ;; SINGLE LOW-9 QUOTATION MARK
+ ("/''" ?\e,Y!\e(B)  ;; RIGHT DOUBLE QUOTATION MARK
+ ("/'" ?\e,F"\e(B)   ;; RIGHT SINGLE QUOTATION MARK
+ ("/``" ?\e,Y4\e(B)  ;; LEFT DOUBLE QUOTATION MARK
+ ("/`" ?\e,F!\e(B)   ;; LEFT SINGLE QUOTATION MARK
+ ("/<<" ?\e,A+\e(B)  ;; LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
+ ("/>>" ?\e,A;\e(B)  ;; RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
+
+ ("/&" ?\e,A'\e(B)
+ ("/ab" ?\e,A'\e(B)                             ; _\e,LPQ\e(B_\e,LWPf\e(B
+ ("/pa" ?\e,A'\e(B)                             ; _pa_ragraph
+ ("/#" ?\e,Lp\e(B)
+ ("/no" ?\e,Lp\e(B)                             ; _\e,L]^\e(B_\e,L\U`\e(B
+
  ("/c" ?\e,A)\e(B)
  ("/tm" ?\e$(D"o\e(B)
  ("/reg" ?\e,A.\e(B)
- ("/eu"   ?\e,b$\e(B)
+ ("/eu"  ?\e,b$\e(B)
  ("/ce"  ?\e,A"\e(B)
 
  ;; fractions
@@ -1126,27 +1143,6 @@ cyrillic \e,Lv\e(B (I DECIMAL) = \"/i\", \e,Lx\e(B (JE) = \"/j\",
  ("/rx" ?\e$(G&>\e(B)
  ("/rxi" ?\e$(O,?\e(B)
  ("/rxii" ?\e$(O,@\e(B)
-
- ("/-"  ?\e$(G!9\e(B)
- ("/--" ?\e$(G!7\e(B)
- ("/*" ?\e$(O#@\e(B)
- ("/." ?\e$,1s$\e(B) ;; ONE DOT LEADER
- ("/.."        ?\e$(G!-\e(B) ;; TWO DOT LEADER
- ("/..." ?\e$A!-\e(B);; HORIZONTAL ELLIPSIS
- ("/''" ?\e,Y!\e(B)
- ("/'" ?\e,F"\e(B)
- ("/``" ?\e,Y4\e(B)
- ("/`" ?\e,F!\e(B)
- ("/,," ?\e,Y%\e(B)
- ("/," ?\e$,1rz\e(B)
-
- ("/&" ?\e,A'\e(B)
- ("/ab" ?\e,A'\e(B)                              ; _\e,LPQ\e(B_\e,LWPf\e(B
- ("/pa" ?\e,A'\e(B)                              ; _pa_ragraph
- ("/#" ?\e$,1uV\e(B)
- ("/no" ?\e$,1uV\e(B)                            ; _\e,L]^\e(B_\e,L\U`\e(B
- ("/<<" ?\e,A+\e(B)
- ("/>>" ?\e,A;\e(B)
 )
 
 ;; Originally from Yudit's `Belarusian input table according to