On Tue, 1 Dec 1998, Peter Suetterlin wrote:
> Why a special keymap?
Basically because LaTeX/TeX can use far more (infinitely in theory)
characters than X have keysyms for.
Suppose we wanted to use a few popular TeX-special symbols in LyX. (Or
mixing symbols from different alphabets/fonts -- we do that already, vocals
with hungarian umlauts among latin-1 symbols for example.) The symbols X
can handle (generated with the compose key, or mapped directly with
xmodmap) are listed in <X11/keysymdef.h>. It's not simply a matter of
providing key sequences for the symbols in the X-font. Just look at quote
characters in LyX...
Note also that the functions X*LookupString() follows the /locale/ when
handling composed input.
Has anyone looked into how xdvi displays fonts btw? Would it be possible
to generate fonts for X with metafont on the fly, to use by LyX in rare
cases? (such as phonetic symbols, bullets, odd fonts styles, whatever...)
Hmm... I just got an idea:
Another way could perhaps be extending the ERT-box (1.1) so that a user
could have it display any bitmap (or text) he chooses instead of "ERT" in
the working window; something resembling the output he gets in the
dvi-file. In true WYSIWYM-spirit, it wouldn't be a fancy scalable
monster from a high-quality font, only something that makes sense in the
work-window and is drawn fast enough to be painless when working on a
document. (And a whole lot easier to implement than translating TeX-fonts I
would say - *nudge* *nudge* *wink* *wink* ;)
The next step would be implementing `folders' with user-defined popular
TeX insets, consisting of bitmap/TeX-code(/keybinding?) tuples that can be
displayed in a panel, for the user to pick favourite odd TeX insets from.
These bitmaps would be fixed size. There are ways to scale bitmaps, but
I'm not sure it's necessary (or how slow that would be). (look at the
source for xconq; it scales bitmaps)
Joacim
-
With both feet on the ground, you won't get very far.
-- Loesje
едц (to force 8bitmime, mail server problems today)