Codebase list mozc / f3c6b6b
Update d/patches/0001-Update-uim-mozc-to-c979f127acaeb7b35d3344e8b1e40848e.patch Fix build with latest mozc. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org> Nobuhiro Iwamatsu 3 years ago
2 changed file(s) with 13 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
66 * Update filename.
77 * Add fcitx5 binding. (Closes: #974894)
88 Take the patch from https://github.com/fcitx/mozc.
9 Drop some patches.
9 * Drop some patches.
1010 * Change-from-python-to-python3.patch
1111 * Change-from-python-to-python3.patch
1212 * Change-from-python2-code-to-python3.patch
1313 * Fix-build-with-gcc8.patch
1414 * fcitx-mozc-updates.patch
1515 * protobuf_generated_classes_no_inheritance.patch
16 * Update 0001-Update-uim-mozc-to-c979f127acaeb7b35d3344e8b1e40848e.patch
17 * Fix build with latest mozc.
1618
1719 -- Nobuhiro Iwamatsu <iwamatsu@debian.org> Sun, 27 Dec 2020 22:01:58 +0900
1820
0 From 201a53c45401637b57f198074f4dce5666bc92bd Mon Sep 17 00:00:00 2001
0 From 0758147463701aa40bc622c9b93c177f2cc5b3e3 Mon Sep 17 00:00:00 2001
11 From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
22 Date: Tue, 3 Apr 2018 08:27:47 +0900
3 Subject: [PATCH 1/6] Update uim-mozc to
3 Subject: [PATCH ] Update uim-mozc to
44 c979f127acaeb7b35d3344e8b1e40848e1a68d54
55
66 Description: Support uim framewor
77 Origin: macuim project: https://github.com/e-kato/macuim.git c979f127acaeb7b35d3344e8b1e40848e1a68d54
88 Forwarded: http://code.google.com/p/mozc/issues/detail?id=13
99 Author: uim Project http://code.google.com/p/uim/
10 Last-Update: 2018-04-03
10 Last-Update: 2020-12-28
11
12 * Fix mozc::InitMozc
13 * Use Utf8SubString instead of SubString
1114
1215 Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
1316 ---
593596 +#endif // MOZC_UNIX_UIM_KEY_TRANSLATOR_H_
594597 diff --git a/src/unix/uim/mozc.cc b/src/unix/uim/mozc.cc
595598 new file mode 100644
596 index 00000000..31fc3a26
599 index 00000000..ceb16bd8
597600 --- /dev/null
598601 +++ b/src/unix/uim/mozc.cc
599602 @@ -0,0 +1,1219 @@
772775 +{
773776 + size_t len = segment.value_length();
774777 +
775 + string former = Util::SubString(segment.value(), 0, pos);
776 + string latter = Util::SubString(segment.value(), pos, len);
778 + auto former = string(Util::Utf8SubString(segment.value(), 0, pos));
779 + auto latter = string(Util::Utf8SubString(segment.value(), pos, len));
777780 +
778781 + uim_lisp seg_f, seg_c, seg_l;
779782 + if (pos == 0) {
17981801 + argv[0] = (char *)name;
17991802 + argv[1] = NULL;
18001803 +
1801 + mozc::InitMozc((const char *)argv[0], &argc, (char ***)&argv, true);
1804 + mozc::InitMozc((const char *)argv[0], &argc, (char ***)&argv);
18021805 + mozc::uim::install_keymap();
18031806 +}
18041807 +