| Server IP : 104.21.84.107 / Your IP : 104.23.197.208 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/m17n/ |
Upload File : |
;; sa-itrans.mim -- Sanskrit input method with ITRANS method
;; Copyright (C) 2012 Kencihi Handa <[email protected]>
;; This file is part of the m17n database; a sub-part of the m17n
;; library.
;; The m17n library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public License
;; as published by the Free Software Foundation; either version 2.1 of
;; the License, or (at your option) any later version.
;; The m17n library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Lesser General Public License for more details.
;; You should have received a copy of the GNU Lesser General Public
;; License along with the m17n library; if not, write to the Free
;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;; This file is branched from hi-itrans.mim.
(input-method sa itrans)
(description "Sanskrit input method by ITRANS and Harvard-Kyoto
transliteration systems.
You can use all the standard ITRANS key sequences (modulo ऍ ऑ) plus key
sequences such as the below.
nk->ङ्क्, nkh->ङ्ख्, ng->ङ्ग्, ngh->ङ्घ्
nch->ञ्च्, nCh->ञ्छ्, nc->ञ्च्, nC->ञ्छ्, nchh->ञ्छ्,
nj->ञ्ज्, njh->ञ्झ्, nT->ण्ट्, nTh->ण्ठ्, nD->ण्ड्, nDh->ण्ढ्
c->च्, C->छ्, z->श्, S->ष्, jn->ज्ञ्, R->ऋ
_->॒, ''->॑
Basic ITRANS references - https://www.aczoom.com/itrans/html/dvnc/node3.html
For motivations and further details, see description of hi-itrans.mim.")
(title "सं")
(variable (trim-last-halant nil 0)
(enable-udatta nil 1))
(include (hi itrans) map)
(map
(udattta
("_" "॒")
; ("__" "᳘") ; shatapatha brAhmaNa style
; ("___" "꣣") ; kauthuma saMhitA style.
("''" "॑")
("'''" "᳕") ; kaTha style। Doesn't show well in skmnktl's Mac as of 202209
; ("'''" "꣡") ; kauthuma saMhitA style. More frequently used than \꣢, so should be able to type easily. Doesn't show well on Mac and android whatsapp.
; Alternate - shaunaka vulage style: ("\'\"\"" "᳡")
("\'\"" "꣢") ; "" is not suitable since it is frequently typed with the intention of inserting text between the quotes.
("!!" "꣡")
))
(state
(init
(starter (pushback 1) (shift intermediate))
(udattta)
(misc))
(intermediate
;; CANDRA-E-O is set to the character CANDRA E or CANDRA O when "e"
;; or "o" is typed, and in that case, if ".c" is typed, the
;; character set to CANDRA-E-O is inserted.
(t (set CANDRA-E-O 0))
;; LAST-HALANT-POS is set to the position after a consonat + HALANT
;; sequence. If the following key is for non-letter, that HALANT
;; character is removed.
(consonant (mark LAST-HALANT-POS) (shift second))
(independent (cond (CANDRA-E-O (shift after-eo)) (1 (shift init))))
(digit (shift init))
(danda (shift init))
(udattta (shift init))
(backspace)
(commit-key (shift init)))
(second
;; CANDRA-E-O is set to the character CANDRA E or CANDRA O when "e"
;; or "o" is typed, and in that case, if ".c" is typed, the
;; character set to CANDRA-E-O is inserted.
(t (set CANDRA-E-O 0))
(consonant (mark LAST-HALANT-POS))
(dependent (cond (CANDRA-E-O (shift after-eo)) (1 (shift init))))
(danda
(cond (trim-last-halant (move LAST-HALANT-POS) (delete @-) (move @>)))
(shift init))
(udattta
(cond (trim-last-halant (move LAST-HALANT-POS) (delete @-) (move @>)))
(shift init))
(backspace)
(commit-key (shift init))
(nil (cond (trim-last-halant (move LAST-HALANT-POS) (delete @-) (move @>)))
(shift init)))
(after-eo
(t (set DOT 0))
(dot)
(eo-dot-c (shift init))
(danda (shift init))
(udattta (shift init))
(commit-key (shift init))
(nil (cond (DOT (delete @-) (pushback 1))) (shift init))))
;; Local Variables:
;; coding: utf-8
;; mode: emacs-lisp
;; End: