Interoperable script conversion systems
Project description
= Interscript: Interoperable Script Conversion Systems for Python
== Purpose
This repository contains code for the Interscript Python runtime ("Interscript-Python").
This software allows performing script conversions by using the
https://github.com/interscript/maps[default set of Interscript maps]
hosted at GitHub.
Interscript is a project for interoperable script conversion systems
and provides executable runtimes for multiple platforms.
Full documentation available https://github.com/interscript/interscript/[here].
== Integration
This section provides instructions on how to utilize Interscript-Python
with your application.
Interscript-Python can be used as a Python library
=== Configuration
[source,shell]
----
$ pip install interscript
----
== Usage
[source,javascript]
-----
import interscript
interscript.load_map('bgnpcgn-ukr-Cyrl-Latn-2019')
print(interscript.transliterate('bgnpcgn-ukr-Cyrl-Latn-2019', input()))
-----
== Development
Ensure you have used a bootstrap repository https://github.com/interscript/interscript
and not just cloned this repo yourself, otherwise `./setup.sh` script won\'t work.
`./setup.sh` script is used to build the maps from the `maps` repository using our Ruby
Interscript implementation. Those maps are compiled to respective `.py` files inside
`src/interscript/maps/` directory and are not included in this repository.
=== Running tests
[source,shell]
---
$ pip install regex pytest
$ ./build.sh
$ pip install -e .
$ pytest
---
=== Building package
[source,shell]
---
$ pip install regex pytest
$ ./build.sh
$ python -m build
---
=== Publishing package
Edit pyproject.toml to contain a new version number, create a commit
and add a git tag with that number.
== Copyright and license
This is a Ribose project. Copyright Ribose.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
interscript-0.1.0.tar.gz
(1.2 MB
view details)
Built Distribution
File details
Details for the file interscript-0.1.0.tar.gz
.
File metadata
- Download URL: interscript-0.1.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43396b22cc97fa0fd9b041bbc12b3addcde6cc1cf53dcc0ffdadd3ec0051c0ea |
|
MD5 | 1678f5dd553ad90f9b7648c73fde1b9b |
|
BLAKE2b-256 | 3da8972f09b8681e19041459dc1157c776b7a7148d03bab6f65e033bdf8f0f7e |
File details
Details for the file interscript-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: interscript-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9bb1ca74a4197c357fe6434ec24c953e68c57d515ff4cfe918c0a509e93250a |
|
MD5 | 256176fea61465fc38b6ce332e62f00e |
|
BLAKE2b-256 | 41cb39998999620376a2c2e571eb8e7108d63d749b598c47d3234f511a81113d |