Am 17.09.2010 um 10:44 schrieb Jean-Marc LASGOUTTES:
> [email protected] writes:
>
>> Author: switt
>> Date: Thu Sep 16 17:20:47 2010
>> New Revision: 35415
>> URL: http://www.lyx.org/trac/changeset/35415
>>
>> Log:
>> #6877 add the missing unicode symbols for Qt4 keystroke symbols
>
> Personally, I am all for this method for handling special unicode
> points, but I remember Juergen disliked it.
>
> However, I do not like at all the ugly code you output :)
I was afraid it. :-)
But I had to say that the implementation is not really uglier then the
implementation of 0x215f, e. g.
0x215f "\\LyXnumeratorone"
"\\newcommand*\\LyXnumeratorone{\\mbox{\\raisebox{.8ex}{1}\\kern-.175em\\raisebox{.2ex}{/}\\kern-.18em\\raisebox{-.2ex}{\\kern-.18em}}}"
""
But perhaps you mean the result on paper.
> Fortunately,
> the apple publication style guide favors using explicit name, without
> any kind of ugly box.
>
> http://developer.apple.com/mac/library/documentation/userexperience/conceptual/APStyleGuide/APSG_2009.pdf
> I did not find the exact description of what to do, but examples like
> the following seem clear to me:
>
> Two-word key names: When one of the key names in a combination
> keystroke is two words or a hyphenated word, use en dashes where you
> would ordinarily use hyphens.
>
> Option–Right Bracket
> Command–Option–Up Arrow
> Command–Option–double-click
>
> Although the case of two-word key names is out of what we want to do, I
> read this as meaning that the Command key should just be spelled like
> that, without any nice/ugly box.
Thats the case already for Command.
But I have no problem to use only plain text instead. I'll change that.
It would become:
0x238b "{Escape}" "" "" "" # Qt::Key_Escape
0x21e5 "{Tab}" "" "" "" # Qt::Key_Tab
0x21e4 "{Backtab}" "" "" "" # Qt::Key_Backtab
0x232b "{Backspace}" "" "" "" # Qt::Key_Backspace
0x2326 "{Delete}" "" "" "" # Qt::Key_Delete
0x2196 "{Home}" "" "" "" # Qt::Key_Home
0x2198 "{End}" "" "" "" # Qt::Key_End
0x21de "{Page Up}" "" "" "" # Qt::Key_PageUp
0x21df "{Page Down}" "" "" "" # Qt::Key_PageDown
0x21ea "{Caps Lock}" "" "" "" # Qt::Key_CapsLock
or
0x21e4 "{Shift-Backspace}" "" "" "" # Qt::Key_Backtab
0x21de "{Option-Up Arrow}" "" "" "" # Qt::Key_PageUp
0x21df "{Option-Down Arrow}" "" "" "" # Qt::Key_PageDown
What do you like best?
Stephan