* bug#41812: 28.0.50; pr-ps-... does not print certain accented characters, bust shows question marks instead
@ 2020-06-11 19:09 Gregor Zattler
2020-06-12 7:14 ` Eli Zaretskii
2020-06-12 7:30 ` Eli Zaretskii
0 siblings, 2 replies; 4+ messages in thread
From: Gregor Zattler @ 2020-06-11 19:09 UTC (permalink / raw)
To: 41812
Dear Emacs developers,
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.
Way to reproduce
With attached file test.txt do:
emacs -Q test.txt --eval '(pr-ps-buffer-preview 1)
Perhaps the problem lies somewhere in the software stack
used to actually print.
As a workaround I was forced to use LibreOffice instead of
exported org-mode documents.
Thanks for looking into this, Gregor
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#41812: 28.0.50; pr-ps-... does not print certain accented characters, bust shows question marks instead
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
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2020-06-12 7:14 UTC (permalink / raw)
To: Gregor Zattler; +Cc: 41812
> From: Gregor Zattler <grfz@gmx.de>
> Date: Thu, 11 Jun 2020 21:09:55 +0200
>
> With attached file test.txt do:
> emacs -Q test.txt --eval '(pr-ps-buffer-preview 1)
I didn't find any attachments in your report.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#41812: 28.0.50; pr-ps-... does not print certain accented characters, bust shows question marks instead
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
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2020-06-12 7:30 UTC (permalink / raw)
To: Gregor Zattler; +Cc: 41812
> 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.
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
suggest to read the commentary at the beginning of ps-mule.el for more
details.
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?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#41812: 28.0.50; pr-ps-... does not print certain accented characters, bust shows question marks instead
[not found] <draft-87pna3i9d5.fsf@no.workgroup>
@ 2020-06-14 19:59 ` Gregor Zattler
0 siblings, 0 replies; 4+ messages in thread
From: Gregor Zattler @ 2020-06-14 19:59 UTC (permalink / raw)
To: 41812
[-- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-14 19:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
[not found] <draft-87pna3i9d5.fsf@no.workgroup>
2020-06-14 19:59 ` Gregor Zattler
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.