From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Question on Mule and Makor2, font display vs char input? Date: Wed, 01 Dec 2004 14:50:52 GMT Message-ID: References: <87u0r754pw.fsf@access4less.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101912685 26640 80.91.229.6 (1 Dec 2004 14:51:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2004 14:51:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 01 15:51:20 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZVp9-0007Hh-00 for ; Wed, 01 Dec 2004 15:51:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZVye-0006DH-OZ for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Dec 2004 10:01:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!charlie.risq.qc.ca!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:yPMVIt3zctpwzexOtwQGtU3xIsE= Original-Lines: 43 Original-NNTP-Posting-Host: 132.204.24.84 Original-X-Complaints-To: abuse@umontreal.ca Original-X-Trace: charlie.risq.qc.ca 1101912652 132.204.24.84 (Wed, 01 Dec 2004 09:50:52 EST) Original-NNTP-Posting-Date: Wed, 01 Dec 2004 09:50:52 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:127055 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22461 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22461 > There is a LaTeX font environment called makor2 which allows a user to > create output using Hebrew characters. These output characters are > often defined by multi-byte combinations. So it would be nice to have > an Emacs mode which allowed a user at the keyboard to type a single > input key and have that keystroke display the proper corresponding > Hebrew character on the screen while placing the proper set of > matching characters into the file for LaTeX Makor2. There is a > standard keyboard setup use in Israel which can be followed and a set > of Mule Hebrew screen fonts seem to be readily available. There are several issues here: 1 - what encoding can be used by makor2 in the TeX files: for hebrew characters, Emacs-21.3 supports ISO-8859-8 but not utf-8. If Makor2 requires utf-8, you'll need to use Emacs-CVS. 2 - right-to-left text: this is not supported yet. 3 - typing in Hebrew characters: you need to select an input method (with C-u C-\). There's one called `hebrew'. > Is there an easy way to use the existing Mule Hebrew character set as > a starting point to create a new Emacs mode definition which will just > output the needed Makor2 multi-byte character set? There's a Hebrew language environment already. > Any advice on how to make a string already entered into the buffer > render according to the current input method? For example, a function > I could run that would make the string in quotes "\lambda" appear as a > lambda character in quotes. Preferably this would be a function that > would run on a string and then use an overlay to change the way the > text looks and "feels" when you're editing (but when you save the > buffer, it would save as latex code, by default). There's X-Symbol which does just that (tho in a different way). > Another function would run over the whole buffer, doing the quail > translations as it went. I don't know of any function that takes chars from a buffer and runs them through quail. Quail is designed to take input from the keyboard, not from a buffer. Stefan