Skip to content
GitLab
Explore
Sign in
Yuanle Song
libpyzy
Compare revisions
8b6cf0271f1f06e7664b4edda257d220aefd7699 to f06fdac6132f51acf15d52375b971b4c0322c881
Commits on Source (2)
fix a file name error in doc string.
· ea9665e2
Yuanle Song
authored
Mar 29, 2019
ea9665e2
v0.101.1 use freq scale of [0, 65535]
· f06fdac6
Yuanle Song
authored
Mar 30, 2019
pinyin_parser: updated so file install dir.
f06fdac6
Hide whitespace changes
Inline
Side-by-side
src/Database.cc
View file @
f06fdac6
...
...
@@ -272,7 +272,7 @@ first_existing_file (const std::vector<String> &files)
* {PKGDATADIR}/db/android.db
*
* In ibus-pinyin context those are:
* ~/.cache/ibus/pinyin/
local
.db
* ~/.cache/ibus/pinyin/
main
.db
* /usr/share/pyzy/db/local.db
* /usr/share/pyzy/db/open-phrase.db
* /usr/share/pyzy/db/android.db
...
...
@@ -745,7 +745,7 @@ Database::phraseSql (const Phrase &p, String &sql)
sql
<<
");
\n
"
;
sql
<<
"UPDATE userdb.py_phrase_"
<<
p
.
len
-
1
<<
" SET user_freq=user_freq+1"
;
<<
" SET user_freq=
MIN(
user_freq+1
, 65535)
"
;
phraseWhereSql
(
p
,
sql
);
sql
<<
";
\n
"
;
...
...
src/meson.build
View file @
f06fdac6
...
...
@@ -52,7 +52,7 @@ lib_src = [
shared_library
(
'pyzy-1.0'
,
lib_src
,
soversion
:
'0'
,
version
:
'0.101.
0
'
,
version
:
'0.101.
1
'
,
dependencies
:
shared_dep
,
install
:
true
)
...
...
src/pinyin_parser/meson.build
View file @
f06fdac6
...
...
@@ -43,7 +43,7 @@ lib_src = [
shared_library
(
'pinyin_parser'
,
lib_src
,
dependencies
:
[
shared_dep
,
dependency
(
'python3'
)],
install
:
true
,
install_dir
:
'/home/sylecn/c/gtk-im-module/sogou/'
)
install
:
true
,
install_dir
:
'/home/sylecn/c/gtk-im-module/sogou/
scelexport/
'
)
main_src
=
[
'../PinyinParser.cc'
,
...
...