Mercurial > emacs
comparison lisp/language/devan-util.el @ 17773:f1ece95d00c2
(in-is13194-devanagari-post-read-conversion): New function.
(in-is13194-devanagari-pre-write-conversion): New function.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 12 May 1997 07:00:18 +0000 |
parents | f438ebf1c679 |
children | 0b163f31c39c |
comparison
equal
deleted
inserted
replaced
17772:550afdbb31d8 | 17773:f1ece95d00c2 |
---|---|
1255 (narrow-to-region from to) | 1255 (narrow-to-region from to) |
1256 (indian-to-devanagari-region (point-min) (point-max)) | 1256 (indian-to-devanagari-region (point-min) (point-max)) |
1257 (devanagari-compose-region (point-min) (point-max)))) | 1257 (devanagari-compose-region (point-min) (point-max)))) |
1258 | 1258 |
1259 ;;;###autoload | 1259 ;;;###autoload |
1260 (defun in-is13194-devanagari-post-read-conversion (len) | |
1261 (let ((pos (point))) | |
1262 (devanagari-compose-from-is13194-region pos (+ pos len)))) | |
1263 | |
1264 ;;;###autoload | |
1260 (defun devanagari-decompose-to-is13194-region (from to) | 1265 (defun devanagari-decompose-to-is13194-region (from to) |
1261 "Decompose Devanagari characters in the region to IS 13194 characters." | 1266 "Decompose Devanagari characters in the region to IS 13194 characters." |
1262 (interactive "r") | 1267 (interactive "r") |
1263 (save-restriction | 1268 (save-restriction |
1264 (narrow-to-region from to) | 1269 (narrow-to-region from to) |
1265 (devanagari-decompose-region (point-min) (point-max)) | 1270 (devanagari-decompose-region (point-min) (point-max)) |
1266 (devanagari-to-indian-region (point-min) (point-max)))) | 1271 (devanagari-to-indian-region (point-min) (point-max)))) |
1267 | 1272 |
1273 ;;;###autoload | |
1274 (defun in-is13194-devanagari-pre-write-conversion (from to) | |
1275 (let ((old-buf (current-buffer)) | |
1276 (work-buf (get-buffer-create " *devanagari-work*"))) | |
1277 (set-buffer work-buf) | |
1278 (erase-buffer) | |
1279 (if (stringp from) | |
1280 (insert from) | |
1281 (insert-buffer-substring old-buf from to)) | |
1282 (devanagari-decompose-to-is13194-region (point-min) (point-max)) | |
1283 ;; Should return nil as annotations. | |
1284 nil)) | |
1268 | 1285 |
1269 ;; For input/output of ITRANS | 1286 ;; For input/output of ITRANS |
1270 | 1287 |
1271 ;;;###autoload | 1288 ;;;###autoload |
1272 (defun devanagari-encode-itrans-region (from to) | 1289 (defun devanagari-encode-itrans-region (from to) |