Skip to content

Commit

Permalink
Merge branch 'master' of github.com:varnamproject/schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Dec 3, 2023
2 parents a787bd6 + fb1b64a commit 2c4137a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 5 deletions.
2 changes: 2 additions & 0 deletions build_source_with_lfs_zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
git lfs fetch
zip -r source-with-lfs.zip . -x '.git'
29 changes: 29 additions & 0 deletions schemes/en/en.scheme
Original file line number Diff line number Diff line change
@@ -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 " " => " "
18 changes: 13 additions & 5 deletions schemes/ne/ne.scheme
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down Expand Up @@ -59,7 +62,8 @@ consonants "k" => "क",
"ng" => "ङ",

"ch" => "च",
["CH", ["ch"]] => "छ",
"chh" => "छ",
["Ch", ["ch"]] => "छ",
"j" => "ज",
["z", ["j"]] => ["\u{095B}", "ज#{$nukta}"],
["jh", ["j"]] => "झ",
Expand Down Expand Up @@ -149,7 +153,8 @@ consonants "kShN" => "क्ष्ण", #tikShN
"spr" => "स्प्र",
"smr" => "स्म्र",
"Shtr" => "ष्त्र",
"Shthy" => "ष्थ्य"
"Shthy" => "ष्थ्य",
"gny" => "ज्ञ"

ignore_duplicates true
can_make_cluster.each do |c1|
Expand Down Expand Up @@ -186,7 +191,10 @@ end
symbols [["n", "m"]] => $an,
["om"] => "ॐ",
["?"] => "ॽ",
["|"] => "।"
["|"] => "।",
["*"] => $anusvara,
["**"] => $chandrabindu,
["H"] => $visarga

symbols({:priority => :low}, ["aan", "aam"] => $an)

Expand Down

0 comments on commit 2c4137a

Please sign in to comment.