Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Vietnamese input method for Firefox OS

82 views
Skip to first unread message

Trung Ngo

unread,
Oct 2, 2013, 9:30:56 PM10/2/13
to mozilla-comm...@lists.mozilla.org
Hey guys,

I've done some scouting and found out that our Chinese and Japanese friends
have done some preliminary work on the input method front. We can use their
code as the base for the Vietnamese input method.

Who's with me?

https://github.com/mozilla-b2g/gaia/tree/master/apps/keyboard/js
https://groups.google.com/forum/#!topic/mozilla.dev.gaia/rpl9t8otcP8

--
Best regards,
Trung "Chin" Ngo

Developer, Linux/Unix specialist

http://ngochin.com - ndtru...@gmail.com - +84 168 713 4338

Truong Anh. Tuan

unread,
Oct 3, 2013, 4:06:47 AM10/3/13
to Mozilla Vietnam Community - Cộ ng đ ồ ng Mozilla Việ t Nam, mozilla-comm...@lists.mozilla.org

----- Original Message -----
> From: "Trung Ngo" <ndtru...@gmail.com>
> To: mozilla-comm...@lists.mozilla.org
> Sent: Wednesday, October 2, 2013 6:30:56 PM
> Subject: [mozvn] Vietnamese input method for Firefox OS
>
> Hey guys,
>
> I've done some scouting and found out that our Chinese and Japanese friends
> have done some preliminary work on the input method front. We can use their
> code as the base for the Vietnamese input method.
>
> Who's with me?
>
> https://github.com/mozilla-b2g/gaia/tree/master/apps/keyboard/js
> https://groups.google.com/forum/#!topic/mozilla.dev.gaia/rpl9t8otcP8

Great. Please count me in.
Which skill(s) do we need? just js or something?

Kind regards,
Tuan

Truong Anh. Tuan

unread,
Oct 3, 2013, 4:06:47 AM10/3/13
to Mozilla Vietnam Community - C&#7897; ng &#273; &#7891; ng Mozilla Vi&#7879; t Nam, mozilla-comm...@lists.mozilla.org

Trung Ngo

unread,
Oct 3, 2013, 6:30:05 AM10/3/13
to communit...@lists.mozilla.org
Ngày 03/10/2013 15:06, Truong Anh. Tuan viết:
Just some general hacker attitude goes a long way :)

Btw, as the maintainer of ibus-bogo, a Vietnamese input method which I'm
sure many of you here are acquainted with, I am considering rewriting
the engine in ClojureScript to be more friendly to web environment (like
FirefoxOS) while still retain desktop compatibility (using GNOME's gjs
or a similar javascript runtime) so exposure to Clojure is welcomed.

Nguyễn Phan Hải

unread,
Oct 4, 2013, 5:29:20 AM10/4/13
to Mozilla Vietnam Community - C&#7897, ng &#273, &#7891, ng Mozilla Vi&#7879, t Nam
On Thu, Oct 3, 2013 at 5:30 PM, Trung Ngo <ndtru...@gmail.com> wrote:
> Ngày 03/10/2013 15:06, Truong Anh. Tuan viết:
>
>> ----- Original Message -----
>>>
>>> From: "Trung Ngo" <ndtru...@gmail.com>
>>> To: mozilla-comm...@lists.mozilla.org
>>> Sent: Wednesday, October 2, 2013 6:30:56 PM
>>> Subject: [mozvn] Vietnamese input method for Firefox OS
>>>
>>> Hey guys,
>>>
>>> I've done some scouting and found out that our Chinese and Japanese
>>> friends
>>> have done some preliminary work on the input method front. We can use
>>> their
>>> code as the base for the Vietnamese input method.
>>>
>>> Who's with me?
>>>
>>> https://github.com/mozilla-b2g/gaia/tree/master/apps/keyboard/js
>>> https://groups.google.com/forum/#!topic/mozilla.dev.gaia/rpl9t8otcP8
>>
>> Great. Please count me in.
>> Which skill(s) do we need? just js or something?
>>
>
> Just some general hacker attitude goes a long way :)

I'm in :)

> Btw, as the maintainer of ibus-bogo, a Vietnamese input method which I'm
> sure many of you here are acquainted with, I am considering rewriting the
> engine in ClojureScript to be more friendly to web environment (like
> FirefoxOS) while still retain desktop compatibility (using GNOME's gjs or a
> similar javascript runtime) so exposure to Clojure is welcomed.

JS, ClojureScript or even Chlorine :D

> _______________________________________________
> community-vietnam mailing list
> communit...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/community-vietnam
>
> Blog and official website: http://www.mozilla.vn/blog/
> Mailing list on translation: https://lists.mozilla.org/listinfo/dev-l10n-vi
> Facebook group: https://www.facebook.com/groups/mozvn/
> Community mailing list: https://lists.mozilla.org/listinfo/community-vietnam



--
Nguyễn Phan Hải

arky

unread,
Oct 11, 2013, 7:27:26 AM10/11/13
to mozilla-comm...@lists.mozilla.org
On 10/04/2013 11:29 AM, Nguyễn Phan Hải wrote:
> On Thu, Oct 3, 2013 at 5:30 PM, Trung Ngo <ndtru...@gmail.com> wrote:
>
>> Btw, as the maintainer of ibus-bogo, a Vietnamese input method which I'm
>> sure many of you here are acquainted with, I am considering rewriting the
>> engine in ClojureScript to be more friendly to web environment (like
>> FirefoxOS) while still retain desktop compatibility (using GNOME's gjs or a
>> similar javascript runtime) so exposure to Clojure is welcomed.
>
> JS, ClojureScript or even Chlorine :D
>
>

Let's file a bug for adding Vietnamese keyboard support to FirefoxOS.
Write a patch using the third-party keyboard hooks and attach it for
review.

Also test this keyboard on latest FirefoxOS gaia master and flash it to
your device for testing.

Cheers

--arky


Trung Ngo

unread,
Oct 11, 2013, 10:48:47 AM10/11/13
to Mozilla Vietnam Community - C&#7897, ng &#273, &#7891, ng Mozilla Vi&#7879, t Nam, mozilla-comm...@lists.mozilla.org
On Thứ sáu, 11 Tháng mười Năm 2013 18:27:26 ICT, arky wrote:
>
> Let's file a bug for adding Vietnamese keyboard support to FirefoxOS.

Should we file it before implementing or the other way around?

> Write a patch using the third-party keyboard hooks and attach it for
> review.
>

The 'hook', AFAIK is to write a script, put it in a same-name folder
inside the 'keyboard' app and follow some calling convention in
keyboard.js. Am I missing anything here?

https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/js/keyboard.js#L32

> Also test this keyboard on latest FirefoxOS gaia master and flash it
> to your device for testing.
>

Exactly what we're doing. Thanks for the guidance :D

Trung Ngo

unread,
Oct 11, 2013, 10:48:47 AM10/11/13
to Mozilla Vietnam Community - C&#7897, ng &#273, &#7891, ng Mozilla Vi&#7879, t Nam, mozilla-comm...@lists.mozilla.org

arky

unread,
Oct 12, 2013, 1:22:17 AM10/12/13
to mozilla-comm...@lists.mozilla.org
On 10/11/2013 04:48 PM, Trung Ngo wrote:
> On Thứ sáu, 11 Tháng mười Năm 2013 18:27:26 ICT, arky wrote:
>>
>> Let's file a bug for adding Vietnamese keyboard support to FirefoxOS.
>
> Should we file it before implementing or the other way around?

File a bug first to firefoxOs component in Bugzilla and CC me to it. The
code logic for providing the keyboards has changed.

While testing the FirefoxOS phones make sure you are using the master
builds or nightly builds. Also look at the quality of fonts and UX problems.

Cheers

--arky

Nghi Trần

unread,
Jan 8, 2014, 2:16:30 AM1/8/14
to
Can I join to this project? I want to contribute to this project, can you give me some instructions to begin?

Regards,
Nghi Tran

Trung Ngo

unread,
Jan 8, 2014, 12:51:57 PM1/8/14
to Mozilla Vietnam Community - C&#7897, ng &#273, &#7891, ng Mozilla Vi&#7879, t Nam
Hi Nghi,

2014/1/8 Nghi Trần <nghirat...@gmail.com>:
>
> Can I join to this project? I want to contribute to this project, can you give me some instructions to begin?

That's wonderful.

The work so far is on my Github repo [1]. Our plan is to rewrite
ibus-bogo-python [2] in C [3] and use emscripten [4] to compile it to
Javascript/asm.js just like the Chinese input method in FxOS [5].

I suggest you clone gaia [6] and toy around with the API in the
/apps/keyboard subdirectory. If you have time, come join the BoGo team
at #bogo on Freenode.net. [7]

[1]: https://github.com/lewtds/gaia/compare
[2]: https://github.com/BoGoEngine/ibus-bogo-python/
[3]: https://github.com/lewtds/bogo-c
[4]: https://github.com/kripken/emscripten/wiki
[5]: https://github.com/mozilla-b2g/gaia/tree/master/apps/keyboard/js/imes/jspinyin
[6]: https://github.com/mozilla-b2g/gaia
[7]: https://kiwiirc.com/client/chat.freenode.net/?nick=bogo-user%7C?&theme=basic#bogo

Trung Ngo

unread,
Feb 7, 2014, 12:44:30 AM2/7/14
to Mozilla Vietnam Community - C&#7897, ng &#273, &#7891, ng Mozilla Vi&#7879, t Nam, nghirat...@gmail.com
Hi everyone,

I just want to recap that the plan below is working out nicely. The
rewritten libbogo in C can now pass some tests from ibus-bogo-python
and can handle simple TELEX typing. Yesterday I wrote a
Javascript/Emscripten build target for it [1]. The new target doesn't
build cleanly yet but I hope to have that resolved by the end of the
week.

If anyone wants to help, you're welcomed to join us at the #bogo
channel on Freenode.

[1]: https://github.com/lewtds/bogo-c/commit/9939795c264900e15218b6d906c42420a536e4b1


2014-01-09 Trung Ngo <ndtru...@gmail.com>:
> Hi Nghi,
>
> 2014/1/8 Nghi Trần <nghirat...@gmail.com>:
>>
>> Can I join to this project? I want to contribute to this project, can you give me some instructions to begin?
>
> That's wonderful.
>
> The work so far is on my Github repo [1]. Our plan is to rewrite
> ibus-bogo-python [2] in C [3] and use emscripten [4] to compile it to
> Javascript/asm.js just like the Chinese input method in FxOS [5].
>



Trung Ngo

unread,
Feb 7, 2014, 8:35:05 AM2/7/14
to Mozilla Vietnam Community - C&#7897, ng &#273, &#7891, ng Mozilla Vi&#7879, t Nam, nghirat...@gmail.com

On 07.02.2014 12:44, Trung Ngo wrote:
> The new target doesn't build cleanly yet but I hope to have that resolved by the end of the
> week.

Well, sooner than I thought :)

http://ngochin.com/bogo-c/tryout/

(This tryout page only support typing in TELEX rules)

arky

unread,
Feb 12, 2014, 11:01:06 PM2/12/14
to mozilla-comm...@lists.mozilla.org
On 02/07/2014 08:35 PM, Trung Ngo wrote:
>
> On 07.02.2014 12:44, Trung Ngo wrote:
>> The new target doesn't build cleanly yet but I hope to have that
>> resolved by the end of the
>> week.
As a non-vietnamese speaker I am trying to understand the benefits of
this custom input method?

What is the default keyboard method for Vietnamese on Android? What's
its pros and cons?

Cheers

--arky

Nguyễn Hà Dương

unread,
Feb 12, 2014, 11:56:54 PM2/12/14
to communit...@lists.mozilla.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Arky,

El 02/13/2014 11:01 AM, arky escribió:
> As a non-vietnamese speaker I am trying to understand the benefits
> of this custom input method?
>
> What is the default keyboard method for Vietnamese on Android?
> What's its pros and cons?
>

There is technically no default input method for Vietnamese on
Android. What we have is a non-standard keyboard layout which
combines all variants of a letter into one place, accessed by tapping
and holding until it appears. A simple example might help
demonstrating my idea:

* With default keyboard, to type "ổ", a user needs to tap and hold
letter "o" until a popup appears, and then choose "ổ" from its 18
variants: o ô ơ ò ồ ờ ó ố ớ ỏ ổ ở õ ỗ ỡ ọ ộ ợ; which, is crazy.

* With an input method, to typo "ổ", a user needs only to type "oor"
or "o63".

Best regards,
Duong "Yang"
- --
Duong Nguyen ("Nguyễn Hà Dương" in Vietnamese, 「グエンヤン」 in Japanese)
Blog: http://reference-error.org
Public Key: http://reference-error.org/public.key.txt
"Life is a hack"

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/CS/CC/ED/P/TW d++ s:(-:-) !a C+++(++++) ULU++++ P-- L+++ E@
W++>+++ N+ o+ K w--- O- M@ V- PS+ PE++ Y+>++ PGP++ t+ 5 X+ R- tv+ b+++
DI+++ D++ G++ e* h* r* y-
- -----END GEEK CODE BLOCK-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJS/FCRAAoJEIpp9nyHFJiiBgkP/A5iS1brr56IWezNL6TnR0i2
KamCVwbEaWi2RLfkr0mDzuYXpKMeHmaH1NpL75g1c5enkXn1rXt9CFUqbZTuV6MD
MYtZKeg03v7mC3nzSG2y4XkvbTZGZgM2ZBKzg9NgZsBT3zi/gZdSGOhc/3dpjYII
8hgO6PY9YI+rcXCsf43pcodCq8ptDPpZk4qK9VP1yVFC7LnS5oUS1+xjNAKqeCDt
5k0e3JA9+jh6dp6hhJgep7HsZEd8f6DfIwzYZ7wMYqa1wiJZSvVVZwLlu7z7QN6c
WSUb9q6b4VW5jwyNScZpb+3itaRf8olKgwhcmdNL8PQxRccqWQiwRAWcNxRpeGNY
kdrtVyT9zTN8+WRm2+P41yGmrsdq/5lKGliGNZCFu5bWydJbWB2Un3Sl6c0UTLB7
SfAdqHzhqJgE2KRKZmsnRXw7nbP/E9b0VbGh1XfHyXZcbcwIOJQahhH0fkv5MqtM
Q0Z2Enjr15H3urLR3J3/IaCnVusV9fofOgYJaLUnDwOmYY+TGdU572x8XgYv0ABO
WR+ujIqrFLpgBiWz7gf2tdYw/P7uP/p54FTjY95JlakevZO37m7HElXJL1iNtPp0
3kRvVFoZsCFwjTFA5Y5mwCwXuSL+3luChHftb5qFDibuJtAiHDdTCKg+9TdLehsJ
2FuFZ9XsYipKCqyl6JKX
=H1qu
-----END PGP SIGNATURE-----

Trung Ngo

unread,
Feb 13, 2014, 3:04:31 AM2/13/14
to communit...@lists.mozilla.org

On 13.02.2014 11:01, arky wrote:
> As a non-vietnamese speaker I am trying to understand the benefits of
> this custom input method?
>
> What is the default keyboard method for Vietnamese on Android? What's
> its pros and cons?

It's the difference between having to learn a completely new input
method (the press-hold method) and using a familiar one most Vietnamese
speakers are accustomed to. AFAIK, none of my friends use the default VN
keyboard on Android, it's just too clunky for Vietnamese with its many
possible diacritic combinations.

Btw, following your advice last Saturday, I've rewritten the engine
using native Javascript, not C/Emscripten anymore. The engine in C is
still available for other purposes, if anyone wants to hack on it.

arky

unread,
Feb 14, 2014, 12:13:41 AM2/14/14
to mozilla-comm...@lists.mozilla.org
On 02/13/2014 03:04 PM, Trung Ngo wrote:
>
> It's the difference between having to learn a completely new input
> method (the press-hold method) and using a familiar one most Vietnamese
> speakers are accustomed to.

Thanks for the information. Perhaps it would be a good idea to gather
some user experience feedback before we land this feature.

Let's finish the remaining 7474 words in Firefox OS project[1] and
prepare the devices with both keyboards for some A/B testing.

Any thoughts?

Cheers

--arky
[1] http://mozilla.locamotion.org/vi/firefoxos/
0 new messages