Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
15e44df7
Commit
15e44df7
authored
Mar 01, 2002
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(skkdic-jisx0208-hiragana-block): Value changed.
(skkdic-lookup-key): Call encode-char instead of split-char.
parent
a10201c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
lisp/international/ja-dic-utl.el
lisp/international/ja-dic-utl.el
+13
-9
No files found.
lisp/international/ja-dic-utl.el
View file @
15e44df7
...
...
@@ -88,7 +88,8 @@
(setq heads (cdr heads)))
l))
(defconst skkdic-jisx0208-hiragana-block (nth 1 (split-char ?$B$"
(
B
)))
(defconst skkdic-jisx0208-hiragana-block (cons (decode-char 'unicode #x3040)
(decode-char 'unicode #x309F)))
(defun skkdic-lookup-key (seq len &optional postfix prefer-noun)
"
Return
a
list
of
conversion
string
for
sequence
SEQ
of
length
LEN.
...
...
@@ -128,14 +129,17 @@ LEIM is available from the same ftp directory as Emacs."))
;; else VEC[N] is 128.
(
while
(
<
i
len
)
(
let
((
ch
(
aref
seq
i
))
elts
)
(
if
(
=
ch
?
$B!<
(
B
)
(
aset
vec
i
0
)
(
setq
elts
(
split-char
ch
))
(
if
(
and
(
eq
(
car
elts
)
'japanese-jisx0208
)
(
=
(
nth
1
elts
)
skkdic-jisx0208-hiragana-block
))
(
aset
vec
i
(
-
(
nth
2
elts
)
32
))
(
aset
vec
i
128
))))
code
)
(
cond
((
=
ch
?
$B!<
(
B
)
(
aset
vec
i
0
))
((
and
(
>=
ch
(
car
skkdic-jisx0208-hiragana-block
))
(
<=
ch
(
cdr
skkdic-jisx0208-hiragana-block
)))
(
setq
code
(
encode-char
ch
'japanese-jisx0208
))
(
if
code
(
aset
vec
i
(
-
(
logand
code
#xFF
)
32
))
(
aset
vec
i
128
)))
(
t
(
aset
vec
i
128
))))
(
setq
i
(
1+
i
)))
;; Search OKURI-NASI entries.
...
...
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