;; Analyze header part of TIT dictionary and generate an appropriate
;; `quail-define-package' function call.
(defun tit-process-header (filename)
- (message "Processing header part...")
(goto-char (point-min))
;; At first, generate header part of the Quail package while
;; Convert body part of TIT dictionary into `quail-define-rules'
;; function call.
(defun tit-process-body ()
- (message "Formatting translation rules...")
(let* ((prev-key "")
ch key translations pos)
(princ "(quail-define-rules\n")
(if (not slot)
(error "Invalid ENCODE: value in TIT dictionary"))
(setq coding-system (nth 1 slot))
- (message "Decoding with coding system %s..." coding-system)
(goto-char (point-min))
(decode-coding-region (point-min) (point-max) coding-system)
;; Explicitly set eol format to `unix'.
(when (or force
(file-newer-than-file-p
file (tit-make-quail-package-file-name file targetdir)))
- (message "Converting %s to quail-package..." file)
(titdic-convert file targetdir))
(setq files (cdr files)))
(setq command-line-args-left (cdr command-line-args-left)))))
coding (nth 3 slot)
converter (nth 5 slot)
copyright (nth 6 slot))
- (message "Converting %s to %s..." dicfile quailfile)
;; Explicitly set eol format to `unix'.
(setq coding-system-for-write 'utf-8-unix)
(with-temp-file (expand-file-name quailfile dirname)
";; version-control: never\n"
";; no-update-autoloads: t\n"
";; End:\n\n"
- ";;; " quailfile " ends here\n"))
- (message "Converting %s to %s...done" dicfile quailfile))
+ ";;; " quailfile " ends here\n")))
(setq tail (cdr tail)))))
(defun batch-miscdic-convert ()