diff options
| author | Kenichi Handa | 1997-07-15 08:24:47 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-07-15 08:24:47 +0000 |
| commit | 08a1bf224e1f5c596ae8c2e395ef6035d62deb81 (patch) | |
| tree | 8805cf172b8e9628bd859751c71eac34a431c567 | |
| parent | fe1d8b33cbeadad8cd9c186553ecf87b8bbf314d (diff) | |
| download | emacs-08a1bf224e1f5c596ae8c2e395ef6035d62deb81.tar.gz emacs-08a1bf224e1f5c596ae8c2e395ef6035d62deb81.zip | |
(tit-process-body): Ignore vacant entries.
| -rw-r--r-- | lisp/international/titdic-cnv.el | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/lisp/international/titdic-cnv.el b/lisp/international/titdic-cnv.el index 6c60d2cbdca..abf3d0ef070 100644 --- a/lisp/international/titdic-cnv.el +++ b/lisp/international/titdic-cnv.el | |||
| @@ -272,7 +272,9 @@ | |||
| 272 | (insert "(quail-define-rules\n") | 272 | (insert "(quail-define-rules\n") |
| 273 | (while (null (eobp)) | 273 | (while (null (eobp)) |
| 274 | (if (or (= (following-char) ?#) (= (following-char) ?\n)) | 274 | (if (or (= (following-char) ?#) (= (following-char) ?\n)) |
| 275 | (insert ";; ") | 275 | (progn |
| 276 | (insert ";; ") | ||
| 277 | (forward-line 1)) | ||
| 276 | (insert "(\"") | 278 | (insert "(\"") |
| 277 | (setq pos (point)) | 279 | (setq pos (point)) |
| 278 | (skip-chars-forward "^ \t") | 280 | (skip-chars-forward "^ \t") |
| @@ -303,24 +305,32 @@ | |||
| 303 | (delete-region (match-beginning 1) (match-end 1))) | 305 | (delete-region (match-beginning 1) (match-end 1))) |
| 304 | )) | 306 | )) |
| 305 | 307 | ||
| 306 | ;; Modify the current line to meet the syntax of Quail package. | ||
| 307 | (goto-char pos) | 308 | (goto-char pos) |
| 308 | (if tit-phrase | 309 | (if (eolp) |
| 310 | ;; This entry contains no translations. Let's ignore it. | ||
| 309 | (progn | 311 | (progn |
| 310 | ;; PHRASE1 PHRASE2 ... => ["PHRASE1" "PHRASE2" ...] | 312 | (beginning-of-line) |
| 311 | (insert "[\"") | 313 | (setq pos (point)) |
| 312 | (skip-chars-forward "^ \t\n") | 314 | (forward-line 1) |
| 313 | (while (not (eolp)) | 315 | (delete-region pos (point))) |
| 314 | (insert "\"") | 316 | |
| 315 | (forward-char 1) | 317 | ;; Modify the current line to meet the syntax of Quail package. |
| 316 | (insert "\"") | 318 | (if tit-phrase |
| 317 | (skip-chars-forward "^ \t\n")) | 319 | (progn |
| 318 | (insert "\"])")) | 320 | ;; PHRASE1 PHRASE2 ... => ["PHRASE1" "PHRASE2" ...] |
| 319 | ;; TRANSLATIONS => "TRANSLATIONS" | 321 | (insert "[\"") |
| 320 | (insert "\"") | 322 | (skip-chars-forward "^ \t\n") |
| 321 | (end-of-line) | 323 | (while (not (eolp)) |
| 322 | (insert "\")"))) | 324 | (insert "\"") |
| 323 | (forward-line 1)) | 325 | (forward-char 1) |
| 326 | (insert "\"") | ||
| 327 | (skip-chars-forward "^ \t\n")) | ||
| 328 | (insert "\"])")) | ||
| 329 | ;; TRANSLATIONS => "TRANSLATIONS" | ||
| 330 | (insert "\"") | ||
| 331 | (end-of-line) | ||
| 332 | (insert "\")")) | ||
| 333 | (forward-line 1)))) | ||
| 324 | (insert ")\n"))) | 334 | (insert ")\n"))) |
| 325 | 335 | ||
| 326 | ;;;###autoload | 336 | ;;;###autoload |