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 16:21:45 +0000 Message-ID: <87r37d1vc6.fsf@fcih.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1476802382 13976 195.159.176.226 (18 Oct 2016 14:53:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2016 14:53:02 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: 24724@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 16:52:58 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 1bwVko-0000V0-Et for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2016 16:52:34 +0200 Original-Received: from localhost ([::1]:42042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwVkq-0001JZ-Md for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Oct 2016 10:52:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwVGM-0000Fh-UG for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 10:21:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwVGI-0008LR-Tx for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 10:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60251) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwVGI-0008Kt-P4 for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 10:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bwVGI-0003L8-HJ for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 10:21: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 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24724 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147680044712791 (code B ref -1); Tue, 18 Oct 2016 14:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Oct 2016 14:20:47 +0000 Original-Received: from localhost ([127.0.0.1]:38208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwVG2-0003KF-Rp for submit@debbugs.gnu.org; Tue, 18 Oct 2016 10:20:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwVG0-0003K0-V1 for submit@debbugs.gnu.org; Tue, 18 Oct 2016 10:20:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwVFt-00084C-3w for submit@debbugs.gnu.org; Tue, 18 Oct 2016 10:20:38 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwVFs-000844-Nb for submit@debbugs.gnu.org; Tue, 18 Oct 2016 10:20:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwVFr-0008Gn-4B for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 10:20:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwVFn-00082l-1w for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 10:20:35 -0400 Original-Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:33405) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwVFm-00082M-Re for bug-gnu-emacs@gnu.org; Tue, 18 Oct 2016 10:20:30 -0400 Original-Received: by mail-qt0-x231.google.com with SMTP id s49so155005730qta.0 for ; Tue, 18 Oct 2016 07:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fcih-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=Vxaw9Pjz4Sc1AKQIOaco47QhZs3rKXwsYawCS7xalko=; b=B8tpGCDj1aE1Xzuj+ygQ99486dn4qkFqRMNtNljNV64XFYyK3kIOVeIe9q88AfmM2H /I3Di1uwHFVarrwvlOMFclV/BOX71HYw8tGNaUPUgEbPd974nHV5jL8pxIbkfkndMb1/ 70S7IqlnGSFjSPvJUfp5nEz31xXhJWXuTKSZNEw3Qh6bJgcI+JHyRB+gHIJ8kDurV7oZ WkpXdyjis8SgdyZ0rV3ybzmirFJLg7LW7AmNtA3LiKfvd4LnqTqLCplhMhZyLCNr+spq lwzrni1qb9h8D9z0ULJQ7yBUdDQadSa4St7CdpCsWSF3DK/QQ3eFBZqSf+2CszfuxWHq YrBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=Vxaw9Pjz4Sc1AKQIOaco47QhZs3rKXwsYawCS7xalko=; b=BB8MlV2FYmT0jBaMsub63QpPl0+6Qzq+D1QcTjoNyKi12oTfRH02w4RfB50knV44DK OHaH7ZKf+L5tx/qIihX6Ue+q6tE89zMobztOwJr/f+NfIdzes9xn5gSsCWzpU8tmX3dR eeRm5BDhqYLsqGbLCeM+dvHkV5qoKwUq7KlTWurDuQitbmyRVYAdUL2VDkCrTP4nVAOJ QvC2NLOTrxC8budvnw2sPINs92wFHJk31PHiSRK7SGAzrGW8IXC2dAb/WBJJvjE7ohwg p8ordqypL+eXqIuRkgdbh3VDT9QCwEXXFjg+umuLbLJFBWZrCwcpZSrd8xrAQF4bjNqU Jrww== X-Gm-Message-State: AA6/9Rm0fVDrEpp7H6NwVInbYzyc6RAc2EeKhdPSIXIv4oQEq89KmL2i/IR9o7T+lMGhhQ== X-Received: by 10.194.75.165 with SMTP id d5mr390774wjw.190.1476800428478; Tue, 18 Oct 2016 07:20:28 -0700 (PDT) Original-Received: from localhost ([156.204.120.174]) by smtp.gmail.com with ESMTPSA id h10sm63100281wje.48.2016.10.18.07.20.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Oct 2016 07:20:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:124631 Archived-At: When I write Arabic in Emacs buffer, it writes well. However, to print the buffer I use ps-spool-buffer, then save the buffer to tmp.ps then open using gs. However, the ps file has letters in revers order. I use this in my .emacs: (require 'ps-print) (eval-after-load 'ps-print '(progn (require 'ps-mule) (setq ps-multibyte-buffer 'bdf-font) ;; print everything with bdf (setq ps-font-size 10) ;; change according your tastes (setq bdf-directory-list '("/usr/share/fonts/MyBDF")) (setq ps-mule-font-info-database-bdf '((unicode-bmp ; everything in the world should be printed with this f= ont (normal bdf "djvmono.bdf") (bold bdf "djvmono-b.bdf") (italic bdf "djvmono-o.bdf") (bold-italic bdf "djvmono-bo.bdf")) (iso-8859-1 ; please, latin-1 TOO, I said everything! (normal bdf "djvmono.bdf") (bold bdf "djvmono-b.bdf") (italic bdf "djvmono-o.bdf") (bold-italic bdf "djvmono-bo.bdf")))))) In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.9) of 2016-09-18 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fstack-protector-strong' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: openwith-mode: t dired-async-mode: t ido-grid-mode: t ido-everywhere: t shell-dirtrack-mode: t pdf-occur-global-minor-mode: t delete-selection-mode: t override-global-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-global-strict-mode: t smartparens-strict-mode: t smartparens-mode: t show-paren-mode: t guide-key-mode: t winner-mode: t image-diredx-async-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Saving file /home/wyousef/.emacs... Wrote /home/wyousef/.emacs Formatting...done File =E2=80=98~/Downloads/tmp.ps=E2=80=99 exists; overwrite? (y or n) y A buffer is visiting /home/wyousef/Downloads/tmp.ps; proceed? (y or n) y Type C-c C-c to toggle between editing or viewing the document. Saving file /home/wyousef/Downloads/tmp.ps... Wrote /home/wyousef/Downloads/tmp.ps C-x C-g is undefined Quit Load-path shadows: ~/.emacs.d/loadpath/ps-mule hides /usr/share/emacs/25.1/lisp/ps-mule ~/.emacs.d/loadpath/subr-x hides /usr/share/emacs/25.1/lisp/emacs-lisp/subr= -x Features: (shadow sort mail-extr emacsbug message idna rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils man align tabify two-column iso-transl face-remap gnus-dired autorevert filenotify pcmpl-unix em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util doc-view subr-x ps-mode smie ps-bdf flyspell ispell ace-window avy misearch multi-isearch sage-view sage-mode apropos sage-compat tramp-cache python-el-fgallina-expansions smartparens-python python tramp-sh json map sage sage-load reftex reftex-vars magic-latex-buffer iimage smartparens-latex tex-mode dired-tar openwith dired-async async dired+ image-file dired-x dired-aux ido-grid-mode ido bbdb bbdb-site timezone impatient-mode htmlize cl simple-httpd url-util bash-completion tramp tramp-compat tramp-loaddefs trampver shell pcomplete eimp warnings ps-mule ps-print ps-def lpr pdftools pdf-occur ibuf-ext ibuffer tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet pdf-isearch let-alist pdf-misc imenu pdf-tools compile comint ansi-color cus-edit cus-start cus-load wid-edit pdf-view bookmark pp jka-compr pdf-cache pdf-info tq pdf-util image-mode delsel ffap url-parse auth-source eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache url-vars expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom bind-key easy-mmode smartparens-config smartparens thingatpt paren guide-key s ucs-normalize popwin dash re-builder smart-mode-line-dark-theme smart-mode-line-light-theme cl-seq smart-mode-line rich-minority faff-theme winner ring edmacro kmacro finder-inf tex-site bash-completion-autoloads bbdb--autoloads bbdb-csv-import-autoloads image-dired+ image-dired format-spec dired advice log4e-autoloads openwith-autoloads pcsv-autoloads professional-theme-autoloads rx w3-autoloads info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 498762 33596) (symbols 48 44593 0) (miscs 40 1114 1007) (strings 32 105615 16866) (string-bytes 1 3339653) (vectors 16 68923) (vector-slots 8 2071717 198621) (floats 8 719 996) (intervals 56 6938 867) (buffers 976 47))