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: Fri, 7 Feb 2014 08:41:50 -0800 (PST) Message-ID: <1ec0ce1b-3c13-43a0-a951-812c0a498d9f@googlegroups.com> References: <6b23441a-6602-420d-871a-efc0fdc3c420@googlegroups.com> 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 1391791510 24561 80.91.229.3 (7 Feb 2014 16:45:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2014 16:45:10 +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 17:45:18 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 1WBoYI-000299-8Y for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 17:45:18 +0100 Original-Received: from localhost ([::1]:42537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBoYH-0007Z8-UG for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Feb 2014 11:45:17 -0500 X-Received: by 10.182.126.137 with SMTP id my9mr6458460obb.13.1391791311157; Fri, 07 Feb 2014 08:41:51 -0800 (PST) X-Received: by 10.50.32.69 with SMTP id g5mr20972igi.1.1391791310979; Fri, 07 Feb 2014 08:41:50 -0800 (PST) Original-Path: usenet.stanford.edu!c10no11716310igq.0!news-out.google.com!vg8ni18igb.0!nntp.google.com!c10no11716298igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <6b23441a-6602-420d-871a-efc0fdc3c420@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.28.7; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.28.7 User-Agent: G2/1.0 Injection-Date: Fri, 07 Feb 2014 16:41:50 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203695 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:95965 Archived-At: On Friday, February 7, 2014 8:22:23 AM UTC+5:30, Rusi wrote: > On Thursday, February 6, 2014 11:56:45 PM UTC+5:30, =C3=93scar Fuentes wr= ote: > > I'll like to experiment with using Unicode on source code (=CE=BB inste= ad 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 ty= pe > > \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 $ setxkbmap -layout us,gr -option grp:win_switch -option grp:alt_shift_togg= le And now pressing the win key along with a-z gives =CE=B1=CE=B2=CF=88=CE=B4=CE=B5=CF=86=CE=B3=CE=B7=CE=B9=CE=BE=CE=BA=CE=BB=CE= =BC=CE=BD=CE=BF=CF=80;=CF=81=CF=83=CF=84=CE=B8=CF=89=CF=82=CF=87=CF=85=CE= =B6