[EMAIL PROTECTED] wrote:
On Thu, 4 Oct 2007, Abdelrazak Younes wrote:
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"?
No, anything that is character level should be done by hand by the
user. So, as a user, _you_ will have to exit the inset after the 'r'
of Peter. Otherwise the "'s" would be in the noun inset together with
"Peter". We
just cannot read the mind of users :-)
When you say:
_you_ will have to exit the inset after the 'r'
I hope you don't mean that an extra cursor press is needed when editing
text? I would find that very frustrating.
What do you mean by extra cursor press? If with the mouse no, I don't
mean that. You will have to exit the inset by any means available:
Ctrl-i, right-arrow, etc.
If necessary, I can ask the question in a very specific manner. If the
cursor is on the 'P' in 'Peter', how many times does the user have to
press RIGHT in order to place the cursor on the 'p' in 'patch'?
(I count nine in "normal" mode).
Do you mean now or when we have settled in a given UI? The number of key
press will depend on that. With charstyle as font you could have extra
cursor position at font boundaries too.
I consider tagging/categorizing words as e.g. a program something that's
on top of the actual text - when working with the text I want to focus
on the text, not style or apperance.
When writing a text such as the one above, and I know really well what
I'm writing, here's one way that I think I might use to enter the text:
* Write "Peter"
* Use a keyboard shortcut to mark 'Peter' as a noun.
This shortcut could perhaps pop up a list of char.styles, from
which I then select a sutiable style.
* Write "'s' patch define"
* Use keyboard shortcut to mark ...
However, in the more likely case that I don't know exactly what I'd like
to write, it'd be a distraction to mark words as having a specific
character style. I think it'd more efficient to do:
* Write "Peter's patch defines some new LyX-friendly"
* Select 'Peter' and apply noun
* Select 'define' and apply ...
Or maybe there's some completely different way...
That use case is supported right now by current charstyle inset.
Abdel.