From 404c63b33c32b8e9526f0e74f28a89ab111cd560 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sun, 7 Apr 2019 13:54:25 +0000 Subject: [PATCH] Mozc: Include postal codes in dictionary --- .../org.mozc.android.inputmethod.japanese.yml | 47 ++++++++++++++++++- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/metadata/org.mozc.android.inputmethod.japanese.yml b/metadata/org.mozc.android.inputmethod.japanese.yml index a16beb0c33..3db6272554 100644 --- a/metadata/org.mozc.android.inputmethod.japanese.yml +++ b/metadata/org.mozc.android.inputmethod.japanese.yml @@ -1,3 +1,5 @@ +AntiFeatures: + - NonFreeAssets Categories: - Writing License: BSD-3-Clause @@ -41,10 +43,51 @@ Builds: - python build_mozc.py build -c Release android/android.gyp:apk ndk: r16b -MaintainerNotes: We get guava from Maven Central because building it from source would + - versionName: 2.23.2815.103-arm + versionCode: 6028153 + commit: afb03ddfe72dde4cf2409863a3bfea160f7a66d8 + subdir: src/android/ + submodules: true + sudo: + - apt-get update || apt-get update + - apt-get install -y clang ninja-build + output: bin/*.apk + rm: + - src/third_party/breakpad/src/processor/testdata/ + - src/third_party/guava/*.jar + extlibs: + - android/android-support-v13.jar + prebuild: + - touch ../third_party/guava/guava-testlib-18.0.jar + - sed -i -e '/proguard.config/d' project.properties + - sed -i -e 's/@ANDROID_VERSION_CODE@/$$VERCODE$$/' AndroidManifest_template.xml + scandelete: + - src/third_party/ + build: + - pushd ../data/dictionary_oss/ + - wget https://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip + - unzip jigyosyo.zip + - wget https://www.post.japanpost.jp/zipcode/dl/oogaki/zip/ken_all.zip + - unzip ken_all.zip + - PYTHONPATH="${PYTHONPATH}:../../" python ../../dictionary/gen_zip_code_seed.py + --zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt + - popd + - pushd .. + - wget https://repo1.maven.org/maven2/com/google/guava/guava/18.0/guava-18.0.jar + -O third_party/guava/guava-18.0.jar + - echo 'cce0823396aa693798f8882e64213b1772032b09 third_party/guava/guava-18.0.jar' + | shasum -c - + - python build_mozc.py gyp --target_platform=Android + - python build_mozc.py build -c Release android/android.gyp:apk + ndk: r16b + +MaintainerNotes: |- + We get guava from Maven Central because building it from source would require Java 7. + As explained [https://github.com/google/mozc/blob/afb03ddfe72dde4cf2409863a3bfea160f7a66d8/src/data/dictionary_oss/README.txt#L20 here], we use files provided by the Japanese postal services to enrich the dictionary. These files are not published under a FOSS license, but redistribution is allowed. + AutoUpdateMode: None UpdateCheckMode: None CurrentVersion: 2.23.2815.103-arm -CurrentVersionCode: 6028152 +CurrentVersionCode: 6028153