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.
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).
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...
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr