From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: Writing source code with Unicode characters Date: Thu, 6 Feb 2014 18:52:23 -0800 (PST) Message-ID: <6b23441a-6602-420d-871a-efc0fdc3c420@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1391741713 5193 80.91.229.3 (7 Feb 2014 02:55:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 02:55:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 07 03:55:22 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WBbb6-0001Cc-RZ for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 03:55:20 +0100 Original-Received: from localhost ([::1]:39379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBbb6-0002Bd-Hb for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Feb 2014 21:55:20 -0500 X-Received: by 10.182.112.231 with SMTP id it7mr5045971obb.22.1391741544294; Thu, 06 Feb 2014 18:52:24 -0800 (PST) X-Received: by 10.50.101.201 with SMTP id fi9mr55317igb.3.1391741544134; Thu, 06 Feb 2014 18:52:24 -0800 (PST) Original-Path: usenet.stanford.edu!uq10no10328684igb.0!news-out.google.com!gj3ni7igc.0!nntp.google.com!uq10no10328678igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.30.90; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.30.90 User-Agent: G2/1.0 Injection-Date: Fri, 07 Feb 2014 02:52:24 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203686 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95956 Archived-At: On Thursday, February 6, 2014 11:56:45 PM UTC+5:30, =C3=93scar Fuentes wrot= e: > I'll like to experiment with using Unicode on source code (=CE=BB instead= of > lambda, etc) but it seems quite inconvenient to insert those chars with > C-x 8 RET. Org-mode has the capability of displaying =CE=BB when you type > \lambda, but that's just a display replacement, the raw text still is > \lambda. > What can I use to make more convenient the insertion of Unicode chars? > (I'm mostly interested on Greek letters and other math-related symbols) It really depends on the set size: - a handful of greek characters? - a hundred or so greek+math characters? - full unicode (million) characaters? In short huffman coding imposes natural limits on how convenient one=20 can make the char-entry. On a recent X, there is an apl keyboard. Start it with $ setxkbmap -layout "us,apl" -option "grp:ralt_rshift_toggle" Toggle it with rshift ralt [single char is also possible] After that typing abcdefgh gives =E2=8D=BA=E2=8A=A5=E2=88=A9=E2=8C=8A=E2=88=8A_=E2=88=87=E2=88=86 Now all that remains, analogous to "define an apl-keyboard" is to define an Oscar-keyboard :D