GNOME Bugzilla – Bug 139379
gok keyboard editor needs updating
Last modified: 2011-10-14 10:58:46 UTC
the GOK keyboard editor reportedly doesn't work anymore. We haven't been testing, etc. so this is not really news... and it's nonessential functionality. However it's a very nice feature that would add much value if it were at least minimally functional.
Not an enhancement, the fact that it doesn't work anymore is a regression.
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs. Filter on "SUN A11Y SPAM" to ignore.
Bill, I've delved into revamping the gok keyboard editor. I am currently working on the changes necessary for it to handle .kbd.in files... this will likely mean adding a section of the key struct to hang on to existing localized strings etc... only to be used when in gok editor mode. If you feel it unecessary for the editor to handle .kbd.in files let's chat soon.
I don't quite understand why the above step would be necessary. I think that it would be acceptable for the keyboard editor to operate only on untranslated strings. This would mean that someone using the editor to replace a string value would in effect be substituting their own strings for the 'C' value. It should be sufficient for the keyboard editor to expose both the untranslated string and the translated value to the user. That could be done by using gettext() inside the keyboard editor, to present the translated string values for informational purposes while editing - but the edits themselves would always be to the untranslated string. Bill
My previous comment was based on revamping the editor with the least amount of work and the smallest delta. I certainly think we can come up with something better. Probably keeping the dom around will do the trick... currently we convert the dom to a keyboard when we read in a file and keyboard to dom when we write IIRC. I'll get back to you.
I'm going to persist the DOM while the keyboard and DOM are edited together. (Then for saving just do an xmlSaveFile (we currently do keyboard straight to file using fputs))
Created attachment 48722 [details] [review] patch of work in progress Currently my patch only outputs .kbd files and not kbd.in files (IIRC). Minimal testing has been done, but seems to work. I will post an additional req'd glade2 file shortly.
Created attachment 48723 [details] new file required with patch new file (not in cvs yet)
Apologies for spam... ensuring Sun a11y folks are cc'ed on all current accessibility bugs.
gok (GNOME on-screen keyboard) development has been stalled and it has been replaced by caribou [1]. Maintainers don't have future development plan so i am closing all the bugs as WONTFIX. [1] https://mail.gnome.org/archives/gnome-bugsquad/2011-October/msg00001.html