[EMAIL PROTECTED] wrote:
On Thu, 4 Oct 2007, Abdelrazak Younes wrote:
> No, hence my idea of one word per inset. The fact that there is
more > than one inset will only be visible if the cursor is in or if
you > hover the mouse over it.
What are your criteria for something being a "word"? I.e., does your
approach handle cases like: "\noun[Peter}'s patch \command{\define}s
some new \program{LyX}-friendly \command{environtment}s in a
\noun{Knuth}ian way"?
Just as an example, this is what I'd like to type to get the above
results. It would be similar to the way you type in mathed. This
assumes that '\' is automatically recognized as a macro, if some
really wants the '\' characters he will have to type it twice;
Please note that the '\' is kind of difficult to type on e.g. a Swedish
keyboard, it requires 'AltGr-+'. Something that's frequently used sould
by default be mapped to a key that works well on more than english
keyboards.
That was just an exmaple, the exact solution could be keyboard dependent.
Would you be ok with using ESC instead? AFAIK, this isn't used when
writing text anyway? (Or could we please use CAPSLOCK - I see no point
in that key. Or CAPSLOCK could activate noun..)
I know this will never be accepted by OO/MS Word refugies but anyway:
\noun<space>Peter<space>}'s<space>patch<space>\command\define<space>s
<space>some<space>new<space>\program<space>LyX<space>-friendly<space>
\command<space>environtment<space>s<space>in<space>a<space>\noun<space>
Knuth<space>ian<space>way?
This could certainly be one alternative to enter the text. But how about
this instead (all WS below is for clarity.)
<ESC>noun<space|CR>Peter<ESC>'s <space> patch
<ESC>comm<space|CR>define<ESC>s
So ESC would popup a list of character styles, and keyboard completion
would be automatic so another <space> or <CR> selects the best match.
While in a character style mode, pressing <ESC> again exits it. This is
of course only good if it is rare that characters styles are nested.
What do you think?
Interesting :-)
(That aside, I think that when writing the main text, I'd prefer to not
be distracted with performing logical markup at that time)
Me neither but that's our choice ;-)
Abdel.