Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| >>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
|
| Lars> I took this idea a bit further and created the patch below. This
| Lars> actually also uses the lfun "self-insert" the way it was
| Lars> intended from the beginning (some 3-4 years ago). This means
| Lars> that some special casing can go away (or rather to generalized
| Lars> cases like the all-in-one-wonder "-1" lyxfunc)
|
| That's certainly a much better solution than what we had.
I like it too.
But the "self-insert" probably need to change a bit. "self-insert" is
really only intended to insert chars of the same font-norm.
"self-insert" works great for latin 1, but what happens when a
Ydiaresis is set to "self-insert"? I guess some kind of algorithm
could be used. have to think so more about this.
| Lars> The patch above should not be needed anymore (even if it is
| Lars> included in this patch).
|
| Do you plan toeventually remove it, then?
I have not quite decided. As it is now it does no harm, since the
action is caught by the lfun for the given char/keysym first. So it
culd just work as a "fail-safe" was to have _something_ working if the
bind files have bugs. On the other hand.. it is unneeded code that is
only needed if the bind files container errors or ommisions.
| Lars> the latinkeys.bind file is not
| Lars> finished, and might also need some more support ( a new lfun
| Lars> "special-char") to be able to show chars like Lstroke regardless
| Lars> of what font norm is used (latin).
|
| Lars> Ok, it would be nice if people could try this patch, fiddle with
| Lars> it and see if it can potentially solve most of the latin-X
| Lars> problems. (I belive that it can)
|
| That would be great.
I have also an idea to improve the InsetLaTexAccent so that all accent
chars is _always_ storded in the inset. Upon inset->draw is it checked
if we are able to draw this using the current font, if the system have
the correct font with the correct norm, and if both these fail we use
the manual drawing as we do today.
--
Lgb