From: Rodolfo Medina <rodolfo.medina@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Chinese characters missing in .ps output file
Date: Wed, 24 Dec 2008 19:15:36 +0000 [thread overview]
Message-ID: <877i5pz8o7.fsf@gmail.com> (raw)
In-Reply-To: mailman.3297.1230070986.26697.help-gnu-emacs@gnu.org
Rodolfo Medina <rodolfo.medina@gmail.com> writes:
> With Emacs, I correctly open a file including chinese characters. The
> characters are correctly displayed in the text file, but when I try to create
> the ps file, with `C-u M-x pr-ps-print-buffer-preview' or `C-u M-x
> pr-ps-print-buffer-print', they are not displayed.
>
> What am I missing, how can I work it out?
James Cloos <cloos@jhcloos.com> writes:
> The real answer for how to obtain ps or pdf from text supporting all of
> unicode is to use libraries like cairo and pango. Cairo knows how to
> embed all of the typical outline fonts in both ps and pdf, and pango can
> handle formatting the plain text for even complex scripts like Arabic
> or Tibetan.
>
> Emacs will eventually have such support (when compiled with m17n and
> libotf), but it does not yet. Until then, a bit of elisp can output a
> given buffer to a script in eg perl or python -- or a compiled C, C++
> or similar program -- which uses pangocairo to create a ps or pdf file
> to submit to lp or lpr. (call-process-region) is the elisp function to
> call, using (point-min) and (point-max) as the first two args, to send
> the buffer's contents to the external program or script.
>
> You could also try going through CJKlatex, or if in a gui saving the
> buffer and using something like gedit or firefox to view the file; both
> of those (if using the current versions) use pango and cairo to output
> ps or pdf for printing.
>
> If you want to do it directly from emacs, you will need to write some
> code. If you don't mind using another gui program, reasonably current
> versions of web browsers and the default gnome/kde text editors should
> as well. (The latter may be painful for editing, but you'd only need
> to load the file and select print from the menu....)
Well, since I'm not able to write any code, I only have to wait for Emacs to
have the support you mention...
Rodolfo
prev parent reply other threads:[~2008-12-24 19:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-20 15:49 Chinese characters missing in .ps output file Rodolfo Medina
2008-12-20 16:21 ` Peter Dyballa
[not found] ` <mailman.3168.1229790102.26697.help-gnu-emacs@gnu.org>
2008-12-21 20:30 ` Rodolfo Medina
2008-12-21 20:25 ` Peter Dyballa
[not found] ` <mailman.3207.1229891161.26697.help-gnu-emacs@gnu.org>
2008-12-21 22:18 ` Rodolfo Medina
2008-12-21 22:20 ` Peter Dyballa
[not found] ` <mailman.3210.1229898011.26697.help-gnu-emacs@gnu.org>
2008-12-22 15:41 ` Rodolfo Medina
2008-12-22 20:22 ` Peter Dyballa
2008-12-23 22:22 ` James Cloos
[not found] ` <mailman.3297.1230070986.26697.help-gnu-emacs@gnu.org>
2008-12-24 19:15 ` Rodolfo Medina [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877i5pz8o7.fsf@gmail.com \
--to=rodolfo.medina@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.