Mercurial > emacs
comparison lisp/language/indian.el @ 57537:b9687fdf909d
(indian-script-language-alist): Swap value and doc.
(indian-font-char-index-table): Doc fix.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 16 Oct 2004 23:25:39 +0000 |
parents | 695cf19ef79e |
children | 197607499a29 f3ec05478165 |
comparison
equal
deleted
inserted
replaced
57536:6d4a00278f5e | 57537:b9687fdf909d |
---|---|
48 (defvar indian-font-foundry 'cdac | 48 (defvar indian-font-foundry 'cdac |
49 "Font foundry for Indian characters. | 49 "Font foundry for Indian characters. |
50 Currently supported foundries are `cdac' and `akruti'.") | 50 Currently supported foundries are `cdac' and `akruti'.") |
51 | 51 |
52 (defvar indian-script-language-alist | 52 (defvar indian-script-language-alist |
53 '((devanagari (hindi sanskrit) nil) | |
54 (bengali (bengali assamese) nil) | |
55 (gurmukhi (punjabi) nil) | |
56 (gujarati (gujarati) nil) | |
57 (oriya (oriya) nil) | |
58 (tamil (tamil) nil) | |
59 (telugu (telugu) nil) | |
60 (kannada (kannada) nil) | |
61 (malayalam (malayalam) nil)) | |
53 "Alist of Indian scripts vs the corresponding language list and font foundry. | 62 "Alist of Indian scripts vs the corresponding language list and font foundry. |
54 Each element has this form: | 63 Each element has this form: |
55 | 64 |
56 (SCRIPT LANGUAGE-LIST FONT-FOUNDRY) | 65 (SCRIPT LANGUAGE-LIST FONT-FOUNDRY) |
57 | 66 |
60 LANGUAGE-LIST is a list of Indian langauge names SCRIPT is used for. | 69 LANGUAGE-LIST is a list of Indian langauge names SCRIPT is used for. |
61 The list is in the priority order. | 70 The list is in the priority order. |
62 | 71 |
63 FONT-FOUNDRY is a font foundry representing a group of Indian | 72 FONT-FOUNDRY is a font foundry representing a group of Indian |
64 fonts. If the value is nil, the value of `indian-font-foundry' | 73 fonts. If the value is nil, the value of `indian-font-foundry' |
65 is used." | 74 is used.") |
66 '((devanagari (hindi sanskrit) nil) | |
67 (bengali (bengali assamese) nil) | |
68 (gurmukhi (punjabi) nil) | |
69 (gujarati (gujarati) nil) | |
70 (oriya (oriya) nil) | |
71 (tamil (tamil) nil) | |
72 (telugu (telugu) nil) | |
73 (kannada (kannada) nil) | |
74 (malayalam (malayalam) nil))) | |
75 | 75 |
76 (defconst indian-font-char-index-table | 76 (defconst indian-font-char-index-table |
77 '( ; for which language(s) | 77 '( ; for which language(s) |
78 ;; CDAC fonts | 78 ;; CDAC fonts |
79 (#x0000 . cdac:dv-ttsurekh) ; hindi, etc | 79 (#x0000 . cdac:dv-ttsurekh) ; hindi, etc |
97 (#x1000 . akruti:tml) ; tamil | 97 (#x1000 . akruti:tml) ; tamil |
98 (#x1100 . akruti:tlg) ; telugu | 98 (#x1100 . akruti:tlg) ; telugu |
99 (#x1200 . akruti:knd) ; kannada | 99 (#x1200 . akruti:knd) ; kannada |
100 (#x1300 . akruti:mal) ; malayalam | 100 (#x1300 . akruti:mal) ; malayalam |
101 ) | 101 ) |
102 "Aliat of indices of `indian-glyph' character vs Indian font identifiers. | 102 "Alist of indices of `indian-glyph' character vs Indian font identifiers. |
103 Each element has this form: (INDEX . FONT-IDENTIFIER) | 103 Each element has this form: (INDEX . FONT-IDENTIFIER) |
104 | 104 |
105 INDEX is an index number of the first character in the charset | 105 INDEX is an index number of the first character in the charset |
106 `indian-glyph' assigned for glyphs in the font specified by | 106 `indian-glyph' assigned for glyphs in the font specified by |
107 FONT-IDENTIFIER. Currently FONT-IDENTIFIERs are defined for CDAC | 107 FONT-IDENTIFIER. Currently FONT-IDENTIFIERs are defined for CDAC |
108 and AKRUTI font groups.") | 108 and AKRUTI font groups.") |
109 | 109 |
110 (defun indian-font-char (index font-identifier) | 110 (defun indian-font-char (index font-identifier) |
111 "Return character of charset `indian-glyph' made from glyph index INDEX. | 111 "Return character of charset `indian-glyph' made from glyph index INDEX. |
112 FONT-IDENTIFIER is an identifier of an Indian font listed in the | 112 FONT-IDENTIFIER is an identifier of an Indian font listed in the |
113 variable `indian-font-char-index-table'. It specifies which | 113 variable `indian-font-char-index-table'. It specifies which |
114 font INDEX is for." | 114 font INDEX is for." |
125 ;; of FOUNDRY. | 125 ;; of FOUNDRY. |
126 | 126 |
127 (defun indian-font-char-range (font-identifier) | 127 (defun indian-font-char-range (font-identifier) |
128 (cons (indian-font-char 0 font-identifier) | 128 (cons (indian-font-char 0 font-identifier) |
129 (indian-font-char 255 font-identifier))) | 129 (indian-font-char 255 font-identifier))) |
130 | 130 |
131 (defvar indian-script-table | 131 (defvar indian-script-table |
132 '[ | 132 '[ |
133 devanagari | 133 devanagari |
134 sanskrit | 134 sanskrit |
135 bengali | 135 bengali |