From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: emacs + unicode + hebrew + bidi Date: Mon, 03 Nov 2008 20:55:58 -0600 Message-ID: References: <15mdnR00Q9IwKZLUnZ2dnUVZ_tudnZ2d@sysmatrix.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225770529 29816 80.91.229.12 (4 Nov 2008 03:48:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 03:48:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 04:49:42 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by lo.gmane.org with esmtp (Exim 4.50) id 1KxCvG-0003yi-9m for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 04:49:42 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1KxCu9-0003Cz-Qb for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 04:48:33 +0100 Original-Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1KxCu9-0003Cm-PO for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 04:48:33 +0100 Original-Received: from lists.gnu.org ([199.232.76.165]) by mail-mx2.uio.no with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KxCu9-0006eL-5e for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Nov 2008 04:48:33 +0100 Original-Received: from localhost ([127.0.0.1]:39178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxCmR-0003Ft-Ro for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2008 22:40:35 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 03 Nov 2008 20:55:22 -0600 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Original-Newsgroups: gnu.emacs.help In-Reply-To: <15mdnR00Q9IwKZLUnZ2dnUVZ_tudnZ2d@sysmatrix.net> Original-Lines: 33 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.92 Original-X-Trace: sv3-fPKwUjrt7Gy7LgD8Gnw3AtBDWlrLb7AnCVwJN7FA+x/FL9eZ/i5sLtBRm08M1B9HjlL7pCYGOBmVtg9!2aJMBBi6BV19ss2ZXpAiXaRGlh29CLKVmBN0eiF6e2IuG+89JxbR7Nlohq8ARZEOCOuKKn5E8Kos!eL/wLWPLtvRfgaqbzbbgkwJy8R0lcA== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Original-Xref: news.stanford.edu gnu.emacs.help:164082 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 X-UiO-SPF-Received: Received-SPF: pass (mail-mx2.uio.no: domain of gnu.org designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165; envelope-from=help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org; helo=lists.gnu.org; X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, autolearn=disabled, MISSING_SUBJECT=0.001,NO_RECEIVED=-0.001,RCVD_IN_DNSWL_MED=-4, uiobl=NO, uiouri=NO) X-UiO-Scanned: 0F270113A832A755E8868CD73DE59124676397F7 X-UiO-SPAM-Test: remote_host: 199.232.76.165 spam_score: -39 maxlevel 200 minaction 2 bait 0 mail/h: 10 total 75601 max/h 424 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.emacs.help:59420 Archived-At: B. T. Raven wrote: > Pavel wrote: >> Hi everybody, i would like to know if the combination i mentioned in the >> subject is possible. >> I would like to write Hebrew latex documents in emacs, but >> unfortunately the >> Hebrew is reversed. >> Thanx >> > > As a kludge you could type everything left to right and then apply this > function to the whole buffer: > > (defun reverse-bstring (str) > (apply #'string (nreverse (string-to-list (buffer-string)))) > > There is something perverse about it since it doesn't seem to need to be > passed a string but, anyway, evaluating it in *Scratch* produces this: > > " > ))))gnirts-reffub( tsil-ot-gnirts( esrevern( gnirts'# ylppa( > )rts( gnirtsb-esrever nufed( > > ..reffub nwo s'elif taht ni txet eht retne neht ;; > ,f-C x-C htiw elif taht tisiv ,elif a etaerc ot tnaw uoy fI ;; > ..noitaulave psiL rof dna ,evas ot tnaw t'nod uoy seton rof si reffub > sihT ;;" > > Ed Of course you want to do this line by line, not to the whole buffer, since in Hebrew and Arabic you start at the back of the book but not at the bottom of the page. O well, back to the drawing board.