Dereckson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/43483


Change subject: (bug 43809) Update the Narayam's Javanese keymap
......................................................................

(bug 43809) Update the Narayam's Javanese keymap

Author: Bennylin

Change-Id: If0e5f507453f6dcfeedf61377bf1137058378262
---
M resources/ext.narayam.rules.jv.js
1 file changed, 218 insertions(+), 189 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Narayam 
refs/changes/83/43483/2

diff --git a/resources/ext.narayam.rules.jv.js 
b/resources/ext.narayam.rules.jv.js
index 40a3041..0947621 100644
--- a/resources/ext.narayam.rules.jv.js
+++ b/resources/ext.narayam.rules.jv.js
@@ -1,7 +1,7 @@
 /**
  * Transliteration regular expression rules table for Javanese
  * @author Bennylin
- * @date 2012-09-01
+ * @date 2013-01-01
  * @credits Based on ext.narayam.rules.sa.js
  * License: GPLv3
  */
@@ -10,206 +10,235 @@
 var rules = [
        [ '\\\\([A-Za-z\\>_~\\.0-9])', '\\\\', '$1' ],
 
-       [ '꧀ꦃa', '', '꧀​ꦲ' ], // pangkon and start with h
-       [ '꧀ꦃe', '', '꧀​ꦲꦺ' ], // pangkon and start with h
-       [ '꧀ꦃi', '', '꧀​ꦲꦶ' ], // pangkon and start with h
-       [ '꧀ꦃo', '', '꧀​ꦲꦺꦴ' ], // pangkon and start with h
-       [ '꧀ꦃu', '', '꧀​ꦲꦸ' ], // pangkon and start with h
+       //VII. Vocal ended with special pasangan followed by vocal =  back to 
normal
+       ['ꦃa', '','ꦲ​'], //vocal ended with -h followed by a
+       ['ꦃe', '','ꦲꦺ'], //vocal ended with -h followed by e
+       ['ꦃi', '','ꦲꦶ'], //vocal ended with -h followed by i
+       ['ꦃo', '','ꦲꦺꦴ'], //vocal ended with -h followed by o
+       ['ꦃu', '','ꦲꦸ'], //vocal ended with -h followed by u
 
-       [ '꧀ꦂa', '', '꧀​ꦫ' ], // pangkon and start with r
-       [ '꧀ꦂe', '', '꧀​ꦫꦺ' ], // pangkon and start with r
-       [ '꧀ꦂi', '', '꧀​ꦫꦶ' ], // pangkon and start with r
-       [ '꧀ꦂo', '', '꧀​ꦫꦺꦴ' ], // pangkon and start with r
-       [ '꧀ꦂu', '', '꧀​ꦫꦸ' ], // pangkon and start with r
+       ['ꦂa', '','ꦫ​'], //vocal ended with -r followed by a
+       ['ꦂe', '','ꦫꦺ'], //vocal ended with -r followed by e
+       ['ꦂi', '','ꦫꦶ'], //vocal ended with -r followed by i
+       ['ꦂo', '','ꦫꦺꦴ'], //vocal ended with -r followed by o
+       ['ꦂu', '','ꦫꦸ'], //vocal ended with -r followed by u
+       ['ꦂy', '','ꦫꦾ'], //vocal ended with -r followed by y (Special)
 
-       [ '꧀ꦁa', '', '꧀​ꦔ' ], // pangkon and start with ng
-       [ '꧀ꦁe', '', '꧀​ꦔꦺ' ], // pangkon and start with ng
-       [ '꧀ꦁi', '', '꧀​ꦔꦶ' ], // pangkon and start with ng
-       [ '꧀ꦁo', '', '꧀​ꦔꦺꦴ' ], // pangkon and start with ng
-       [ '꧀ꦁu', '', '꧀​ꦔꦸ' ], // pangkon and start with ng
+       ['ꦁa', '','ꦔ​'], //vocal ended with -ng followed by a
+       ['ꦁe', '','ꦔꦺ'], //vocal ended with -ng followed by e
+       ['ꦁi', '','ꦔꦶ'], //vocal ended with -ng followed by i
+       ['ꦁo', '','ꦔꦺꦴ'], //vocal ended with -ng followed by o
+       ['ꦁu', '','ꦔꦸ'], //vocal ended with -ng followed by u
 
-       [ 'ꦃa', '', 'ꦲ​' ], // vocal ended with -h followed by a
-       [ 'ꦃe', '', 'ꦲꦺ' ], // vocal ended with -h followed by e
-       [ 'ꦃi', '', 'ꦲꦶ' ], // vocal ended with -h followed by i
-       [ 'ꦃo', '', 'ꦲꦺꦴ' ], // vocal ended with -h followed by o
-       [ 'ꦃu', '', 'ꦲꦸ' ], // vocal ended with -h followed by u
+       //VI. Vocal (lowercase, uppercase, extended) ended with h/r/ng = 
special pasangan (-h, -r, -ng)
+       //vocal a ended with h/r/ng
+       ['(ꦲ|ꦤ|ꦕ|ꦫ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)(h|H)', '','$1ꦃ'], 
//hanacaraka + h = -h
+       ['(ꦲ|ꦤ|ꦕ|ꦫ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)(r|R)', '','$1ꦂ'], 
//hanacaraka + r = -r
+       ['(ꦲ|ꦤ|ꦕ|ꦫ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)(ꦤ|ꦟ)꧀(g|G)', '','$1ꦁ'], 
//hanacaraka + ng = -ng
+       //other vocals ended with h/r/ng
+       ['(ꦴ|ꦍ|ꦺ|ꦼ|ꦶ|ꦷ|ꦸ|ꦹ|ꦄ|ꦌ|ꦆ|ꦎ|ꦈ)(h|H)', '','$1ꦃ'], //other vocal ended 
with -h
+       ['(ꦴ|ꦍ|ꦺ|ꦼ|ꦶ|ꦷ|ꦸ|ꦹ|ꦄ|ꦌ|ꦆ|ꦎ|ꦈ)(r|R)', '','$1ꦂ'], //other vocal ended 
with -r
+       ['(ꦴ|ꦍ|ꦺ|ꦼ|ꦶ|ꦷ|ꦸ|ꦹ|ꦄ|ꦌ|ꦆ|ꦎ|ꦈ)(ꦤ|ꦟ)꧀(g|G)', '','$1ꦁ'], //other vocal 
ended with -ng
 
-       [ 'ꦂa', '', 'ꦫ​' ], // vocal ended with -r followed by a
-       [ 'ꦂe', '', 'ꦫꦺ' ], // vocal ended with -r followed by e
-       [ 'ꦂi', '', 'ꦫꦶ' ], // vocal ended with -r followed by i
-       [ 'ꦂo', '', 'ꦫꦺꦴ' ], // vocal ended with -r followed by o
-       [ 'ꦂu', '', 'ꦫꦸ' ], // vocal ended with -r followed by u
-       [ 'ꦂy', '', 'ꦫꦾ' ], // vocal ended with -r followed by y
+       //V. Lower case consonant followed by lower case consonant: Basic
+       //Note: not all of these combination are valid in Javanese language, 
for example -hn-,
+       //so they are here only for logical reason, practically they should 
never be used.
+       //Obvious removal are noted (such as -yy-). th, dh, ny, ng, c, h, r, w, 
y are special cases:
 
-       [ 'ꦁa', '', 'ꦔ​' ], // vocal ended with -ng followed by a
-       [ 'ꦁe', '', 'ꦔꦺ' ], // vocal ended with -ng followed by e
-       [ 'ꦁi', '', 'ꦔꦶ' ], // vocal ended with -ng followed by i
-       [ 'ꦁo', '', 'ꦔꦺꦴ' ], // vocal ended with -ng followed by o
-       [ 'ꦁu', '', 'ꦔꦸ' ], // vocal ended with -ng followed by u
+       //pasangan 'ha'(ꦲ/ꦃ) is considered final, exception: about 60 words can 
be found followed by consonant y/r/l/w
+       //pasangan 'ra'(ꦫ/ꦂ) is considered final, exception: 5 words can be 
found followed by consonant y/w
+       //pasangan bigraf nga(ꦔ/ꦁ) is considered final, exception: it can only 
be found followed by consonant y/r/l/w 
+       // (some problem may occur - see 
http://jv.wikipedia.org/wiki/Dhiskusi_Panganggo:Bennylin/Narayam#Ng)
+       //pasangan bigraf nya can only be found followed by consonant   r/l/w, 
and
+       //  although not found in Latin, it also found in Javanese script 
representation of nasal sounds ñ (see nyc and nyj)
+       //pasangan bigraf dha can only be found followed by consonant y/r/  w
+       //pasangan bigraf tha can only be found followed by consonant   r
+       //the letter 'w' can only be found followed by consonant y/r/l/w 
//(nasal for 'u')
+       //the letter 'c' can only be found followed by consonant   r/l, and ch
+       //the letter 'y' can only be found followed by consonant       w 
//(nasal for 'i')
 
-       [ '(​)h', '', 'ꦃ' ], // vocal a ended with -h
-       [ '(​)r', '', 'ꦂ' ], // vocal a ended with -r
-       [ '(​)ꦤg', '', 'ꦁ' ], // vocal a ended with -ng
-       [ '(ꦴ|ꦍ|ꦺ|ꦼ|ꦶ|ꦷ|ꦸ|ꦹ)h', '', '$1ꦃ' ], // other vocal ended with -h
-       [ '(ꦴ|ꦍ|ꦺ|ꦼ|ꦶ|ꦷ|ꦸ|ꦹ)r', '', '$1ꦂ' ], // other vocal ended with -r
-       [ '(ꦴ|ꦍ|ꦺ|ꦼ|ꦶ|ꦷ|ꦸ|ꦹ)ꦤg', '', '$1ꦁ' ], // other vocal ended with -ng
-
-       // consonant followed by consonant, basic
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)ꦢh', '', '$1꧀ꦝ' ], // dh
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)ꦤy', '', '$1꧀ꦚ' ], // ny
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)ꦠh', '', '$1꧀ꦛ' ], // th
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)ꦤg', '', '$1꧀ꦔ' ], // ng
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)b', '', '$1꧀ꦧ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)c', '', '$1꧀ꦤ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)d', '', '$1꧀ꦢ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)(f|v)', '', '$1꧀ꦥ꦳' ],
-       [ '(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)g', '', '$1꧀ꦒ' ], // can't be started 
with n, reserved for bigraf ng
-       [ '(ꦤ|ꦕ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦧ)h', '', '$1꧀ꦲ' ], // can't be started with 
k/d/t/g, reserved for bigraf kh/dh/th/gh
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)j', '', '$1꧀ꦗ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)k', '', '$1꧀ꦏ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)l', '', '$1꧀ꦭ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)m', '', '$1꧀ꦩ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)n', '', '$1꧀ꦤ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)p', '', '$1꧀ꦥ' ],
-       // ['(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)q', '',''],
-       [ 'ꦿꦺ`', '', 'ꦽ' ], // special biconsonant -rê
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)r', '', '$1ꦿ' ], // special biconsonant 
-ra
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)s', '', '$1꧀ꦱ' ],
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)t', '', '$1꧀ꦠ' ],
-       // v = f
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)w', '', '$1꧀ꦮ' ],
-       // ['(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)x', '',''],
-       [ '(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)y', '', '$1ꦾ' ], // special biconsonant 
-ya, can't be started
-                                                                               
                        // with n or y, reserved for bigraf ny
-       [ '(ꦤ|ꦕ|ꦏ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)z', '', '$1ꦾꦗ꦳' ], // can't be started 
with d, reserved for bigraf dz
-
-       // consonant followed by consonant, extended
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)ꦤ(y|Y)', '', '$1꧀ꦘ' ], // Nya murda
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)B', '', '$1꧀ꦨ' ], // Ba murda
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)C', '', '$1꧀ꦖ' ], // Ca murda(?)
-       [ '(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)G', '', '$1꧀ꦓ' ], // Ga murda //can't be 
started with n, reserved for bigraf nG (Ng)
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)K', '', '$1꧀ꦑ' ], // Ka murda
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)N', '', '$1꧀ꦟ' ], // Na murda
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)P', '', '$1꧀ꦦ' ], // Pa murda
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)S', '', '$1꧀ꦯ' ], // Sa murda
-       [ '(ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦪ|ꦩ|ꦒ|ꦧ)T', '', '$1꧀ꦡ' ], // Ta murda
-
-       // extended vowel
-       [ '​a', '', 'ꦴ' ], // long a (aa)
-       [ '​i', '', 'ꦍ' ], // (ai)
-       [ 'ꦶi', '', 'ꦷ' ], // long i (ii)
-       [ 'ꦸu', '', 'ꦹ' ], // long u (uu)
-
-       // extended consonant
-       [ 'ꦏh', '', 'ꦏ꦳' ], // kh
-       [ 'ꦒh', '', 'ꦒ꦳' ], // gh
-       [ 'ꦢz', '', 'ꦢ꦳' ], // dz
-       [ 'ꦗ`', '', 'ꦙ' ], // Ja mahaprana
-
-       // special consonant
-       [ 'ꦭꦺ`', '', 'ꦊ' ], // special character lê
-       [ 'ꦫꦺ`', '', 'ꦉ' ], // special character rê
-
-       // non words
-       [ ' ', '', '​' ], // zero-width-space, since javanese have no space
-       [ 'q`', '', '꧀' ], // pengkal - to cut off the default -a vowel
-       [ 'x`', '', '꦳' ], // cecak telu
-       [ '꦳`', '', 'ꦀ' ], // panyangga
-       [ 'ꦀ`', '', '̈' ], // combining-diaresis
-       [ '̈`', '', '͜' ], // double-breve
-
-       [ 'ꦫ`', '', 'ꦿ' ], // another way to write -ra
-       [ 'ꦪ`', '', 'ꦾ' ], // another way to write -ya
-
-       // basic ha-na-ca-ra-ka
-       [ 'ꦢh', '', 'ꦝ' ], // dh
-       [ 'ꦠh', '', 'ꦛ' ], // th
-       [ 'ꦤy', '', 'ꦚ' ], // ny
-       [ 'ꦤg', '', 'ꦔ' ], // ng
-       [ 'ꦺ`', '', 'ꦼ' ], // ê
-       [ 'a', '', '​' ], // default vowel is a, by default using 
zero-width-non-joiner
-       [ 'b', '', 'ꦧ' ],
-       [ 'c', '', 'ꦕ' ],
-       [ 'd', '', 'ꦢ' ],
-       [ 'e', '', 'ꦺ' ], // é|è
-       [ '(f|v)', '', 'ꦥ꦳' ],
-       [ 'g', '', 'ꦒ' ],
-       [ 'h', '', 'ꦲ' ],
-       [ 'i', '', 'ꦶ' ],
-       [ 'j', '', 'ꦗ' ],
-       [ 'k', '', 'ꦏ' ],
-       [ 'l', '', 'ꦭ' ],
-       [ 'm', '', 'ꦩ' ],
-       [ 'n', '', 'ꦤ' ],
-       [ 'o', '', 'ꦺꦴ' ],
-       [ 'p', '', 'ꦥ' ],
-       // ['q', '',''],
-       [ 'r', '', 'ꦫ' ],
-       [ 's', '', 'ꦱ' ],
-       [ 't', '', 'ꦠ' ],
-       [ 'u', '', 'ꦸ' ],
-       // v = f
-       [ 'w', '', 'ꦮ' ],
-       // ['x', '',''],
-       [ 'y', '', 'ꦪ' ],
-       [ 'z', '', 'ꦗ꦳' ],
-
-       // capital Ha-Na-Ca-Ra-Ka
-       [ 'ꦢ(h|H)', '', 'ꦝ' ],
-       [ 'ꦤ(y|Y)', '', 'ꦘ' ], // Nya murda
-       [ 'ꦠ(h|H)', '', 'ꦛ' ],
-       [ 'ꦤ(g|G)', '', 'ꦔ' ],
-       [ 'ꦌ`', '', 'ꦄꦼ' ], // Ê
-       [ 'A', '', 'ꦄ' ], // A
-       [ 'B', '', 'ꦨ' ], // Ba murda
-       [ 'C', '', 'ꦖ' ], // Ca murda(?)
-       [ 'D', '', 'ꦢ' ],
-       [ 'E', '', 'ꦌ' ], // É|È
-       [ '(F|V)', '', 'ꦥ꦳' ],
-       [ 'G', '', 'ꦓ' ], // Ga murda
-       [ 'H', '', 'ꦲ' ],
-       [ 'I', '', 'ꦆ' ], // I
-       [ 'J', '', 'ꦗ' ],
-       [ 'K', '', 'ꦑ' ], // Ka murda
-       [ 'L', '', 'ꦭ' ],
-       [ 'M', '', 'ꦩ' ],
-       [ 'N', '', 'ꦟ' ], //Na murda
-       [ 'O', '', 'ꦎ' ], //O
-       [ 'P', '', 'ꦦ' ], //Pa murda
-       [ 'Q', '', '' ],
-       [ 'R', '', 'ꦫ' ],
-       [ 'S', '', 'ꦯ' ], //Sa murda
-       [ 'T', '', 'ꦡ' ], //Ta murda
-       [ 'U', '', 'ꦈ' ], //U
+       //(see list on http://jv.wiktionary.org/wiki/Panganggo:Bennylin/Trigraf)
+       ['(ꦩ|ꦤ|ꦔ|ꦚ)꧀(ꦲ|ꦤ|ꦕ|ꦫ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)꧀(l|L)', 
'','ꦲ$1꧀$2꧀ꦭ꧀'],//anusvara -l
+       ['(ꦩ|ꦤ|ꦔ|ꦚ)꧀(ꦲ|ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)꧀(r|R)', 
'','ꦲ$1꧀$2ꦿ'],//anusvara -r
+       ['(ꦩ|ꦤ|ꦔ|ꦚ)꧀(ꦲ|ꦤ|ꦕ|ꦫ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)꧀(w|W)', 
'','ꦲ$1꧀$2꧀ꦮ꧀'],//anusvara -w
+       ['(ꦩ|ꦤ|ꦔ|ꦚ)꧀(ꦲ|ꦤ|ꦕ|ꦫ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)꧀(y|Y)', 
'','ꦲ$1꧀$2ꦾ'],//anusvara -y
+       ['꧀a', '',''], //default vowel is a, so, remove the pangkon
+       ['꧀A', '','ꦄ'], //A
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀b', '','$1꧀ꦧ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀B', '','$1꧀ꦨ꧀'], //pasangan Ba murda
+       ['ꦤ꧀(c|C)', '','ꦚ꧀ꦤ꧀'], //n followed by c became nasalized (nasal sound 
'ny' + c)(REF:nyc)
+       ['(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀c', '','$1꧀ꦤ꧀'],
+       ['(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀C', '','$1꧀ꦖ꧀'], //pasangan Ca murda(?)
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀(d|D)', '','$1꧀ꦢ꧀'],
+       ['꧀ꦺ`', '','ꦼ'], //ê
+       ['꧀ꦌ`', '','ꦄꦼ'], //Ê
+       ['꧀e', '','ꦺ'], // é|è
+       ['꧀E', '','ꦌ'], //É|È
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀(f|v|F|V)', '','$1꧀ꦥ꦳꧀'],
+       ['(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀g', '','$1꧀ꦒ꧀'], //can't be started with n, 
reserved for bigraf ng
+       ['(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀G', '','$1꧀ꦓ꧀'], //pasangan Ga murda //can't 
be started with n - see II. 2. 
+       ['(ꦤ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦧ)꧀(h|H)', '','$1꧀ꦲ꧀'], //can't be started with k/d/t/g, 
reserved for bigraf kh/dh/th/gh
+       ['꧀i', '','ꦶ'], // i
+       ['꧀I', '','ꦆ'], //I
+       ['ꦤ꧀(j|J)', '','ꦚ꧀ꦗ꧀'], //n followed by j became nasalized (nasal sound 
'ny' + j)(REF:nyj)
+       ['(ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀(j|J)', '','$1꧀ꦗ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀k', '','$1꧀ꦏ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀K', '','$1꧀ꦑ꧀'], //pasangan Ka murda
+       ['(ꦲ|ꦃ|ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦗ|ꦚ|ꦩ|ꦒ|ꦧ|ꦔ|ꦁ)꧀(l|L)', '','$1꧀ꦭ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀(m|M)', '','$1꧀ꦩ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀n', '','$1꧀ꦤ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀N', '','$1꧀ꦟ꧀'], //pasangan Na murda
+       ['꧀o', '','ꦺꦴ'], // o
+       ['꧀O', '','ꦎ'], //O
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀p', '','$1꧀ꦥ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀P', '','$1꧀ꦦ꧀'], //pasangan Pa murda
+       //q
+       ['(ꦲ|ꦃ|ꦤ|ꦕ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|ꦁ)꧀(r|R)', '','$1ꦿ'], 
//special biconsonant -ra
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀s', '','$1꧀ꦱ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀S', '','$1꧀ꦯ꧀'], //pasangan Sa murda
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀t', '','$1꧀ꦠ꧀'],
+       ['(ꦤ|ꦏ|ꦢ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀T', '','$1꧀ꦡ꧀'], //pasangan Ta murda
+       ['꧀u', '','ꦸ'], // u
+       ['꧀U', '','ꦈ'], //U
        //v = f
-       [ 'W', '', 'ꦮ' ],
-       [ 'X', '', '' ],
-       [ 'Y', '', 'ꦪ' ],
-       [ 'Z', '', 'ꦗ꦳' ],
+       ['(ꦲ|ꦃ|ꦤ|ꦫ|ꦂ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦔ|ꦁ)꧀(w|W)꧀', '','$1꧀ꦮ'],
+       ['꧀x', '','ꦼ'], //x is another way to write ê
+       ['꧀X', '','ꦄꦼ'], //X is another way to write Ê
+       ['(ꦲ|ꦃ|ꦫ|ꦂ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦩ|ꦒ|ꦧ|ꦔ)꧀(y|Y)', '','$1ꦾ'], //special 
biconsonant -ya,
+       //can't be started with n or y, reserved for bigraf ny  (REF:-yy-)
+       ['(ꦤ|ꦏ|ꦠ|ꦱ|ꦭ|ꦥ|ꦗ|ꦩ|ꦒ|ꦧ)꧀(z|Z)', '','$1ꦾꦗ꦳꧀'], //can't be started with 
d, reserved for bigraf dz
 
-       [ '0', '', '꧐' ],
-       [ '1', '', '꧑' ],
-       [ '2', '', '꧒' ],
-       [ '3', '', '꧓' ],
-       [ '4', '', '꧔' ],
-       [ '5', '', '꧕' ],
-       [ '6', '', '꧖' ],
-       [ '7', '', '꧗' ],
-       [ '8', '', '꧘' ],
-       [ '9', '', '꧙' ],
-       [ ',', '', '꧈' ],
-       [ '\\.', '', '꧉' ],
-       [ '꧊\\|', '', '꧋' ], // '||'
-       [ '\\|', '', '꧊' ], // '|'
-       [ '\\(', '', '꧌' ], // '('
-       [ '\\)', '', '꧍' ], // ')'
-       [ '(\u200C)*_', '', '\u200c' ]
+       //IV. 3. Extended vowel
+       //long a (aa) - see II.
+       ['(ꦲ|ꦤ|ꦕ|ꦫ|ꦏ|ꦢ|ꦠ|ꦱ|ꦮ|ꦭ|ꦥ|ꦝ|ꦗ|ꦪ|ꦚ|ꦩ|ꦒ|ꦧ|ꦛ|ꦔ|꦳)i', '','$1ꦍ'], 
//hanacaraka + i = -ai
+       ['ꦶi', '','ꦷ'], //long i (ii)
+       ['ꦸu', '','ꦹ'], //long u (uu)
+
+       //IV. 2. Extended consonant
+       ['ꦏ꧀h', '','ꦏ꦳'], //kh
+       ['ꦒ꧀h', '','ꦒ꦳'], //gh
+       ['ꦢ꧀z', '','ꦢ꦳'], //dz
+       ['ꦗ`', '','ꦙ'], //Ja mahaprana
+
+       //IV. 1. Special consonant
+       ['(ꦾ|ꦿ)a', '','$1'],
+       ['ꦿx', '','ꦽ'],
+       ['ꦿꦺ`', '','ꦽ'], //special biconsonant -rê (ꦺ` = ꦼ)
+       ['ꦭx', '','ꦊ'],
+       ['ꦭꦺ`', '','ꦊ'], // special character lê
+       ['ꦫx', '','ꦉ'],
+       ['ꦫꦺ`', '','ꦉ'], // special character rê
+
+       //III. Non-words
+       [' ', '','​'], //zero-width-space, since javanese have no space
+       ['꧞q', '','꧟'], //pada isen-isen
+       ['꧆q', '','꧞'], //pada tirta tumetes
+       ['ꦀq', '', '꧆'],//pada windu
+       ['꦳q', '','ꦀ'], //panyangga
+       ['꧀q', '','꦳'], //cecak telu
+       ['q', '','꧀'], //pengkal - to cut off the default -a vowel
+       ['꧄Q', '','꧅'], //pada luhur
+       ['꧃Q', '','꧄'], //pada madya
+       ['꧂Q', '', '꧃'],//pada andhap
+       ['꧁Q', '','꧂'], //
+       ['꧇Q', '','꧁'], //
+       ['Q', '','꧇'], //pada pangkat
+
+       ['ꦫq', '','ꦿ'], //another way to write -ra
+       ['ꦪq', '','ꦾ'], //another way to write -ya
+
+       //II. 1. Alphabetical ha-na-ca-ra-ka
+       ['ꦠ꧀h', '','ꦛ꧀'], //th
+       ['ꦢ꧀h', '','ꦝ꧀'], //dh
+       ['ꦤ꧀y', '','ꦚ꧀'], //ny
+       ['ꦤ꧀g', '','ꦔ꧀'], //ng
+       ['ꦺ`', '','ꦼ'], //ê
+       ['a', '','ꦴ'],
+       ['b', '','ꦧ꧀'],
+       ['c', '','ꦕ꧀'],
+       ['d', '','ꦢ꧀'],
+       ['e', '','ꦺ'], // é|è
+       ['(f|v)', '','ꦥ꦳꧀'],
+       ['g', '','ꦒ꧀'],
+       ['h', '','ꦲ꧀'],
+       ['i', '','ꦶ'],
+       ['j', '','ꦗ꧀'],
+       ['k', '','ꦏ꧀'],
+       ['l', '','ꦭ꧀'],
+       ['m', '','ꦩ꧀'],
+       ['n', '','ꦤ꧀'],
+       ['o', '','ꦺꦴ'],
+       ['p', '','ꦥ꧀'],
+       //q = special letters, see III.
+       ['r', '','ꦫ꧀'],
+       ['s', '','ꦱ꧀'],
+       ['t', '','ꦠ꧀'],
+       ['u', '','ꦸ'],
+       //v = f
+       ['w', '','ꦮ꧀'],
+       ['x', '','ꦼ'], //x is another way to write ê
+       ['y', '','ꦪ꧀'],
+       ['z', '','ꦗ꦳꧀'],
+
+       //II. Basic Letters:
+       //II. 2. Capital Ha-Na-Ca-Ra-Ka (Aksara Murda)
+       ['(ꦠ|ꦡ)꧀(h|H)', '','ꦛ꧀'],
+       ['ꦢ꧀(h|H)', '','ꦝ꧀'],
+       ['ꦟ꧀y', '','ꦘ꧀'], //Nya murda
+       ['(ꦤ|ꦟ)꧀Y', '','ꦘ꧀'], //NYA murda
+       ['(ꦤ|ꦟ)꧀(g|G)', '','ꦔ꧀'],//nga
+       ['ꦌ`', '','ꦄꦼ'], //Ê
+       ['A', '','ꦄ'], //A
+       ['B', '','ꦨ꧀'], //Ba murda
+       ['C', '','ꦖ꧀'], //Ca murda(?)
+       ['D', '','ꦢ꧀'],
+       ['E', '','ꦌ'], // É|È
+       ['(F|V)', '','ꦥ꦳꧀'],
+       ['G', '','ꦓ꧀'], //Ga murda
+       ['H', '','ꦲ꧀'],
+       ['I', '','ꦆ'], //I
+       ['J', '','ꦗ꧀'],
+       ['K', '','ꦑ꧀'], //Ka murda
+       ['L', '','ꦭ꧀'],
+       ['M', '','ꦩ꧀'],
+       ['N', '','ꦟ꧀'], //Na murda
+       ['O', '','ꦎ'], //O
+       ['P', '','ꦦ꧀'], //Pa murda
+       //Q = special letters, see III.
+       ['R', '','ꦫ꧀'],
+       ['S', '','ꦯ꧀'], //Sa murda
+       ['T', '','ꦡ꧀'], //Ta murda
+       ['U', '','ꦈ'], //U
+       //V = F
+       ['W', '','ꦮ꧀'],
+       ['X', '','ꦄꦼ'], //X is another way to write Ê
+       ['Y', '','ꦪ꧀'],
+       ['Z', '','ꦗ꦳꧀'],
+
+       //I. Number
+       ['0', '','꧐'],
+       ['1', '','꧑'],
+       ['2', '','꧒'],
+       ['3', '','꧓'],
+       ['4', '','꧔'],
+       ['5', '','꧕'],
+       ['6', '','꧖'],
+       ['7', '','꧗'],
+       ['8', '','꧘'],
+       ['9', '','꧙'],
+       [',', '','꧈'],
+       ['\\.', '','꧉'],
+       ['꧊\\|', '','꧋'], // '||'
+       ['\\|', '','꧊'], // '|'
+       ['\\(', '','꧌'], // '('
+       ['\\)', '','꧍'], // ')'
+       ['(\u200C)*_', '', '\u200c']
 ];
 
 jQuery.narayam.addScheme( 'jv', {
        'namemsg': 'narayam-jv',
        'extended_keyboard': false,
-       'lookbackLength': 2,
-       'keyBufferLength': 1,
+       'lookbackLength': 3,
+       'keyBufferLength': 2,
        'rules': rules
 } );

-- 
To view, visit https://gerrit.wikimedia.org/r/43483
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If0e5f507453f6dcfeedf61377bf1137058378262
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Narayam
Gerrit-Branch: master
Gerrit-Owner: Dereckson <dereck...@espace-win.org>
Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: Bennylin <bennylin.idw...@hotmail.com>
Gerrit-Reviewer: Dereckson <dereck...@espace-win.org>
Gerrit-Reviewer: Logicwiki <srik....@gmail.com>
Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to