From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Edward Casey" Newsgroups: gmane.emacs.help Subject: Re: emacs coding system Date: Sat, 13 Nov 2004 13:08:21 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <10pcmtgrrhbsq62@corp.supernews.com> References: <10pb0p079trkm5c@corp.supernews.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1100373095 20739 80.91.229.6 (13 Nov 2004 19:11:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2004 19:11:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 13 20:11:28 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 1CT3J1-0000uW-00 for ; Sat, 13 Nov 2004 20:11:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CT3Rd-0007ag-Bp for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Nov 2004 14:20:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xit-02!sn-xit-10!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 93 Original-Xref: shelby.stanford.edu gnu.emacs.help:126555 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:21950 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21950 "Reiner Steib" wrote in message news:v9fz3eyolo.fsf@marauder.physik.uni-ulm.de... > On Sat, Nov 13 2004, Edward Casey wrote: > > > "Reiner Steib" wrote... > [...] > >> (set-language-environment "UTF-8") if you use Emacs 21.3 or CVS Emacs. > >> Probably you can also use `prefer-coding-system' and friends, see the > >> manual for details: > >> > >> (info "(emacs)Recognize Coding") > >> (info "(emacs)Language Environments") > [...] > > I. > > What's the difference between (set-language-environment "UTF-8") and > > putting something like form below in .emacs? : > > > > (custom-set-variables > > '(case-fold-search t) > > '(current-language-environment "UTF-8") > > How about reading the manual node that I have posted above? ;-) Both > methods are equivalent: Which node I turned to only after posting the above. Sorry. Greenhorn here. > > ,----[ (info "(emacs)Language Environments") ] > | To select a language environment, you can customize the variable > | `current-language-environment' or use the command `M-x > | set-language-environment'. It makes no difference which buffer is > | current when you use this command, because the effects apply globally to > | the Emacs session. > `---- > > > '(default-input-method "latin-4-postfix")) > [...] > > I want to add upper and lower case y with macron to the > > \leim\quail\latin-post.el code. [...] The code points are U+0232 and > > U+0233 > > AFAIK, the input methods are not well documented. But it should work > like this: > > --8<---------------cut here---------------start------------->8--- > (when (and (load "quail/latin-post" t) > ;; side effect: also change the default input method: > (setq default-input-method "latin-4-postfix")) > (quail-defrule "Y-" (decode-char 'ucs #x0232) "latin-4-postfix") > (quail-defrule "y-" (decode-char 'ucs #x0233) "latin-4-postfix")) > --8<---------------cut here---------------end--------------->8--- > I assume that this can be added to my .emacs or evaluated in a lisp buffer. I will try both. Although I have been warned against it I would like to make the changes directly to the latin-post.el. Could I get away with something like: (quail-define-rules [...] ("Y-" ?#x0232) ;;; I tried to copy paste these but they were corrupted by Outlook Express. (Maybe it's "\x0233" or some other combination ("y-" ?#x0233) ;;; of slashes, hashes, or single or double quotes) [...] > Let's test it: `Y -' ==> Ȳ, and `y -' ==> ȳ. Seem to work for me. > > BTW: Using the TeX input method, you can get the characters > with `\ = Y' and `\ = y'. > > > but I don't know how to insert these characters into the lisp code. > > The thread with the subject "Unicode literals" in comp.emacs might > also be of interest for you: > http://groups.google.com/groups?rnum=1&threadm=m2lld7o3mh.fsf@seki.fr Thanks. I did read this since I knew it was pertinent to my problem but I understood dimly if at all. > > Bye, Reiner. Bye and thanks again, Ed