unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Gregor Zattler <grfz@gmx.de>
To: 41812@debbugs.gnu.org
Subject: bug#41812: 28.0.50; pr-ps-... does not print certain accented characters, bust shows question marks instead
Date: Sun, 14 Jun 2020 21:59:39 +0200	[thread overview]
Message-ID: <87ftaxl8pg.fsf@no.workgroup> (raw)
In-Reply-To: <draft-87pna3i9d5.fsf@no.workgroup>

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

Hi Eli, Emacs developers,
* Gregor Zattler <grfz@gmx.de> [2020-06-13; 11:49]:
> * Eli Zaretskii <eliz@gnu.org> [2020-06-12; 10:30]:
>>> From: Gregor Zattler <grfz@gmx.de>
>>> Date: Thu, 11 Jun 2020 21:09:55 +0200
>>>
>>> when printing via ps-print-... I realized, that some
>>> accented characters, namely
>>>
>>> - capital letter L slash
>>> - small letter n acute
>>> - small letter o acute
>>> - small letter z acute
>>>
>>> are exchanged for question marks.
>>

This time the file with the test text is attached:

[-- Attachment #2: multibyte.txt --]
[-- Type: text/plain, Size: 47 bytes --]



test text follows:   Łódź  koń
     

[-- Attachment #3: Type: text/plain, Size: 1879 bytes --]


>> To make the report more easily reproducible and investigated, it is
>> better to leave printing.el commands that invoke Ghostview out of the
>> picture, since invoking external commands could produce other
>> irrelevant issues.  If you instead produce a PostScript buffer out of
>> your text and look at the produced PostScript, do you see the question
>> marks there, and if so, for which characters?

I did emacs -Q ~/tmp/multibyte.txt  --eval '(ps-spool-buffer)'
then in *PostScript* there are question marks for:

- capital letter L slash
- small letter n acute
- small letter z acute

>> With the exception of o acute, the other characters aren't Latin-1, so
>> I think what you see is expected.  To see more characters, you need to
>> customize ps-mule.el; at least ps-mule-font-info-database-default
>> should be customized.  Maybe you should also install GNU
>> Intlfonts.

I installed these.

>> I suggest to read the commentary at the beginning of
>> ps-mule.el for more details.

Thanks.  The documentation for
ps-mule-font-info-database-default says, it's used if
ps-multibyte-buffer is nil.  So I customized
ps-multibyte-buffer to 'bdf-font-except-latin and spooled
again.  With the same result question mark-wise.

I then tried additionally ps-mule-font-info-database-default
with an additional entry Symbol: utf-8 with font source bdf
(I have no clue how to customize this variable).  This
resulted in the same 3 question marks in the *PostScript*
buffer.



I do not really understand how this works and how to
customize it.

Since my multibyte.txt file is loaded in a buffer with an
"U" in the left corner of the mode line, I expected emacs to
do the right thing also with regard to printing.


But thanks for your help.  I'll do some internet search when
I have more time for this.



Ciao,
--
Gregor

       reply	other threads:[~2020-06-14 19:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <draft-87pna3i9d5.fsf@no.workgroup>
2020-06-14 19:59 ` Gregor Zattler [this message]
2020-06-11 19:09 bug#41812: 28.0.50; pr-ps-... does not print certain accented characters, bust shows question marks instead Gregor Zattler
2020-06-12  7:14 ` Eli Zaretskii
2020-06-12  7:30 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftaxl8pg.fsf@no.workgroup \
    --to=grfz@gmx.de \
    --cc=41812@debbugs.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).