From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: Question on Mule and Makor2, font display vs char input?
Date: Wed, 01 Dec 2004 23:52:53 -0600 [thread overview]
Message-ID: <E1CZjtd-0003nx-00@linux183.ma.utexas.edu> (raw)
In-Reply-To: <01c4d82a$Blat.v2.2.2$4ebaaf60@zahav.net.il> (eliz@gnu.org)
> From: Joe Corneli <jcorneli@math.utexas.edu>
> Date: Wed, 01 Dec 2004 13:22:20 -0600
>
> > Any advice on how to make a string already entered into the buffer
> > render according to the current input method?
>
> You could use display tables for that. They are documented in the
> ELisp manual.
>
> The section doesn't make it clear to me how one would change the
> display of a string, only the display of a character.
This feature does change display of characters only, but I thought
that would be enough for you to get what you want.
Perhaps I don't understand what exactly are you trying to accomplish.
Could you post an example with explanations?
The idea is to automatically translate certain strings into a new
representation while editing. We'll start with a file like this:
%% example.tex
\documentclass[12pt]{article}
\begin{document}
I am an example. $$\lambda$$ Rowr!
\end{document}
My .emacs contains something like this:
(add-hook 'latex-mode-hook 'turn-on-special-latex-display-mode)
Now I open example.tex in my Emacs, and I see
%% example.tex
\documentclass[12pt]{article}
\begin{document}
I am an example. $$<lambda>$$ Rowr!
\end{document}
where <lambda> stands for the lambda character. Now I edit...
M-: (insert "\\mu")
and I see something like this:
%% example.tex
\documentclass[12pt]{article}
\begin{document}
I am an example. $$<lambda>$$ Rowr! <mu>
\end{document}
(<mu> stands for the mu character).
Next, I save the file and send it to you in an email, and you see:
%% example.tex
\documentclass[12pt]{article}
\begin{document}
I am an example. $$\lambda$$ Rowr! \mu
\end{document}
The critical points are that instead of inputting the characters
through quail (as in "\ l a m b d a") I can insert them using a
program and also have them parsed when the file is first opened and
"unparsed" when the file is saved.
next prev parent reply other threads:[~2004-12-02 5:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-30 22:53 Question on Mule and Makor2, font display vs char input? Anna Petrov Ronell
2004-12-01 0:08 ` Joe Corneli
2004-12-01 18:29 ` Eli Zaretskii
2004-12-01 19:22 ` Joe Corneli
2004-12-02 4:48 ` Eli Zaretskii
2004-12-02 5:52 ` Joe Corneli [this message]
2004-12-02 17:52 ` Eli Zaretskii
2004-12-02 18:20 ` Joe Corneli
2004-12-02 18:24 ` Eli Zaretskii
2004-12-02 20:38 ` Joe Corneli
2004-12-03 8:30 ` Eli Zaretskii
[not found] ` <mailman.3139.1102012267.27204.help-gnu-emacs@gnu.org>
2004-12-02 20:27 ` Thien-Thi Nguyen
2004-12-02 22:20 ` Joe Corneli
2004-12-03 17:02 ` Stefan Monnier
2004-12-04 11:41 ` Oliver Scholz
[not found] ` <mailman.2594.1101860293.27204.help-gnu-emacs@gnu.org>
2004-12-01 14:50 ` Stefan Monnier
2004-12-01 16:46 ` Joe Corneli
[not found] ` <mailman.2812.1101920196.27204.help-gnu-emacs@gnu.org>
2004-12-01 17:39 ` Stefan Monnier
2004-12-01 18:10 ` Joe Corneli
2004-12-01 18:16 ` Anna Petrov Ronell
-- strict thread matches above, loose matches on Subject: below --
2004-11-30 21:26 Anna Petrov Ronell
2004-12-01 18:27 ` Eli Zaretskii
2004-11-30 15:44 Anna Petrov Ronell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1CZjtd-0003nx-00@linux183.ma.utexas.edu \
--to=jcorneli@math.utexas.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.