)
(independent
- (set C @-) (set PREV @-2)
+ (set C @-1) (set PREV @-2)
(cond ((= PREV PM)
(set PREV @-3)
(cond ((| (= PREV PV1) (= PREV PV2))
(delete @-2) (insert C) (insert PREV))))))
(pre-vowel
- (set C @-) (set NEXT @+1)
+ (set C @-1) (set NEXT @+1)
(cond ((& (>= NEXT 0xAA00) (<= NEXT 0xAA28))
(delete @-1) (delete @+1) (insert NEXT) (insert C) (set NEXT @+1)))
(cond ((& (>= NEXT 0xAA33) (<= NEXT 0xAA36))
(delete @-1) (delete @+1) (insert NEXT) (insert C))))
(pre-medial
- (set C @-) (set NEXT @+1)
+ (set C @-1) (set NEXT @+1)
(cond ((& (>= NEXT 0xAA00) (<= NEXT 0xAA28))
(delete @-1) (delete @+1) (insert NEXT) (insert C))))
("E"
(cond
((= @- 0x0D85) (delete @-) "ඈ") ; 0D88
- ((& (= @-2 0x0DC5) (= @- 0x0DD4))
+ ((& (= @-2 0x0DC5) (= @-1 0x0DD4))
(delete @-) "ූ") ; 0DD6
(1 "ෑ"))) ; 0DD1
("s" "ි") ; 0DD2
("H" ; yansaya (0DCA 200D 0DBA)
(cond
- ((| (= @- 0x0DD9) (= @- 0x0DDB))
+ ((| (= @-1 0x0DD9) (= @-1 0x0DDB))
(move @-) "්ය" (move @>))
(1
"්ය")))
("`" ; rakaransaya (0DCA 200D 0DBB)
(cond
- ((| (= @- 0x0DD2) (= @- 0x0DD3) (= @- 0x0DD9) (= @- 0x0DDB))
+ ((| (= @-1 0x0DD2) (= @-1 0x0DD3) (= @-1 0x0DD9) (= @-1 0x0DDB))
(move @-) "්ර" (move @>))
(1 "්ර")))
(dependent)
(join
(cond
- ((| (= @- 0x0DD9) (= @- 0x0DDB))
+ ((| (= @-1 0x0DD9) (= @-1 0x0DDB))
(shift join-state))
- ((| (< @- 0x0D9A) (> @- 0x0DC6))
+ ((| (< @-1 0x0D9A) (> @-1 0x0DC6))
(undo -1))
(1
(shift join-state))))
(mark p))
(independent
(move p)
- (set c @-)
+ (set c @-1)
(cond
((| (= c 0x0DD9) (= c 0x0DDB))
(delete @-)