* sisheng input method missing
@ 2004-05-09 20:13 Werner LEMBERG
2004-05-13 8:23 ` Kenichi Handa
0 siblings, 1 reply; 8+ messages in thread
From: Werner LEMBERG @ 2004-05-09 20:13 UTC (permalink / raw)
While there is support for the (Chinese) sisheng character set, a
proper input method is missing in Emacs. Is this missing
accidentally? If such a thing isn't available I can write one.
Werner
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sisheng input method missing
2004-05-09 20:13 sisheng input method missing Werner LEMBERG
@ 2004-05-13 8:23 ` Kenichi Handa
2004-05-14 7:09 ` Werner LEMBERG
0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2004-05-13 8:23 UTC (permalink / raw)
Cc: emacs-devel
In article <20040509.221355.169227575.wl@gnu.org>, Werner LEMBERG <wl@gnu.org> writes:
> While there is support for the (Chinese) sisheng character set, a
> proper input method is missing in Emacs. Is this missing
> accidentally? If such a thing isn't available I can write one.
It's missing from the start. Could you please contribute
it?
---
Ken'ichi HANDA
handa@m17n.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sisheng input method missing
2004-05-13 8:23 ` Kenichi Handa
@ 2004-05-14 7:09 ` Werner LEMBERG
2004-05-14 7:59 ` Kenichi Handa
0 siblings, 1 reply; 8+ messages in thread
From: Werner LEMBERG @ 2004-05-14 7:09 UTC (permalink / raw)
Cc: emacs-devel
[-- Attachment #1: Type: Text/Plain, Size: 17107 bytes --]
[This mail uses the sisheng font.]
> > While there is support for the (Chinese) sisheng character set, a
> > proper input method is missing in Emacs. Is this missing
> > accidentally? If such a thing isn't available I can write one.
>
> It's missing from the start. Could you please contribute it?
Appended below. Note that this is a first draft only! It lacks
proper documentation, copyright, correctly set quail flags, etc.
A longer time ago a very simple sisheng input method from Takahashi
Naoto floated around; it can be still found in the internet. I've
decided against this simplistic approach because users often position
the tone accents on top of the wrong vocal (e.g. `gúi' instead of the
correct `guí') -- additionally, it is common to type `gui2' if no
sisheng font is available. The package below thus contains all
possible syllable combinations for lower and uppercase:
gui1 -> guī
gui2 -> guí
gui3 -> guǐ
gui4 -> guì
Gui1 -> Guī
Gui2 -> Guí
Gui3 -> Guǐ
Gui4 -> Guì
With some lisp hackary (which I can't do unfortunately) the file size
can be reduced considerably, having just one `gui' entry, and lisp
code expands this to the eight variants for quail.
For the moment, I've selected `ǚ' as the mode indicator (letter `ü' is
assigned to `v'; unstressed lowercase syllables containing `ü' can be
accessed as the fifth tone, e.g. `lv5' -> `lü'). AFAIK, `ǚ' is only
used for Pīnyīn transliteration.
Finally, the code below neither covers additional transcriptions
needed for dialects (like `ḿ') nor the Bopomofo signs (`ㄅㄆㄇㄈ').
Honestly, I don't know how to access them in a sensible way.
BTW, there is a one-to-one relation between Pīnyīn and Bopomofo;
having functions `pinyin-to-bopomofo' and bopomofo-to-pinyin' (and
aliases called `pinyin-to-zhuyin' and `zhuyin-to-pinyin') would be
very nice.
Werner
======================================================================
begin 644 sisheng.el.bz2
M0EIH.3%!6293698$7!T`2F1_@``0``A____X/]_]^C____!@/Q\`CXB(1"0`
M``%50!<`````````?`/0````````@```````````^`````>@````%CX`8`$,
M@`+@``!\`\`$`#L`!0`$@>!B#@@'O8XB??%3PB29#4>FE/]'M,0BF)^JI0\3
M*&@&(Q,@?J0ZGGZJGY_JJ9^JFWJJ?LIZJGE&J?JD])F2/4``````!%5/]YIJ
MJ4E3/U1-,F"8!-&:F`F3"8$8$TP]0253?^JJ5!ZCRAH>D!H`&@T```&@``U/
M:4*%3TU4__55/3S51Y&*>]O>JJJ;1``Q/4Q````*B%*1,E/)J>IZ@&GY4])^
M4:AB>H`&AH`TT9'MEJ+9'YK(RI/^_\-V0MDDELD"V0BV0MDA;(A;(A;)$MDD
M+9!+9(+9)(MDMD"V2);)$MD06R2%L@MDB6R)+9"%LA;))+9$%LD1;(6R0MD0
MMD0MDB6R(6R)%L6R(6P););(%LD2V1);(@MDD+9!;)$MD26R$*]V=OJ^1]?W
MOR_#[_X/S_PW_3\.?BW\?\G\N_T?+ZO[OUQ_Q_R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J@```*JJ;;;;22JJH`;;`$DV
MW$1&^^^]558QBJJIF9QC&```F9G&,4VVDE550`VV`))MNJJL8Q@`F9F(B$DI
MF<8QB9F=]]ZJJWWWWQC&-]]Z22JJJJK???>9F9F922F9F9G7777???>9F9F9
MB(@`22`$DDDFVYF=]]]YF9QC&$DDDIF>W;M,S->?/GRV_].>>>0.?7KUZ`/7
MKUZ]>O7H"JJFVZJJ`,8Q41$555Z]>O3;]))>O7KUZ]>O3;]-M^O7K&,8F9F9
MF<8QZB(@`B(AMM))MM)*JK???>9F0``QC&)F9;;22F9H`;;`$DVW556,8P`3
M,RDE,S,S.NNM-O&,8QC&*JJQC%1$0`))`#;=55554VW550```%55-MMMI)55
M4`-M@"2YZ>WM[>T1$<\\\@$1$1$1$1`!$1$1$````1$0``$1$``!$1``````
M`````1$0``$1$``````````!$1$1$``!$1$1$1$0`1$1$1````$1$``!$1``
M`1$0``````````$1$``!$1```````````/VZ=.FFFFD1$;;;;`&WM[>P`DD`
M``!54P```(B(B(@`2222`````$D@!)(`22`&VP!):ZZZMM@&^^[`(B(;;`$D
M@!ML`;;`$D@!)(`B(A)(`22````;>NNNN,8P`;[[L`22````22````B(B(B`
M``22`&VP!MZZZZ[[[[@&^^^NNNN,8P```!OONP```(B(22`&VP!)(```!ML`
M``!)(`B(A)))))(`````22`$D@!)(`;;`$EKKKJVV`;[[L`B(AML`22`&VP!
MML`22`$D@"(B$D@!)(```!MZZZZXQC`!OONP!)(```!)(```"(B(B(``!)(`
M;;`&WKKKKOOON`;[[ZZZZXQC````&^^[``!=^_?O$1'S23;:2220``55<I)`
M``DDVVVVDDVV````DDDE$1"2222241$-MI)))-MI)))`:ZZZI)`#;>,8:23;
M;;:2220`DDVVDDVVVVDD`-MI)-MI)))))````))`"23;;;;;;;8`VVVVDDDD
MDDDDVV``"2220``1$0DDVVDDDD``#;:20``))-MMMI)-M@```))))1$0DDDD
MDE$1#;:2223;:22241$))`#;?COW[]_'CQX\>/'A)))(`22;;22;;;;22`&V
MTDFVTDDDDD@```$D@!))MMMMMMML`;;;;22222222;;``!)))(`>G3OW[]NW
M:(B(B(B(B(B(B(B(@```````````````XXX``````````````````!T73T]/
M'''5X%U=74``````'''````````````'''`````.[TW=OS^S];T.\K5;5N.W
MV^_]:[W;Z_P>O6_*B$?-_X"?\ZB$?-[?>CWH]Z/>DM+2TM*4I33333,S,S,`
M))`TTTTS,P))))----,S,"2223,S```#3333,S))))))))```#,S,S,DD`--
M--*4I22222E*4`----*4I22222E*4`,S,DDI2E```#3332E*4DDDDI2E`#33
M33,S,S,DDDD`*4I0``----,S,S,R20))`#3332E*4S,R20`#,S```TTTTS,S
M,S))`DD#,S))*4I0```S,S,S`DDDD``TTTTS,P))))----*4I0`DDI2E```#
M3333,S))))))))```I2E,S,`,S,DDI2E```"E*4#,S,S,DD`----*4I0))))
M----*4I0))))*4I0```TTTTS,S,S`"20----,S,"22233333,S`DDDDI2E``
M`#3332E*4DDDDDDDD```,S,S,R20`TTTTI2E))))*4I0`TTTTI2E))))*4I0
M`S,R22E*4```----*4I22222E*4`----,S,S,R2220>K<^?/FI2E```TTTTI
M2E,S,DD"20`TTTTI2E,S,DD`<[GSY\V9F``!IIIIF9F9F22!)(&9F224I2@`
M`!F9F9F!)))))(`::::9F8$DDDFFFFE*4H`224I2@``!IIIIF9DDDDDDDD@`
M`4I2F9F`&9F224I2@``!2E*!F9F9F22`&FFFE*4H$DDDFFFFE*4H$DDDE*4H
M```_3S:UX)$H*2@I$H*1*0]M&$4124BB2@H4%)1%(42E"D2DBB4%(E)%$H*$
MHBBA2)211*"D%(42DBBB424%"B*04A2*(HI)1)04E(4)1%%"DBD*2D4AE#`4
MB4D42DBDI%$E!24DI*12%(4)1%%"D2DBBA1)2%$E"42DBDI&S]-GT6?/9_U<
MI79.LVG7*53\IA\QZ3CCCCC333C#C##3)'&FG'&FF'&FG'&FF%/##PXXTPHP
MXPTI2R<8<>''&F''&&E*>&'%*63PPX])QIIQAAZ''H63P\/#PXXXX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1$G-?MW^WV[>NOKUZCSY^//S\^>U];N[N[OO=]KZW=Q
M=W?SN^U];N[N[OO=]KZW=Q=W?SN^U];N[N[OO=]KZW=Q=W?SZ^OCK]'L=CHZ
:``.7(``.7+VM;5N5D03_\7<D4X4)"6!%P=``
`
end
[-- Attachment #2: Type: text/plain, Size: 141 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sisheng input method missing
2004-05-14 7:09 ` Werner LEMBERG
@ 2004-05-14 7:59 ` Kenichi Handa
2004-05-14 13:16 ` Werner LEMBERG
0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2004-05-14 7:59 UTC (permalink / raw)
Cc: emacs-devel
In article <20040514.090936.82116624.wl@gnu.org>, Werner LEMBERG <wl@gnu.org> writes:
>> It's missing from the start. Could you please
>> contribute it?
> Appended below. Note that this is a first draft only! It
> lacks proper documentation, copyright, correctly set quail
> flags, etc.
> A longer time ago a very simple sisheng input method from
> Takahashi Naoto floated around; it can be still found in
> the internet. I've decided against this simplistic
> approach because users often position the tone accents on
> top of the wrong vocal (e.g. `gúi' instead of the correct
> `guí') -- additionally, it is common to type `gui2' if no
> sisheng font is available. The package below thus
> contains all possible syllable combinations for lower and
> uppercase:
It seems that each rule has one of these forms:
VOWEL TONE-NUMBER -> PINYIN
CONSONANT VOWEL TONE-NUMBER -> PINYIN
Can't we delete rules of the latter form?
---
Ken'ichi HANDA
handa@m17n.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sisheng input method missing
2004-05-14 7:59 ` Kenichi Handa
@ 2004-05-14 13:16 ` Werner LEMBERG
2004-05-16 0:56 ` Kenichi Handa
0 siblings, 1 reply; 8+ messages in thread
From: Werner LEMBERG @ 2004-05-14 13:16 UTC (permalink / raw)
Cc: emacs-devel
[-- Attachment #1: Type: Text/Plain, Size: 612 bytes --]
> It seems that each rule has one of these forms:
>
> VOWEL TONE-NUMBER -> PINYIN
> CONSONANT VOWEL TONE-NUMBER -> PINYIN
>
> Can't we delete rules of the latter form?
Basically yes, but I suggest not to do it. Reason is that not all
combinations actually do exist. For example, it is possible in Pīnyīn
to have `xū' and `shū', but you can't have `shīn' while `xīn' is
valid. Providing complete syllables is an aid to beginners to avoid
incorrect spellings, especially for people who are used to the
Wade-Giles transcription (which does have `shin' but no `xin').
Werner
[-- Attachment #2: Type: text/plain, Size: 141 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sisheng input method missing
2004-05-14 13:16 ` Werner LEMBERG
@ 2004-05-16 0:56 ` Kenichi Handa
2004-05-16 17:50 ` Werner LEMBERG
0 siblings, 1 reply; 8+ messages in thread
From: Kenichi Handa @ 2004-05-16 0:56 UTC (permalink / raw)
Cc: emacs-devel
In article <20040514.151635.166958789.wl@gnu.org>, Werner LEMBERG <wl@gnu.org> writes:
> [1 <text/plain; utf-8 (base64)>]
>> It seems that each rule has one of these forms:
>>
>> VOWEL TONE-NUMBER -> PINYIN
>> CONSONANT VOWEL TONE-NUMBER -> PINYIN
>>
>> Can't we delete rules of the latter form?
> Basically yes, but I suggest not to do it. Reason is that not all
> combinations actually do exist. For example, it is possible in Pīnyīn
> to have `xū' and `shū', but you can't have `shīn' while `xīn' is
> valid. Providing complete syllables is an aid to beginners to avoid
> incorrect spellings, especially for people who are used to the
> Wade-Giles transcription (which does have `shin' but no `xin').
Ok, then let's use your code as is. Please send me the
final version.
---
Ken'ichi HANDA
handa@m17n.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sisheng input method missing
2004-05-16 0:56 ` Kenichi Handa
@ 2004-05-16 17:50 ` Werner LEMBERG
2004-05-17 0:27 ` Kenichi Handa
0 siblings, 1 reply; 8+ messages in thread
From: Werner LEMBERG @ 2004-05-16 17:50 UTC (permalink / raw)
Cc: emacs-devel
[-- Attachment #1: Type: Text/Plain, Size: 8802 bytes --]
> Ok, then let's use your code as is. Please send me the
> final version.
Below. I've finally decided to try my hands on Lisp...
Note that I've found a major deficiency of the sisheng character set
(and fonts). It lacks at least the following (uppercase) characters:
Ā, Á, Ǎ, À,
Ē, É, Ě, È,
Ō, Ó, Ǒ, Ò
Without them it is e.g. not possible to write `Lǐ Ānhuì'.
After some thinking I have decided to not use the latin part of the
chinese-sisheng character set, given that mule-unicode-0100-24ff
character set contains all of the necessary characters.
Please check whether my code is OK -- I've marked two places with XXX.
Werner
======================================================================
;;; sisheng.el --- sisheng input method for Chinese pinyin transliteration
;; Copyright (C) 2004 Free Software Foundation, Inc.
;; Author: Werner LEMBERG <wl@gnu.org>
;; Keywords: multilingual, input method, Chinese, pinyin, sisheng
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
;;; Commentary:
;;; Code:
(require 'quail)
; XXX: do we need this?
;
;(setq sisheng-orig-case-table (current-case-table))
;(set-case-table (standard-case-table))
(defconst sisheng-regexp
"[āēīōūǖ]\\|üē")
;; First element is the key,
;; second element is the vowel used for the input sequence,
;; last four elements are the resulting tones.
;;
(defconst sisheng-vowel-table
'(("ā" "a" "ā" "á" "ǎ" "à")
("ē" "e" "ē" "é" "ě" "è")
("ī" "i" "ī" "í" "ǐ" "ì")
("ō" "o" "ō" "ó" "ǒ" "ò")
("ū" "u" "ū" "ú" "ǔ" "ù")
("ǖ" "v" "ǖ" "ǘ" "ǚ" "ǜ")
("üē" "ve" "üē" "üé" "üě" "üè")))
;; All possible syllables in Mandarin Chinese, presented in the first
;; tone. Note that make-sisheng-rules always constructs rules for all
;; four tones even if some of those tones aren't used in Mandarin.
;;
(defconst sisheng-syllable-table
'("ā" "āi" "ān" "āng" "āo"
"bā" "bāi" "bān" "bāng" "bāo"
"bēi" "bēn" "bēng"
"bī" "biān" "biāo" "biē" "bīn" "bīng"
"bō"
"bū"
"cā" "cāi" "cān" "cāng" "cāo"
"cē" "cēn" "cēng"
"cī"
"cōng" "cōu"
"cū" "cuān" "cuī" "cūn" "cuō"
"chā" "chāi" "chān" "chāng" "chāo"
"chē" "chēn" "chēng"
"chī"
"chōng" "chōu"
"chū" "chuā" "chuāi" "chuān" "chuāng" "chuī" "chūn" "chuō"
"dā" "dāi" "dān" "dāng" "dāo"
"dē" "dēi" "dēn" "dēng"
"dī" "diān" "diāo" "diē" "dīng" "diū"
"dōng" "dōu"
"dū" "duān" "duī" "dūn" "duō"
"ē" "ēi" "ēn" "ēng" "ēr"
"fā" "fān" "fāng"
"fēi" "fēn" "fēng"
"fiāo"
"fō" "fōu"
"fū"
"gā" "gāi" "gān" "gāng" "gāo"
"gē" "gēi" "gēn" "gēng"
"gōng" "gōu"
"gū" "guā" "guāi" "guān" "guāng" "guī" "gūn" "guō"
"hā" "hāi" "hān" "hāng" "hāo"
"hē" "hēi" "hēn" "hēng"
"hōng" "hōu"
"hū" "huā" "huāi" "huān" "huāng" "huī" "hūn" "huō"
"jī" "jiā" "jiān" "jiāng" "jiāo" "jiē" "jīn" "jīng" "jiōng" "jiū"
"jū" "juān" "juē" "jūn"
"kā" "kāi" "kān" "kāng" "kāo"
"kē" "kēi" "kēn" "kēng"
"kōng" "kōu"
"kū" "kuā" "kuāi" "kuān" "kuāng" "kuī" "kūn" "kuō"
"lā" "lāi" "lān" "lāng" "lāo"
"lē" "lēi" "lēng"
"lī" "liā" "liān" "liāng" "liāo" "liē" "līn" "līng" "liū"
"lōng" "lōu"
"lū" "luān" "lūn" "luō"
"lǖ" "lüē"
"mā" "māi" "mān" "māng" "māo"
"mē" "mēi" "mēn" "mēng"
"mī" "miān" "miāo" "miē" "mīn" "mīng" "miū"
"mō" "mōu"
"mū"
"nā" "nāi" "nān" "nāng" "nāo"
"nē" "nēi" "nēn" "nēng"
"nī" "niān" "niāng" "niāo" "niē" "nīn" "nīng" "niū"
"nōng" "nōu"
"nū" "nuān" "nuō"
"nǖ" "nüē"
"ō" "ōu"
"pā" "pāi" "pān" "pāng" "pāo"
"pēi" "pēn" "pēng"
"pī" "piān" "piāo" "piē" "pīn" "pīng"
"pō" "pōu"
"pū"
"qī" "qiā" "qiān" "qiāng" "qiāo" "qiē" "qīn" "qīng" "qiōng" "qiū"
"qū" "quān" "quē" "qūn"
"rān" "rāng" "rāo"
"rē" "rēn" "rēng"
"rī"
"rōng" "rōu"
"rū" "ruā" "ruān" "ruī" "rūn" "ruō"
"sā" "sāi" "sān" "sāng" "sāo"
"sē" "sēn" "sēng"
"sī"
"sōng" "sōu"
"sū" "suān" "suī" "sūn" "suō"
"shā" "shāi" "shān" "shāng" "shāo"
"shē" "shēi" "shēn" "shēng"
"shī"
"shōu"
"shū" "shuā" "shuāi" "shuān" "shuāng" "shuī" "shūn" "shuō"
"tā" "tāi" "tān" "tāng" "tāo"
"tē" "tēi" "tēng"
"tī" "tiān" "tiāo" "tiē" "tīng"
"tōng" "tōu"
"tū" "tuān" "tuī" "tūn" "tuō"
"wā" "wāi" "wān" "wāng"
"wēi" "wēn" "wēng"
"wō"
"wū"
"xī" "xiā" "xiān" "xiāng" "xiāo" "xiē" "xīn" "xīng" "xiōng" "xiū"
"xū" "xuān" "xuē" "xūn"
"yā" "yān" "yāng" "yāo"
"yē"
"yī" "yīn" "yīng"
"yō" "yōng" "yōu"
"yū" "yuān" "yuē" "yūn"
"zā" "zāi" "zān" "zāng" "zāo"
"zē" "zēi" "zēn" "zēng"
"zī"
"zōng" "zōu"
"zū" "zuān" "zuī" "zūn" "zuō"
"zhā" "zhāi" "zhān" "zhāng" "zhāo"
"zhē" "zhēi" "zhēn" "zhēng"
"zhī"
"zhōng" "zhōu"
"zhū" "zhuā" "zhuāi" "zhuān" "zhuāng" "zhuī" "zhūn" "zhuō"))
;; This function converts e.g.
;;
;; "zhuō"
;;
;; into
;;
;; (("zhuo4" ["zhuò"])
;; ("zhuo3" ["zhuǒ"])
;; ("zhuo2" ["zhuó"])
;; ("zhuo1" ["zhuō"]))
;;
(defun make-sisheng-rules (syllable)
(let ((case-fold-search t)
vowel-match
vowel-list
input-vowel
base-key
key
value
key-value-list
(i 1))
(string-match sisheng-regexp syllable)
(setq vowel-match (downcase (match-string 0 syllable)))
(setq vowel-list
(cdr (assoc-string vowel-match sisheng-vowel-table)))
(setq input-vowel (car vowel-list))
(setq base-key (replace-match input-vowel nil nil syllable))
(while (<= i 4)
(setq key (concat base-key (number-to-string i)))
(setq value (vector (replace-match (nth i vowel-list) nil nil syllable)))
(push (list key value) key-value-list)
(setq i (1+ i)))
key-value-list))
;; Set up sisheng input method.
;;
(quail-define-package
"chinese-sisheng" ; name
"Chinese" ; language
"ǚ" ; title
t ; guidance
"Sìshēng input method for pīnyīn transliteration of Chinese.
Examples: shuang1 -> shuāng
Lv3 -> Lǚ
AN4 -> ÀN
Use the fifth (unstressed) tone for syllables containing `ü'
without a tone mark.
Example: nve5 -> nüe
" ; docstring
nil ; translation-keys
t ; forget-last-selection
nil ; deterministic
nil ; kbd-translate
nil ; show-layout
nil ; create-decode-map
nil ; maximum-shortest
nil ; overlay-plist
nil ; update-translation-function
nil ; conversion-keys
t ; simple
)
;; Call make-sisheng-rules for all syllables in sisheng-syllable-table.
;;
(let (sisheng-list)
(dolist (syllable sisheng-syllable-table)
(setq sisheng-list
(append (make-sisheng-rules syllable)
sisheng-list)))
(dolist (syllable sisheng-syllable-table)
(setq sisheng-list
(append (make-sisheng-rules (upcase-initials syllable))
sisheng-list)))
(dolist (syllable sisheng-syllable-table)
(setq sisheng-list
(append (make-sisheng-rules (upcase syllable))
sisheng-list)))
(eval `(quail-define-rules
,@sisheng-list
("lv5" ["lü"])
("lve5" ["lüe"])
("nv5" ["nü"])
("nve5" ["nüe"])
("Lv5" ["Lü"])
("Lve5" ["Lüe"])
("Nv5" ["Nü"])
("Nve5" ["Nüe"])
("LV5" ["LÜ"])
("LVE5" ["LÜE"])
("NV5" ["NÜ"])
("NVE5" ["NÜE"]))))
; XXX: do we need this?
;
;(set-case-table sisheng-orig-case-table)
;; Local Variables:
;; coding: utf-8
;; End:
[-- Attachment #2: Type: text/plain, Size: 141 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: sisheng input method missing
2004-05-16 17:50 ` Werner LEMBERG
@ 2004-05-17 0:27 ` Kenichi Handa
0 siblings, 0 replies; 8+ messages in thread
From: Kenichi Handa @ 2004-05-17 0:27 UTC (permalink / raw)
Cc: emacs-devel
In article <20040516.195003.193696924.wl@gnu.org>, Werner LEMBERG <wl@gnu.org> writes:
> Below. I've finally decided to try my hands on Lisp...
Thank you. I've just installed a slightly modified version
with changes to leim/Makefile.in and etc/NEWS.
> Note that I've found a major deficiency of the sisheng character set
> (and fonts). It lacks at least the following (uppercase) characters:
> Ā, Á, Ǎ, À,
> Ē, É, Ě, È,
> Ō, Ó, Ǒ, Ò
> Without them it is e.g. not possible to write `Lǐ Ānhuì'.
> After some thinking I have decided to not use the latin part of the
> chinese-sisheng character set, given that mule-unicode-0100-24ff
> character set contains all of the necessary characters.
I agree with that.
> Please check whether my code is OK -- I've marked two places with XXX.
I installed this kind of code:
;; Call quail-make-sisheng-rules for all syllables in sisheng-syllable-table.
;;
(let ((case-table-save (current-case-table))
sisheng-list)
(set-case-table (standard-case-table))
...
(set-case-table case-table-save))
---
Ken'ichi HANDA
handa@m17n.org
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-05-17 0:27 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-09 20:13 sisheng input method missing Werner LEMBERG
2004-05-13 8:23 ` Kenichi Handa
2004-05-14 7:09 ` Werner LEMBERG
2004-05-14 7:59 ` Kenichi Handa
2004-05-14 13:16 ` Werner LEMBERG
2004-05-16 0:56 ` Kenichi Handa
2004-05-16 17:50 ` Werner LEMBERG
2004-05-17 0:27 ` Kenichi Handa
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.