indic

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Indic demonstrates OpenType shaping for Brahmic scripts. Devanagari is the first implementation; Bengali, Tamil, Telugu, Kannada, Malayalam, Gurmukhi, Odia, Assamese and Sinhala will slot into this example as their shapers land. The layout pipeline routes Indic words through the script-specific shaper automatically, so the example just loads a capable font and adds paragraphs — reph, pre-base matra reordering, half forms, conjuncts, nukta, below-base and post-base forms all happen under the hood.

Required fonts (the Devanagari section is skipped if none resolve):

macOS   /System/Library/Fonts/Supplemental/Devanagari Sangam MN.ttc
        /System/Library/Fonts/Supplemental/ITFDevanagari.ttc
        /Library/Fonts/Arial Unicode.ttf
Linux   /usr/share/fonts/truetype/noto/NotoSansDevanagari-Regular.ttf
        /usr/share/fonts/opentype/noto/NotoSansDevanagari-Regular.ttf
Windows C:\Windows\Fonts\mangal.ttf
        C:\Windows\Fonts\Nirmala.ttf

Usage:

go run ./examples/indic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL