On 4 Apr 2000, Lars Gullik Bjønnes wrote:
> Dekel Tsur <[EMAIL PROTECTED]> writes:
>
> | On Tue, Apr 04, 2000 at 12:42:05AM +0200, Lars Gullik Bjønnes wrote:
> | >
> | > We really don't want to put to many features into LyXFont. If I
> | > understand you correctly you want to mark the string "123" to be a
> | > number and appropriate action taken when exporting/printing etc.
> | >
> | > To me this seems very similar to marking "Norway" as a country. Also
> | > marking "Lars" as noun is the same thing. And if this has not be
> | > stated lately: We really want "noun" styl removed from the font and
> | > put into some other better machinery.
> |
> | I am going to use LyXFont for the meantime.
>
> I plain hate meantimes, they hamper development and tends to build up
> until they are almost impossible to get rid of when the time
> eventually comes to do it proper.
>
> I am fiddling with the thought of having a TextAttributes where we now
> have LyXFont. This TA would normally just contain a regualar LyXFont,
> but in other cases it would hold a logical attribute f.ex. "Country".
> This attribte would again point to a LyXFont that inherits from the
> surround lying LyXFont before the display is done. One kind of TA
> could then also be "number" and some special required handling could
> be bound to this (rtl operations f.ex.). I would also like language be
> moved to this TA (and noun too).
>
> Thoughts?
This number business is just a rtl-ltr language switch that Dekel wants
automatically handled. If we don't already then we should support a
simple way of toggling between rtl and ltr (with a default document
language for each of these). Once the toggling is supported we can then
look at how to automate identifying numbers and drawing them appropriately
on screen (ie. is it a number, yes, switch to rtl if necessary, is the
next keystroke a character, yes, switch back to previous rtl-ltr state and
adjust '.' if needed). But I would think that programming "F10" as
"toggle-rtl-ltr" would be more useful in general.
A TextAttributes class (maybe with a different name) was proposed for the
last lyx tree and once again I'll offer my support for it.
Allan. (ARRae)