Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Temporarily withdrawn; project is moving to a new home.

imlo-lint

Find and fix old-alphabet Uzbek text in your codebase, locale files and website — before the 2026 Latin alphabet takes effect on 22 April 2027.

Status: alpha. Supports plain text, Markdown, JSON i18n, gettext, Android, Apple (.strings, .stringsdict, .xcstrings), Flutter ARB, XLIFF, YAML, HTML and Java .properties; opt-in Uzbek Cyrillic migration; scan / check / fix / text; text, JSON, SARIF and GitHub reports; GitHub Action and pre-commit hooks; imlo audit website reports. Released on PyPI: 0.1.1.

Uzbekistan's updated Latin alphabet replaces sh → ş, ch → ç, oʻ → ö, gʻ → ğ. Converting a sentence is a solved problem — several good engines exist (see docs/LANDSCAPE.md). Migrating a real project is not:

  • translation files mix keys, placeholders ({name}, %1$s, {{count}}), ICU plurals, HTML and escaped quotes (o\'zbek in Android strings.xml);
  • only uz-Latn values should change — never keys, never ru/en/uz-Cyrl;
  • teams need a CI gate that fails when someone adds old-alphabet text after the migration.

imlo-lint is that tool. It does not reimplement transliteration: it uses the MIT-licensed alifbo engine and adds format-aware scanning, safe rewriting and CI integration.

Usage

Python ≥ 3.10:

pip install imlo-lint
imlo scan .                      # report old-alphabet text: path:line:col: RULE old → new
imlo scan . --format json        # machine-readable report ("schema": 1)
imlo scan . --format sarif       # SARIF 2.1.0 for GitHub code scanning
imlo check . --format github     # ::error file=...:: annotations in GitHub Actions logs
imlo scan . --severity error     # hide warnings and info
imlo check .                     # same as scan; exit 1 on any error-level finding (CI)
imlo fix .                       # dry run: print a unified diff, change nothing
imlo fix . --check               # dry run; exit 1 if anything would change
imlo fix . --write               # apply the changes
imlo fix . --write --rules IMLO001,IMLO002
imlo text "Toshkent shahri"      # → Toşkent şahri
echo "o'g'il" | imlo text -      # → öğil
imlo rules                       # rule ids and default severities

Example output:

locales/uz.json:2:20: IMLO002 Do'konga → Dökonga [error]
locale/uz/LC_MESSAGES/messages.po:10:22: IMLO001 chipta → çipta [error]

Exit codes: 0 no error-level findings (or fix succeeded), 1 error-level findings (scan/check) or pending changes (fix --check), 2 usage, config or I/O error, or an unparsable file with --strict.

What gets changed: only Uzbek-Latin user-visible text — values in uz / uz-Latn / uz_UZ locale files (never keys, never ru, en or uz-Cyrl), msgstr in .po files with an Uzbek path or Language: uz header, and prose in .txt / .md files. Placeholders ({name}, {{count}}, %1$s, %(n)s), ICU syntax, $t(...), HTML tags and entities, URLs, emails and Markdown code are protected. Outside Uzbek locale paths, a .txt/.md line is touched only if it looks Uzbek (English prose such as "check the shell" is left alone).

Migrating from Uzbek Cyrillic (opt-in)

imlo scan --from cyrillic locales/          # also report uz-Cyrl text
imlo fix --from cyrillic locales/ --write   # Тошкент шаҳри → Toşkent şahri

Only Uzbek Cyrillic sources are touched: uz-Cyrl / uz_Cyrl / uz@cyrillic paths and metadata (PO Language:, XLIFF, ARB, .xcstrings, YAML root keys, HTML lang). Russian (ru) is never converted. Files keep their names, so rename uz-Cyrl files yourself if they become Latin. Letters the engine has to guess (ъ, ь, щ, ц → s or ts) are reported as IMLO005 with an explanation: review those words. Config: source_alphabet = "cyrillic".

Configuration

[tool.imlo] in pyproject.toml, or imlo.toml (top level or [tool.imlo]), found from the current directory upwards or given with --config FILE:

[tool.imlo]
include = ["locales/**", "docs/**/*.md"]   # only scan these; included .txt/.md count as Uzbek
exclude = ["vendor/**", "**/*.min.json"]
protected_terms = ["Chevrolet", "MyChaykhana"]  # never converted
exceptions = { "Ishoq" = "Isʼhoq" }        # word → replacement (the value is converted again)
severity = { IMLO003 = "error" }
exclude_keys = ["brand.*"]                 # JSON key paths to skip
ng_as_digraph = true

Suppress a line in .txt / .md with imlo: ignore (same line) or imlo: ignore-next-line (e.g. <!-- imlo: ignore-next-line -->); in .po files a # imlo: ignore comment skips the whole entry.

Python API

from imlo_lint import Config, fix_text, scan_text, scan_path, fix_path

fix_text("Do'konga xush kelibsiz, {name}!")  # 'Dökonga xuş kelibsiz, {name}!'
scan_text("Toshkent shahri")  # [Finding(..., rule_id='IMLO001', ...), ...]
fix_text("Chevrolet shahri", Config(protected_terms=("Chevrolet",)))
scan_path("locales")  # findings for files on disk
fix_path("locales", write=True)  # paths that were rewritten

Rules

id Detects Default
IMLO000 File could not be parsed (left untouched) error
IMLO001 Old digraph sh/ch → ş/ç error
IMLO002 oʻ/gʻ in any apostrophe variant → ö/ğ error
IMLO003 Wrong apostrophe code point for tutuq belgisi → ʼ (U+02BC) warning
IMLO004 Confusable letters (ș U+0219 → ş), Unicode normalization; õ/ô for ö (reported only, no fix) warning
IMLO005 Ambiguous case resolved by the engine (Ishoq → Isʼhoq) info
IMLO006 Old and new alphabet mixed in one value warning
IMLO007 Uzbek Cyrillic → 2026 Latin (only with --from cyrillic) error

CI and pre-commit

GitHub Action (annotations on the PR; sarif: "true" also uploads to code scanning):

- uses: azamatofb/imlo-lint@v0.1.1
  with:
    path: .

pre-commit:

- repo: https://github.com/azamatofb/imlo-lint
  rev: v0.1.1
  hooks:
    - id: imlo-check   # or imlo-fix to rewrite files

More, including GitLab CI: docs/INTEGRATIONS.md.

Website audit

Read-only report of how much of a public site is still in the old alphabet:

imlo audit https://example.uz --max-pages 50 --delay 1 --format html > report.html

It sends only GET requests with the User-Agent imlo-lint/<version> (+repo URL), honours robots.txt (Disallow, Crawl-delay), waits between requests, stays on the same origin (also on redirects), skips login/account/admin/cart links and files, never submits forms, stops on 429/503, and keeps no page content beyond counts and a few word examples. Output: text (default), json or html. Only audit sites you are allowed to crawl.

Supported formats

Format Files Status
Plain text, Markdown *.txt, *.md ✅ v0.1
gettext *.po, *.pot ✅ v0.1
JSON i18n (i18next, vue-i18n, next-intl) uz.json, uz-Latn.json, locales/uz/*.json ✅ v0.1
YAML (Rails, Symfony) uz.yml, messages.uz.yaml, uz: root key ✅ v0.2 (unreleased)
Android values-uz/strings.xml, values-b+uz+Latn/ ✅ v0.2 (unreleased)
iOS / macOS uz.lproj/*.strings, *.stringsdict, *.xcstrings ✅ v0.2 (unreleased)
Flutter app_uz.arb ✅ v0.2 (unreleased)
XLIFF *.xlf, *.xliff ✅ v0.2 (unreleased)
HTML text nodes and title/alt/placeholder/aria-label *.html, *.htm, templates ✅ v0.2 (unreleased)
Java .properties *_uz.properties ✅ unreleased

Documentation

Website: https://azamatofb.github.io/imlo-lint/ (built from docs/ by .github/workflows/pages.yml once GitHub Pages is enabled with the source GitHub Actions).

Oʻzbekcha / По-русски

UZ: imlo-lint — loyiha fayllari, tarjima fayllari va saytlardagi eski lotin yozuvini topib, yangi (2026) alifboga xavfsiz oʻtkazuvchi vosita.

RU: imlo-lint находит текст на старой латинице в коде, файлах переводов и на сайтах и безопасно переводит его на новый алфавит 2026 года, не ломая ключи, плейсхолдеры и разметку.

License

MIT

Metadata

Release files for imlo-lint 0.1.1

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

Source distribution (sdist)

Source distribution for imlo-lint 0.1.1
File Size Uploaded Provenance Actions
imlo_lint-0.1.1.tar.gz 125.6 kB With provenance Details for imlo_lint-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imlo-lint 0.1.1
File Interpreter ABI Platform Actions
imlo_lint-0.1.1-py3-none-any.whl Python 3 none any Details for imlo_lint-0.1.1-py3-none-any.whl

Total release size: 200.3 kB

Release files / imlo_lint-0.1.1.tar.gz

Download URL imlo_lint-0.1.1.tar.gz
Size 125.6 kB
Tags Source
SHA-256 checksum
How to use checksums
320da2e84667bc2c7acd86ebf595b83a3e00ef37f189078fa1ece1cfe64361b8
BLAKE2b-256 checksum
How to use checksums
814731577a5d696e8e3e8c65747dc6587a840132dd0113b11550fb4e84901a66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / imlo_lint-0.1.1-py3-none-any.whl

Download URL imlo_lint-0.1.1-py3-none-any.whl
Size 74.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a68466e449763a87c01b3d8b70b891d793799fe891e6b1e7f2698604d3ebdd2b
BLAKE2b-256 checksum
How to use checksums
615938008024b9c3eaadffa1044fe7ec4d7f01721b2a264c42e5a9aaabb4fc14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for imlo-lint 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for imlo_lint-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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