Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@litertjs/core": "^2.5.3",
"@tailwindcss/vite": "^4.0.0",
"astro": "^7.3.5",
"interscript": "^5.11.0",
"interscript": "^5.12.0",
"onnxruntime-web": "^1.31.1",
"svgo": "^4.1.0",
"tailwindcss": "^4.0.0",
Expand Down
51 changes: 45 additions & 6 deletions src/content/docs/Libraries.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Install:
npm install interscript
```

Transliterate with one of the 289 authority systems:
Transliterate with any of the 428 authority systems:

```ts
import { transliterateAsync } from "interscript"
Expand All @@ -35,6 +35,35 @@ const model = await imf.IMFModel.fromZipBytes(resolved.bytes)
const vocalized = await model.translate("السلام عليكم")
```

All four language runtimes execute the same canonical grammar: the
ISC grammar has a single normative source (the parsanol `.parg`
file, checksum-pinned), and the TypeScript and Python parsers are
generated from it — verified structurally identical across the whole
434-file corpus on every change.

== Rust (crates.io)

Install:

```
cargo add interscript
```

Transliterate and run the golden conformance gate:

```rust
use interscript_rs::Runtime;

let rt = Runtime::new(vec![
std::path::PathBuf::from("maps/maps"),
std::path::PathBuf::from("maps/libs"),
]);
let out = rt.transliterate("bgnpcgn-ukr-Cyrl-Latn-2019", "Антон")?;
```

The crate also ships the `iscrs` CLI (transliterate, corpus test
sweeps, the golden capture, and IMF model inference).

== Python

Install:
Expand All @@ -57,16 +86,26 @@ print(model.translate("قوله فحكمها في الوفاة"))
Install:

```
gem install secryst
gem install interscript
```

Transliterate (deterministic maps), optionally with a language
selection for maps that declare languages:

```ruby
require "interscript"

Interscript.transliterate("bgnpcgn-ukr-Cyrl-Latn-2019", "Антон")
```

Load and translate:
Use a neural model — the gem embeds the IMF v1 runtime (index
resolution, checksum verification, ONNX inference):

```ruby
require "secryst"
require "interscript/ml"

model = Secryst::Model.load("ara-diac-small-2.1-int8")
model.translate("قوله فحكمها في الوفاة")
Interscript::ML::Translator.new(model_file: "ara-diac-base-1.0")
.translate("قوله فحكمها في الوفاة")
```

== Command line
Expand Down
Loading