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 18:16:05 +0000 Message-ID: <8760op8qvu.fsf@fcih.net> References: <87r37d1vc6.fsf@fcih.net> <83eg3dwva7.fsf@gnu.org> <87a8e18tm7.fsf@fcih.net> <83bmyhwtje.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476807523 26930 195.159.176.226 (18 Oct 2016 16:18:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2016 16:18:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) 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 18:18:39 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 1bwX63-0005vt-Qv for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2016 18:18:35 +0200 Original-Received: from localhost ([::1]:42585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwX65-0000QR-RM for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2016 12:18:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwX2f-0006Gm-F7 for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 12:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwX2c-00049l-6G for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 12:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60312) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwX2c-00049b-34 for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 12:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bwX2b-000641-RV for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 12:15:01 -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 16:15: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.147680724623227 (code B ref 24724); Tue, 18 Oct 2016 16:15:01 +0000 Original-Received: (at 24724) by debbugs.gnu.org; 18 Oct 2016 16:14:06 +0000 Original-Received: from localhost ([127.0.0.1]:38269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwX1i-00062Z-AA for submit@debbugs.gnu.org; Tue, 18 Oct 2016 12:14:06 -0400 Original-Received: from mail-lf0-f53.google.com ([209.85.215.53]:33387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwX1g-00061v-Ji for 24724@debbugs.gnu.org; Tue, 18 Oct 2016 12:14:04 -0400 Original-Received: by mail-lf0-f53.google.com with SMTP id x79so363586584lff.0 for <24724@debbugs.gnu.org>; Tue, 18 Oct 2016 09:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fcih-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PSf8TV3NeQX2FV4BHni6eoNf9i4B02vUWukIrw1jwsk=; b=E9N5XT4YuuDgVOjrvGmHJA0CyqnOgBlBoY79Ea8IXWWJxIXdf8jFKuy7wdSG54x12o sxVDsxP4/CvXXLbiuk9EYfkVmmXweWVH81aW+b3ClPSOyRnRTu8OLMSaoreaFJR2iwrT f+HH0AWEEPffRvdCcINRvtLtuaKGYaU+8giwY3ynMJDNw7PTj8kf/ZpDQG9i1qJ/Sx4q 7QC5gCF8t5XktEB37cS7oMywvAebq9A2QfkDdFem5uXo/lfTEQoMV9H+gF5RGeo5W2C9 xyd88cQxlsWhoiWvI5whWMckb/ieuYTqgk9ZpURWjcpcc5qJqNQ2iCYfP1zxMD2zio/g o1SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PSf8TV3NeQX2FV4BHni6eoNf9i4B02vUWukIrw1jwsk=; b=jpX26Gp1CjSufsIWs/Lb6myJk2CNM+8iCG//nsSifw3ttE84BHVW1JFXl79UIYX2TB 6594j7jaYxb0z/zpslqCmCbgiPFqJn7OnKOzFAKeN5fRLgqtSTpa1hokPQY5loBxAeLy 7NRW9fO22GbNthflt+tf3L3zwCaWjxGAYmo3/tq0XN6eRf7q3nsfeohYiXxJ/THv0G2e d7x4pi/aYyHFdOFW4qTp25rrb049I4hlWkEZX+V0aakVyTVCe5KZO7ba0j2bKxQISwIx Jf607YT/7P1AaghrWRTB7ecu7GftciCKH9syKtmP8Jm1zvzaivoLzILWsyk4Kt5nu3Ko J4JA== X-Gm-Message-State: AA6/9RkqSjoZcJ25Vly9rRf6QOz1c/RN6r1fxF84/tf2e/uyeEU6QdHk54iBS3eOWo+G5A== X-Received: by 10.194.56.69 with SMTP id y5mr803425wjp.4.1476807238575; Tue, 18 Oct 2016 09:13:58 -0700 (PDT) Original-Received: from localhost ([156.204.120.174]) by smtp.gmail.com with ESMTPSA id q73sm200548wmd.9.2016.10.18.09.13.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Oct 2016 09:13:58 -0700 (PDT) In-Reply-To: <83bmyhwtje.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 18 Oct 2016 18:44:53 +0300") 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:124639 Archived-At: 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.