gurmukhi_utils 0.1.0 copy "gurmukhi_utils: ^0.1.0" to clipboard
gurmukhi_utils: ^0.1.0 copied to clipboard

Dart utilities library for converting, analyzing, and testing Gurmukhi strings.

Gurmukhi Utils (Dart) #

Dart library for converting, analyzing, and testing Gurmukhi strings.

SantLipi extensions are supported.

Gurmukhi String Extensions #

Remove Vishraams #

'ਸਭਨਾ ਜੀਆ ਕਾ, ਇਕੁ ਦਾਤਾ; ਸੋ. ਮੈ ਵਿਸਰਿ ਨ ਜਾਈ ॥੫॥'.removeVishraams();
// 'ਸਭਨਾ ਜੀਆ ਕਾ ਇਕੁ ਦਾਤਾ ਸੋ ਮੈ ਵਿਸਰਿ ਨ ਜਾਈ ॥੫॥'
copied to clipboard

First Letters #

'ਜਿਸਨੋ ਕ੍ਰਿਪਾ ਕਰਹਿ ਤਿਨਿ ਨਾਮ ਰਤਨੁ ਪਾਇਆ ॥'.firstGurmukhiLetters();
// ['ਜ', 'ਕ', 'ਕ', 'ਤ', 'ਨ', 'ਰ', 'ਪ']
copied to clipboard

Split #

'ਕੈਸੀ ਆਰਤੀ ਹੋਇ ॥'.splitGurmukhi();
// ['ਕੈ', 'ਸੀ', ' ', 'ਆ', 'ਰ', 'ਤੀ', ' ', 'ਹੋ', 'ਇ', ' ', '॥']
copied to clipboard

Characters joined by Virama can be split as:

'ਅੰਮ੍ਰਿਤ'.splitGurmukhi();
// ['ਅੰ', 'ਮ੍ਰਿ', 'ਤ']
copied to clipboard
'ਅੰਮ੍ਰਿਤ'.splitGurmukhi(splitVirama: true);
// ['ਅੰ', 'ਮ੍', 'ਰਿ', 'ਤ']
copied to clipboard

Support SantLipi modifiers:

'ਸ꠴ਯਾਮ'.splitGurmukhi(extensions: true);
// ['ਸ', '꠴ਯਾ', 'ਮ']
copied to clipboard

Unicode Normalization #

Fix Matras of , , and :

'ਅਾਦਿ'.normalizeGurmukhi();
// ਆਦਿ
copied to clipboard

Fix Order of Diacritics:

'ਕੰੁਚਰ'.normalizeGurmukhi();
// ਕੁੰਚਰ
copied to clipboard

Remove Sant Lipi Modifiers if extensions is not enabled:

'ਮਧ꠳ਯ'.normalizeGurmukhi();
// ਮਧ੍ਯ
copied to clipboard

Conversion #

Number to Gurmukhi #

123.toGurmukhi();
// ੧੨੩
copied to clipboard

Ascii to Gurmukhi #

Gurmukhi Text encoded in Ascii fonts (See fonts by Dr Kulbir Thind):

asciiToGurmukhi('goibMd imlx kI ieh qyrI brIAw ]');
// ਗੋਬਿੰਦ ਮਿਲਣ ਕੀ ਇਹ ਤੇਰੀ ਬਰੀਆ ॥
copied to clipboard

Support SantLipi modifiers (See Ascii Font OpenGurbaniAkhar):

asciiToGurmukhi('qRsîo', extensions: true);
// ਤ੍ਰਸ꠵ਯੋ
copied to clipboard

Contribute #

If you want to help, please get started with the CONTRIBUTING.md doc

Gurmukhi Utils comes in many programming languages. Use the Gurmukhi Utils library in another language.

3
likes
150
points
22
downloads

Publisher

verified publishershabados.com

Weekly Downloads

2024.09.26 - 2025.04.10

Dart utilities library for converting, analyzing, and testing Gurmukhi strings.

Repository (GitHub)
Contributing

Topics

#gurmukhi

Documentation

API reference

License

MIT (license)

More

Packages that depend on gurmukhi_utils