Skip to main content

Shared replacement map data for transliterating Tibetan-encoded Sanskrit mantras

Project description

Tibetan Sanskrit Transliteration Data

Shared replacement map data for transliterating Tibetan-encoded Sanskrit mantras to IAST and phonetics.

Available as both an npm and Python package.

Installation

JavaScript/Node.js

npm install tibetan-sanskrit-transliteration-data

Python

pip install tibetan-sanskrit-transliteration-data

Data Format

The replacements.csv file contains three columns:

Column Description
tibetan Tibetan Unicode pattern (may include regex)
transliteration IAST transliteration output
phonetics Phonetic output (optional, defaults to normalized transliteration)

Usage

JavaScript/Node.js

import {
  loadReplacements,
  getReplacementsPath,
} from "tibetan-sanskrit-transliteration-data";

// Get parsed data
const replacements = loadReplacements();

// Or get the path to the CSV file
const csvPath = getReplacementsPath();

Python

from tibetan_sanskrit_transliteration_data import load_replacements, get_replacements_path

# Get parsed data
replacements = load_replacements()

# Or get the path to the CSV file
csv_path = get_replacements_path()

Contributing

To add or modify transliteration rules:

  1. Edit replacements.csv
  2. Test changes in both JS and Python implementations
  3. Submit a pull request

Order Matters

Entries are processed in order from top to bottom. More specific patterns should come before more general ones.

License

MIT License - Copyright Padmakara, 2025-present.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tibetan_sanskrit_transliteration_data-0.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file tibetan_sanskrit_transliteration_data-0.1.0.tar.gz.

File metadata

File hashes

Hashes for tibetan_sanskrit_transliteration_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e40f706e38b44d70dff0c4a9d9d91851a8f8426ee345d1eeff7178ed2b9c2788
MD5 57e7d356ecc4d2d0aa9194a3aaa66fbb
BLAKE2b-256 03cbcc6e81e1acba1528ca240006bc7021e3010e5d4398f6bc42bd80e459fa98

See more details on using hashes here.

File details

Details for the file tibetan_sanskrit_transliteration_data-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tibetan_sanskrit_transliteration_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41bb94635ecd44407b77d647afb0840a1b752daf8a0ad6670c688322d3099dde
MD5 4ea73b14d87d414ea8528a4f714c356e
BLAKE2b-256 d5f19c33cf15ee1363765f9f25b85d37cf691d188e76d85241e97199f0c7d287

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page