06-03-2018, 08:57 AM | #1 |
Evangelist
Posts: 432
Karma: 2303460
Join Date: Aug 2017
Device: Pocketbook Inkpad 3, Onyx T76ML, Kobo H2O Edition 1, Kobo Mini
|
Switch keyboard layouts on the fly
I was searching around here how to add Greek keyboard layout to Koreader, but looks like under frontend/ui/data/keyboardlayouts/ Greek is already there. How to activate it?
There is the globe button on the keyboard. It currently switches to Russian at least. How to add more keyboard layouts under than button so that the globe button would cycle through as many layouts as are available? And a suggestion: Would you consider an option to obtain diacritical letters by long press from under the main letter? It would save lots of space and need for cycling around with extended layouts. Last edited by mobama; 06-03-2018 at 09:06 AM. |
06-03-2018, 12:01 PM | #2 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
AFAICT, the layout is chosen based on the language set in KOReader.
I'm not overly familiar with the layout backend, but that shouldn't be impossible, if possibly rendering the button actually impractical if it ends up switching between 1457 layouts when a random users only needs 2 or 3 . As for diacritics, while I like the idea in theory (it's basically what any touch aware virtual-keyboard does when shown on an LCD), I'm afraid that in practice, because of the latency of the eInk tech, it'd end up clunky and messy. Last edited by NiLuJe; 06-03-2018 at 08:36 PM. |
Advert | |
|
06-03-2018, 12:23 PM | #3 | ||
Evangelist
Posts: 432
Karma: 2303460
Join Date: Aug 2017
Device: Pocketbook Inkpad 3, Onyx T76ML, Kobo H2O Edition 1, Kobo Mini
|
Quote:
Quote:
Anyway, back to my question: How can I add Greek to Latin and Cyrillic alphabets in the keyboard? Do I need to remove e.g. Cyrillic? Last edited by mobama; 06-03-2018 at 01:18 PM. |
||
06-03-2018, 08:35 PM | #4 | |
Fanatic
Posts: 509
Karma: 60774
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
That's because I want to keep the English interface but also be able to search in Greek.. |
|
06-04-2018, 01:00 AM | #5 |
Evangelist
Posts: 432
Karma: 2303460
Join Date: Aug 2017
Device: Pocketbook Inkpad 3, Onyx T76ML, Kobo H2O Edition 1, Kobo Mini
|
So we have to edit std.lua. I need to be able to search in Latin, Cyrillic, and Greek letters at least. Is it possible to edit std.lua to contain more sections?
Edit: By the way, I cannot find a std.lua. Is that a real filename? And you apparently don't mean koreader/frontend/device/sdl/keyboard_layout.lua Conclusion: I still don't know what file I am supposed to edit. Last edited by mobama; 06-04-2018 at 02:10 AM. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New keyboard layouts for M92 | docidocus | Onyx Boox | 4 | 07-22-2014 06:27 AM |
Foreign Language Support & Keyboard Layouts | 10tklz | enTourage Archive | 2 | 04-19-2010 11:13 AM |
PRS-600 Additional keyboard layouts | Shiimis | Sony Reader Dev Corner | 2 | 04-05-2010 01:47 PM |
Pocketbook 360: alternative keyboard layouts | TheHutt | PocketBook | 4 | 03-09-2010 01:35 PM |
"Liquid" / "Fixed" - how to switch layouts | Alexander Turcic | Announcements | 0 | 06-05-2007 09:29 AM |