-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,275 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]**' | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- 'rust/**' | ||
|
||
jobs: | ||
|
||
build-rust: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/rust | ||
run: cargo test -q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "uklatn" | ||
version = "1.18.0" | ||
license = "MIT" | ||
homepage = "https://github.com/paiv/uklatn" | ||
repository = "https://github.com/paiv/uklatn" | ||
description = "Ukrainian Cyrillic transliteration to Latin script" | ||
keywords = ["ukraine", "transliteration", "romanization"] | ||
authors = ["Pavlo Ivashkov"] | ||
edition = "2021" | ||
|
||
[dependencies] | ||
fancy-regex = "0.14.0" | ||
once_cell = "1.20.2" | ||
unicode-normalization = "0.1.20" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
uklatn | ||
== | ||
Ukrainian Cyrillic transliteration to Latin script. | ||
|
||
Supported transliteration schemes: | ||
- [DSTU 9112:2021](https://uk.wikipedia.org/wiki/ДСТУ_9112:2021) | ||
- [KMU 55:2010](https://zakon.rada.gov.ua/laws/show/55-2010-п) | ||
|
||
|
||
Usage | ||
-- | ||
|
||
```rust | ||
use { uklatn::Table, uklatn::decode, uklatn::encode }; | ||
|
||
encode("Доброго вечора!", Table::default()); | ||
decode("Paljanycja", Table::default()); | ||
``` | ||
|
||
Select a transliteration scheme: | ||
|
||
```rust | ||
encode("Борщ", Table::Dstu9112B); | ||
encode("Шевченко", Table::Kmu55); | ||
``` | ||
|
||
Notes | ||
-- | ||
Input is assumed to be in Ukrainian (Cyrillic or Latin script), and will be processed in full. | ||
If your data has mixed languages, do preprocessing to extract Ukrainian chunks. | ||
|
Oops, something went wrong.