You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Python toolkit for the **Karakalpak language**: Latin-Cyrillic script conversion, number-to-words, and locale-aware string operations. Zero dependencies.
7
+
A Python toolkit for the **Karakalpak language**. Zero dependencies, Python 3.10+.
8
8
9
-
## Quick Start
9
+
## Installation
10
10
11
11
```bash
12
12
pip install kaalin
13
13
```
14
14
15
-
```python
16
-
from kaalin.converter import latin2cyrillic, cyrillic2latin
|**Script Conversion**| Bidirectional Latin ↔ Cyrillic conversion with multi-character mapping (`sh`→`ш`, `ch`→`ч`) and special Cyrillic rules (`ьи`→`yi`, `ьо`→`yo`, `ъе`→`ye`) |
27
-
|**Number to Words**| Converts integers and floats to Karakalpak words in Latin or Cyrillic script. Supports range 0 to 10³⁰, negative numbers, and decimal fractions |
28
-
|**Word Syllabification**| Splits Karakalpak words into syllables, works with both Latin and Cyrillic scripts, preserves letter case, and recognises digraphs like `sh`, `ch`, `yu`, `ya`, `aw`, `ew`|
29
-
|**String Utilities**| Karakalpak-aware `upper()` / `lower()` that correctly handle the dotless `ı` ↔ `Í` character pair |
30
-
|**CLI Tools**|`cyr2lat` and `lat2cyr` commands for converting text files from the terminal |
31
-
32
-
## API Reference
33
-
34
-
### Script Conversion
17
+
Bidirectional Latin ↔ Cyrillic conversion. Loanwords with special characters (ь, ъ, э, ё, щ) are handled automatically.
35
18
36
19
```python
37
20
from kaalin.converter import latin2cyrillic, cyrillic2latin
-`word` (`str`) — the word to split. Accepts Latin or Cyrillic input.
77
-
78
-
**Returns:** A `list[str]` of syllables in the same script as the input. Words with fewer than two vowels are returned as a single-element list unchanged.
79
-
80
-
**Raises:**`TypeError` if `word` is not a string.
51
+
## String Utilities
81
52
82
-
### String Utilities
53
+
Karakalpak-aware `upper()` / `lower()` that correctly handle the dotless `ı` ↔ `Í` pair.
0 commit comments