From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Waleed Yousef Newsgroups: gmane.emacs.bugs Subject: bug#24724: 25.1; Arabic Printing Problem Date: Tue, 18 Oct 2016 19:43:09 +0000 Message-ID: References: <87r37d1vc6.fsf@fcih.net> <83eg3dwva7.fsf@gnu.org> <87a8e18tm7.fsf@fcih.net> <83bmyhwtje.fsf@gnu.org> <8760op8qvu.fsf@fcih.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140922c02d0f8053f28e7c6 X-Trace: blaine.gmane.org 1476819866 15257 195.159.176.226 (18 Oct 2016 19:44:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2016 19:44:26 +0000 (UTC) Cc: 24724@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 21:44:21 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwaJ1-0002LH-7A for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2016 21:44:11 +0200 Original-Received: from localhost ([::1]:43533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwaJ3-0001v8-EK for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2016 15:44:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwaIv-0001uJ-Iy for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 15:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwaIs-0006LA-FZ for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 15:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60416) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwaIs-0006L0-CE for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 15:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bwaIs-0002h7-0Y for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 15:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Waleed Yousef Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Oct 2016 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24724 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24724-submit@debbugs.gnu.org id=B24724.147681979710298 (code B ref 24724); Tue, 18 Oct 2016 19:44:01 +0000 Original-Received: (at 24724) by debbugs.gnu.org; 18 Oct 2016 19:43:17 +0000 Original-Received: from localhost ([127.0.0.1]:38373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwaI9-0002g2-GB for submit@debbugs.gnu.org; Tue, 18 Oct 2016 15:43:17 -0400 Original-Received: from mail-oi0-f52.google.com ([209.85.218.52]:33652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwaI8-0002fo-7J for 24724@debbugs.gnu.org; Tue, 18 Oct 2016 15:43:16 -0400 Original-Received: by mail-oi0-f52.google.com with SMTP id y2so5361870oie.0 for <24724@debbugs.gnu.org>; Tue, 18 Oct 2016 12:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fcih-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EqRMQSCGYNeqjJa0lD2jYC1vMCYP+L03jOD/Cjf5K7Y=; b=oBBbsAdb7Dem+VnhGMfE5egyBc/4Utp9fzOo+CtK711N7hlt84gqluPfbEjbDocICC l5kpG95UOiIfQTcpeUMZWyJ764Nq/YHY2tkasv5kh1aKpVrIv+2jvPtllz2HwaMrB5lr 1Chbcy01LXLgBGiIIumFicpP/xrEBoOViRQiNfOuJqQ+t3yAlTY9UI15vuANTncz6+aa PSw7oX7d5EP/5HKlBFCNpC7091tBFtB7kADN1vUoZpHGZl10PwhTSVw0/RYTuRa450iQ 6jVu4EQV8pqfJmrz9lSYtg0Sc4KPa5o2BHQ1BbQIdafU5L1CiWsX+dPew+lvhZYgXCa/ /uUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EqRMQSCGYNeqjJa0lD2jYC1vMCYP+L03jOD/Cjf5K7Y=; b=m1/EbItsu1eOLfy8nBesUETDGRbMkvDexHuistdngu3B6pGMWMXrQfXNrJdWoAmRBb UcZvrLdcIPCZhPNnwCbG6ACjea3RcQkvpnAqbU7t/8hmzoXkqGe+5IP7c9AE4NEB/KKP VPLR/KNXy2rmTEKrLx57fxDA/WtbHRYtnYUxQpRzK2Ten/qZR4YDpPtnESU6J7a5GpzU /sgCtuMmF0iA5Dnh9jfv7HnjjTlqT6VQI9qKa8agARCFmJHzzMlkGHCFYECHDSG8IDDp /OJ0tLBf/3Svei2/wot/umpT13KdAZca6lU1T2xuI5pLeL3ToVx7ywKpJ32I4mFsfm1J CciQ== X-Gm-Message-State: AA6/9RmhOn6wweU92e4lgk7UFKMguvaifoJRxnlHqnjcdrnRv4qWuWygvtSks+cFhEDG8WTrWYT0oQuJVBmxkw== X-Received: by 10.202.104.132 with SMTP id o4mr1833285oik.18.1476819790508; Tue, 18 Oct 2016 12:43:10 -0700 (PDT) Original-Received: by 10.157.40.100 with HTTP; Tue, 18 Oct 2016 12:43:09 -0700 (PDT) Original-Received: by 10.157.40.100 with HTTP; Tue, 18 Oct 2016 12:43:09 -0700 (PDT) In-Reply-To: <8760op8qvu.fsf@fcih.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124651 Archived-At: --001a1140922c02d0f8053f28e7c6 Content-Type: text/plain; charset=UTF-8 I reread your reply; it seems that I misunderstood you. However, I think we have two possibilties: either the ps file is produced in reverse character order or the gs program renders it this way. On Oct 18, 2016 6:13 PM, "Waleed Yousef" wrote: > > Sorry I did not say that; I just said when I write in libreoffice, I can > print well. > > When I write Arabic in emacs, the buffer looks great. However, when I > spool to ps and open this ps using Ghostscript the letters are > reversed. Another clue is this: when I run ps2pdf to the ps file it > fails converting. > > > > Eli Zaretskii writes: > > >> From: Waleed Yousef > >> Cc: 24724@debbugs.gnu.org > >> Date: Tue, 18 Oct 2016 17:17:04 +0000 > >> > >> I just want to be able to print Arabic buffers to pdf or to printer. I > >> searched alot and then found the .emacs snippet that I included in my > >> email. If there is another easier way that will be great. > > > > So you are saying that djvmono.bdf font (or maybe BDF fonts in > > general) make the bidirectional text look in the correct order, while > > other fonts don't? My guess would be that Ghostscript is reordering > > the text, I see a bidi module in its sources. So I think the key to > > this puzzle is to use Ghostscript. > --001a1140922c02d0f8053f28e7c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I reread your reply; it seems that I misunderstood you.

However, I think we have two possibilties: either the ps fil= e is produced in reverse character order or the gs program renders it this = way.


On Oct 18, 2016 6= :13 PM, "Waleed Yousef" <w= yousef@fcih.net> wrote:

Sorry I did not say that; I just said when I write in libreoffice, I can print well.

When I write Arabic in emacs, the buffer looks great. However, when I
spool to ps and open this ps using Ghostscript the letters are
reversed. Another clue is this: when I run ps2pdf to the ps file it
fails converting.



Eli Zaretskii <eliz@gnu.org> writ= es:

>> From: Waleed Yousef <wyouse= f@fcih.net>
>> Cc: 24724@debbugs.gnu.org=
>> Date: Tue, 18 Oct 2016 17:17:04 +0000
>>
>> I just want to be able to print Arabic buffers to pdf or to printe= r. I
>> searched alot and then found the .emacs snippet that I included in= my
>> email. If there is another easier way that will be great.
>
> So you are saying that djvmono.bdf font (or maybe BDF fonts in
> general) make the bidirectional text look in the correct order, while<= br> > other fonts don't?=C2=A0 My guess would be that Ghostscript is reo= rdering
> the text, I see a bidi module in its sources.=C2=A0 So I think the key= to
> this puzzle is to use Ghostscript.
--001a1140922c02d0f8053f28e7c6--