diff --git a/build_source_with_lfs_zip.sh b/build_source_with_lfs_zip.sh new file mode 100755 index 0000000..6eef96a --- /dev/null +++ b/build_source_with_lfs_zip.sh @@ -0,0 +1,2 @@ +git lfs fetch +zip -r source-with-lfs.zip . -x '.git' diff --git a/schemes/en/en.scheme b/schemes/en/en.scheme new file mode 100644 index 0000000..072d15d --- /dev/null +++ b/schemes/en/en.scheme @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# encoding: utf-8 + +## +# Copyright (C) 2023 Subin Siby +# +# This is part of Varnam. See LICENSE for the license +# +# This was created for olam.in to implement autocomplete +# for English dictionary via Varnam API. +# +# But by using the VST from this scheme, +# Varnam can be used to show English word +# suggestions while typing English. +## + +language_code "en" +identifier "en" +display_name "English" +author "Subin Siby" +stable true + + +("a"..."z").to_a.each do |letter| + consonants letter => letter +end + +# To show autocomplete for phrases that has spaces +consonants " " => " " diff --git a/schemes/ne/ne.scheme b/schemes/ne/ne.scheme index 3520cdd..5fedb70 100644 --- a/schemes/ne/ne.scheme +++ b/schemes/ne/ne.scheme @@ -14,9 +14,12 @@ author "Rohit Bansal" ignore_duplicates false $virama = "\u{094D}" -$am = "\u{0902}" -$an = "\u{0901}" +$am = "\u{0902}" #not working as expected +$an = "\u{0901}" #not working as expected $nukta = "\u{093C}" +$chandrabindu = "ँ" +$anusvara = "ं" +$visarga ="ः" virama "~" => "\u{094D}" @@ -59,7 +62,8 @@ consonants "k" => "क", "ng" => "ङ", "ch" => "च", - ["CH", ["ch"]] => "छ", + "chh" => "छ", + ["Ch", ["ch"]] => "छ", "j" => "ज", ["z", ["j"]] => ["\u{095B}", "ज#{$nukta}"], ["jh", ["j"]] => "झ", @@ -149,7 +153,8 @@ consonants "kShN" => "क्ष्ण", #tikShN "spr" => "स्प्र", "smr" => "स्म्र", "Shtr" => "ष्त्र", - "Shthy" => "ष्थ्य" + "Shthy" => "ष्थ्य", + "gny" => "ज्ञ" ignore_duplicates true can_make_cluster.each do |c1| @@ -186,7 +191,10 @@ end symbols [["n", "m"]] => $an, ["om"] => "ॐ", ["?"] => "ॽ", - ["|"] => "।" + ["|"] => "।", + ["*"] => $anusvara, + ["**"] => $chandrabindu, + ["H"] => $visarga symbols({:priority => :low}, ["aan", "aam"] => $an)