You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyhyphen
Hi,
I am proud to announce the release of PyHyphen 4.0.0. which represents a
complete overhaul of the package.
Install it with
$ pip install pyhyphen
Feedback and bug reports welcome. - I could not test on MacOS. Don't
know why Github actions kept on complaining about seg faults.
Some changes will break code, e.g. textwrap2 is now a submodule of
hyphen. So imports will have to be changed.
This is a really big release. The entire code-base has been overhauled.
A cross-Py-version wheel for Windows and the use of
the excellent `requests`package for HTTP connections
are but some of the highlights.
Enjoy!
Leo
Changes:* `hyphen.Hyphenator`:
- support of hyphenation of upper-cased words as in version 2.x
- better error-handling
- human-friendly str representation of Hyphenator objects
* Builds:
- single-source package version (requires setuptools >= 47.0)
- CI: move to Github actions. Build ABI3-compatible wheel for Windows
* C extension:
- partial rewrite to support the limited API (PEP 384)
- multi-phase initialization of the module
- upgrade hyphen.c from hunspell
- clean-ups
* hyphen.dictools:
- use `requests` instead of urllib for HTTP connections
- make HTTP connections configurable through kwargs passed to
`requests.get`
- improve error-handling
- fix URL generation in some cases
- clean-ups
* make textwrap2 a submodule of hyphen
* remove wraptext script