Hyphenate Icelandic text.
Project description
skiptir
skiptir is a Python package to hyphenate Icelandic text.
Requires Python 3.9 or later.
Installation
You can install skiptir via pip:
pip install skiptir
Usage
from skiptir import hyphenate
hyphenate("Þetta er íslensk setning.", hyphen="-")
'Þetta er ís-lensk setn-ing.'
Command line tool usage:
skiptir [--mode MODE] [--hyphen HYPHEN]
The tool reads text from standard input and prints the hyphenated result to standard output, e.g.:
echo "Þetta er íslensk setning." | skiptir --hyphen "-"
Þetta er ís-lensk setn-ing.
MODE is pattern by default, which means using Pyphen
with the latest Icelandic hyphenation patterns.
Other modes are not supported yet.
HYPHEN refers to a custom hyphenation character, e.g. · or -.
By default, skiptir uses the invisible soft hyphen character (U+00AD).
Version History
- 1.0.0 (2026-01-07): Initial package release.
License
(c) Copyright 2026 Sveinbjörn Þórðarson
(c) Copyright 2020 Kristján Rúnarsson
The program files are licensed under the Apache License, Version 2.0 (the "License"); you may not use the files except in compliance with the License or with another license under which they are also licensed according to this file or another written declaration by the author. You may obtain a copy of the License here.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Acknowledgements
The basic funcionality in this package is based on work by Kristján Rúnarsson, who originally developed it under the auspices of the Icelandic Government's Language Technology Program (2016-2019).
The package includes a modified version of the Pyphen library by
Wilbert Berendsen and Guillaume Ayoub, which is licensed under the
GNU LGPL 2.1 or later. See the file src/skiptir/pyphen/COPYING.LGPL
for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file skiptir-1.0.0.tar.gz.
File metadata
- Download URL: skiptir-1.0.0.tar.gz
- Upload date:
- Size: 315.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e95c0d62897132da3593d08e401aae6ee103fedb552c170c663c462d4971c56
|
|
| MD5 |
237107447528342429cbf4e1245bc180
|
|
| BLAKE2b-256 |
5f365a8fdaa5ed2cdb157488dac23074196e7fef609bf2d4d446ec2c10f537ef
|
File details
Details for the file skiptir-1.0.0-py3-none-any.whl.
File metadata
- Download URL: skiptir-1.0.0-py3-none-any.whl
- Upload date:
- Size: 309.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797ec1a1a5eba209566cb5a7d9dcab28b3fb744d02d24a31056b39566a8e1365
|
|
| MD5 |
8ffdf60f30d386ea4b470603cd58fb2c
|
|
| BLAKE2b-256 |
5d9eee0035be28debff423e9acbb071748646e9bffe04ed612bf664092042d06
|