Keyboard Plugin

Informazioni generali

Questo plugin consente di visualizare parti del testo come pulsanti. E'utile per quando si sicricono le documentazioni per mostrare le combuinazioni. E' molto simile al tag dell' (X)HTML.

Sito: http://foosel.org/snippets/dokuwiki/keyboard

Sintassi

Riporto di seguito la spiegazione presa dal sito originale … appena avrò tempo la tradurrò in italiano. FIXME

Enclose the name of a key, or a combination of keys, separated by a dash (-), in a key tag, like this:

<key>Key</key> or <key>C-x</key>
  • The text inside the key tag is split at the occurrences of - (dash).
  • Each part is trimmed (surrounding whitespace removed) and known shortcuts or key names are substituted. E.g. C becomes Ctrl, Left becomes &larr; etc.
  • The substitutions are language specific. So, e.g. in German, C becomes Strg and Del becomes Entf. Only English and German are supported at the moment. Feel free to write additional language files and send them in for inclusion.
  • If no substitution was found, the first letter is capitalized and special HTML chars are replaced with entities.
  • The substitution table only has key aliases that begin with a capital letter. So lower letters will not be substituted, only capitalized and, for example, C-c becomes Ctrl-C.
  • If you want to express the dash (-) key, use Minus.
  • If you don't want any trimming, alias or language substitution, or capitalization, enclose your key name in single quotes.


Examples:

  • Ctrl+Alt+Del to reboot. (<key>C-A-del</key>)
  • Ctrl+C to copy text to the clipboard. (<key>C - c</key>)
  • Ctrl+X to cut text and put it into the clipboard. (<key>C-x</key>)
  • Ctrl+V to paste text from the clipboard. (<key>C-v</key>)
  • Ctrl+Enter to insert a page break. (<key>C-enter</key>)
  • Ctrl+Shift+ to select from current cursor position to end of a word. (<key>C-S-Right</key>)
  • Ctrl+Shift+ to select from current cursor position to the beginning of a word. (<key>C-S-Left</key>)
  • Ctrl+Page↑ to go one screen page up. (<key>C-PageUp</key>)
  • Ctrl+ (<key>C-Minus</key>)
  • any key to exit. (<key>'any key'</key>)


dokuwiki/plugins/keyboard.txt · Ultima modifica: 2015/06/08 20:15 da 127.0.0.1
Torna su
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0