chinese/ibus-pinyin: fix build with sqlite3 DQS option off

Also mention that ibus-libpinyin should be preferred.

See also:	PR 270064
PR:		270376
This commit is contained in:
Henry Hu 2023-03-21 19:13:22 +01:00 committed by Robert Clausecker
parent e95087b2d9
commit f38d0fdbea
4 changed files with 22 additions and 4 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= ibus-pinyin
PORTVERSION= 1.5.0
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= chinese
MAINTAINER= henry.hu.sh@gmail.com

View File

@ -0,0 +1,16 @@
--- data/db/english/english.awk.orig 2023-03-20 04:01:48 UTC
+++ data/db/english/english.awk
@@ -16,10 +16,10 @@ BEGIN {
}
# Insert data into english table
- { printf "INSERT INTO english (word, freq) VALUES (\"%s\", \"%f\");\n", $1, $2}
+ { printf "INSERT INTO english (word, freq) VALUES (\'%s\', \'%f\');\n", $1, $2}
#quit sqlite3
END {
# Commit the transcation
print "COMMIT;"
-}
\ No newline at end of file
+}

View File

@ -1,6 +1,4 @@
diff --git a/src/PYConfig.cc b/src/PYConfig.cc
index 7e24b2c..1ef0b99 100644
--- src/PYConfig.cc
--- src/PYConfig.cc.orig 2012-12-19 15:30:43 UTC
+++ src/PYConfig.cc
@@ -114,6 +114,7 @@ Config::initDefaultValues (void)
m_init_full_punct = TRUE;

View File

@ -1 +1,5 @@
PinYin engine for IBus.
This pinyin input method is deprecated; new users should switch to
chinese/ibus-libpinyin, which is a contemporary implementation of pinyin input
method.