Emacs: UTF-8 Buffer Printing

In Emacs, everything seems to work very well with respect to UTF-8. The problem is that sometimes I want to print an email containing Unicode characters (I use mu4e as my MUA).

In the buffer mu4e:view, I will usually have something like the following:

    From: A Person
    To: Me
    Subject: Notes on Chapter 9
    Date: Tue 22 Sep 2015 13:46:44 CEST
    Maildir: /mymaildir/INBOX
    User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

"for open platforms" -> "for \textit{open platforms}, as defined in
        [123].  Such platforms include frobbing devices and home-assistant
        foobars."

The problem is that when I do M-x ps-print-buffer, the physical conclusion on paper is as follows:

    ...

      ? ?for open platforms? -> ?for \textit{open platforms}, as defined in
        [123].  Such platforms include frobbing devices and home-assistant
        foobars.?

Does anyone know how I can print so that it looks the same as on my screen? After some Startpaging / DuckDuckGoing, I could not find any pointers.

+4
source share
2 answers

, . Emacs , GNU Intlfonts, , ASCII.

Intlfonts - , . ASCII -ASCII- (, ..), , , ( , ).

, . ; Ubuntu:

sudo apt-get install emacs-intl-fonts

Emacs:

(setq ps-multibyte-buffer :bdf-font-except-latin)
(setq bdf-directory-list "/usr/share/emacs/fonts/bdf")

Emacs Intlfonts . ( , Emacs ).

(, M-x describe-variable ps-mule-font-info-database pages) , ps-print -ASCII- , Intlfonts, . , , .

, lpr-buffer , , .

+1

mu4e view-in-browser ('a V' ), .

, msg2pdf ( mu), pdf ('a v' ), pdf , .

( )

(defun xdg-open () "Open current file with xdg-open." (interactive) (when (buffer-file-name) (shell-command (format "xdg-open %s" (shell-quote-argument (buffer-file-name))))))

0

Source: https://habr.com/ru/post/1608636/


All Articles