;ELC
;;; Compiled by LTX@Xue-LingTaos-MacBook-Pro.local on Wed Mar 16 23:15:29 2011
;;; from file /Users/LTX/Projects/Emacs/emacs/lisp/international/ja-dic-cnv.el
;;; in Emacs version 24.0.50.1
;;; with all optimizations.

;;; This file contains utf-8 non-ASCII characters,
;;; and so cannot be loaded into Emacs 22 or earlier.
(and (boundp 'emacs-version)
     (< (aref emacs-version (1- (length emacs-version))) ?A)
     (string-lessp emacs-version "23")
     (error "`ja-dic-cnv.el' was compiled for Emacs 23 or later"))

;;;;;;;;;;;;;;;;;;;;;


(byte-code "\301B\302\301!\204\303\301\304\"\210\301\207" [current-load-list ja-dic-filename default-boundp set-default "ja-dic.el"] 3)
(defalias 'skkdic-convert-okuri-ari #[(skkbuf buf) "\305\306!\210eb\210rq\210\307\310\261\210)m\204Tg\311U\204N`\312 rq\210\313\n	#\210\314 \210\315c\210\316\317!\210\320\321!\210`\322\210\320\323!\210\324\f`\325\326\327%\210)\330c\210+\321y\210\202rq\210\331c)\207" [buf to from skkbuf p message "Processing OKURI-ARI entries ..." ";; Setting okuri-ari entries.\n" "(skkdic-set-okuri-ari\n" 62 line-end-position insert-buffer-substring beginning-of-line "\"" search-forward " " delete-char 1 nil -1 subst-char-in-region 47 32 noundo "\"\n" ")\n\n"] 6])
(byte-code "\301B\302\303!\210\304B\305\306!\207" [current-load-list skkdic-postfix-list (lambda (#1=#:defconst-tmp-var) (defconst skkdic-postfix-list #1#)) (skkdic-postfix-list) skkdic-postfix-data (lambda (#2=#:defconst-tmp-var) (defconst skkdic-postfix-data #2#)) (("ã�„ã��" "è¡Œ") ("ã�Œã�‹ã‚Š" "ä¿‚") ("ã�Œã��" "å­¦") ("ã�Œã‚�" "å·�") ("ã�—ã‚ƒ" "ç¤¾") ("ã�—ã‚…ã�†" "é›†") ("ã�—ã‚‡ã�†" "è³ž" "åŸŽ") ("ã�˜ã‚‡ã�†" "åŸŽ") ("ã�›ã‚“" "ç·š") ("ã� ã�‘" "å²³") ("ã�¡ã‚ƒã��" "ç�€") ("ã�¦ã‚“" "åº—") ("ã�¨ã�†ã�’" "å³ ") ("ã�©ã�Šã‚Š" "é€šã‚Š") ("ã‚„ã�¾" "å±±") ("ã�°ã�—" "æ©‹") ("ã�¯ã�¤" "ç™º") ("ã‚‚ã��" "ç›®") ("ã‚†ã��" "è¡Œ"))] 2)
(defalias 'skkdic-convert-postfix #[(skkbuf buf) "\306\307!\210eb\210rq\210\310\311\261\210)rq\210	\312\211\211\211\203l
@@
@A\313\f\261\210\203b\314@\261\210\315@\312\211\316%\211@:\203R\n\f\n@B\240\210\202[\317@\fC#\210A\211\2042\320c\210
A\211\204!-\321\322\312\316#\203\347\323\324!\312\211\325\326!\203\233\323\324!\211\235\204\224B\324\225b\210\202~rq\210\313\f\261\210\203\340\314@\261\210\315@\312\211\316%\211@:\203\317\f\n@\235\204\330\n\f\n@B\240\210\202\330\317@\fC#\210)A\211\204\250\320c\210,\202mrq\210\327c)\207" [buf skkdic-postfix-data entry candidates kana l message "Processing POSTFIX entries ..." ";; Setting postfix entries.\n" "(skkdic-set-postfix\n" nil "\"" " " lookup-nested-alist t set-nested-alist "\"\n" re-search-forward "^[#<>?]\\(\\(\\cH\\|ãƒ¼\\)+\\) " match-string 1 looking-at "/[#0-9 ]*\\([^/\n]*\\)/" ")\n\n" skkdic-postfix-list str] 7])
(byte-code "\301B\302\303!\207" [current-load-list skkdic-prefix-list (lambda (#1=#:defconst-tmp-var) (defconst skkdic-prefix-list #1#)) (skkdic-prefix-list)] 2)
(defalias 'skkdic-convert-prefix #[(skkbuf buf) "\305\306!\210eb\210rq\210\307\310\261\210)\212\311\312\313\314#\203e\315\316!\313\211\317\320!\203=\315\316!\211	\235\2046\n	B\316\225b\210\202\"rq\210\321\261\210	\203^\322	@\261\210\323	@\f#\210	A\211\204J\324c\210,\202)rq\210\325c)\207" [buf candidates str kana skkdic-prefix-list message "Processing PREFIX entries ..." ";; Setting prefix entries.\n" "(skkdic-set-prefix\n" re-search-forward "^\\(\\(\\cH\\|ãƒ¼\\)+\\)[<>?] " nil t match-string 1 looking-at "/\\([^/\n]+\\)/" "\"" " " set-nested-alist "\"\n" ")\n\n"] 5])
(defalias 'skkdic-get-candidate-list #[(from to) "\303	b\210\304\305\n\306#\203\307\224T\307\225{B\202)\207" [candidates from to nil re-search-forward "/[^/ \n]+" t 0] 4])
(defalias 'skkdic-get-entry #[(str alist) "\302	\303\211\304%@\207" [str alist lookup-nested-alist nil t] 6])
(byte-code "\301\302\303\304#\210\305B\306\307!\207" [current-load-list put skkdic-get-entry byte-optimizer byte-compile-inline-expand skkdic-word-list (lambda (#1=#:defconst-tmp-var) (defconst skkdic-word-list #1#)) (skkdic-word-list)] 4)
(defalias 'skkdic-breakup-string #[(skkbuf kana str from to &optional first) "	Z\211\306Y\203\206	\306\\\203S\202\307\f\204\201
Y\203\201	
O\310\307\211\311%@*\211:\203fG\307\312\313\215*\203f
U\204u\314
%\204u;\203z\315\"\203z\311\202}
S)\202\f+\206\370\203\310\n\306V\203\310	\211TO\310\307\211\311%@*\211;\205\266\315\"\316=)\203\310\314	T%\206\370?\205\370\n\317Y\205\370	O\310\307\211\311%@*\211:\205\367\307\312\320\215)))\207" [to from len first found idx 2 nil lookup-nested-alist t skkdic-tag (byte-code "\205@\303	\n\"\203\304\305\306\"\210A\211\204\307\207" [kana2-list kana2 kana string-match throw skkdic-tag t nil] 4) skkdic-breakup-string string-match 0 1 (byte-code "\205@\211\n	G[\303O\230\203\304\305\306\"\210A\211\204\303\207" [kana2-list kana2 kana nil throw skkdic-tag t] 5) min-idx str skkdic-word-list alist kana2-list kana kana2 kana-len skkbuf skkdic-prefix-list skkdic-postfix-list] 7])
(defalias 'skkdic-reduced-candidates #[(skkbuf kana candidates) "\305\211\n\2031\n@\211G\306U\204&\307\310	\"\203*\311\f	\312	G\313&\204*	B\nA\211\204\237*\207" [l elt candidates skkbuf kana nil 1 string-match "^\\cj" skkdic-breakup-string 0 first] 8])
(byte-code "\301B\302\301!\204\303\301\304C\"\210\305B\302\305!\204\303\305\306\"\210\304\207" [current-load-list skkdic-okuri-nasi-entries default-boundp set-default nil skkdic-okuri-nasi-entries-count 0] 3)
(defalias 'skkdic-collect-okuri-nasi #[nil "\306\307!\210\212\310\311\312\313\311\314#\205q\315\316!\317\320\224\320\225\"\211\nB\fB
T\321`\322_d\245!\211	U\204;\306\323#\210\n\203m\324\n@\311\211\314%\211@:\203\\@B\240\210\202e\325\n@C#\210)\nA\211\204?*\202	+\207" [ratio prev-ratio candidates kana skkdic-okuri-nasi-entries skkdic-okuri-nasi-entries-count message "Collecting OKURI-NASI entries ..." 0 nil re-search-forward "^\\(\\(\\cH\\|ãƒ¼\\)+\\) \\(/\\cj.*\\)/$" t match-string 1 skkdic-get-candidate-list 3 floor 100.0 "collected %2d%% %s ..." lookup-nested-alist set-nested-alist skkdic-word-list entry] 7])
(defalias 'skkdic-convert-okuri-nasi #[(skkbuf buf) "\306\307!\210rq\210\310\311\261\210	\237\312\211\313\211\203w
@@
@A\f\314_\245\fT\n\315\245U\204C\306\316\n\315\245#\210\n\315\245\317#\211\203o\320\261\210\203l\321@\261\210A\211\204\\\322c\210*
A\211\204,\323c)\207" [buf skkdic-okuri-nasi-entries ratio prev-ratio count l message "Processing OKURI-NASI entries ..." ";; Setting okuri-nasi entries.\n" "(skkdic-set-okuri-nasi\n" 0 nil 1000 10 "processed %2d%% %s ..." skkdic-reduced-candidates "\"" " " "\"\n" ")\n\n" candidates kana skkdic-okuri-nasi-entries-count skkbuf] 5])
#@323 Generate Emacs Lisp file form Japanese dictionary file FILENAME.
The format of the dictionary file should be the same as SKK dictionaries.
Optional argument DIRNAME if specified is the directory name under which
the generated Emacs Lisp is saved.
The name of generated file is specified by the variable `ja-dic-filename'.
(defalias 'skkdic-convert #[(filename &optional dirname) "\306\307\"\210\310\311\312!!\313\314!rq\210\315 \210\316 \210\317\320\321\322\323 \324\325\326\312!\f\"\327\330\331\332\333\261
\210\nq\210~\210\334b\210\335\336\337!\210\334y\210`q\210\340\n\334
#\210)\324\341\261\210\nq\210`\33534\336\342!\210\343 \210`343}\210\344\n\"\210~\2103b\210\334y\210`4\345\346!\210\347\224343}\210\350\n\"\210~\2103b\210\351\n\"\210\352 \210\353\n\"\210rq\210db\210\354c\210+q\210\355\3125\f\"\356\"\210\357\310!\210\360\347!\210)\361\n!\210\362!+\207" [filename coding-system-for-read skkbuf buf dirname pos message "Reading file \"%s\" ..." euc-japan find-file-noselect expand-file-name get-buffer-create "*skkdic-work*" erase-buffer buffer-disable-undo ";;; ja-dic.el --- dictionary for Japanese input method" " -*-coding: euc-japan; -*-\n" ";;	Generated by the command `skkdic-convert'\n" ";;	Date: " current-time-string "\n" ";;	Original SKK dictionary file: " file-relative-name "\n\n" ";; This file is part of GNU Emacs.\n\n" ";;; Commentary:\n\n" ";; Do byte-compile this file again after any modification.\n\n" ";;; Start of the header of the original SKK dictionary.\n\n" 1 nil search-forward ";; okuri-ari" insert-buffer-substring ";;; Code:\n\n(eval-when-compile (require 'ja-dic-cnv))\n\n" ";; okuri-nasi" beginning-of-line skkdic-convert-okuri-ari re-search-forward "^\\cH" 0 skkdic-convert-postfix skkdic-convert-prefix skkdic-collect-okuri-nasi skkdic-convert-okuri-nasi ";;\n(provide 'ja-dic)\n\n;;; ja-dic.el ends here\n" set-visited-file-name t set-buffer-file-coding-system save-buffer kill-buffer switch-to-buffer to from ja-dic-filename] 13 (#$ . 6942) "FSKK dictionary file: "])
#@393 Run `skkdic-convert' on the files remaining on the command line.
Use this from the command line, with `-batch';
it won't work in an interactive Emacs.
For example, invoke:
  % emacs -batch -l ja-dic-cnv -f batch-skkdic-convert SKK-JISYO.L
to generate  "ja-dic.el" from SKK dictionary file "SKK-JISYO.L".
To get complete usage, invoke:
 % emacs -batch -l ja-dic-cnv -f batch-skkdic-convert -h
(defalias 'batch-skkdic-convert #[nil "\204\305\306!\210	@\307\230\203\"\310\311!\210\310\312!\210\310\313!\210\310\314!\210\202V\315\211	@\316\230\2038	A\317	@!	A\317	@!\310\320\n\f#\210\310\321!\210\322\n\"\210\310\323!\210\310\324\f\"\210*\325\326!\207" [noninteractive command-line-args-left filename targetdir ja-dic-filename error "`batch-skkdic-convert' should be used only with -batch" "-h" message "To convert SKK-JISYO.L into skkdic.el:" "  %% emacs -batch -l ja-dic-cnv -f batch-skkdic-convert SKK-JISYO.L" "To convert SKK-JISYO.L into DIR/ja-dic.el:" "  %% emacs -batch -l ja-dic-cnv -f batch-skkdic-convert -dir DIR SKK-JISYO.L" nil "-dir" expand-file-name "Converting %s to %s ..." "It takes around 10 minutes even on Sun SS20." skkdic-convert "Do byte-compile the created file by:" "  %% emacs -batch -f batch-byte-compile %s" kill-emacs 0] 4 (#$ . 8990)])
(defalias 'skkdic-get-kana-compact-codes #[(kana) "G\305	\306\"\306\307	W\203?H\n\f\310W\203#\f[\2026\f\311U\203-\306\2026\312\313\f\314\"\315\"\316ZI\210T\211\202
\n,\207" [kana len vec i ch make-vector 0 nil 128 12540 logand encode-char japanese-jisx0208 255 32] 7])
(defalias 'skkdic-extract-conversion-data #[(entry) "\304\305\"\210\306\224\306\225SO\306\225\307\304\310\n#\203'\311\306\"	B\306\225\202\312!	+B\207" [entry candidates i kana string-match "^\\cj+[a-z]* " 0 nil "[^ ]+" match-string skkdic-get-kana-compact-codes] 4])
(defalias 'skkdic-set-okuri-ari '(macro . #[(&rest entries) "\304\305\306\307\310\211\203!\311@!\312	@	A\n#\210A\211\204
\n+DE\207" [entries entry map l defconst skkdic-okuri-ari quote (skkdic-okuri-ari) nil skkdic-extract-conversion-data set-nested-alist] 8]))
(defalias 'skkdic-set-postfix '(macro . #[(&rest entries) "\306\307\310\311\312\313\211\211\203l\314
@!\211@G\211V\203\"\n\315	@\f\313\211\316%\211@:\203\\	A\211\203X@@\235\204O@@B\240\210A\211\204:)\202d\317	@	A\f#\210)
A\211\204\f\240\210\f-DE\207" [entries entry len longest map l defconst skkdic-postfix quote (nil) 1 nil skkdic-extract-conversion-data lookup-nested-alist t set-nested-alist entry2 conversions] 10]))
(defalias 'skkdic-set-prefix '(macro . #[(&rest entries) "\306\307\310\311\312\313\211\211\203m\314
@!\211@G\211V\203\"\n\315	@\f\n\313\316%\211@:\203\\	A\211\203X@@\235\204O@@B\240\210A\211\204:)\202e\317	@	A\f\n$\210)
A\211\204\f\240\210\f-DE\207" [entries entry len longest map l defconst skkdic-prefix quote (nil) 1 nil skkdic-extract-conversion-data lookup-nested-alist t set-nested-alist entry2 conversions] 10]))
(defalias 'skkdic-set-okuri-nasi '(macro . #[(&rest entries) "\305\306\307\310\311\312\211\2033\nT\211\313\246\311U\203\314\315\n\"\210\316\f@!\317	@	A#\210\fA\211\204,DE\207" [entries entry count map l defconst skkdic-okuri-nasi quote (skdic-okuri-nasi) 0 nil 10000 message "%d entries" skkdic-extract-conversion-data set-nested-alist] 8]))
(provide 'ja-dic-cnv)
