GitBucket
Toggle navigation
Pull requests
Issues
Snippets
Sign in
Files
Branches
1
Releases
Wiki
tamra
/
scim-wnn
Browse code
Cannaの頻度更新。
master
1 parent
2300780
commit
cd4693304936022b4b66fad57c1d61234e3ce79b
tamra
authored
on 1 Jul 2005
Patch
Unified
Split
Showing
1 changed file
+3
-2
■
■
■
■
■
honoka/plugins/cannaconversion.cpp
Ignore Space
Show notes
View
5
■
■
■
■
■
honoka/plugins/cannaconversion.cpp
{
m_iconv
.
set_encoding
(
"EUC-JP"
);
pos
=
0
;
RkInitialize
(
"/var/lib/canna/dic"
);
context
=
RkCreateContext
();
context
=
0
;
ready
=
false
;
}
return
ready
;
}
void
CannaConversion
::
reset
(){
RkEndBun
(
context
,
0
);
RkEndBun
(
context
,
1
);
return
;
}
void
CannaConversion
::
setYomiText
(
WideString
yomi
)
{
bool
CannaConversion
::
select
(
int
p
)
{
if
(
p
<
convResult
[
pos
].
count
())
{
convResult
[
pos
].
pos
=
p
;
RkXfer
(
context
,
convResult
[
pos
].
pos
);
return
true
;
}
return
false
;
}
Show line notes below