X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=MIM%2Fvi-base.mim;h=b09a541eaae38c24f3c568f42a749a8c0d2a173a;hb=608064259d934f1e1e661c2a17feb77a1863bdfc;hp=e2843124bd6cc91c81d78ee3b2f595fe94afe37f;hpb=af0d0abe591d8d6053cd7daeb3d89bbce30803c1;p=m17n%2Fm17n-db.git diff --git a/MIM/vi-base.mim b/MIM/vi-base.mim index e284312..b09a541 100644 --- a/MIM/vi-base.mim +++ b/MIM/vi-base.mim @@ -1,5 +1,5 @@ ;; vi-base.mim -- Provide bases for Vietnamese Input method -;; Copyright (C) 2008 +;; Copyright (C) 2008, 2009 ;; National Institute of Advanced Industrial Science and Technology (AIST) ;; Registration Number H15PRO112 @@ -28,16 +28,16 @@ This is acutually not a standalone input method, but is expected to be included in the other Vietnamese input method (e.g. vi-telex, vi-vni). ") -;;; Usage of variables: -;;; M (mark): point after the last vowel -;;; T (mark): point after the tone-mark-attached vowel -;;; TPLACE: On which vowel a tone is attached (0:none, 1:1st, 2:2nd, or 3:3rd) -;;; C: The initial consonant -;;; V-1: The last vowel -;;; V-2: The second from the last vowel (or 0 if there aren't two vowels) -;;; V-3: The third from the last vowel (or 0 if there aren't three vowels) -;;; C-AFTER-V: Number of the final consonants -;;; SELECT: Which tone is selected +;; Usage of variables: +;; M (mark): point after the last vowel +;; T (mark): point after the tone-mark-attached vowel +;; TPLACE: On which vowel a tone is attached (0:none, 1:1st, 2:2nd, or 3:3rd) +;; C: The initial consonant +;; V-1: The last vowel +;; V-2: The second from the last vowel (or 0 if there aren't two vowels) +;; V-3: The third from the last vowel (or 0 if there aren't three vowels) +;; C-AFTER-V: Number of the final consonants +;; SELECT: Which tone is selected (macro (handle-mark @@ -96,7 +96,11 @@ to be included in the other Vietnamese input method (e.g. vi-telex, vi-vni). ("n" ?n) ("p" ?p) ("q" ?q) ("t" ?t) ("v" ?v) ("B" ?B) ("C" ?C) ("D" ?D) ("G" ?G) ("H" ?H) ("K" ?K) ("L" ?L) ("M" ?M) ("N" ?N) ("P" ?P) ("Q" ?Q) ("T" ?T) ("V" ?V)) - + ;;Khi cac phu am nay di sau nguyen am thi nen thoat ve tieng Anh + ;;Should switch to English when these consonants are after any vowel (set temporary-escape) + (ending-1st-notviet-consonant ; + ("q" ?q) ("Q" ?Q) ("d" ?d) ("D" ?D) ("g" ?g) ("G" ?G) ("h" ?h) ("H" ?H) + ("k" ?k) ("K" ?K) ("l" ?l) ("L" ?L) ("v" ?v) ("V" ?V) ("b" ?b) ("B" ?B) ("z" ?z) ("Z" ?Z)) ;; These are the consonants that can end a word, anything else is not VNese (ending-1st-consonant ; (e.g. tốt, đẹp, xấu) ("c" ?c) ("m" ?m) ("n" ?n) ("p" ?p) ("t" ?t) @@ -117,6 +121,12 @@ to be included in the other Vietnamese input method (e.g. vi-telex, vi-vni). ("0" ?0) ("1" ?1) ("2" ?2) ("3" ?3) ("4" ?4) ("5" ?5) ("6" ?6) ("7" ?7) ("8" ?8) ("9" ?9)) + (smart-quotes + ("'" ?\') + ("''" "‘’") + ("\"" ?\") + ("\"\"" "“”")) + (permanent-escape ("\\"))