From: Mischa POSLAWSKY Date: Mon, 5 Jan 2009 21:48:48 +0000 (+0000) Subject: split off common keys display to Shiar_Sheet::Keyboard X-Git-Tag: v1.2~2 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/a84b651b70f484379de8ac84a2abac91e59c1a6e?hp=a84b651b70f484379de8ac84a2abac91e59c1a6e split off common keys display to Shiar_Sheet::Keyboard Modularize the vim.plp code to generate HTML showing a keyboard sheet. This allows the code to be reused on other pages (non-vim key sheets). Besides using an object (instead of global variables) to store specific data, nothing much should have changed. The only exception is that $ascii is unavailable at keyboard initialization (do 'keys.inc.pl'), so key characters are always unicode. This is only relevant for "foreign" layouts, for which users are expected to have Unicode-capable environments anyway, so it doesn't seem an important issue. It could be solved by loading the map only at object creation, but this is faster for persistent servers. ---