Skip to main content

krutidev-unicode (Python)

Convert Hindi text typed in Kruti Dev 010 to Unicode, and Unicode back to Kruti Dev. Pure Python, no dependencies, works offline.

This is a port of the conversion engine that runs the Kruti Dev to Unicode tool on KovaPDF. Its tables are generated from that engine, and it passes the same test vectors as the JavaScript package (@kovapdf/krutidev-unicode on npm).

Need it for whole PDF or Word files? Use KovaPDF: https://www.kovapdf.com/kruti-dev-to-unicode

Built by KovaPDF, https://www.kovapdf.com

pip install krutidev-unicode
from krutidev_unicode import to_unicode, to_kruti, convert_with_report, detect_encoding, is_kruti_font

to_unicode("esjk uke jke gSA")                     # 'मेरा नाम राम है।'
to_kruti("भारत सरकार")                             # 'Hkkjr ljdkj'
to_unicode("PDF Q+kby dks Word esa cnysa")         # 'PDF फ़ाइल को Word में बदलें' (English kept by default)
to_unicode("Word", keep_english=False)             # 'ॅवतक'
convert_with_report("dk;Z", "kruti-to-unicode")    # dict: text, keptEnglish, unknown, stats
detect_encoding("esjk uke jke gSA")["kind"]        # 'kruti'
is_kruti_font("Kruti Dev 010")                     # True

Command line (stdin or a file in, stdout out):

krutidev-unicode to-unicode < kruti.txt > unicode.txt
python -m krutidev_unicode to-kruti unicode.txt

Kruti Dev 010 is a legacy font: it draws Hindi shapes on ordinary Latin codes, so its text reads as "dk;kZy;" without the font. Mangal and Nirmala UI are Unicode fonts: set converted text in one of them. Only Kruti Dev 010 is supported (not DevLys or other Kruti Dev numbers). No fonts are included in this package.

Full documentation: https://github.com/KovaPDF/krutidev-unicode

The code is MIT licensed. The KovaPDF name, logo and website content are not covered by that licence.

Metadata

Release files for krutidev-unicode 1.0.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 krutidev-unicode 1.0.1
File Size Uploaded Provenance Actions
krutidev_unicode-1.0.1.tar.gz 53.4 kB With provenance Details for krutidev_unicode-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for krutidev-unicode 1.0.1
File Interpreter ABI Platform Actions
krutidev_unicode-1.0.1-py3-none-any.whl Python 3 none any Details for krutidev_unicode-1.0.1-py3-none-any.whl

Total release size: 94.5 kB

Release files / krutidev_unicode-1.0.1.tar.gz

Download URL krutidev_unicode-1.0.1.tar.gz
Size 53.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e913f3f084c11870528400933c76726dfbaaa8fd0244bb15bf023bdc5b795212
BLAKE2b-256 checksum
How to use checksums
27132ffd5ad0d48551b134e9134ce3a1073b9e4f4f0058a14baffdaa3a4ffc75
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 13, 2026.

Transparency log

Release files / krutidev_unicode-1.0.1-py3-none-any.whl

Download URL krutidev_unicode-1.0.1-py3-none-any.whl
Size 41.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99e0e4341a78bca4ec1b721bc73531da5d6f65cf246438e4646534107b3396aa
BLAKE2b-256 checksum
How to use checksums
78890111600ab694ec2b142e4d8e63259d545a761b908bc4c16d7feac4f60f35
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 13, 2026.

Transparency log

Security for krutidev-unicode 1.0.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 krutidev_unicode-1.0.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 13, 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

1.0.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