This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18099 from Moz-TedC/bug-974794-vietnamese-ime-plu…
…s-telex Bug 974794: Vietnamese IME. Incorporates Trung Ngo's Telex IME code.
- Loading branch information
Showing
8 changed files
with
1,039 additions
and
3 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
Keyboards['vi-Qwerty'] = { | ||
label: 'Vietnamese', | ||
menuLabel: 'Tiếng Việt (QWERTY)', | ||
imEngine: 'vietnamese', | ||
needsCandidatePanel: true, | ||
width: 10, | ||
types: ['text', 'url', 'email'], | ||
alt: { | ||
'a': 'ăâ', | ||
'd': 'đ', | ||
'e': 'ê', | ||
'o': 'ôơ', | ||
'u': 'ư', | ||
'.': ',?!-;:' | ||
}, | ||
keys: [ | ||
[ | ||
{ value: 'q' }, { value: 'w' }, { value: 'e' }, { value: 'r' }, | ||
{ value: 't' } , { value: 'y' }, { value: 'u' }, { value: 'i' }, | ||
{ value: 'o' }, { value: 'p' } | ||
], [ | ||
{ value: 'a' }, { value: 's' }, { value: 'd' }, { value: 'f' }, | ||
{ value: 'g' } , { value: 'h' }, { value: 'j' }, { value: 'k' }, | ||
{ value: 'l' } | ||
], [ | ||
{ value: '⇪', ratio: 1.5, keyCode: KeyEvent.DOM_VK_CAPS_LOCK }, | ||
{ value: 'z' }, { value: 'x' }, { value: 'c' }, { value: 'v' }, | ||
{ value: 'b' }, { value: 'n' }, { value: 'm' }, | ||
{ value: '⌫', ratio: 1.5, keyCode: KeyEvent.DOM_VK_BACK_SPACE } | ||
], [ | ||
{ value: ' ', ratio: 8, keyCode: KeyboardEvent.DOM_VK_SPACE }, | ||
{ value: '↵', ratio: 2, keyCode: KeyEvent.DOM_VK_RETURN } | ||
] | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Keyboards['vi-Telex'] = { | ||
label: 'Vietnamese (Telex)', | ||
menuLabel: 'Tiếng Việt (Telex)', | ||
imEngine: 'jstelex', | ||
types: ['text', 'url', 'email'], | ||
keys: [ | ||
[ | ||
{ value: 'q' }, { value: 'w' }, { value: 'e' } , { value: 'r' }, | ||
{ value: 't' } , { value: 'y' }, { value: 'u' } , { value: 'i' }, | ||
{ value: 'o' }, { value: 'p' } | ||
], [ | ||
{ value: 'a' }, { value: 's' }, { value: 'd' }, { value: 'f' }, | ||
{ value: 'g' } , { value: 'h' }, { value: 'j' }, { value: 'k' }, | ||
{ value: 'l' }, | ||
{ value: ':', visible: ['url']}, { value: '_', visible: ['email']} | ||
], [ | ||
{ value: '⇪', ratio: 1.5, keyCode: KeyEvent.DOM_VK_CAPS_LOCK }, | ||
{ value: 'z' }, { value: 'x' }, { value: 'c' }, { value: 'v' }, | ||
{ value: 'b' }, { value: 'n' }, { value: 'm' }, | ||
{ value: '⌫', ratio: 1.5, keyCode: KeyEvent.DOM_VK_BACK_SPACE } | ||
], [ | ||
{ value: ' ', ratio: 8, keyCode: KeyboardEvent.DOM_VK_SPACE }, | ||
{ value: '↵', ratio: 2, keyCode: KeyEvent.DOM_VK_RETURN } | ||
] | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
// This is a traditional Vietnamese typewriter layout. | ||
Keyboards['vi-Typewriter'] = { | ||
label: 'Vietnamese', | ||
menuLabel: 'Tiếng Việt', | ||
imEngine: 'vietnamese', | ||
needsCandidatePanel: true, | ||
width: 10, | ||
types: ['text', 'url', 'email'], | ||
alt: { | ||
'đ': 'z', | ||
'ư': 'f', | ||
'ơ': 'j', | ||
'ă': 'w', | ||
'.': ',?!-;:' | ||
}, | ||
keys: [ | ||
[ | ||
{ value: 'a' }, { value: 'đ' }, { value: 'e' }, { value: 'r' }, | ||
{ value: 't' } , { value: 'y' }, { value: 'u' }, { value: 'i' }, | ||
{ value: 'o' }, { value: 'p' } | ||
], [ | ||
{ value: 'q' }, { value: 's' }, { value: 'd' }, { value: 'ư' }, | ||
{ value: 'g' } , { value: 'h' }, { value: 'ơ' }, { value: 'k' }, | ||
{ value: 'l' }, { value: 'm' } | ||
], [ | ||
{ value: '⇪', ratio: 1.5, keyCode: KeyEvent.DOM_VK_CAPS_LOCK }, | ||
{ value: 'ă' }, { value: 'x' }, { value: 'c' }, { value: 'v' }, | ||
{ value: 'b' }, { value: 'n' }, { value: '^', keyCode: 94 }, | ||
{ value: '⌫', ratio: 1.5, keyCode: KeyEvent.DOM_VK_BACK_SPACE } | ||
], [ | ||
{ value: ' ', ratio: 8, keyCode: KeyboardEvent.DOM_VK_SPACE }, | ||
{ value: '↵', ratio: 2, keyCode: KeyEvent.DOM_VK_RETURN } | ||
] | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters