15
0

- update to 0.3.0:

- Removes Python 3.8 support.
  - Fixes transcriptions for "you" and "yong".

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dragonmapper?expand=0&rev=10
This commit is contained in:
2024-12-13 10:13:50 +00:00
committed by Git OBS Bridge
commit a4c95f767d
8 changed files with 165 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,24 @@
From 3cdeea72d5e3e5983dcf1a4c9be7950b71dfcdde Mon Sep 17 00:00:00 2001
From: Connor Boyle <connor.bo@gmail.com>
Date: Tue, 31 Aug 2021 23:44:57 -0700
Subject: [PATCH] Fix Erroneous IPA for "you" and "yong"
---
dragonmapper/data/transcriptions.csv | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: dragonmapper-0.2.6/dragonmapper/data/transcriptions.csv
===================================================================
--- dragonmapper-0.2.6.orig/dragonmapper/data/transcriptions.csv
+++ dragonmapper-0.2.6/dragonmapper/data/transcriptions.csv
@@ -368,8 +368,8 @@ ye,ㄧㄝ,jɛ
yi,ㄧ,i
yin,ㄧㄣ,in
ying,ㄧㄥ,iŋ
-yong,ㄩㄥ,yʊŋ
-you,ㄧㄡ,yoʊ
+yong,ㄩㄥ,jʊŋ
+you,ㄧㄡ,joʊ
yu,ㄩ,y
yuan,ㄩㄢ,ɥœn
yue,ㄩㄝ,ɥœ

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77443bef7b31b00fed2861514ac59510bae87478237bab8bbe54aa1b79934f4a
size 1400854

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f1137034f94665d93ec58db869a6a560266e6245f06e738618e49d1d32a4a38a
size 1396019

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:669c04cbc83e64dc580c5c350d773efab7363c300c7934aec57cc35943f5b913
size 1396061

View File

@@ -0,0 +1,41 @@
-------------------------------------------------------------------
Fri Dec 13 10:10:25 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- update to 0.3.0:
- Removes Python 3.8 support.
- Fixes transcriptions for "you" and "yong".
-------------------------------------------------------------------
Sun Nov 10 22:06:57 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.2.7:
* Removes Python 3.7 support.
* Adds zhuyin for "dai". Fixes #22.
* Adds transcription for "yo". Fixes #26.
- drop 31-fix-erroneous-IPA-you-yong.patch (upstream)
-------------------------------------------------------------------
Thu Nov 23 15:17:48 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
- Add 31-fix-erroneous-IPA-you-yong.patch (gh#tsroten/dragonmapper#31)
- Skip failing tests (gh#tsroten/dragonmapper#35)
-------------------------------------------------------------------
Fri Apr 21 12:24:28 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:41:00 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Thu Dec 9 09:04:21 UTC 2021 - pgajdos@suse.com
- do not require pytest-runner for build, not required
-------------------------------------------------------------------
Tue Aug 27 06:38:17 PM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.2.6

67
python-dragonmapper.spec Normal file
View File

@@ -0,0 +1,67 @@
#
# spec file for package python-dragonmapper
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-dragonmapper
Version: 0.3.0
Release: 0
Summary: Identification and conversion functions for Chinese text processing
License: MIT
Group: Development/Languages/Python
URL: https://github.com/tsroten/dragonmapper
Source: https://github.com/tsroten/dragonmapper/archive/v%{version}.tar.gz#/dragonmapper-%{version}.tar.gz
BuildRequires: %{python_module base > 3.8}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-hanzidentifier >= 1.2.0
Requires: python-zhon >= 2.0.0
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module hanzidentifier >= 1.2.0}
BuildRequires: %{python_module zhon >= 2.0.0}
# /SECTION
%python_subpackages
%description
Identification and conversion functions for Chinese text processing.
%prep
%autosetup -p1 -n dragonmapper-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
%files %{python_files}
%doc AUTHORS.rst CHANGES.rst README.rst
%license LICENSE.txt
%{python_sitelib}/dragonmapper
%{python_sitelib}/dragonmapper-%{version}.dist-info
%changelog