--- Log opened Sun Jul 24 00:00:54 2016 00:10 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has joined #navit 02:01 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has quit [Quit: Leaving.] 07:50 -!- ColdFyre [~lenny@c-71-231-174-131.hsd1.wa.comcast.net] has quit [Ping timeout: 240 seconds] 07:51 -!- ColdFyre [~lenny@c-71-231-174-131.hsd1.wa.comcast.net] has joined #navit 08:23 -!- mvglasow [5d87b1d4@gateway/web/freenode/ip.93.135.177.212] has joined #navit 08:24 -!- aggelosmor [2eb04820@gateway/web/freenode/ip.46.176.72.32] has joined #navit 08:24 #navit: < mvglasow> KaZeR good to see you here 08:25 #navit: < aggelosmor> Hi everyone. Is there a way to change the language of Navit's keyboard? (Internal GUI) 08:31 #navit: < mvglasow> aggelosmor the keyboard doesn't really "know" languages, only scripts (Latin or Cyrillic) and will select them based on location 08:32 #navit: < mvglasow> go to Town, select Italy and you get the Latin keyboard. Select Belarus and you'll get the Cyrillic one 08:32 #navit: < mvglasow> otherwise, there's always a key in the bottom row to switch layout 08:34 #navit: < aggelosmor> mvglasow: Well, I've change the locale to LANG=el_GR but still in town search the keyboard is in English and there is no option to change it to Greek. 08:35 #navit: < aggelosmor> All the towns are in Greek and I can only search them with my system keyboard but I need to change the navit keyboard because I am going to use touchscreen monitor 08:37 #navit: < mvglasow> aggelosmor currently Navit doesn't have any other layouts than Latin or Cyrillic. No Greek – that would have to be implemented. 08:39 #navit: < mvglasow> if you have a working toolchain and know your way around the code a bit, that shouldn't be too difficult 08:39 #navit: < mvglasow> look at navit/gui/internal/gui_internal_keyboard.c and its neighbors 08:40 #navit: < mvglasow> you'd need to introduce two new modes in gui_internal_keyb_modes, then create a new layout (look at the others and you should get the hang of it) 08:40 #navit: < mvglasow> and finally add the logic to request the Greek layout when the country is Greece 08:43 #navit: < aggelosmor> mvglasow: Oh ok. Thank you very much! I'll give it a try and I hope I can figure it out because I am new to this stuff. :D 08:45 #navit: < mvglasow> aggelosmor there's always a first time ;-) it may help if you search the code for the Cyrillic layout constants to see how/where it's requested, then do the same for Greek 08:48 #navit: < aggelosmor> mvglasow: Great :) 09:20 -!- KaZeR [~kazer@2601:643:8104:ba60:eea8:6bff:fef8:449] has quit [Ping timeout: 250 seconds] 09:58 #navit: < aggelosmor> mvglasow: Dumb question ahead!!! So I found that the Cyrillic keys are set with "If mode =>24 && mode =<32". If I change the keys below this line and type Greek letters in KEY ("*"); it's not gonna work right? :P 10:59 #navit: < mvglasow> aggelosmor you should first have definet two constants like VKBD_GREEK_UPPER and VKBD_GREEK_LOWER 10:59 #navit: < mvglasow> such that VKBD_GREEK_UPPER + 8 == VKBD_GREEK_LOWER 11:00 #navit: < mvglasow> I suggest VKBD_GREEK_UPPER = 64, VKBD_GREEK_LOWER = 72 11:01 #navit: < mvglasow> 24 and 32 are the umlaut layouts (see gui_internal_keyboard.h) 11:03 #navit: < mvglasow> Cyrillic is 40 and 48, look out for that 11:04 #navit: < mvglasow> That being said, using "magic" numbers in code is not a good idea, better to use constants (if you need to change them, you need to do so only in one place) 11:50 -!- KaZeR [~kazer@2601:643:8104:ba60:eea8:6bff:fef8:449] has joined #navit 12:17 #navit: < aggelosmor> mvglasow: Well... It's all Greek to me! :P How do I define the constants in c? I go to gui_internal_keyboard.c and type under the "include" lines #define VKBD_GREEK_UPPER ? and what valued do I give and how? 12:51 #navit: < mvglasow> aggelosmor: iirc the constants are defined in gui_internal_keyboard.h, look for VKBD_CYRILLIC_LOWER and do the same for Greek 13:08 #navit: < aggelosmor> mvglasow: unfortunatly there is nothing like VKBD_Cyrillic in this gui_internal_keyboard.h. It has only *prototypes* 13:08 #navit: < aggelosmor> struct gui_priv; struct widget; struct widget *gui_internal_keyboard_do(struct gui_priv *this, struct widget *wkbdb, int mode) 13:09 #navit: < aggelosmor> struct widget *gui_internal_keyboard(struct gui_priv *this, int mode); int gui_internal_keyboard_init_mode(char *lang); /* end of prototypes */ 13:18 -!- robertp [584bd4db@gateway/web/freenode/ip.88.75.212.219] has joined #navit 13:19 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has joined #navit 13:21 #navit: < robertp> hi all, hi mvglasow 13:22 #navit: < robertp> mvglasow could you explain to me, how the attr_nav_status work? I failed in trying to copy parts of its behavior to my audio plugin. 13:55 #navit: < mvglasow> aggelosmor above the prototypes you'll find a declaration for enum vkbd_mode 13:56 #navit: < mvglasow> which has the keyboard types, including VKBD_CYRILLIC_UPPER and VKBD_CYRILLIC_UPPER 13:56 #navit: < mvglasow> just add yours there 13:58 #navit: < aggelosmor> mvglasow: there is nothing above the prototypes in this file. It's the first line of the file. 14:00 #navit: < mvglasow> aggelosmor oh... hang on, this might not yet be merged into master 14:00 #navit: < mvglasow> I'm on branch that makes some changes there... 14:01 #navit: < mvglasow> robertp: you can use navigation.nav_status e.g. in the enable_expression for an OSD to show certain OSDs only when routing 14:01 #navit: < robertp> yes. i know. 14:01 #navit: < aggelosmor> mvglasow: Ok! Btw, I really appreciate the help! Thanks :) 14:02 #navit: < robertp> I want to use a audio_playing (or shuffle or repeat) from within my plugin to set an osd image for a buuton through enable_expression 14:03 #navit: < robertp> nav_status is just an example for a aatr, that can be read from osd and set from within the code 14:04 #navit: < mvglasow> ah, I get you... look at commit 54654da and the three or so after, that's where I implemented it... it's been a while, though 14:05 #navit: < robertp> i fear i already did. but navigation has a lot of attrs, so i didnt get everything i need 14:07 #navit: < robertp> i hoped you could tell me how the attrs are registered and called, because you didnt fail with that. :) 14:11 #navit: < mvglasow> robertp: are you creating a new object class? that is, none of the usual navit, navigation etc.? 14:12 #navit: < robertp> Yes, kazer started an audio plugin to add a music player to navit. I took over and implemented some usb-media player, an osd and now i'll need some status attr, to control some osd buttons for the best lookandfeel 14:13 #navit: < robertp> the attr_audio_x mus be defined and the plugin code must be done from scratch 15:15 #navit: < mvglasow> robertp that does go a bit deeper than what I've done so far... all I can advise you to do is to look at one class and see how it implements attributes 15:15 #navit: < mvglasow> the level of support differs, e.g. some attributes don't work with callbacks iirc 15:15 #navit: < mvglasow> navigation.c should be a good startign point 15:17 #navit: < mvglasow> aggelosmor: you might want to hold it back for a week or two, I just have a final improvement to make to my branch before I merge it 15:17 #navit: < robertp> mh. Seems that dropping that feature is a good idea. 15:17 #navit: < mvglasow> then things should be easier for you, as it involves a fair deal of keyboard code cleanup 15:17 #navit: < aggelosmor> mvglasow: no problem! 15:18 #navit: < mvglasow> KaZeR: are you somewhere around? looks like trac is down (went down sometime last Sunday...) 15:29 -!- robertp [584bd4db@gateway/web/freenode/ip.88.75.212.219] has quit [Quit: Page closed] 16:37 -!- aggelosmor [2eb04820@gateway/web/freenode/ip.46.176.72.32] has quit [Quit: Page closed] 17:58 -!- mvglasow [5d87b1d4@gateway/web/freenode/ip.93.135.177.212] has quit [Quit: Page closed] 19:18 -!- xenos1984 [~xenos1984@22-164-191-90.dyn.estpak.ee] has quit [Quit: Leaving.] 20:47 #navit: < Navit> The following compiles failed: http://download.navit-project.org/logs/navit/android_armv5te/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/src/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/openmoko/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/win32/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/n800/svn/navit-svn-6724.failed http://download.navit-project 20:47 #navit: < Navit> it-svn-6724.failed http://download.navit-project.org/logs/navit/android_x86/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/tomtom/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/iphone/svn/navit-svn-6724.failed 20:47 #navit: < Navit> See compile results history at http://download.navit-project.org/logs/navit/stats.html 21:45 #navit: < Navit> The following compiles failed: http://download.navit-project.org/logs/navit/android_armv5te/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/src/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/openmoko/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/win32/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/n800/svn/navit-svn-6724.failed http://download.navit-project 21:45 #navit: < Navit> it-svn-6724.failed http://download.navit-project.org/logs/navit/android_x86/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/tomtom/svn/navit-svn-6724.failed http://download.navit-project.org/logs/navit/iphone/svn/navit-svn-6724.failed 21:45 #navit: < Navit> See compile results history at http://download.navit-project.org/logs/navit/stats.html --- Log closed Mon Jul 25 00:00:56 2016