Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Pyphen for openSUSE:Leap:16.0 checked in at 2025-07-24 08:31:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:16.0/python-Pyphen (Old) and /work/SRC/openSUSE:Leap:16.0/.python-Pyphen.new.8875 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Pyphen" Thu Jul 24 08:31:09 2025 rev:2 rq:1293727 version:0.17.2 Changes: -------- --- /work/SRC/openSUSE:Leap:16.0/python-Pyphen/python-Pyphen.changes 2025-03-19 11:55:21.427444536 +0100 +++ /work/SRC/openSUSE:Leap:16.0/.python-Pyphen.new.8875/python-Pyphen.changes 2025-07-24 08:31:30.039052915 +0200 @@ -1,0 +2,10 @@ +Thu Feb 6 11:47:50 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 0.17.2 + * Fix Oriya dictionary name. + * Update documentation. +- from version 0.17.1 + * Update Mongolian dictionary. + * Add Assamese, Kannada, Sanskrit, Punjabi, Oriya, Marathi dictionaries. + +------------------------------------------------------------------- Old: ---- 0.17.0.tar.gz New: ---- 0.17.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Pyphen.spec ++++++ --- /var/tmp/diff_new_pack.hz04Cj/_old 2025-07-24 08:31:30.315064390 +0200 +++ /var/tmp/diff_new_pack.hz04Cj/_new 2025-07-24 08:31:30.315064390 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Pyphen # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-Pyphen -Version: 0.17.0 +Version: 0.17.2 Release: 0 Summary: Pure Python module to hyphenate text License: GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1 ++++++ 0.17.0.tar.gz -> 0.17.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/README.rst new/Pyphen-0.17.2/README.rst --- old/Pyphen-0.17.0/README.rst 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/README.rst 2025-01-20 14:18:00.000000000 +0100 @@ -3,7 +3,7 @@ This module is a fork of python-hyphenator, written by Wilbert Berendsen. -Many dictionaries are included in pyphen, they come from the LibreOffice git +Many dictionaries are included in Pyphen, they come from the LibreOffice git repository and are distributed under GPL, LGPL and/or MPL. Dictionaries are not modified in this repository. See the dictionaries and LibreOffice's repository for more details. @@ -26,5 +26,5 @@ Copyrights are retained by their contributors, no copyright assignment is required to contribute to Pyphen. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion is licensed under -GPL 2.0+/LGPL 2.1+/MPL 1.1, without any additional terms or conditions. For +GPL 2.0+/LGPL 2.1+/MPL 1.1, without any additional terms or conditions. For full authorship information, see the version control history. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/docs/changelog.rst new/Pyphen-0.17.2/docs/changelog.rst --- old/Pyphen-0.17.0/docs/changelog.rst 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/docs/changelog.rst 2025-01-20 14:18:00.000000000 +0100 @@ -2,6 +2,24 @@ ========= +Version 0.17.2 +-------------- + +Released on 2025-01-20. + +* Fix Oriya dictionary name. +* Update documentation. + + +Version 0.17.1 +-------------- + +Released on 2025-01-20. + +* Update Mongolian dictionary. +* Add Assamese, Kannada, Sanskrit, Punjabi, Oriya, Marathi dictionaries. + + Version 0.17.0 -------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/docs/common_use_cases.rst new/Pyphen-0.17.2/docs/common_use_cases.rst --- old/Pyphen-0.17.0/docs/common_use_cases.rst 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/docs/common_use_cases.rst 2025-01-20 14:18:00.000000000 +0100 @@ -1,7 +1,7 @@ Common Use Cases ================ -pyphen has been created for WeasyPrint and many common use cases can thus be +Pyphen has been created for WeasyPrint and many common use cases can thus be found in `its repository`_. .. _its repository: https://github.com/Kozea/WeasyPrint diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/docs/contribute.rst new/Pyphen-0.17.2/docs/contribute.rst --- old/Pyphen-0.17.0/docs/contribute.rst 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/docs/contribute.rst 2025-01-20 14:18:00.000000000 +0100 @@ -1,12 +1,12 @@ Contribute ========== -You want to add some code to pyphen, launch its tests or improve its +You want to add some code to Pyphen, launch its tests or improve its documentation? Thank you very much! Here are some tips to help you play with -pyphen in good conditions. +Pyphen in good conditions. The first step is to clone the repository, create a virtual environment and -install pyphen dependencies. +install Pyphen dependencies. .. code-block:: shell @@ -25,7 +25,7 @@ Code & Issues ------------- -If you’ve found a bug in pyphen, it’s time to report it, and to fix it if you +If you’ve found a bug in Pyphen, it’s time to report it, and to fix it if you can! You can report bugs and feature requests on GitHub_. If you want to add or diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/docs/first_steps.rst new/Pyphen-0.17.2/docs/first_steps.rst --- old/Pyphen-0.17.0/docs/first_steps.rst 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/docs/first_steps.rst 2025-01-20 14:18:00.000000000 +0100 @@ -5,9 +5,9 @@ Installation ------------ -The easiest way to use pyphen is to install it in a Python `virtual +The easiest way to use Pyphen is to install it in a Python `virtual environment`_. When your virtual environment is activated, you can then install -pyphen with pip_:: +Pyphen with pip_:: pip install pyphen @@ -32,6 +32,8 @@ * Afrikaans * Albanian +* Assamese +* Basque * Belarusian * Bulgarian * Catalan @@ -39,7 +41,7 @@ * Czech * Danish * Dutch -* English (Great-Britain and United-States) +* English (United Kingdom and United States) * Esperanto * Estonian * French @@ -50,15 +52,20 @@ * Icelandic * Indonesian * Italian +* Kannada * Lithuanian * Latvian +* Marathi * Mongolian * Norwegian (Bokmål and Nynorsk) +* Oriya * Polish * Portuguese (Brazil and Portugal) +* Punjabi * Romanian * Russian -* Serbian (cyrillic and latin) +* Sanskrit +* Serbian (Cyrillic and Latin) * Slovak * Slovenian * Spanish diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/docs/going_further.rst new/Pyphen-0.17.2/docs/going_further.rst --- old/Pyphen-0.17.0/docs/going_further.rst 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/docs/going_further.rst 2025-01-20 14:18:00.000000000 +0100 @@ -2,14 +2,14 @@ ============= -Why pyphen? +Why Pyphen? ----------- -pyphen has been created to handle hyphenation in WeasyPrint_. +Pyphen has been created to handle hyphenation in WeasyPrint_. We wanted to provide a simple Python API and to include hyphenation dictionaries. So we forked the discontinued python-hyphenator module, written -by Wilbert Berendsen, and released pyphen. +by Wilbert Berendsen, and released Pyphen. .. _WeasyPrint: https://www.courtbouillon.org/weasyprint @@ -23,6 +23,6 @@ And of course, WeasyPrint is written in Python too, giving an obvious reason for this choice. -Speed is not pyphen’s main goal. Code simplicity, maintainability and +Speed is not Pyphen’s main goal. Code simplicity, maintainability and flexibility are more important goals for this library, as they give the ability to stay really close to the specification and to fix bugs easily. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/docs/support.rst new/Pyphen-0.17.2/docs/support.rst --- old/Pyphen-0.17.0/docs/support.rst 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/docs/support.rst 2025-01-20 14:18:00.000000000 +0100 @@ -12,7 +12,7 @@ .. _donations and sponsorship: https://opencollective.com/courtbouillon -Professionnal Support +Professional Support --------------------- You can improve your experience with CourtBouillon’s tools thanks to our diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/__init__.py new/Pyphen-0.17.2/pyphen/__init__.py --- old/Pyphen-0.17.0/pyphen/__init__.py 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/__init__.py 2025-01-20 14:18:00.000000000 +0100 @@ -11,9 +11,9 @@ from importlib import resources from pathlib import Path -VERSION = __version__ = '0.17.0' +VERSION = __version__ = '0.17.2' -__all__ = ('Pyphen', 'LANGUAGES', 'language_fallback') +__all__ = ('LANGUAGES', 'Pyphen', 'language_fallback') # cache of per-file HyphDict objects hdcache = {} @@ -208,20 +208,18 @@ def __init__(self, filename=None, lang=None, left=2, right=2, cache=True): """Create an hyphenation instance for given lang or filename. - :param filename: filename of hyph_*.dic to read + :param filename: filename or Path of hyph_*.dic to read :param lang: lang of the included dict to use if no filename is given :param left: minimum number of characters of the first syllabe :param right: minimum number of characters of the last syllabe :param cache: if ``True``, use cached copy of the hyphenation patterns """ - if not filename: - filename = LANGUAGES[language_fallback(lang)] - self.left = left - self.right = right - if not cache or filename not in hdcache: - hdcache[filename] = HyphDict(filename) - self.hd = hdcache[filename] + self.left, self.right = left, right + path = Path(filename) if filename else LANGUAGES[language_fallback(lang)] + if not cache or path not in hdcache: + hdcache[path] = HyphDict(path) + self.hd = hdcache[path] def positions(self, word): """Get a list of positions where the word can be hyphenated. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/dictionaries/hyph_as_IN.dic new/Pyphen-0.17.2/pyphen/dictionaries/hyph_as_IN.dic --- old/Pyphen-0.17.0/pyphen/dictionaries/hyph_as_IN.dic 1970-01-01 01:00:00.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/dictionaries/hyph_as_IN.dic 2025-01-20 14:18:00.000000000 +0100 @@ -0,0 +1,100 @@ +UTF-8 +% Hyphenation for Assamese +% Copyright (C) 2008-2010 Santhosh Thottingal <santhosh.thottin...@gmail.com> +% +% This library is free software; you can redistribute it and/or +% modify it under the terms of the GNU Lesser General Public +% License as published by the Free Software Foundation; +% version 3 or later version of the License. +% +% This library is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +% Lesser General Public License for more details. +% +% You should have received a copy of the GNU Lesser General Public +% License along with this library; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +% +% GENERAL RULE +% Do not break either side of ZERO-WIDTH JOINER (U+200D) +22 +% Break on both sides of ZERO-WIDTH NON JOINER (U+200C) +11 +% Break before or after any independent vowel. +অ1 +আ1 +ই1 +ঈ1 +উ1 +ঊ1 +ঋ1 +ৠ1 +ঌ1 +ৡ1 +এ1 +ঐ1 +ও1 +ঔ1 +% Break after any dependent vowel, but not before. +া1 +ি1 +ী1 +ু1 +ূ1 +ৃ1 +ৄ1 +ৢ1 +ৣ1 +ে1 +ৈ1 +ো1 +ৌ1 +2়2 +ৗ1 +% Break before or after any consonant. +1ক +1খ +1গ +1ঘ +1ঙ +1চ +1ছ +1জ +1ঝ +1ঞ +1ট +1ঠ +1ড +1ড় +1ঢ +1ঢ় +1ণ +1ত +1থ +1দ +1ধ +1ন +1প +1ফ +1ব +1ভ +1ম +1য +1য় +1র +1ল +1শ +1ষ +1স +1হ +% Do not break after khanda ta. +ৎ1 +% Do not break before chandrabindu, anusvara, visarga, avagraha, +% nukta and au length mark. +2ঃ1 +2ং1 +2ঁ1 +2ঽ1 +% Do not break either side of virama (may be within conjunct). +2্2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/dictionaries/hyph_kn_IN.dic new/Pyphen-0.17.2/pyphen/dictionaries/hyph_kn_IN.dic --- old/Pyphen-0.17.0/pyphen/dictionaries/hyph_kn_IN.dic 1970-01-01 01:00:00.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/dictionaries/hyph_kn_IN.dic 2025-01-20 14:18:00.000000000 +0100 @@ -0,0 +1,100 @@ +UTF-8 +% Hyphenation for Kannada +% Copyright (C) 2008-2009 Santhosh Thottingal <santhosh.thottin...@gmail.com> +% +% This library is free software; you can redistribute it and/or +% modify it under the terms of the GNU General Public +% License as published by the Free Software Foundation; +% version 3 or later version of the License. +% +% This library is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +% Lesser General Public License for more details. +% +% You should have received a copy of the GNU General Public +% License along with this library; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +% +% GENERAL RULE +% Do not break either side of ZERO-WIDTH JOINER (U+200D) +22 +% Break on both sides of ZERO-WIDTH NON JOINER (U+200C) +11 +% Break before or after any independent vowel. +ಅ1 +ಆ1 +ಇ1 +ಈ1 +ಉ1 +ಊ1 +ಋ1 +ೠ1 +ಌ1 +ೡ1 +ಎ1 +ಏ1 +ಐ1 +ಒ1 +ಓ1 +ಔ1 +% Break after any dependent vowel, but not before. +ಾ1 +ಿ1 +ೀ1 +ು1 +ೂ1 +ೃ1 +ೄ1 +ೆ1 +ೇ1 +ೈ1 +ೊ1 +ೋ1 +ೌ1 +% Break before or after any consonant. +1ಕ +1ಖ +1ಗ +1ಘ +1ಙ +1ಚ +1ಛ +1ಜ +1ಝ +1ಞ +1ಟ +1ಠ +1ಡ +1ಢ +1ಣ +1ತ +1ಥ +1ದ +1ಧ +1ನ +1ಪ +1ಫ +1ಬ +1ಭ +1ಮ +1ಯ +1ರ +1ಱ +1ಲ +1ಳ +1ೞ +1ವ +1ಶ +1ಷ +1ಸ +1ಹ +% Do not break before anusvara, visarga, avagraha, +% length mark and ai length mark. +2ಂ1 +2ಃ1 +2ಽ1 +2ೕ1 +2ೖ1 +% Do not break either side of virama (may be within conjunct). +2್2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/dictionaries/hyph_mn_MN.dic new/Pyphen-0.17.2/pyphen/dictionaries/hyph_mn_MN.dic --- old/Pyphen-0.17.0/pyphen/dictionaries/hyph_mn_MN.dic 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/dictionaries/hyph_mn_MN.dic 2025-01-20 14:18:00.000000000 +0100 @@ -1,8 +1,8 @@ UTF-8 -## This file is a part of dict-mn package and -## originally from mnhyphn.tex v1.3 2009/03/14 -## Copyright 2007-2009 by Batmunkh Dorjgotov -## email bataak at gmail.com +# This file is a part of dict-mn package and +# originally from mnhyphn.tex v1.3 2009/03/14 +# Copyright 2007-2009 by Batmunkh Dorjgotov +# email bataak at gmail.com # # This work may be distributed and/or modified under the # conditions of the LaTeX Project Public License, either version 1.3 @@ -899,65 +899,53 @@ 1ще 1щи 1щу -2а1я 2аа -2б3ю4у -2б3ю4ү -2в3ю4у -2в3ю4ү -2г3ю4у -2г3ю4ү -2д3ю4у -2д3ю4ү -2ж3ю4у -2ж3ю4ү -2з3ю4у -2з3ю4ү -2и1е -2й1е -2й1ё -2й1ю -2й1я -2л3ю4у -2л3ю4ү -2м3ю4у -2м3ю4ү -2н3ю4у -2н3ю4ү -2о1е -2о1ё -2о1я +2б3юу +2б3юү +2в3юу +2в3юү +2г3юу +2г3юү +2д3юу +2д3юү +2ж3юу +2ж3юү +2з3юу +2з3юү +2л3юу +2л3юү +2м3юу +2м3юү +2н3юу +2н3юү 2оо -2ө1е 2өө -2п3ю4у -2п3ю4ү -2р3ю4у -2р3ю4ү -2с3ю4у -2с3ю4ү -2т3ю4у -2т3ю4ү -2у1я -2у3ю +2п3юу +2п3юү +2р3юу +2р3юү +2с3юу +2с3юү +2т3юу +2т3юү 2уу 2үү -2х3ю4у -2х3ю4ү -2ц3ю4у -2ц3ю4ү -2ч3ю4у -2ч3ю4ү -2ш3ю4у -2ш3ю4ү -2ъ3е -2ъ3ё -2ъ3ю -2ъ3я -2ь3е -2ь3ё -2ь3я -2э3е +2х3юу +2х3юү +2ц3юу +2ц3юү +2ч3юу +2ч3юү +2ш3юу +2ш3юү +2ъ3еэ +2ъ3ёо +2ъ3юу +2ъ3яа +2ь3еэ +2ь3ёо +2ь3яа +2э3еэ 2ээ 2ю3а 2ю3и @@ -1008,3 +996,9 @@ 3э4нерг 3э4нтро 3эффе +3еэ +3еө +3юу +3юү +3яа +3ёо \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/dictionaries/hyph_mr_IN.dic new/Pyphen-0.17.2/pyphen/dictionaries/hyph_mr_IN.dic --- old/Pyphen-0.17.0/pyphen/dictionaries/hyph_mr_IN.dic 1970-01-01 01:00:00.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/dictionaries/hyph_mr_IN.dic 2025-01-20 14:18:00.000000000 +0100 @@ -0,0 +1,199 @@ +UTF-8 +LEFTHYPHENMIN 3 +RIGHTHYPHENMIN 4 +COMPOUNDLEFTHYPHENMIN 2 +COMPOUNDRIGHTHYPHENMIN 3 + +% GENERAL RULE +% Do not break either side of ZERO-WIDTH JOINER (U+200D) +22 +% Break after ZERO-WIDTH NON JOINER (U+200C) +1 +% Break before or after any independent vowel. +1अ1 +1आ1 +1इ1 +1ई1 +1उ1 +1ऊ1 +1ऋ1 +1ॠ1 +1ऌ1 +1ॡ1 +1ए1 +1ऐ1 +1ओ1 +1औ1 +% Break after any dependent vowel but not before. +ा1 +ि1 +ी1 +ु1 +ू1 +ृ1 +ॄ1 +ॢ1 +ॣ1 +े1 +ै1 +ो1 +ौ1 +% Break before or after any consonant. +1क +1ख +1ग +1घ +1ङ +1च +1छ +1ज +1झ +1ञ +1ट +1ठ +1ड +1ढ +1ण +1त +1थ +1द +1ध +1न +1प +1फ +1ब +1भ +1म +1य +1र +1ल +1ळ +1व +1श +1ष +1स +1ह +% Do not break before chandrabindu, anusvara, visarga, avagraha +% and accents. +2ँ +2ं +2ः +2ऽ +2॑ +2॒ +% Do not break either side of virama (may be within conjunct). +2्2 +% do not break before +1अर्थ +1अंती +1आतून +1आधी +1उप +1ऐवजी +1कड +1कडून +1कडे +1करिता +1करून +1खाल +1खाली +1खालून +1खेरीज +1जवळ +1णार +1णारा +1णारी +1णारे +1णाऱ्या +1णाऱ्यां +1तात +1ताना +1तास +1तील +1तीस +1तेस +1तोस +1नजीक +1नंतर +1पर्यंत +1पाशी +1पासून +1पुढ +1पुढून +1पुढे +1पूर्वी +1पेक्षा +1पैकी +1पोटी +1प्रत +1प्रती +1प्रधान +1प्रमाणे +1बदली +1बद्दल +1बरोबर +1भोवती +1मधून +1मध्ये +1महा +1माग +1मागून +1मागे +1मुख्य +1मुळे +1योग्य +1लय +1लस +1लात +1लाय +1लास +1लीत +1लीस +1लेत +1लेला +1लेली +1लेले +1लेलो +1लेलं +1लेल्या +1लेल्यां +1लेस +1लंय +1लंस +1ल्याच +1ल्याचं +1ल्यात +1ल्यास +1वणे +1वतीने +1वर +1वरून +1वाचून +1वात +1वास +1विना +1विरुद्ध +1विषयी +1वीत +1वीस +1वेत +1वेस +1व्यात +1व्यास +1शिवाय +1शील +1सकट +1समवेत +1समान +1समोर +1सह +1सहित +1साठी +1सारखा +1सारखी +1सारखे +1सारखं +1सारख्या +1संबंधी +1हून + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/dictionaries/hyph_or_IN.dic new/Pyphen-0.17.2/pyphen/dictionaries/hyph_or_IN.dic --- old/Pyphen-0.17.0/pyphen/dictionaries/hyph_or_IN.dic 1970-01-01 01:00:00.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/dictionaries/hyph_or_IN.dic 2025-01-20 14:18:00.000000000 +0100 @@ -0,0 +1,91 @@ +UTF-8 +% Hyphenation for Oriya +% Copyright (C) 2008-2010 Santhosh Thottingal <santhosh.thottin...@gmail.com> +% +% This library is free software; you can redistribute it and/or +% modify it under the terms of the GNU Lesser General Public +% License as published by the Free Software Foundation; +% version 3 or later version of the License. +% +% This library is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +% Lesser General Public License for more details. +% +% You should have received a copy of the GNU Lesser General Public +% License along with this library; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +% +% GENERAL RULE +% Do not break either side of ZERO-WIDTH JOINER (U+200D) +22 +% Break on both sides of ZERO-WIDTH NON JOINER (U+200C) +11 +% Break before or after any independent vowel. +ଅ1 +ଆ1 +ଇ1 +ଈ1 +ଉ1 +ଊ1 +ଋ1 +ୠ1 +ଌ1 +ୡ1 +ଏ1 +ଐ1 +ଓ1 +ଔ1 +% Break after any dependent vowel, but not before. +ା1 +ି1 +ୀ1 +ୁ1 +ୂ1 +ୃ1 +େ1 +ୈ1 +ୋ1 +ୌ1 +% Break before or after any consonant. +1କ +1ଖ +1ଗ +1ଘ +1ଙ +1ଚ +1ଛ +1ଜ +1ଝ +1ଞ +1ଟ +1ଠ +1ଡ +1ଢ +1ଣ +1ତ +1ଥ +1ଦ +1ଧ +1ନ +1ପ +1ଫ +1ବ +1ଭ +1ମ +1ଯ +1ର +1ଲ +1ଳ +1ଵ +1ଶ +1ଷ +1ସ +1ହ +% Do not break before anusvara, visarga and length mark. +2ଂ1 +2ଃ1 +2ୗ1 +2ଁ1 +% Do not break either side of virama (may be within conjunct). +2୍2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/dictionaries/hyph_pa_IN.dic new/Pyphen-0.17.2/pyphen/dictionaries/hyph_pa_IN.dic --- old/Pyphen-0.17.0/pyphen/dictionaries/hyph_pa_IN.dic 1970-01-01 01:00:00.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/dictionaries/hyph_pa_IN.dic 2025-01-20 14:18:00.000000000 +0100 @@ -0,0 +1,87 @@ +UTF-8 +% Hyphenation for Panjabi +% Copyright (C) 2008-2010 Santhosh Thottingal <santhosh.thottin...@gmail.com> +% +% This library is free software; you can redistribute it and/or +% modify it under the terms of the GNU Lesser General Public +% License as published by the Free Software Foundation; +% version 3 or later version of the License. +% +% This library is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +% Lesser General Public License for more details. +% +% You should have received a copy of the GNU Lesser General Public +% License along with this library; if not, write to the Free Software +% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +% +% GENERAL RULE +% Do not break either side of ZERO-WIDTH JOINER (U+200D) +22 +% Break on both sides of ZERO-WIDTH NON JOINER (U+200C) +11 +% Break before or after any independent vowel. +ਅ1 +ਆ1 +ਇ1 +ਈ1 +ਉ1 +ਊ1 +ਏ1 +ਐ1 +ਓ1 +ਔ1 +% Break after any dependent vowel but not before. +ਾ1 +ਿ1 +ੀ1 +ੁ1 +ੂ1 +ੇ1 +ੈ1 +ੋ1 +ੌ1 +% Break before or after any consonant. +1ਕ +1ਖ +1ਗ +1ਘ +1ਙ +1ਚ +1ਛ +1ਜ +1ਝ +1ਞ +1ਟ +1ਠ +1ਡ +1ਢ +1ਣ +1ਤ +1ਥ +1ਦ +1ਧ +1ਨ +1ਪ +1ਫ +1ਬ +1ਭ +1ਮ +1ਯ +1ਰ +1ਲ +1ਲ਼ +1ਵ +1ਸ਼ +1ਸ +1ਹ +% Do not break before chandrabindu, anusvara, visarga, avagraha +% and accents. +2ਁ1 +2ਂ1 +2ਃ1 +% Do not break either side of virama (may be within conjunct). +2੍2 +2ੰ2 +2ੱ2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/pyphen/dictionaries/hyph_sa_IN.dic new/Pyphen-0.17.2/pyphen/dictionaries/hyph_sa_IN.dic --- old/Pyphen-0.17.0/pyphen/dictionaries/hyph_sa_IN.dic 1970-01-01 01:00:00.000000000 +0100 +++ new/Pyphen-0.17.2/pyphen/dictionaries/hyph_sa_IN.dic 2025-01-20 14:18:00.000000000 +0100 @@ -0,0 +1,116 @@ +UTF-8 +LEFTHYPHENMIN 3 +RIGHTHYPHENMIN 4 +COMPOUNDLEFTHYPHENMIN 2 +COMPOUNDRIGHTHYPHENMIN 3 + +% GENERAL RULE +% Do not break either side of ZERO-WIDTH JOINER (U+200D) +22 +% Break after ZERO-WIDTH NON JOINER (U+200C) +1 +% Break before or after any independent vowel. +1अ1 +1आ1 +1इ1 +1ई1 +1उ1 +1ऊ1 +1ऋ1 +1ॠ1 +1ऌ1 +1ॡ1 +1ए1 +1ऐ1 +1ओ1 +1औ1 +% Break after any dependent vowel but not before. +ा1 +ि1 +ी1 +ु1 +ू1 +ृ1 +ॄ1 +ॢ1 +ॣ1 +े1 +ै1 +ो1 +ौ1 +% Break before or after any consonant. +1क +1ख +1ग +1घ +1ङ +1च +1छ +1ज +1झ +1ञ +1ट +1ठ +1ड +1ढ +1ण +1त +1थ +1द +1ध +1न +1प +1फ +1ब +1भ +1म +1य +1र +1ल +1ळ +1व +1श +1ष +1स +1ह +% Do not break before chandrabindu, anusvara, visarga, avagraha +% and accents. +2ँ +2ं +2ः +2ऽ +2॑ +2॒ +% Do not break either side of virama (may be within conjunct). +2्2 +अति1 +अधि1 +अन1 +अनु1 +अन्1 +अप1 +अपि1 +अभि1 +अव1 +1इय +उद्1 +उप1 +1का +चिर्1 +1त्र +1त्व +दुर्1 +दुस्1 +नि1 +निर्1 +निस्1 +पर1 +परि1 +प्र1 +प्रति1 +1ली +1वत् +वि1 +सम्1 +सु1 + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pyphen-0.17.0/tests/test_pyphen.py new/Pyphen-0.17.2/tests/test_pyphen.py --- old/Pyphen-0.17.0/tests/test_pyphen.py 2024-10-29 12:00:44.000000000 +0100 +++ new/Pyphen-0.17.2/tests/test_pyphen.py 2025-01-20 14:18:00.000000000 +0100 @@ -8,6 +8,8 @@ """ +from pathlib import Path + import pyphen @@ -57,6 +59,20 @@ assert dic.inserted('autobandventieldopje') == 'au-to-band-ven-tiel-dop-je' +def test_dict_from_filename(): + """Test a dict open from filename.""" + dic_path = Path(__file__).parents[1] / 'pyphen' / 'dictionaries' / 'hyph_fr.dic' + dic = pyphen.Pyphen(filename=str(dic_path)) + assert dic.inserted('bonjour') == 'bon-jour' + + +def test_dict_from_path(): + """Test a dict open from path.""" + dic_path = Path(__file__).parents[1] / 'pyphen' / 'dictionaries' / 'hyph_fr.dic' + dic = pyphen.Pyphen(filename=dic_path) + assert dic.inserted('bonjour') == 'bon-jour' + + def test_left_right(): """Test the ``left`` and ``right`` parameters.""" dic = pyphen.Pyphen(lang='nl_NL')