Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fa6ea913
Commit
fa6ea913
authored
Feb 16, 2010
by
Kenichi Handa
Browse files
Fix for the new SKK-JISYO.L format.
parent
737b5223
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
29 deletions
+24
-29
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/international/ja-dic-cnv.el
lisp/international/ja-dic-cnv.el
+18
-29
No files found.
lisp/ChangeLog
View file @
fa6ea913
2010-02-16 Kenichi Handa <handa@m17n.org>
* international/ja-dic-cnv.el (iso-2022-7bit-short): Delete it.
(skkdic-convert-okuri-ari): Ignore lines starting with '>'.
(skkdic-convert): Use `euc-japan' coding system for writing.
2010-02-14 Juanma Barranquero <lekktu@gmail.com>
* outline.el (outline-head-from-level):
...
...
lisp/international/ja-dic-cnv.el
View file @
fa6ea913
...
...
@@ -45,15 +45,6 @@
;; Name of a file to generate from SKK dictionary.
(
defvar
ja-dic-filename
"ja-dic.el"
)
;; To make a generated ja-dic.el smaller.
(
define-coding-system
'iso-2022-7bit-short
"Like `iso-2022-7bit' but no ASCII designation before SPC."
:coding-type
'iso-2022
:mnemonic
?J
:charset-list
'iso-2022
:designation
[
(
ascii
t
)
nil
nil
nil]
:flags
'
(
short
7-bit
designation
))
(
defun
skkdic-convert-okuri-ari
(
skkbuf
buf
)
(
message
"Processing OKURI-ARI entries ..."
)
(
goto-char
(
point-min
))
...
...
@@ -61,24 +52,22 @@
(
insert
";; Setting okuri-ari entries.\n"
"(skkdic-set-okuri-ari\n"
))
(
while
(
not
(
eobp
))
(
let
((
from
(
point
))
to
)
(
end-of-line
)
(
setq
to
(
point
))
(
with-current-buffer
buf
(
insert-buffer-substring
skkbuf
from
to
)
(
beginning-of-line
)
(
insert
"\""
)
(
search-forward
" "
)
(
delete-char
1
)
; delete the first '/'
(
let
((
p
(
point
)))
(
end-of-line
)
(
delete-char
-1
)
; delete the last '/'
(
subst-char-in-region
p
(
point
)
?/
?
'noundo
))
(
insert
"\"\n"
))
(
forward-line
1
)))
(
if
(
/=
(
following-char
)
?>
)
(
let
((
from
(
point
))
(
to
(
line-end-position
)))
(
with-current-buffer
buf
(
insert-buffer-substring
skkbuf
from
to
)
(
beginning-of-line
)
(
insert
"\""
)
(
search-forward
" "
)
(
delete-char
1
)
; delete the first '/'
(
let
((
p
(
point
)))
(
end-of-line
)
(
delete-char
-1
)
; delete the last '/'
(
subst-char-in-region
p
(
point
)
?/
?
'noundo
))
(
insert
"\"\n"
))))
(
forward-line
1
))
(
with-current-buffer
buf
(
insert
")\n\n"
)))
...
...
@@ -348,7 +337,7 @@ The name of generated file is specified by the variable `ja-dic-filename'."
(
erase-buffer
)
(
buffer-disable-undo
)
(
insert
";;; ja-dic.el --- dictionary for Japanese input method"
" -*-coding:
iso-2022-jp
; byte-compile-disable-print-circle:t; -*-\n"
" -*-coding:
euc-japan
; byte-compile-disable-print-circle:t; -*-\n"
";;\tGenerated by the command `skkdic-convert'\n"
";;\tDate: "
(
current-time-string
)
"\n"
";;\tOriginal SKK dictionary file: "
...
...
@@ -410,7 +399,7 @@ The name of generated file is specified by the variable `ja-dic-filename'."
;; Save the working buffer.
(
set-buffer
buf
)
(
set-visited-file-name
(
expand-file-name
ja-dic-filename
dirname
)
t
)
(
set-buffer-file-coding-system
'
iso-2022-7bit-short
)
(
set-buffer-file-coding-system
'
euc-japan
)
(
save-buffer
0
))
(
kill-buffer
skkbuf
)
(
switch-to-buffer
buf
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment