Skip to main content

Hyphenate Finnish

By Pyry Kontio a.k.a Drasa (Drasa@IRCnet, pyry.kontio@drasa.eu)

A very simple hyphenator. Hypenates Finnish text with Unicode soft hyphens. (U+00AD) Allows to set margins for words so that they won’t break right at start or end. For example, it’d be a bit silly to break a word like ‘erikoinen’ at ‘e-rikoinen’. With default margin of 1, it breaks like ‘eri-koinen’. If a word contains taboo_characters, it won’t get hyphenated.

Usage: as standalone script:

hypenate_finnish.py 2 joo joo no testaillaan täs vaa

OR as a Python module:

from hyphenate_finnish import hyphenate hyphenate(“some text but <html> isn’t gonna get hyphenated!”, margin=1, taboo_chars=[‘<’, ‘>’])

It’s that simple. By the way, written with Py3k, but it seems to work with 2.7 too.

Metadata

Release files for hyphenate_finnish 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyphenate_finnish 1.0.2
File Size Uploaded Provenance
hyphenate_finnish-1.0.2.tar.gz 5.8 kB Without provenance Details

Release files / hyphenate_finnish-1.0.2.tar.gz

Download URL hyphenate_finnish-1.0.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
76fe348dd89f61e6392be1f7758c4148cb84c4c8674c73bfa1385d0ccd524c69
BLAKE2b-256 checksum
How to use checksums
30a1151e72e9b2a6ce42576b66431cd2aafc1872fc4cd200e42eb1264bae1b1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hyphenate_finnish 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page