opencc.git
3 years agoMerge version 1.1.5+ds1-1+rpi1 and 1.1.6+ds1-1 to produce 1.1.6+ds1-1+rpi1 bookworm-staging archive/raspbian/1.1.6+ds1-1+rpi1 raspbian/1.1.6+ds1-1+rpi1
Raspbian automatic forward porter [Tue, 13 Dec 2022 22:01:22 +0000 (22:01 +0000)]
Merge version 1.1.5+ds1-1+rpi1 and 1.1.6+ds1-1 to produce 1.1.6+ds1-1+rpi1

3 years agoMerge opencc (1.1.6+ds1-1) import into refs/heads/workingbranch
Gunnar Hjalmarsson [Sat, 10 Dec 2022 12:10:03 +0000 (12:10 +0000)]
Merge opencc (1.1.6+ds1-1) import into refs/heads/workingbranch

3 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed
Last-Update: 2022-12-10

Gbp-Pq: Name 0005-Use-system-googletest.patch

3 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-09-18

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

3 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

3 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2022-12-10

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

3 years agoopencc (1.1.6+ds1-1) unstable; urgency=medium
Gunnar Hjalmarsson [Sat, 10 Dec 2022 12:10:03 +0000 (12:10 +0000)]
opencc (1.1.6+ds1-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.1.6+ds1
  * Refresh patches:
    - d/p/0001-use-cmake-install-libdir.patch
    - d/p/0005-Use-system-googletest.patch

[dgit import unpatched opencc 1.1.6+ds1-1]

3 years agoImport opencc_1.1.6+ds1.orig.tar.xz
Gunnar Hjalmarsson [Sat, 10 Dec 2022 12:10:03 +0000 (12:10 +0000)]
Import opencc_1.1.6+ds1.orig.tar.xz

[dgit import orig opencc_1.1.6+ds1.orig.tar.xz]

3 years agoImport opencc_1.1.6+ds1-1.debian.tar.xz
Gunnar Hjalmarsson [Sat, 10 Dec 2022 12:10:03 +0000 (12:10 +0000)]
Import opencc_1.1.6+ds1-1.debian.tar.xz

[dgit import tarball opencc 1.1.6+ds1-1 opencc_1.1.6+ds1-1.debian.tar.xz]

3 years agoMerge version 1.1.4+ds1-4+rpi1 and 1.1.5+ds1-1 to produce 1.1.5+ds1-1+rpi1 archive/raspbian/1.1.5+ds1-1+rpi1 raspbian/1.1.5+ds1-1+rpi1
Raspbian automatic forward porter [Fri, 9 Dec 2022 05:36:04 +0000 (05:36 +0000)]
Merge version 1.1.4+ds1-4+rpi1 and 1.1.5+ds1-1 to produce 1.1.5+ds1-1+rpi1

3 years agoMerge opencc (1.1.5+ds1-1) import into refs/heads/workingbranch
Gunnar Hjalmarsson [Tue, 6 Dec 2022 12:40:36 +0000 (12:40 +0000)]
Merge opencc (1.1.5+ds1-1) import into refs/heads/workingbranch

3 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed
Last-Update: 2021-09-18

Gbp-Pq: Name 0005-Use-system-googletest.patch

3 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-09-18

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

3 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

3 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2021-09-18

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

3 years agoopencc (1.1.5+ds1-1) unstable; urgency=medium
Gunnar Hjalmarsson [Tue, 6 Dec 2022 12:40:36 +0000 (12:40 +0000)]
opencc (1.1.5+ds1-1) unstable; urgency=medium

  * Team upload
  * New upstream version 1.1.5+ds1

[dgit import unpatched opencc 1.1.5+ds1-1]

3 years agoImport opencc_1.1.5+ds1.orig.tar.xz
Gunnar Hjalmarsson [Tue, 6 Dec 2022 12:40:36 +0000 (12:40 +0000)]
Import opencc_1.1.5+ds1.orig.tar.xz

[dgit import orig opencc_1.1.5+ds1.orig.tar.xz]

3 years agoImport opencc_1.1.5+ds1-1.debian.tar.xz
Gunnar Hjalmarsson [Tue, 6 Dec 2022 12:40:36 +0000 (12:40 +0000)]
Import opencc_1.1.5+ds1-1.debian.tar.xz

[dgit import tarball opencc 1.1.5+ds1-1 opencc_1.1.5+ds1-1.debian.tar.xz]

3 years agoMerge version 1.1.4+ds1-3+rpi1 and 1.1.4+ds1-4 to produce 1.1.4+ds1-4+rpi1 archive/raspbian/1.1.4+ds1-4+rpi1 raspbian/1.1.4+ds1-4+rpi1
Raspbian automatic forward porter [Mon, 14 Nov 2022 17:01:37 +0000 (17:01 +0000)]
Merge version 1.1.4+ds1-3+rpi1 and 1.1.4+ds1-4 to produce 1.1.4+ds1-4+rpi1

3 years agoMerge opencc (1.1.4+ds1-4) import into refs/heads/workingbranch
Gunnar Hjalmarsson [Tue, 8 Nov 2022 15:33:54 +0000 (15:33 +0000)]
Merge opencc (1.1.4+ds1-4) import into refs/heads/workingbranch

3 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed
Last-Update: 2021-09-18

Gbp-Pq: Name 0005-Use-system-googletest.patch

3 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-09-18

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

3 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

3 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2021-09-18

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

3 years agoopencc (1.1.4+ds1-4) unstable; urgency=medium
Gunnar Hjalmarsson [Tue, 8 Nov 2022 15:33:54 +0000 (15:33 +0000)]
opencc (1.1.4+ds1-4) unstable; urgency=medium

  * Team upload
  * Work around uscan issue with GitHub releases page

[dgit import unpatched opencc 1.1.4+ds1-4]

3 years agoImport opencc_1.1.4+ds1-4.debian.tar.xz
Gunnar Hjalmarsson [Tue, 8 Nov 2022 15:33:54 +0000 (15:33 +0000)]
Import opencc_1.1.4+ds1-4.debian.tar.xz

[dgit import tarball opencc 1.1.4+ds1-4 opencc_1.1.4+ds1-4.debian.tar.xz]

3 years agoMerge version 1.1.4+ds1-1+rpi1 and 1.1.4+ds1-3 to produce 1.1.4+ds1-3+rpi1 archive/raspbian/1.1.4+ds1-3+rpi1 raspbian/1.1.4+ds1-3+rpi1
Raspbian automatic forward porter [Wed, 27 Jul 2022 16:10:12 +0000 (17:10 +0100)]
Merge version 1.1.4+ds1-1+rpi1 and 1.1.4+ds1-3 to produce 1.1.4+ds1-3+rpi1

3 years agoMerge opencc (1.1.4+ds1-3) import into refs/heads/workingbranch
Gunnar Hjalmarsson [Mon, 25 Jul 2022 00:26:42 +0000 (01:26 +0100)]
Merge opencc (1.1.4+ds1-3) import into refs/heads/workingbranch

3 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed
Last-Update: 2021-09-18

Gbp-Pq: Name 0005-Use-system-googletest.patch

3 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-09-18

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

3 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

3 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2021-09-18

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

3 years agoopencc (1.1.4+ds1-3) unstable; urgency=medium
Gunnar Hjalmarsson [Mon, 25 Jul 2022 00:26:42 +0000 (01:26 +0100)]
opencc (1.1.4+ds1-3) unstable; urgency=medium

  * Team upload
  * debian/libopencc1.1.symbols:
    - Update other archs for LTO using buildd logs (closes: #1015565)
  * Build with GCC-12
    - It builds fine now with GCC-12, so the symbols fix for LTO also
      closes: #1013008.

[dgit import unpatched opencc 1.1.4+ds1-3]

3 years agoImport opencc_1.1.4+ds1-3.debian.tar.xz
Gunnar Hjalmarsson [Mon, 25 Jul 2022 00:26:42 +0000 (01:26 +0100)]
Import opencc_1.1.4+ds1-3.debian.tar.xz

[dgit import tarball opencc 1.1.4+ds1-3 opencc_1.1.4+ds1-3.debian.tar.xz]

3 years agoMerge version 1.1.3+ds1-5+rpi1 and 1.1.4+ds1-1 to produce 1.1.4+ds1-1+rpi1 archive/raspbian/1.1.4+ds1-1+rpi1 raspbian/1.1.4+ds1-1+rpi1
Raspbian automatic forward porter [Mon, 13 Jun 2022 04:42:05 +0000 (05:42 +0100)]
Merge version 1.1.3+ds1-5+rpi1 and 1.1.4+ds1-1 to produce 1.1.4+ds1-1+rpi1

3 years agoImport opencc_1.1.4+ds1.orig.tar.xz
Boyuan Yang [Sat, 4 Jun 2022 15:52:24 +0000 (16:52 +0100)]
Import opencc_1.1.4+ds1.orig.tar.xz

[dgit import orig opencc_1.1.4+ds1.orig.tar.xz]

3 years agoMerge opencc (1.1.4+ds1-1) import into refs/heads/workingbranch
Boyuan Yang [Sat, 4 Jun 2022 15:52:24 +0000 (16:52 +0100)]
Merge opencc (1.1.4+ds1-1) import into refs/heads/workingbranch

3 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed
Last-Update: 2021-09-18

Gbp-Pq: Name 0005-Use-system-googletest.patch

3 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-09-18

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

3 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

3 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2021-09-18

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

3 years agoopencc (1.1.4+ds1-1) unstable; urgency=medium
Boyuan Yang [Sat, 4 Jun 2022 15:52:24 +0000 (16:52 +0100)]
opencc (1.1.4+ds1-1) unstable; urgency=medium

  [ xiao sheng wen ]
  * update-debian-copyright to 2021 year.

  [ Boyuan Yang ]
  * New upstream version 1.1.4+ds1.
  * debian/patches: Refresh patches.
  * debian/libopencc1.1.symbols: Refresh symbols.

[dgit import unpatched opencc 1.1.4+ds1-1]

3 years agoImport opencc_1.1.4+ds1-1.debian.tar.xz
Boyuan Yang [Sat, 4 Jun 2022 15:52:24 +0000 (16:52 +0100)]
Import opencc_1.1.4+ds1-1.debian.tar.xz

[dgit import tarball opencc 1.1.4+ds1-1 opencc_1.1.4+ds1-1.debian.tar.xz]

4 years agoMerge version 1.1.3+ds1-3+rpi1 and 1.1.3+ds1-5 to produce 1.1.3+ds1-5+rpi1 archive/raspbian/1.1.3+ds1-5+rpi1 raspbian/1.1.3+ds1-5+rpi1
Raspbian automatic forward porter [Wed, 3 Nov 2021 02:52:10 +0000 (02:52 +0000)]
Merge version 1.1.3+ds1-3+rpi1 and 1.1.3+ds1-5 to produce 1.1.3+ds1-5+rpi1

4 years agoMerge opencc (1.1.3+ds1-5) import into refs/heads/workingbranch
Gunnar Hjalmarsson [Wed, 27 Oct 2021 07:39:59 +0000 (08:39 +0100)]
Merge opencc (1.1.3+ds1-5) import into refs/heads/workingbranch

4 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed
Last-Update: 2021-09-18

Gbp-Pq: Name 0005-Use-system-googletest.patch

4 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-09-18

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

4 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

4 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2021-09-18

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

4 years agoopencc (1.1.3+ds1-5) unstable; urgency=medium
Gunnar Hjalmarsson [Wed, 27 Oct 2021 07:39:59 +0000 (08:39 +0100)]
opencc (1.1.3+ds1-5) unstable; urgency=medium

  * Team upload
  * debian/libopencc1.1.symbols:
    - Refresh using buildd logs for all archs and pkgkde-symbolshelper
      (Closes: #997412)

[dgit import unpatched opencc 1.1.3+ds1-5]

4 years agoImport opencc_1.1.3+ds1-5.debian.tar.xz
Gunnar Hjalmarsson [Wed, 27 Oct 2021 07:39:59 +0000 (08:39 +0100)]
Import opencc_1.1.3+ds1-5.debian.tar.xz

[dgit import tarball opencc 1.1.3+ds1-5 opencc_1.1.3+ds1-5.debian.tar.xz]

4 years agoMerge version 1.1.1+git20200624+ds2-10+rpi1 and 1.1.3+ds1-3 to produce 1.1.3+ds1... archive/raspbian/1.1.3+ds1-3+rpi1 raspbian/1.1.3+ds1-3+rpi1
Raspbian automatic forward porter [Thu, 23 Sep 2021 15:01:43 +0000 (16:01 +0100)]
Merge version 1.1.1+git20200624+ds2-10+rpi1 and 1.1.3+ds1-3 to produce 1.1.3+ds1-3+rpi1

4 years agoMerge opencc (1.1.3+ds1-3) import into refs/heads/workingbranch
Boyuan Yang [Mon, 20 Sep 2021 19:44:37 +0000 (20:44 +0100)]
Merge opencc (1.1.3+ds1-3) import into refs/heads/workingbranch

4 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed
Last-Update: 2021-09-18

Gbp-Pq: Name 0005-Use-system-googletest.patch

4 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-09-18

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

4 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

4 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

Update 2021-09-18: Also use GNUInstallDirs.

Last-Update: 2021-09-18

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

4 years agoopencc (1.1.3+ds1-3) unstable; urgency=medium
Boyuan Yang [Mon, 20 Sep 2021 19:44:37 +0000 (20:44 +0100)]
opencc (1.1.3+ds1-3) unstable; urgency=medium

  * Refresh symbols again for all archs using buildd logs.

[dgit import unpatched opencc 1.1.3+ds1-3]

4 years agoImport opencc_1.1.3+ds1-3.debian.tar.xz
Boyuan Yang [Mon, 20 Sep 2021 19:44:37 +0000 (20:44 +0100)]
Import opencc_1.1.3+ds1-3.debian.tar.xz

[dgit import tarball opencc 1.1.3+ds1-3 opencc_1.1.3+ds1-3.debian.tar.xz]

4 years agoImport opencc_1.1.3+ds1.orig.tar.xz
Boyuan Yang [Sun, 19 Sep 2021 01:13:03 +0000 (02:13 +0100)]
Import opencc_1.1.3+ds1.orig.tar.xz

[dgit import orig opencc_1.1.3+ds1.orig.tar.xz]

4 years agoMerge version 1.1.1+git20200624+ds2-5+rpi1 and 1.1.1+git20200624+ds2-10 to produce... bullseye-staging archive/raspbian/1.1.1+git20200624+ds2-10+rpi1 raspbian/1.1.1+git20200624+ds2-10+rpi1
Raspbian automatic forward porter [Tue, 16 Mar 2021 18:19:50 +0000 (18:19 +0000)]
Merge version 1.1.1+git20200624+ds2-5+rpi1 and 1.1.1+git20200624+ds2-10 to produce 1.1.1+git20200624+ds2-10+rpi1

4 years agoMerge opencc (1.1.1+git20200624+ds2-10) import into refs/heads/workingbranch
Shengjing Zhu [Sun, 7 Mar 2021 06:20:40 +0000 (06:20 +0000)]
Merge opencc (1.1.1+git20200624+ds2-10) import into refs/heads/workingbranch

4 years agoFix a severe performance bug in `Conversion::Convert` that caused O(N^2) complexity.
Carbo Kuo [Thu, 25 Feb 2021 12:13:38 +0000 (21:13 +0900)]
Fix a severe performance bug in `Conversion::Convert` that caused O(N^2) complexity.

In `Conversion.cpp`, line 27:
```
    Optional<const DictEntry*> matched = dict->MatchPrefix(pstr);
```
pstr is a `const char*`. However, there is no overloaded function which parameter `const char*`.
Therefore it matches `Optional<const DictEntry*> MatchPrefix(const std::string& word) const`.
There is an implicit type conversion from `char*` to `std::string` with time complexity O(N).

I added new benchmark tests. Before the fix:

1: ------------------------------------------------------------------
1: Benchmark                        Time             CPU   Iterations
1: ------------------------------------------------------------------
1: BM_Initialization/hk2s        1.17 ms         1.12 ms          645
1: BM_Initialization/hk2t       0.116 ms        0.116 ms         5922
1: BM_Initialization/jp2t       0.206 ms        0.201 ms         3500
1: BM_Initialization/s2hk        18.2 ms         17.9 ms           40
1: BM_Initialization/s2t         18.2 ms         18.1 ms           39
1: BM_Initialization/s2tw        17.9 ms         17.8 ms           39
1: BM_Initialization/s2twp       18.6 ms         18.4 ms           39
1: BM_Initialization/t2hk       0.055 ms        0.054 ms        12907
1: BM_Initialization/t2jp       0.120 ms        0.117 ms         5978
1: BM_Initialization/t2s        0.988 ms        0.984 ms          710
1: BM_Initialization/tw2s        1.08 ms         1.05 ms          672
1: BM_Initialization/tw2sp       1.26 ms         1.24 ms          563
1: BM_Initialization/tw2t       0.088 ms        0.083 ms         8528
1: BM_Convert2M                   413 ms          413 ms            2
1: BM_Convert/100                1.09 ms         1.09 ms          629
1: BM_Convert/1000               33.2 ms         33.2 ms           21
1: BM_Convert/10000              2822 ms         2822 ms            1
1: BM_Convert/100000 (took longer than 5 minutes, killed)

Now:
1: ------------------------------------------------------------------
1: Benchmark                        Time             CPU   Iterations
1: ------------------------------------------------------------------
1: BM_Initialization/hk2s        1.07 ms         1.07 ms          650
1: BM_Initialization/hk2t       0.114 ms        0.114 ms         6092
1: BM_Initialization/jp2t       0.204 ms        0.200 ms         3503
1: BM_Initialization/s2hk        18.2 ms         18.0 ms           40
1: BM_Initialization/s2t         17.6 ms         17.6 ms           39
1: BM_Initialization/s2tw        18.0 ms         17.9 ms           40
1: BM_Initialization/s2twp       17.9 ms         17.9 ms           39
1: BM_Initialization/t2hk       0.055 ms        0.055 ms        12855
1: BM_Initialization/t2jp       0.125 ms        0.124 ms         5772
1: BM_Initialization/t2s        1.000 ms        0.989 ms          695
1: BM_Initialization/tw2s        1.09 ms         1.07 ms          668
1: BM_Initialization/tw2sp       1.29 ms         1.26 ms          558
1: BM_Initialization/tw2t       0.082 ms        0.082 ms         8558
1: BM_Convert2M                   361 ms          361 ms            2
1: BM_Convert/100               0.741 ms        0.740 ms          948
1: BM_Convert/1000               7.54 ms         7.52 ms           94
1: BM_Convert/10000              76.3 ms         76.3 ms            9
1: BM_Convert/100000              786 ms          786 ms            1

This bug was reported in https://github.com/BYVoid/OpenCC/issues/478 and https://github.com/BYVoid/OpenCC/issues/517.

Gbp-Pq: Name 0007-Fix-a-severe-performance-bug-in-Conversion-Convert-t.patch

4 years agoFix a bug in the calculation of DictGroup::keyMaxLength.
Carbo Kuo [Thu, 25 Feb 2021 11:48:50 +0000 (20:48 +0900)]
Fix a bug in the calculation of DictGroup::keyMaxLength.

The length should be the maximum of all sub-dictionaries in the dictionary group.

Gbp-Pq: Name 0006-Fix-a-bug-in-the-calculation-of-DictGroup-keyMaxLeng.patch

4 years agoUse system googletest
Shengjing Zhu [Sat, 6 Mar 2021 09:53:25 +0000 (17:53 +0800)]
Use system googletest

Forwarded: not-needed

Gbp-Pq: Name 0005-Use-system-googletest.patch

4 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sat, 6 Mar 2021 09:45:20 +0000 (17:45 +0800)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-01-14

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name 0004-no-remote-images-when-reading-docs-on-disk.patch

4 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

4 years agouse-system-libraries
Boyuan Yang [Sat, 23 May 2020 15:11:46 +0000 (11:11 -0400)]
use-system-libraries

Gbp-Pq: Name 0002-use-system-libraries.patch

4 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

===================================================================

Gbp-Pq: Name 0001-use-cmake-install-libdir.patch

4 years agoopencc (1.1.1+git20200624+ds2-10) unstable; urgency=medium
Shengjing Zhu [Sun, 7 Mar 2021 06:20:40 +0000 (06:20 +0000)]
opencc (1.1.1+git20200624+ds2-10) unstable; urgency=medium

  * Team upload.
  * Upload to unstable.
  * Backport patch to fix performance regression again.
    Add
    + 0006-Fix-a-bug-in-the-calculation-of-DictGroup-keyMaxLeng.patch
    + 0007-Fix-a-severe-performance-bug-in-Conversion-Convert-t.patch

[dgit import unpatched opencc 1.1.1+git20200624+ds2-10]

4 years agoImport opencc_1.1.1+git20200624+ds2-10.debian.tar.xz
Shengjing Zhu [Sun, 7 Mar 2021 06:20:40 +0000 (06:20 +0000)]
Import opencc_1.1.1+git20200624+ds2-10.debian.tar.xz

[dgit import tarball opencc 1.1.1+git20200624+ds2-10 opencc_1.1.1+git20200624+ds2-10.debian.tar.xz]

4 years agoMerge version 1.1.1+git20200624+ds2-4+rpi1 and 1.1.1+git20200624+ds2-5 to produce... archive/raspbian/1.1.1+git20200624+ds2-5+rpi1 raspbian/1.1.1+git20200624+ds2-5+rpi1
Raspbian automatic forward porter [Thu, 11 Feb 2021 23:49:57 +0000 (23:49 +0000)]
Merge version 1.1.1+git20200624+ds2-4+rpi1 and 1.1.1+git20200624+ds2-5 to produce 1.1.1+git20200624+ds2-5+rpi1

4 years agoMerge opencc (1.1.1+git20200624+ds2-5) import into refs/heads/workingbranch
Boyuan Yang [Tue, 2 Feb 2021 16:58:39 +0000 (16:58 +0000)]
Merge opencc (1.1.1+git20200624+ds2-5) import into refs/heads/workingbranch

4 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Tue, 2 Feb 2021 16:58:39 +0000 (16:58 +0000)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-01-14

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name no-remote-images-when-reading-docs-on-disk.patch

4 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

4 years agouse-system-libraries
Boyuan Yang [Sat, 23 May 2020 15:11:46 +0000 (11:11 -0400)]
use-system-libraries

Gbp-Pq: Name 0003-use-system-libraries.patch

4 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

===================================================================

Gbp-Pq: Name use-cmake-install-libdir.patch

4 years agoopencc (1.1.1+git20200624+ds2-5) unstable; urgency=medium
Boyuan Yang [Tue, 2 Feb 2021 16:58:39 +0000 (16:58 +0000)]
opencc (1.1.1+git20200624+ds2-5) unstable; urgency=medium

  * Team upload.
  * debian/rules: Rewrite to support <!nodoc> build profile.
  * debian/rules: Enable dh_doxygen when building docs.
  * Drop unnecessary build dependencies. (Closes: #981606)
  * debian/control: Mark build-dependency doxygen as <!nodoc>.
  * debian/control: Drop build-dependency on libjs-jquery. Let
    doxygen handle it.
  * debian/control: Drop build-dependency on graphviz. Doxyfile
    did not enable HAVE_DOT.
  * debian/control: Drop build-dependency on dartz. Currently opencc
    uses its vendored copy.

[dgit import unpatched opencc 1.1.1+git20200624+ds2-5]

4 years agoImport opencc_1.1.1+git20200624+ds2-5.debian.tar.xz
Boyuan Yang [Tue, 2 Feb 2021 16:58:39 +0000 (16:58 +0000)]
Import opencc_1.1.1+git20200624+ds2-5.debian.tar.xz

[dgit import tarball opencc 1.1.1+git20200624+ds2-5 opencc_1.1.1+git20200624+ds2-5.debian.tar.xz]

4 years agoMerge opencc (1.1.1+git20200624+ds2-4+rpi1) import into refs/heads/workingbranch
Peter Michael Green [Thu, 28 Jan 2021 14:32:01 +0000 (14:32 +0000)]
Merge opencc (1.1.1+git20200624+ds2-4+rpi1) import into refs/heads/workingbranch

4 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Thu, 28 Jan 2021 14:32:01 +0000 (14:32 +0000)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-01-14

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name no-remote-images-when-reading-docs-on-disk.patch

4 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

4 years agouse-system-libraries
Boyuan Yang [Sat, 23 May 2020 15:11:46 +0000 (11:11 -0400)]
use-system-libraries

Gbp-Pq: Name 0003-use-system-libraries.patch

4 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

===================================================================

Gbp-Pq: Name use-cmake-install-libdir.patch

4 years agoopencc (1.1.1+git20200624+ds2-4+rpi1) bullseye-staging; urgency=medium
Peter Michael Green [Thu, 28 Jan 2021 14:32:01 +0000 (14:32 +0000)]
opencc (1.1.1+git20200624+ds2-4+rpi1) bullseye-staging; urgency=medium

  * Update symbols file for raspbian.

[dgit import unpatched opencc 1.1.1+git20200624+ds2-4+rpi1]

4 years agoImport opencc_1.1.1+git20200624+ds2-4+rpi1.debian.tar.xz
Peter Michael Green [Thu, 28 Jan 2021 14:32:01 +0000 (14:32 +0000)]
Import opencc_1.1.1+git20200624+ds2-4+rpi1.debian.tar.xz

[dgit import tarball opencc 1.1.1+git20200624+ds2-4+rpi1 opencc_1.1.1+git20200624+ds2-4+rpi1.debian.tar.xz]

4 years agoMerge opencc (1.1.1+git20200624+ds2-4) import into refs/heads/workingbranch
Boyuan Yang [Sun, 17 Jan 2021 22:52:00 +0000 (22:52 +0000)]
Merge opencc (1.1.1+git20200624+ds2-4) import into refs/heads/workingbranch

4 years agoDon't fetch remote images when reading docs on disk
Gunnar Hjalmarsson [Sun, 17 Jan 2021 22:52:00 +0000 (22:52 +0000)]
Don't fetch remote images when reading docs on disk

Forwarded: no
Last-Update: 2021-01-14

This fixes a privacy breach previously reported as Lintian warnings

Gbp-Pq: Name no-remote-images-when-reading-docs-on-disk.patch

4 years agodata/: Explicitly use python3
Boyuan Yang [Fri, 26 Jun 2020 00:32:44 +0000 (20:32 -0400)]
data/: Explicitly use python3

Before "python" is default to python3, this patch should be kept.

Last-Update: 2020-06-25

Gbp-Pq: Name 0003-data-Explicitly-use-python3.patch

4 years agouse-system-libraries
Boyuan Yang [Sat, 23 May 2020 15:11:46 +0000 (11:11 -0400)]
use-system-libraries

Gbp-Pq: Name 0003-use-system-libraries.patch

4 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

===================================================================

Gbp-Pq: Name use-cmake-install-libdir.patch

4 years agoopencc (1.1.1+git20200624+ds2-4) unstable; urgency=medium
Boyuan Yang [Sun, 17 Jan 2021 22:52:00 +0000 (22:52 +0000)]
opencc (1.1.1+git20200624+ds2-4) unstable; urgency=medium

  * Build-depends on pkg-kde-tools to handle symbols.
  * debian/libopencc1.1.symbols: Refresh symbols using Debian
    buildd logs.

[dgit import unpatched opencc 1.1.1+git20200624+ds2-4]

4 years agoImport opencc_1.1.1+git20200624+ds2-4.debian.tar.xz
Boyuan Yang [Sun, 17 Jan 2021 22:52:00 +0000 (22:52 +0000)]
Import opencc_1.1.1+git20200624+ds2-4.debian.tar.xz

[dgit import tarball opencc 1.1.1+git20200624+ds2-4 opencc_1.1.1+git20200624+ds2-4.debian.tar.xz]

5 years agoImport opencc_1.1.1+git20200624+ds2.orig.tar.gz
Boyuan Yang [Fri, 26 Jun 2020 00:34:50 +0000 (01:34 +0100)]
Import opencc_1.1.1+git20200624+ds2.orig.tar.gz

[dgit import orig opencc_1.1.1+git20200624+ds2.orig.tar.gz]

7 years agoMerge opencc (1.0.5-2) import into refs/heads/workingbranch
Boyuan Yang [Thu, 20 Sep 2018 19:07:38 +0000 (20:07 +0100)]
Merge opencc (1.0.5-2) import into refs/heads/workingbranch

7 years agouse-cmake-install-libdir
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-cmake-install-libdir

===================================================================

Gbp-Pq: Name use-cmake-install-libdir.patch

7 years agouse-system-libraries
IME Packaging Team [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
use-system-libraries

===================================================================

Gbp-Pq: Name use-system-libraries.patch

7 years agomake sure library name matches soname
Aron Xu [Mon, 9 Oct 2017 14:02:39 +0000 (22:02 +0800)]
make sure library name matches soname

===================================================================

Gbp-Pq: Name lib-name-match-soversion.patch

7 years agoopencc (1.0.5-2) unstable; urgency=medium
Boyuan Yang [Thu, 20 Sep 2018 19:07:38 +0000 (20:07 +0100)]
opencc (1.0.5-2) unstable; urgency=medium

  * Team upload.
  * Rebuild against gcc 8.
  * debian/control:
    + Update uploaders email address and use the @debian.org one.
    + Bump Standards-Version to 4.2.1 (no changes needed).
  * debian/rules: Avoid explicit invocation to dpkg-architecture.

[dgit import unpatched opencc 1.0.5-2]

7 years agoImport opencc_1.0.5-2.debian.tar.xz
Boyuan Yang [Thu, 20 Sep 2018 19:07:38 +0000 (20:07 +0100)]
Import opencc_1.0.5-2.debian.tar.xz

[dgit import tarball opencc 1.0.5-2 opencc_1.0.5-2.debian.tar.xz]