(setup-XXX-environment): Just call set-language-environment. If
they used to do some other jobs than what done by set-language-environment, those jobs are done in setup-XXX-environment-internal now. ("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change the value to setup-XXX-environment-internal. Add properties nonascii-translation, input-method, features, unibyte-syntax, and unibyte-display.
This commit is contained in:
parent
6e49aeecbf
commit
8f76845d7e
6 changed files with 34 additions and 23 deletions
|
@ -31,14 +31,16 @@
|
||||||
(defun setup-czech-environment ()
|
(defun setup-czech-environment ()
|
||||||
"Setup multilingual environment (MULE) for Czech."
|
"Setup multilingual environment (MULE) for Czech."
|
||||||
(interactive)
|
(interactive)
|
||||||
(funcall (get-language-info "Latin-2" 'setup-function))
|
(set-language-environment "Latin-2"))
|
||||||
(setq default-input-method "czech"))
|
|
||||||
|
|
||||||
(set-language-info-alist
|
(set-language-info-alist
|
||||||
"Czech" '((setup-function . setup-czech-environment)
|
"Czech" '((charset . (ascii latin-iso8859-2))
|
||||||
(charset . (ascii latin-iso8859-2))
|
|
||||||
(coding-system . (iso-8859-2))
|
(coding-system . (iso-8859-2))
|
||||||
(coding-priority . (iso-8859-2))
|
(coding-priority . (iso-8859-2))
|
||||||
|
(input-method . "czech")
|
||||||
|
(nonascii-translation . latin-iso8859-2)
|
||||||
|
(unibyte-syntax . "latin-2")
|
||||||
|
(unibyte-display . iso-8859-2)
|
||||||
(tutorial . "TUTORIAL.cs")
|
(tutorial . "TUTORIAL.cs")
|
||||||
(sample-text . "P,Bx(Bejeme v,Ba(Bm hezk,B}(B den!")
|
(sample-text . "P,Bx(Bejeme v,Ba(Bm hezk,B}(B den!")
|
||||||
(documentation . t))
|
(documentation . t))
|
||||||
|
|
|
@ -41,14 +41,15 @@
|
||||||
(defun setup-greek-environment ()
|
(defun setup-greek-environment ()
|
||||||
"Setup multilingual environment (MULE) for Greek."
|
"Setup multilingual environment (MULE) for Greek."
|
||||||
(interactive)
|
(interactive)
|
||||||
(setup-8-bit-environment "Greek" 'greek-iso8859-7 "greek-postfix"))
|
(set-language-environment "Greek"))
|
||||||
|
|
||||||
(set-language-info-alist
|
(set-language-info-alist
|
||||||
"Greek" '((setup-function . setup-greek-environment)
|
"Greek" '((charset . (greek-iso8859-7))
|
||||||
(charset . (greek-iso8859-7))
|
|
||||||
(coding-system . (greek-iso-8bit))
|
(coding-system . (greek-iso-8bit))
|
||||||
(coding-priority greek-iso-8bit)
|
(coding-priority greek-iso-8bit)
|
||||||
(sample-text . "Greek (,FGkk]mija(B) ,FCei\(B ,Fsar(B")
|
(nonascii-translation . greek-iso8859-7)
|
||||||
|
(input-method . "greek")
|
||||||
|
(unibyte-display . greek-iso-8bit)
|
||||||
(documentation . t)))
|
(documentation . t)))
|
||||||
|
|
||||||
;;; greek.el ends here
|
;;; greek.el ends here
|
||||||
|
|
|
@ -42,14 +42,16 @@
|
||||||
"Setup multilingual environment (MULE) for Hebrew.
|
"Setup multilingual environment (MULE) for Hebrew.
|
||||||
But, please note that right-to-left writing is not yet supported."
|
But, please note that right-to-left writing is not yet supported."
|
||||||
(interactive)
|
(interactive)
|
||||||
(setup-8-bit-environment "Hebrew" 'hebrew-iso8859-8 "hebrew"))
|
(set-language-environment "Hebrew"))
|
||||||
|
|
||||||
(set-language-info-alist
|
(set-language-info-alist
|
||||||
"Hebrew" '((setup-function . setup-hebrew-environment)
|
"Hebrew" '((describe-function . describe-hebrew-support)
|
||||||
(describe-function . describe-hebrew-support)
|
|
||||||
(charset . (hebrew-iso8859-8))
|
(charset . (hebrew-iso8859-8))
|
||||||
(coding-priority hebrew-iso-8bit)
|
(coding-priority hebrew-iso-8bit)
|
||||||
(coding-system . (hebrew-iso-8bit))
|
(coding-system . (hebrew-iso-8bit))
|
||||||
|
(nonascii-translation . hebrew-iso8859-8)
|
||||||
|
(input-method . "hebrew")
|
||||||
|
(unibyte-display . hebrew-iso-8bit)
|
||||||
(sample-text . "Hebrew ,Hylem(B")
|
(sample-text . "Hebrew ,Hylem(B")
|
||||||
(documentation . "Right-to-left writing is not yet supported.")
|
(documentation . "Right-to-left writing is not yet supported.")
|
||||||
))
|
))
|
||||||
|
|
|
@ -29,13 +29,15 @@
|
||||||
(defun setup-ipa-environment ()
|
(defun setup-ipa-environment ()
|
||||||
"Setup multilingual environment (MULE) for IPA."
|
"Setup multilingual environment (MULE) for IPA."
|
||||||
(interactive)
|
(interactive)
|
||||||
(setup-english-environment))
|
(set-language-environment "IPA"))
|
||||||
|
|
||||||
(set-language-info-alist
|
(set-language-info-alist
|
||||||
"IPA" '((setup-function . setup-ipa-environment)
|
"IPA" '((charset . (ipa))
|
||||||
(charset . (ipa))
|
|
||||||
(coding-priority iso-2022-7bit)
|
(coding-priority iso-2022-7bit)
|
||||||
(coding-system iso-2022-7bit)
|
(coding-system iso-2022-7bit)
|
||||||
|
(input-method . "ipa")
|
||||||
|
(nonascii-translation . ipa)
|
||||||
|
(unibyte-display . iso-2022-7bit)
|
||||||
(documentation . "\
|
(documentation . "\
|
||||||
IPA is International Phonetic Alphabet for English, French, German
|
IPA is International Phonetic Alphabet for English, French, German
|
||||||
and Italian.")))
|
and Italian.")))
|
||||||
|
|
|
@ -31,15 +31,17 @@
|
||||||
(defun setup-romanian-environment ()
|
(defun setup-romanian-environment ()
|
||||||
"Setup multilingual environment (MULE) for Romanian."
|
"Setup multilingual environment (MULE) for Romanian."
|
||||||
(interactive)
|
(interactive)
|
||||||
(setup-8-bit-environment "Romanian" 'latin-iso8859-2 "latin-2-postfix")
|
(set-language-environment "Romanian"))
|
||||||
(load "latin-2"))
|
|
||||||
|
|
||||||
(set-language-info-alist
|
(set-language-info-alist
|
||||||
"Romanian" '((setup-function . setup-romanian-environment)
|
"Romanian" '((charset . (ascii latin-iso8859-2))
|
||||||
(charset . (ascii latin-iso8859-2))
|
|
||||||
(coding-system . (iso-8859-2))
|
(coding-system . (iso-8859-2))
|
||||||
(coding-priority . (iso-8859-2))
|
(coding-priority . (iso-8859-2))
|
||||||
(sample-text . "Bun-Aã-B ziua, bine a-Aþi-B venit!")
|
(nonascii-translation . latin-iso8859-2)
|
||||||
|
(input-method . "latin-2-postfix")
|
||||||
|
(unibyte-syntax . "latin-2")
|
||||||
|
(unibyte-display . iso-8859-2)
|
||||||
|
(sample-text . "Bunã ziua, bine aþi venit!")
|
||||||
(documentation . t))
|
(documentation . t))
|
||||||
'("European"))
|
'("European"))
|
||||||
|
|
||||||
|
|
|
@ -33,14 +33,16 @@
|
||||||
(defun setup-slovak-environment ()
|
(defun setup-slovak-environment ()
|
||||||
"Setup multilingual environment (MULE) for Slovak."
|
"Setup multilingual environment (MULE) for Slovak."
|
||||||
(interactive)
|
(interactive)
|
||||||
(funcall (get-language-info "Latin-2" 'setup-function))
|
(set-language-environment "Slovak"))
|
||||||
(setq default-input-method "slovak"))
|
|
||||||
|
|
||||||
(set-language-info-alist
|
(set-language-info-alist
|
||||||
"Slovak" '((setup-function . setup-slovak-environment)
|
"Slovak" '((charset . (ascii latin-iso8859-2))
|
||||||
(charset . (ascii latin-iso8859-2))
|
|
||||||
(coding-system . (iso-8859-2))
|
(coding-system . (iso-8859-2))
|
||||||
(coding-priority . (iso-8859-2))
|
(coding-priority . (iso-8859-2))
|
||||||
|
(nonascii-translation . latin-iso8859-2)
|
||||||
|
(input-method . "slovak")
|
||||||
|
(unibyte-syntax . "latin-2")
|
||||||
|
(unibyte-display . iso-8859-2)
|
||||||
(sample-text . "Prajeme V,Ba(Bm pr,Bm(Bjemn,B}(B de,Br(B!")
|
(sample-text . "Prajeme V,Ba(Bm pr,Bm(Bjemn,B}(B de,Br(B!")
|
||||||
(documentation . t))
|
(documentation . t))
|
||||||
'("European"))
|
'("European"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue