* postscript print buffer
@ 2003-04-30 17:39 Niels Freimann
0 siblings, 0 replies; 14+ messages in thread
From: Niels Freimann @ 2003-04-30 17:39 UTC (permalink / raw)
Hi,
I appreciate postscript print buffer very much, however I don't know how to
configure larger fonts. Any idea?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: postscript print buffer
[not found] <mailman.5413.1051724577.21513.help-gnu-emacs@gnu.org>
@ 2003-04-30 19:29 ` Francois Fleuret
2003-05-01 8:03 ` Niels Freimann
2003-05-01 8:21 ` John McCabe
1 sibling, 1 reply; 14+ messages in thread
From: Francois Fleuret @ 2003-04-30 19:29 UTC (permalink / raw)
Hi,
Niels Freimann wrote on 30 Apr 2003 18:39:06 MET:
> I appreciate postscript print buffer very much, however I don't know
> how to configure larger fonts. Any idea?
(setq ps-font-size 12)
seems to do that sort of thing.
And have you noticed that PC keyboards have a "print" key ? This is my
setting for ps-print:
>> (defun ps-print-in-file (filename)
>> "Prints the buffer in a postscript file" (interactive "FPS file: ")
>> (ps-print-buffer-with-faces filename))
>>
>> (define-key global-map [(print)] 'ps-print-in-file)
>> (define-key global-map [(shift print)] 'ps-print-buffer-with-faces)
So that [print] alone prints to a file (and asks for the filename
first) and [shift print] prints directly.
Regards,
FF
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: postscript print buffer
2003-04-30 19:29 ` postscript print buffer Francois Fleuret
@ 2003-05-01 8:03 ` Niels Freimann
0 siblings, 0 replies; 14+ messages in thread
From: Niels Freimann @ 2003-05-01 8:03 UTC (permalink / raw)
Cc: Help-gnu-emacs
Hi Francois,
thanks a lot! Have a nice day.
Cheers
-Niels
On Wednesday 30 April 2003 21:29, Francois Fleuret wrote:
> Hi,
>
> Niels Freimann wrote on 30 Apr 2003 18:39:06 MET:
> > I appreciate postscript print buffer very much, however I don't know
> > how to configure larger fonts. Any idea?
>
> (setq ps-font-size 12)
>
> seems to do that sort of thing
>
> And have you noticed that PC keyboards have a "print" key ? This is my
>
> setting for ps-print:
> >> (defun ps-print-in-file (filename)
> >> "Prints the buffer in a postscript file" (interactive "FPS file: ")
> >> (ps-print-buffer-with-faces filename))
> >>
> >> (define-key global-map [(print)] 'ps-print-in-file)
> >> (define-key global-map [(shift print)] 'ps-print-buffer-with-faces)
>
> So that [print] alone prints to a file (and asks for the filename
> first) and [shift print] prints directly
>
> Regards,
>
> FF
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: postscript print buffer
[not found] <mailman.5413.1051724577.21513.help-gnu-emacs@gnu.org>
2003-04-30 19:29 ` postscript print buffer Francois Fleuret
@ 2003-05-01 8:21 ` John McCabe
1 sibling, 0 replies; 14+ messages in thread
From: John McCabe @ 2003-05-01 8:21 UTC (permalink / raw)
On Wed, 30 Apr 2003 19:39:06 +0200, Niels Freimann
<nfreimann@firemail.de> wrote:
>Hi,
>
>I appreciate postscript print buffer very much, however I don't know how =
>to=20
>configure larger fonts. Any idea?
Have a read of the text at the front of the ps-print.el file in your
emacs\lisp subdirectory. Might give you some more ideas of what needs
to be set up.
Best Regards
John McCabe
To reply by email replace 'nospam' with 'assen'
^ permalink raw reply [flat|nested] 14+ messages in thread
* Postscript Print Buffer
@ 2005-03-25 23:22 Raimund Kohl-Fuechsle
2005-03-26 12:42 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Raimund Kohl-Fuechsle @ 2005-03-25 23:22 UTC (permalink / raw)
Hello guys,
I started diving into some "complicated" stuff - at least for my humble
mind: Postscript printing with emacs. And I have to say I don't quite
get it. The following settings are to be found in my .emacs:
'(ps-font-family (quote Palatino))
'(ps-lpr-command "lpr")
'(ps-paper-type (quote a4))
'(ps-printer-name-option "-P")
I avoided diving into this since some times now - now I want to "crack
the nut", so to say - and let me start with asking for help to eliminate
a problem first: Whenever I now try to print via Postscript Print Buffer
(B+W) the german Umlauts aren't printed - no matter which (given)
font-family I use. If I instead use M-x print-buffer the Umlauts are
printed but the printout doesn't look so nice - which tells me, that
there is a big difference between the two commands.
I use emacs 21.4. on Debian Sarge with Cups ... and certainly I do have
way more questions ... later :-)
ray
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-25 23:22 Postscript Print Buffer Raimund Kohl-Fuechsle
@ 2005-03-26 12:42 ` Eli Zaretskii
2005-03-26 13:17 ` Raimund Kohl-Fuechsle
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2005-03-26 12:42 UTC (permalink / raw)
> Date: Sat, 26 Mar 2005 00:22:10 +0100
> From: Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de>
>
> I avoided diving into this since some times now - now I want to "crack
> the nut", so to say - and let me start with asking for help to eliminate
> a problem first: Whenever I now try to print via Postscript Print Buffer
> (B+W) the german Umlauts aren't printed - no matter which (given)
> font-family I use.
font-family is the wrong place to look. You should instead customize
the value of ps-multibyte-buffer (which see). Based on what you tell,
the value of `bdf-font-except-latin' will do what you want.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-26 12:42 ` Eli Zaretskii
@ 2005-03-26 13:17 ` Raimund Kohl-Fuechsle
2005-03-26 14:34 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Raimund Kohl-Fuechsle @ 2005-03-26 13:17 UTC (permalink / raw)
Cc: help-gnu-emacs
Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sat, 26 Mar 2005 00:22:10 +0100
> > From: Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de>
> >
> > I avoided diving into this since some times now - now I want to "crack
> > the nut", so to say - and let me start with asking for help to eliminate
> > a problem first: Whenever I now try to print via Postscript Print Buffer
> > (B+W) the german Umlauts aren't printed - no matter which (given)
> > font-family I use.
>
> font-family is the wrong place to look. You should instead customize
> the value of ps-multibyte-buffer (which see). Based on what you tell,
> the value of `bdf-font-except-latin' will do what you want.
'(ps-font-family (quote Palatino))
'(ps-lpr-command "lp")
'(ps-multibyte-buffer (quote bdf-font-except-latin))
'(ps-paper-type (quote a4))
'(ps-printer-name-option "")
I guess that's what you mean, right? Ok, did that but nothing changed
(yes, I byte-compiled .emacs) - no Umlauts with PS Print Buffer (B+W).
What else could I do?
ray
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-26 13:17 ` Raimund Kohl-Fuechsle
@ 2005-03-26 14:34 ` Eli Zaretskii
2005-03-26 23:55 ` Raimund Kohl-Fuechsle
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2005-03-26 14:34 UTC (permalink / raw)
> Cc: help-gnu-emacs@gnu.org
> Comments: In-reply-to "Eli Zaretskii" <eliz@gnu.org>
> message dated "Sat, 26 Mar 2005 14:42:29 +0200."
> Date: Sat, 26 Mar 2005 14:17:37 +0100
> From: Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de>
>
> '(ps-font-family (quote Palatino))
> '(ps-lpr-command "lp")
> '(ps-multibyte-buffer (quote bdf-font-except-latin))
> '(ps-paper-type (quote a4))
> '(ps-printer-name-option "")
>
> I guess that's what you mean, right?
I don't know, since I don't quite understand where this fragment
belongs to.
Could you simply set the option manually, before using
ps-print-buffer, and see if that helps?
> Ok, did that but nothing changed (yes, I byte-compiled .emacs)
You also need to restart Emacs after changing .emacs.
> no Umlauts with PS Print Buffer (B+W).
What do you see in print instead of Umlauts?
Also, does your Postscript printer support Umlauts and other accented
characters?
Finally, what Latin-N encoding do you use by default in your Emacs?
That is, what is your locale?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-26 14:34 ` Eli Zaretskii
@ 2005-03-26 23:55 ` Raimund Kohl-Fuechsle
2005-03-27 11:06 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Raimund Kohl-Fuechsle @ 2005-03-26 23:55 UTC (permalink / raw)
Eli Zaretskii <eliz@gnu.org> wrote:
> What do you see in print instead of Umlauts?
%% Show vacant box for characters which don't have appropriate font.
> Because "Latin" doesn't mean "Latin-9".
Ah ... ok, I am learning ...
> > Ok, anyway, setting to
> > `bdf-font-except-latin' didn't change that behaviour.
>
> Something's clearly wrong, but I cannot figure out what. You will
> have to debug this yourself. One thing I'd do is print to a file (use
> ps-print-buffer with a numeric argument, and it will prompt for a file
> name), then look at that file to see what stands for the accented
> characters there.
I edited a text file containing just two words: Übel ärgerlich; now
here follows the output:
.......snip.................................
%%Page: 1 1
/Lines 2 def
/PageCount 1 def
1 BeginSheet
BeginDSCPage
/LineNumber 1 def
/PageNumber 1 def
/HeaderLinesLeft[
[/h0 (Uebel.txt)]
[/h1 (~/)]
]def
/HeaderLinesRight[
[/h0 /pagenumberstring load]
[/h1 (27.03.2005)]
]def
2 SetHeaderLines
0 BeginPage
/f0 F
false BG
0.000 0.000 0.000 FG
0 EF
1 1 SB
/f0 F <----------
(bel ) S <----------
1 1 SB
/f0 F <----------
(rgerlich) S <----------
PHL
EndPage
EndDSCPage
EndSheet
%%Trailer
%%Pages: 1
EndDoc
%%EOF
.......snap.................................
and here's the part printed by a2ps:
========
.......snip.................................
%%Page: (1) 1
%%BeginPageSetup
/pagesave save def
%%EndPageSetup
iso1dict begin
gsave
llx lly 12 add translate
/v 0 store
/x0 x v get 4.703931 add sx cw mul add store
/y0 y v get bfs th add sub store
x0 y0 moveto
(\334bel \344rgerlich) p n <-------------
(Uebel.txt) (Seite 1/1) (M\344r 27, 05 0:23) title
border
grestore
(Gedruckt von Raimund Kohl-Fuechsle) rhead
() (1/1) (Sonntag M\344rz 27, 2005) footer
end % of iso1dict
pagesave restore
showpage
%%Trailer
end
%%EOF
.......snap.................................
> Sorry, I don't understand this. Can you explain what it means?
oblings or rectangles made of very fine lines
>
> > > Also, does your Postscript printer support Umlauts and other accented
> > > characters?
> >
> > As said above, all other printing-systems work without any problems.
> > Btw, I use a HP LaserJet4000N ... a network printer - and I checked
> > before if the fonts (palatino) are supported ... they certainly are.
>
> If you print out the entire Palatino font in your printer, does it
> include accented Latin-9 characters?
How can I do that ... I would like to give this a try
> > my .emacs holds the following settings:
> >
> > '(current-language-environment "Latin-9")
> > '(default-input-method "latin-9-prefix")
>
> So you are using Latin-9. I wonder if using Latin-1 instead will
> help resolve your problem.
AFAIK there is just one difference between latin-1 and latin-9, and
that's the Euro-symbol in latin-9
ray
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-26 23:55 ` Raimund Kohl-Fuechsle
@ 2005-03-27 11:06 ` Eli Zaretskii
2005-03-27 20:01 ` Raimund Kohl-Fuechsle
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2005-03-27 11:06 UTC (permalink / raw)
> Comments: In-reply-to "Eli Zaretskii" <eliz@gnu.org>
> message dated "Sat, 26 Mar 2005 16:34:26 +0200."
> Date: Sun, 27 Mar 2005 00:55:39 +0100
> From: Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de>
>
> /f0 F <----------
> (bel ) S <----------
> 1 1 SB
> /f0 F <----------
> (rgerlich) S <----------
On my machine, I see \334 and \344 here.
Could you please try this in "emacs -q --no-site-file", without any
changes to the fonts, and see if that changes something?
And which Emacs version is that, btw?
> > If you print out the entire Palatino font in your printer, does it
> > include accented Latin-9 characters?
>
> How can I do that ... I would like to give this a try
You need to go to the printer and look through the various sub-menus
of its Self-Test menu. One of them should print the available fonts.
> > So you are using Latin-9. I wonder if using Latin-1 instead will
> > help resolve your problem.
>
> AFAIK there is just one difference between latin-1 and latin-9, and
> that's the Euro-symbol in latin-9
Inside Emacs, all of them are different.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-27 11:06 ` Eli Zaretskii
@ 2005-03-27 20:01 ` Raimund Kohl-Fuechsle
0 siblings, 0 replies; 14+ messages in thread
From: Raimund Kohl-Fuechsle @ 2005-03-27 20:01 UTC (permalink / raw)
Eli Zaretskii <eliz@gnu.org> wrote:
> > /f0 F <----------
> > (bel ) S <----------
> > 1 1 SB
> > /f0 F <----------
> > (rgerlich) S <----------
>
> On my machine, I see \334 and \344 here.
Ah ... can you hint me to where to look, please?
> Could you please try this in "emacs -q --no-site-file", without any
> changes to the fonts, and see if that changes something?
Did that - even removed .Xresources and logged in - no change. Exactly
the same output.
> And which Emacs version is that, btw?
21.4.1. on Debian Sarge
> > > If you print out the entire Palatino font in your printer, does it
> > > include accented Latin-9 characters?
> >
> > How can I do that ... I would like to give this a try
The printer does print out Umlauts ... there is a message right BEFORE
printing: "Fonts for some characters not found, continue anyway ..."
so I suppose it's not the printer.
> Inside Emacs, all of them are different.
Ah, ok, but then there must be a table or whatever to check out ... no?
I don't like to feel like a stupid ... :-( <sigh>
ray
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
@ 2005-03-28 23:37 Peter Dyballa
2005-03-29 4:48 ` Eli Zaretskii
0 siblings, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2005-03-28 23:37 UTC (permalink / raw)
Hello!
In Emacs 22.0.50 from CVS and in 21.3.50 it works to print a buffer
contents with diacritics when this buffer is in Unicode or it's the
Holidays or Calendar buffer that do not explain in which mood they are.
The € I can't see because no regular PostScript font has it.
Buffers in most Latin scripts are *not* correctly printed in PS when
they contain diacritics.
I have a text file with this in its header ";;; -*- mode: Text; coding:
utf-8; -*-" that displays in GNU Emacs of course in UTF-8. This file
contains the Adobe Standard Encoding in that kind:
; oct dec hex UTF8
;===================================
= 40 = 32 = 20 = 20 = U+0020 : SPACE
! = 41 = 33 = 21 = 21 = U+0021 : EXCLAMATION MARK
When I print this buffer the following characters are not printed:
⁄ = 244 = 164 = A4 = E28184 = U+2044 : FRACTION SLASH
ƒ = 246 = 166 = A6 = C692 = U+0192 : LATIN SMALL LETTER F WITH HOOK
“ = 252 = 170 = AA = E2809C = U+201C : LEFT DOUBLE QUOTATION MARK
‹ = 254 = 172 = AC = E280B9 = U+2039 : SINGLE LEFT-POINTING ANGLE
QUOTATION MARK
› = 255 = 173 = AD = E280BA = U+203A : SINGLE RIGHT-POINTING ANGLE
QUOTATION MARK
fi = 256 = 174 = AE = EFAC81 = U+FB01 : LATIN SMALL LIGATURE FI
fl = 257 = 175 = AF = EFAC82 = U+FB02 : LATIN SMALL LIGATURE FL
– = 261 = 177 = B1 = E28093 = U+2013 : EN DASH
† = 262 = 178 = B2 = E280A0 = U+2020 : DAGGER
‡ = 263 = 179 = B3 = E280A1 = U+2021 : DOUBLE DAGGER
• = 267 = 183 = B7 = E280A2 = U+2022 : BULLET
‚ = 270 = 184 = B8 = E2809A = U+201A : SINGLE LOW-9 QUOTATION MARK
„ = 271 = 185 = B9 = E2809E = U+201E : DOUBLE LOW-9 QUOTATION MARK
” = 272 = 186 = BA = E2809D = U+201D : RIGHT DOUBLE QUOTATION MARK
… = 274 = 188 = BC = E280A6 = U+2026 : HORIZONTAL ELLIPSIS
‰ = 275 = 189 = BD = E280B0 = U+2030 : PER MILLE SIGN
ˆ = 303 = 195 = C3 = CB86 = U+02C6 : MODIFIER LETTER CIRCUMFLEX ACCENT
˜ = 304 = 196 = C4 = CB9C = U+02DC : SMALL TILDE
˘ = 306 = 198 = C6 = CB98 = U+02D8 : BREVE
˙ = 307 = 199 = C7 = CB99 = U+02D9 : DOT ABOVE
˚ = 312 = 202 = CA = CB9A = U+02DA : RING ABOVE
˝ = 315 = 205 = CD = CB9D = U+02DD : DOUBLE ACUTE ACCENT
˛ = 316 = 206 = CE = CB9B = U+02DB : OGONEK
ˇ = 317 = 207 = CF = CB87 = U+02C7 : CARON
— = 320 = 208 = D0 = E28094 = U+2014 : EM DASH
Ł = 350 = 232 = E8 = C581 = U+0141 : LATIN CAPITAL LETTER L WITH
STROKE
Œ = 352 = 234 = EA = C592 = U+0152 : LATIN CAPITAL LIGATURE OE
ı = 365 = 245 = F5 = C4B1 = U+0131 : LATIN SMALL LETTER DOTLESS I
ł = 370 = 248 = F8 = C582 = U+0142 : LATIN SMALL LETTER L WITH STROKE
œ = 372 = 250 = FA = C593 = U+0153 : LATIN SMALL LIGATURE OE
Using an ISO-Latin 9/ISO 8859-15 buffer with this string in its header
";;; -*- mode: Text; coding: iso-8859-15; -*-" the following characters
are not shown:
€ = 244 = 164 = A4 = U+20AC : EURO SIGN ; not in PS
Š = 246 = 166 = A6 = U+0160 : LATIN CAPITAL LETTER S WITH CARON
š = 250 = 168 = A8 = U+0161 : LATIN SMALL LETTER S WITH CARON
Ž = 264 = 180 = B4 = U+017D : LATIN CAPITAL LETTER Z WITH CARON
ž = 270 = 184 = B8 = U+017E : LATIN SMALL LETTER Z WITH CARON
Œ = 274 = 188 = BC = U+0152 : LATIN CAPITAL LIGATURE OE
œ = 275 = 189 = BD = U+0153 : LATIN SMALL LIGATURE OE
Ÿ = 276 = 190 = BE = U+0178 : LATIN CAPITAL LETTER Y WITH DIAERESIS
I did PS print the buffers into the CUPS. My printer was not on so I
had time to convert the print jobs with ps2pdf14, based on gs 8.14,
into PDF which I viewed with TeXShop 1.35e. I have some more test files
encoded in other Latin scripts that do not print well ...
--
Greetings
Pete
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-28 23:37 Peter Dyballa
@ 2005-03-29 4:48 ` Eli Zaretskii
2005-03-29 9:59 ` Raimund Kohl-Fuechsle
0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2005-03-29 4:48 UTC (permalink / raw)
> From: Peter Dyballa <Peter_Dyballa@Web.DE>
> Date: Tue, 29 Mar 2005 01:37:03 +0200
> Cc:
>
> Buffers in most Latin scripts are *not* correctly printed in PS when
> they contain diacritics.
For Latin scripts other than Latin-1, I'm quite sure you need to
customize the value of ps-mule-font-info-database-latin, for ps-print
to work correctly.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Postscript Print Buffer
2005-03-29 4:48 ` Eli Zaretskii
@ 2005-03-29 9:59 ` Raimund Kohl-Fuechsle
0 siblings, 0 replies; 14+ messages in thread
From: Raimund Kohl-Fuechsle @ 2005-03-29 9:59 UTC (permalink / raw)
Cc: help-gnu-emacs
Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Peter Dyballa <Peter_Dyballa@Web.DE>
> > Date: Tue, 29 Mar 2005 01:37:03 +0200
> > Cc:
> >
> > Buffers in most Latin scripts are *not* correctly printed in PS when
> > they contain diacritics.
>
> For Latin scripts other than Latin-1, I'm quite sure you need to
> customize the value of ps-mule-font-info-database-latin, for ps-print
> to work correctly.
That's what I thought too ...
ray
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-03-29 9:59 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-25 23:22 Postscript Print Buffer Raimund Kohl-Fuechsle
2005-03-26 12:42 ` Eli Zaretskii
2005-03-26 13:17 ` Raimund Kohl-Fuechsle
2005-03-26 14:34 ` Eli Zaretskii
2005-03-26 23:55 ` Raimund Kohl-Fuechsle
2005-03-27 11:06 ` Eli Zaretskii
2005-03-27 20:01 ` Raimund Kohl-Fuechsle
-- strict thread matches above, loose matches on Subject: below --
2005-03-28 23:37 Peter Dyballa
2005-03-29 4:48 ` Eli Zaretskii
2005-03-29 9:59 ` Raimund Kohl-Fuechsle
[not found] <mailman.5413.1051724577.21513.help-gnu-emacs@gnu.org>
2003-04-30 19:29 ` postscript print buffer Francois Fleuret
2003-05-01 8:03 ` Niels Freimann
2003-05-01 8:21 ` John McCabe
2003-04-30 17:39 Niels Freimann
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.