Flatfish and (La)TeX
This is a “How to” for people that are tracking my GSoC project and in this post you will find steps to test the first prototype of my GSoC project. I hope that you like it and I will love to get any type of feedbacks.
This blog post have some screenshots of my Flatfish running
- OS version: 220.127.116.11-prerelease
- Firmware revision: flatfish_20140519-1653
- Hardware revision: flatfish
- Platform version: 32.0a1
- Build Identifier: 20140519171236
- Git commit info: 2014-06-03 14:21:30 0f51c8fa
- Desktop/Laptop (I’m using a GNU/Linux distribution but shouldn’t be hard to use a machine running Windows or OS X).
- Bash, Make, Git
- Android SDK Tools (at least adb)
- Device running Firefox OS (I’m using Flatfish but it should work with any other device) or Firefox OS Simulator
If you will use a device running Firefox OS and you didn’t setup udev rules you will need to do it. For informations read configure the udev rule for your phone at MDN.
If you will use Firefox OS Simulator please take a look at this tutorial that explain how udpate Gaia for Firefox OS Simulator.
You will need my clone of mozilla-b2g/gaia at GitHub and move to gsoc branch.
$ git clone https://github.com/r-gaia-cs/gaia.git $ cd gaia $ git checkout gsoc
If you already have mozilla-b2g/gaia you can add my clone as a remote repository.
$ cd gaia $ git remote add raniere https://github.com/r-gaia-cs/gaia.git $ git fetch raniere $ git checkout raniere/gsoc
Connect your device in one of the USB ports of your desktop/laptop and check if adb recognize it.
$ adb devices List of devices attached FLATFISH_123456 device
The next step will remove all the user data from the device. If you have important data in your device you will need to backup it first.
With the device connect and recognize:
$ GAIA_KEYBOARD_LAYOUTS=en,math,trig,greek PRODUCTION=1 NOFTU=1 REMOTE_DEBUGER=1 GAIA_DEVICE_TYPE=tablet make reset-gaia
If you are using a phone device:
$ GAIA_KEYBOARD_LAYOUTS=en,math,trig,greek PRODUCTION=1 NOFTU=1 REMOTE_DEBUGER=1 make reset-gaia
If you are using Firefox OS Simulator:
$ GAIA_KEYBOARD_LAYOUTS=en,math,trig,greek make
Your device will reboot.
Now we need to enable the keyboards. Go to “Settings” -> “Keyboards” -> “Selected keyboards” -> “Add more keyboards”.
Select all the keyboards available.
Go back to “Selected keyboards”.
Go to Home Screen.
You can test the keyboard with any app that use the keyboard. I will be using http://r-gaia-cs.github.io/TeXEditor/ from the web browser.
Open the web browser.
Type some text. To access the math keyboards use the IME selector key.
When you end to input your text you can preview it using the option at the top right of the screen.
Still need to be done
The keyboards still need many improvements like
- Improve switch,
- Improve layout,
- Improve style.
I will write more about it in another blog post.