GNOME Bugzilla – Bug 656175
Antlr's PRETTY_LABELS should exist in libcaribou
Last modified: 2012-11-02 12:12:34 UTC
The shell keyboard copies PRETTY_LABELS from Antlr... we should move this into libcaribou instead. Probably a "label" property on Caribou.KeyModel? Where should KeyModel get the label from? It seems like it would make the most sense to add it as a property to the layout files... (Then layout files that needed additional pretty labels could just add them there.) I'll write the patches if that sounds right.
Created attachment 227616 [details] [review] Port label string construction code to libcaribou Move the key label construction code from Antler to libcaribou and also handle the "text" attribute of key. -- This is also needed for the text-generating keys (bug 687026).
Review of attachment 227616 [details] [review]: Look good to me, probably next step would be contact gnome-shell developers, as in comment 0 Dan Winship mentions that right now they just have a C&P version of all the stuff moved to the library.
Comment on attachment 227616 [details] [review] Port label string construction code to libcaribou Thanks for the review, committed with an off-by-one fix. I'll file a bug againt gnome-shell to use KeyModel.label soon. Attachment 227616 [details] pushed as 6c46656 - Port label string construction code to libcaribou