> This might be fragile, unless you plan to add hooks into all the
> places that might enter/modify a word.

I think it is enough to enable this for plain text in InsetText and
InsetTablular, because indexing formula etc does not make sense. Then,
it can be narrowed down to

1. when a word is entered (' ' entered), update database
2. when LFUN_COMPLETION is requested, use closest match to replace the
current word

There is another related feature that a user define a list of
abbreviations. In that feature, 'hhh' can be '$h^2+y_2$'. These two
features should be considered together.

Bo

Reply via email to