This package provides a set of Perl modules for working with Sanskrit language text in the Sanskrit Library SLP1 encoding (known historically as Skt01), including: alphabetization, syllabification, transliteration, and transcoding to and from CSX and to Peter Freund's Vedic font.
Requirements
Perl v5.6.0 or greater.
Installation
Download the tarball. Run the usual sequence of perl Makefile.PL; make; make test; and make install (the last as root).
Modules
The package includes:
- Sanskrit::Alphabetize
- Sanskrit::Embed
- Sanskrit::Syllabify
- Sanskrit::Transliterate
- Sanskrit::TransliterateVedic
Perldoc and man pages are included.
Code samples
The program cvtVedic.pl is a simple demonstration of some of the package's functionality. It takes an ASCII file with simple formatting that includes embedded text in the Sanskrit Library encoding and outputs an RTF document with the Sanskrit text rendered in Peter Freund's Vedic font for Devanagari.
The program cvtSkt.pl reads an ASCII file with codes described in the Embed documentation and outputs an RTF document with Sanskrit in the Manjushree CSX and Vedic fonts. Try the sample input file test.txt.