Skip to content

rhoit/m17n-ne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m17n-ne

Nepali input method variants for ibus-m17n.

1 Getting It

1.1 Requirements

Systemsupporting ibus
Dependenciesibus, m17n-db

1.2 Install

# make install

restart the ibus for changes to appear.

$ ibus restart

2 About layouts

We provived some of the layout not offered by the m17n-db. m17n provides the handy way to add, layout see tutorial.

LayoutDescription
lipilipi (लिपि) is designed for programmer/localizers
rom-impimprovement with 99% backward compatibility

2.1 Why ?

  • Few frequently used symbol (i.e. “~!@#$%^&*(){}<>”) unavailable in romanized layout, resulting in constant switching, which is major headache for programmers and localizers.
  • Vanilla Romanized doesn’t do ovious corrections.
  • Romanized layout was designed for fixed layout, where composite entries were not possible

2.2 Design

LayoutControl Charphoneticvisualvowelremap
lipi2145810
rom-imp214580

2.2.1 escape sequence

Use escape sequence backward slash (\) for accessing default mapping. The all other mapping for the backward slash \ has revoked in all layouts. e.g. for typing / use \/.

2.2.2 unicode control character

Most of us never knew the secret of typing “न्‍न” since you always got “न्न”. Problem was special character Zero Width Joiner (ZWJ), which was invisible cumbersome to find!

NOTE: If you see no different between “न्‍न” and “न्न” your have a smart renderer.

#SequenceTokensResult
1/
2//् + ्् + ZWJ
3///् + ् + ्् + ZNWJ

2.2.3 phonetic completion

Most of the people have hard time remembering the sequence for special characters, here we provide phonetic/trasliterative completions. And wait, old method still works and there few more too!

NOTE: If you see no different between “त्र” and “त्‌र” or “श्र” and “श्‌र” your have a some problem in your renderer.

#Symbolin RomanizedAlternatives
1key: ‘[’sequence: ‘ie’
2key: ‘{’sequence: ‘iee’
3त्रsequence: ‘t/r’sequence: ‘traa’
4क्षsequence: ‘k/z’sequence: ‘chyaa’
5ज्ञsequence: ‘j/Y’sequence: ‘gyaa’, ‘jyaa’
6श्रsequence: ‘t/r’sequence: ‘shree’
7द्यsequence: ‘d/y’sequence: dhyaa
8key: ‘<’sequence: naa
9key: ‘L’sequence: ‘lll’
10key: ‘'sequence: ‘oom’
11key: ‘Z’sequence: ‘rii’
12Nonesequence: ‘riii’
13Nonesequence: ‘lree’
14Nonesequence: ‘lreee’

2.2.4 Visual Similar Corrections

While writing by hand, each glyph is seen separately but ironically each section is character on its own, combined to create a new character.

for example:

आ ≠ अा (अ + ा)

ओ ≠ अो (अ + ो)

ऐ ≠ एे (ए + े)

But, in computers characters is represented by code, which is infact different even though they looks same/similar. This is why spell checker flags them, now its all right to make those mistakes. No more hunt and peak for आ, ओ, औ, ऐ.

#SymbolSequence
1अ + ा
2अ + े
अ + ो
अ + ा + ो
3अ + ौ
अ + ो + े
अ + े + ो
अ + ा + ै
अ + ा + े + े
4ए + े
5ऊ + ँ + ँ

2.2.5 Vowels

2.2.5.1 semivowel sequence

Semivowel(diacritic) in sequence of 2 will create the independent vowel form.

#CharacterSequence
1ा + ा
2ि + ि
3ी + ी
4ु + ु
5ू + ू
6े + े
7ै + ै
8ो + ो
9ौ + ौ

2.2.5.2 higher vowel

Independent vowel followed by semivowel.

#CharacterSequence
1अ + ा
2इ + ि
इ + ी
3उ + ु
उ + ू
4ए + े
ए + ै
5ओ + ो
ओ + ौ

2.2.5.3 Idiomatic completions

#SymbolSequence
1अ + े
2अ + ै
3ड + ं + ं
4ं + ं

2.2.6 remap

We have remapped some of the symbols specially in lipi layout.

NOTE: This section is not applied for all layouts.

#Symbolin Romanized
keyvisualvowelphonetic
1fYु + ु
2Fू + ू
3[fि + िie
4{Fी + ीiee
5]zे + े
6}ए + ेै + ै
7Zrii
8<ड + ं + ंnaa
9zZ
10\ऊ + ँ + ँoom

3 Cross Map Hacks

Since ibus runs setxkbmap in background, which alternative layout, is reset to us (qwerty).

as they say:

Go Away Or I Will Replace You With A Very Small Shell Script

3.1 How to install

for now it only works for dvorak layout, see hijack.sh script to change to other layout. Here is back story of endeavor.

# make hijack

About

🚌 nepali im varients for ibus-m17n

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published