ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Detect Invalid Devangari

by alchemi5t ST3

Sublime plugin to detect invalid devanagari word constructs

Details

Installs

  • Total 39
  • Win 31
  • OS X 4
  • Linux 4
Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 0 0 0 0 1 0 0 2 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Devanagari-validator

Sublime plugin to detect invalid devanagari word constructs.(Highlights invalid words)

It also highlights words with zero width characters, helping in detecting zero width characters.

Character set :-

consonants=["ॿ","ॾ","ॼ","ॻ","क","ख","ग","घ","ङ","च","छ","ज","झ","ञ","ट","ठ","ड","ढ","ण","त","थ","द","ध","न","प","फ","ब","भ","म","य","र","ऱ","ल","ळ","व","श","ष","स","ह"]
    vowels=["ॷ","ॶ","ॵ","ॴ","ॳ","ॲ","अ","आ","इ","ई","उ","ऊ","ऋ","ऍ","ऎ","ए","ऐ","ऑ","ऒ","ओ","औ","ॠ"]
    matras=["ा","ि","ी","ु","ू","ृ","ॅ","ॆ","े","ै","ॉ","ॊ","ो","ौ","ऻ","ऺ","ॄ","ॆ","ॏ","ॗ","ॖ"]
    vowelMod=["ँ","ं","ः"]
    halant=["्"]
    nukta=["़"]

The rules are:-

Rules
    1 Word ::= {Syllable} [Cons-Syllable]
    2 Syllable ::= Cons-Vowel-Syllable | Vowel-Syllable
    3 Vowel-Syllable ::= V [D]
    4 Cons-Vowel-Syllable ::= [Cons-Syllable] Full-Cons [M] [D]
    5 Cons-Syllable ::= [Pure-Cons] [Pure-Cons] Pure-Cons
    6 Pure-Cons ::= Full-Cons H
    7 Full-Cons ::= C [N]

Usage:

Highlights the incorrect words post save or on load(if set) or view.run_command(“detect_invalid_devangari”)