all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* wie kann ich Emacs so einstellen, dass ich drucken kann
@ 2022-12-14 16:38 Gottfried
  2022-12-14 17:27 ` Philip Kaludercic
                   ` (2 more replies)
  0 siblings, 3 replies; 38+ messages in thread
From: Gottfried @ 2022-12-14 16:38 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 260 bytes --]

Hallo,
ich wollte einen Puffer ausdrucken (das erste Mal)
und es gab diese Fehlermeldung:

lpr-print-region: Spooling...done: /home/gfp/.guix-profile/bin/lpr: 
Fehler - Kein voreingestelltes Ziel.

Wie kann ich das Ziel einstellen?

danke
Gottfried

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
@ 2022-12-14 17:27 ` Philip Kaludercic
  2022-12-16 15:27   ` printing Gottfried
  2022-12-14 21:30 ` wie kann ich Emacs so einstellen, dass ich drucken kann Michael Heerdegen
  2022-12-17  9:00 ` Jean Louis
  2 siblings, 1 reply; 38+ messages in thread
From: Philip Kaludercic @ 2022-12-14 17:27 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

Gottfried <gottfried@posteo.de> writes:

> Hallo,
> ich wollte einen Puffer ausdrucken (das erste Mal)
> und es gab diese Fehlermeldung:
>
> lpr-print-region: Spooling...done: /home/gfp/.guix-profile/bin/lpr:
> Fehler - Kein voreingestelltes Ziel.
>
> Wie kann ich das Ziel einstellen?
>
> danke
> Gottfried

You have to take a look at `lpr-switches', and specifically figure out
what -P<printer name> flag to add, so that the "lpr" command knows where
you want to print.



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
  2022-12-14 17:27 ` Philip Kaludercic
@ 2022-12-14 21:30 ` Michael Heerdegen
  2022-12-17  9:00 ` Jean Louis
  2 siblings, 0 replies; 38+ messages in thread
From: Michael Heerdegen @ 2022-12-14 21:30 UTC (permalink / raw)
  To: help-gnu-emacs

Gottfried <gottfried@posteo.de> writes:

> Hallo,
> ich wollte einen Puffer ausdrucken (das erste Mal)

Bitte auch Alternativen in Erwägung ziehen wenn du dich nicht mit
Interna herumschlagen möchtest:

- Emacs kann mit M-x ps-spool-buffer-with-faces den Buffer in Postscript
umwandeln - das Ergebnis ist im neuen Buffer *PostScript*.  Das kann man
dann als Postscript- (.ps) File abspeichern und ebenfalls mit anderen
Programmen drucken (etwa gv oder was auch immer)

- Paket htmlize um einen Buffer in ein html-File zu drucken und mit
einem anderen Programm drucken (Browser, etwa Firefox).  Das macht
Sinn weil Browser heutzutage oft sehr gute Druck-Interfaces haben.

Viele machen das weil das Interface in Emacs zum Drucken sehr
spartanisch ist.  Es gibt auch noch printing.el das versucht ein
besseres Interface für's Drucken zu Verfügung zu stellen um es etwas
leichter zu machen.

Ich persönlich nutze zur Zeit `ps-spool-buffer-with-faces'.

Michael.




^ permalink raw reply	[flat|nested] 38+ messages in thread

* printing
  2022-12-14 17:27 ` Philip Kaludercic
@ 2022-12-16 15:27   ` Gottfried
  2022-12-16 22:26     ` printing Michael Heerdegen
  2022-12-17 13:48     ` printing Gottfried
  0 siblings, 2 replies; 38+ messages in thread
From: Gottfried @ 2022-12-16 15:27 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 1116 bytes --]

Hi,

I added this to my init.el file:

;;printer
(setq lpr-switches
       (append '("-P" "HP_Officejet_J4680_All-in-One"
                 "-o" "sides=two-sided-long-edge"
                 "-o" "number-up=2")
               lpr-switches))


But still it does not find my printer.

Where is my mistake?
The two lines after the printer I am not sure if they are right as well,
but probably that has nothing to do with the printer itself.

I have got a "HP Officejet J4680 All-in-One" printer


Kind regards

Gottfried


Am 14.12.22 um 18:27 schrieb Philip Kaludercic:
> Gottfried <gottfried@posteo.de> writes:
> 
>> Hallo,
>> ich wollte einen Puffer ausdrucken (das erste Mal)
>> und es gab diese Fehlermeldung:
>>
>> lpr-print-region: Spooling...done: /home/gfp/.guix-profile/bin/lpr:
>> Fehler - Kein voreingestelltes Ziel.
>>
>> Wie kann ich das Ziel einstellen?
>>
>> danke
>> Gottfried
> 
> You have to take a look at `lpr-switches', and specifically figure out
> what -P<printer name> flag to add, so that the "lpr" command knows where
> you want to print.

-- 



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing
  2022-12-16 15:27   ` printing Gottfried
@ 2022-12-16 22:26     ` Michael Heerdegen
  2022-12-17  6:29       ` printing tomas
  2022-12-17 13:48     ` printing Gottfried
  1 sibling, 1 reply; 38+ messages in thread
From: Michael Heerdegen @ 2022-12-16 22:26 UTC (permalink / raw)
  To: help-gnu-emacs

Gottfried <gottfried@posteo.de> writes:

> I added this to my init.el file:
>
> ;;printer
> (setq lpr-switches
>       (append '("-P" "HP_Officejet_J4680_All-in-One"
>                 "-o" "sides=two-sided-long-edge"
>                 "-o" "number-up=2")
>               lpr-switches))
>
>
> But still it does not find my printer.
>
> Where is my mistake?
> The two lines after the printer I am not sure if they are right as well,
> but probably that has nothing to do with the printer itself.

Does the lpr command print outside of Emacs?

Michael.




^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing
  2022-12-16 22:26     ` printing Michael Heerdegen
@ 2022-12-17  6:29       ` tomas
  2022-12-17  7:41         ` printing Emanuel Berg
  0 siblings, 1 reply; 38+ messages in thread
From: tomas @ 2022-12-17  6:29 UTC (permalink / raw)
  To: help-gnu-emacs

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

On Fri, Dec 16, 2022 at 11:26:39PM +0100, Michael Heerdegen wrote:
> Gottfried <gottfried@posteo.de> writes:
> 
> > I added this to my init.el file:
> >
> > ;;printer
> > (setq lpr-switches
> >       (append '("-P" "HP_Officejet_J4680_All-in-One"
> >                 "-o" "sides=two-sided-long-edge"
> >                 "-o" "number-up=2")
> >               lpr-switches))
> >
> >
> > But still it does not find my printer.
> >
> > Where is my mistake?
> > The two lines after the printer I am not sure if they are right as well,
> > but probably that has nothing to do with the printer itself.
> 
> Does the lpr command print outside of Emacs?

This is the first I'd try, yes. In a console, do

  lpq -a

This should show you all the printer queues your
system thinks it has. The printer queue you mention
above ("HP_Officejet_J4680_All-in-One") should show
up in the list.

Then try

  lpr -P HP_Officejet_J4680_All-in-One <some filename>

where <some filename> is the name of some existing (text
or Postscript or PDF) file and see what it happens.

Once you have that running, the Emacs part should be
easy.

Have you printed anything with your computer (outside
of Emacs) yet? How have you done it?

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing
  2022-12-17  6:29       ` printing tomas
@ 2022-12-17  7:41         ` Emanuel Berg
  0 siblings, 0 replies; 38+ messages in thread
From: Emanuel Berg @ 2022-12-17  7:41 UTC (permalink / raw)
  To: help-gnu-emacs

tomas wrote:

>> Does the lpr command print outside of Emacs?
>
> This is the first I'd try, yes. In a console, do
>
>   lpq -a

Here are the commands I accumulated during my printing days -
and while I miss those DAYS, it's not because they involved
printing stuff ;)

  https://dataswamp.org/~incal/conf/.zsh/printers
  https://dataswamp.org/~incal/conf/.zsh/printers-print

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
  2022-12-14 17:27 ` Philip Kaludercic
  2022-12-14 21:30 ` wie kann ich Emacs so einstellen, dass ich drucken kann Michael Heerdegen
@ 2022-12-17  9:00 ` Jean Louis
  2022-12-17  9:29   ` Michael Heerdegen
                     ` (2 more replies)
  2 siblings, 3 replies; 38+ messages in thread
From: Jean Louis @ 2022-12-17  9:00 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

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

* Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> Hallo,
> ich wollte einen Puffer ausdrucken (das erste Mal)
> und es gab diese Fehlermeldung:

So far best tool to print Emacs buffers that I have found is the
command `paps' as it supports correctly Unicode, also emoticons. Thus
you may try by installing `paps' tool from your Operating System
distribution.

Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
habe, ist der Befehl "paps", weil es richtig Unicode unterstützt, auch
Emoticons. Daher können Sie es versuchen, indem Sie das "PAPS"-Tool
aus Ihrer Betriebssystemverteilung installieren.

dov/paps: A text to postscript converter through pango:
https://github.com/dov/paps

Ich verwende folgende Funktionen:

(defun rcd-command-output-from-input (program input &rest args)
  "Return output string from PROGRAM with given INPUT string and optional ARGS."
  (let* ((output (with-temp-buffer
		   (insert input)
		   (apply #'call-process-region nil nil program t '(t nil) nil args)
		   (buffer-string))))
    output))

I am too often using landscape, you can adjust it for your needs.

(defun rcd-paps-process (text &optional format title &rest args)
  (let* ((format (or format "pdf"))
	 (title (or title (buffer-name)))
	 (length (length title))
	 (max 45)
	 (title (if (> length max) (substring title 0 max) title)))
    (apply 'rcd-command-output-from-input "paps" text "--format" format "--landscape" "--title" title "--header" args)))

(defun string-to-file-force (string file)
  "Prints string into file, matters not if file exists. Return FILE as file name."
  (with-temp-file file
    (insert string))
  file)

(defun rcd-paps-text-to-pdf (text &optional file-name title)
  (let* ((output (rcd-paps-process text "pdf" title))
	 (file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
    (string-to-file-force output file-name)))

(defun rcd-paps-buffer-to-pdf-view ()
  (interactive)
  (let ((output (rcd-paps-process-buffer))
	(file-name (rcd-temp-file-name nil "pdf")))
    (sleep-for 1)
    (start-process "evince" nil "evince" (string-to-file-force output file-name))))

😎

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/

[-- Attachment #2: Saturday-December-17-2022-11-59-20.pdf --]
[-- Type: application/pdf, Size: 24879 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-17  9:00 ` Jean Louis
@ 2022-12-17  9:29   ` Michael Heerdegen
  2022-12-17  9:41     ` Jean Louis
  2022-12-18  8:04   ` Eduardo Ochs
  2022-12-18 12:06   ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
  2 siblings, 1 reply; 38+ messages in thread
From: Michael Heerdegen @ 2022-12-17  9:29 UTC (permalink / raw)
  To: help-gnu-emacs

Jean Louis <bugs@gnu.support> writes:

> * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> > Hallo,
> > ich wollte einen Puffer ausdrucken (das erste Mal)
> > und es gab diese Fehlermeldung:

> Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> habe, ist [...]

Wenn es sich allerdings um einen Kartoffelpuffer handelt, ist es mit dem
Drucken tatsächlich nicht so einfach.

Sorry, could not resist.  Puffer...


Michael.




^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-17  9:29   ` Michael Heerdegen
@ 2022-12-17  9:41     ` Jean Louis
  2022-12-17 10:34       ` Michael Heerdegen
  0 siblings, 1 reply; 38+ messages in thread
From: Jean Louis @ 2022-12-17  9:41 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

* Michael Heerdegen <michael_heerdegen@web.de> [2022-12-17 12:31]:
> Jean Louis <bugs@gnu.support> writes:
> 
> > * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> > > Hallo,
> > > ich wollte einen Puffer ausdrucken (das erste Mal)
> > > und es gab diese Fehlermeldung:
> 
> > Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> > habe, ist [...]
> 
> Wenn es sich allerdings um einen Kartoffelpuffer handelt, ist es mit dem
> Drucken tatsächlich nicht so einfach.

Hahhahaha, dann wie sagt man es üblicherweise in Deutschland? Buffer?
How do you say "Buffer" in Germany?

Wie übersetzt man besser Buffer im Kontext von Emacs?
How do you translate "Buffer" in the context of Emacs?

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-17  9:41     ` Jean Louis
@ 2022-12-17 10:34       ` Michael Heerdegen
  2022-12-17 10:39         ` Michael Heerdegen
  0 siblings, 1 reply; 38+ messages in thread
From: Michael Heerdegen @ 2022-12-17 10:34 UTC (permalink / raw)
  To: help-gnu-emacs

Jean Louis <bugs@gnu.support> writes:

> Wie übersetzt man besser Buffer im Kontext von Emacs?
> How do you translate "Buffer" in the context of Emacs?

"Puffer" is actually ok, but may sound a bit weird.  Most of the time
many people just use the English words, so "buffer" would also be ok.
Using English words in German sentences a lot has its own name:
speaking Denglish.

It depends on who you explain something.  But you also do older
people no favor if you use words that they don't find in texts and the
Internet etc. because they are not common.

In this case "buffer" and "Puffer" are very similar, so I would prefer
"buffer": it's easy to remember even for people not speaking English,
and it's more precise than "Puffer".

Michael.




^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-17 10:34       ` Michael Heerdegen
@ 2022-12-17 10:39         ` Michael Heerdegen
  0 siblings, 0 replies; 38+ messages in thread
From: Michael Heerdegen @ 2022-12-17 10:39 UTC (permalink / raw)
  To: help-gnu-emacs

Michael Heerdegen <michael_heerdegen@web.de> writes:

> It depends on who you explain something.  But you also do older
> people no favor if you use words that they don't find in texts and the
> Internet etc. because they are not common.

When I speak about Emacs with my friends (in German) I only use English
terms: buffer, window, frame, mode-line, narrowing, etc.  If I would try
to translate all this stuff, I would have forgotten what I actually
wanted to say.  And it would be hard to understand.


Michael.




^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing
  2022-12-16 15:27   ` printing Gottfried
  2022-12-16 22:26     ` printing Michael Heerdegen
@ 2022-12-17 13:48     ` Gottfried
  2022-12-17 16:30       ` printing tomas
  1 sibling, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-17 13:48 UTC (permalink / raw)
  To: Philip Kaludercic, michael_heerdegen; +Cc: help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 727 bytes --]

Hi,

I found the mistake why I couldn't print in emacs.


My printer has a different name and I changed it in my init.el file.

HP_Officejet_J4680_series


No I can print within emacs, at the moment with the menu: print

Other options I have to figure out.


Kind regards

  Gottfried



Am 16.12.22 um 16:27 schrieb Gottfried:
> Hi,
> 
> I added this to my init.el file:
> 
> ;;printer
> (setq lpr-switches
>        (append '("-P" "HP_Officejet_J4680_All-in-One"
>                  "-o" "sides=two-sided-long-edge"
>                  "-o" "number-up=2")
>                lpr-switches))
> 
> 
> But still it does not find my printer.
> 

> 

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
@ 2022-12-17 16:08 Drew Adams
  2022-12-18  2:07 ` Michael Heerdegen
  0 siblings, 1 reply; 38+ messages in thread
From: Drew Adams @ 2022-12-17 16:08 UTC (permalink / raw)
  To: Michael Heerdegen, help-gnu-emacs@gnu.org

> If I would try to translate all this stuff,
> I would have forgotten what I actually wanted
> to say.  And it would be hard to understand.

Ain't it the truth!  Translation on the fly is
entirely different from using the language.

And trying to learn a language by translating
as you go is hard, and not necessarily helpful.



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing
  2022-12-17 13:48     ` printing Gottfried
@ 2022-12-17 16:30       ` tomas
  0 siblings, 0 replies; 38+ messages in thread
From: tomas @ 2022-12-17 16:30 UTC (permalink / raw)
  To: help-gnu-emacs

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

On Sat, Dec 17, 2022 at 01:48:02PM +0000, Gottfried wrote:
> Hi,
> 
> I found the mistake why I couldn't print in emacs.
> 
> 
> My printer has a different name and I changed it in my init.el file.
> 
> HP_Officejet_J4680_series

Aha :-)

> No I can print within emacs, at the moment with the menu: print

I think that was meant to be a "Now"? In that case, congrats!

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-17 16:08 wie kann ich Emacs so einstellen, dass ich drucken kann Drew Adams
@ 2022-12-18  2:07 ` Michael Heerdegen
  2022-12-18  7:00   ` tomas
  2022-12-18  7:24   ` Jean Louis
  0 siblings, 2 replies; 38+ messages in thread
From: Michael Heerdegen @ 2022-12-18  2:07 UTC (permalink / raw)
  To: help-gnu-emacs

Drew Adams <drew.adams@oracle.com> writes:

> And trying to learn a language by translating
> as you go is hard, and not necessarily helpful.

I don't know if I would do anyone a favor when I would try to translate
every Emacs specific term (and there are a lot) literally.  I would try
to describe the terms using my own words, but use those own words to
introduce the original English terms.

That's because I think when you really want to get something out of
Emacs, if you don't want to use it only like Notepad or Nano or those
simplistic editors -- with other words, when you want to use the
commands, the menus, the customize interface and an init file, you have
to know the original terms anyway.

Michael.




^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-18  2:07 ` Michael Heerdegen
@ 2022-12-18  7:00   ` tomas
  2022-12-18  7:24   ` Jean Louis
  1 sibling, 0 replies; 38+ messages in thread
From: tomas @ 2022-12-18  7:00 UTC (permalink / raw)
  To: help-gnu-emacs

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

On Sun, Dec 18, 2022 at 03:07:43AM +0100, Michael Heerdegen wrote:
> Drew Adams <drew.adams@oracle.com> writes:
> 
> > And trying to learn a language by translating
> > as you go is hard, and not necessarily helpful.
> 
> I don't know if I would do anyone a favor when I would try to translate
> every Emacs specific term (and there are a lot) literally [...]

I think we aren't aware how full of strange buried metaphors our
languages are... until we try. Some travel well, some less so,
depending on the source and target languages.

"May contain nuts or parts of nuts" as an allergy warning on a
candy package I bought once was translated into Spanish by
disambiguating the nut into the bolt-and-nut side of things.

OTOH, "crane" as a lifting device, which is obviously a metaphor
based on the bird's look with its long beak does travel surprisingly
well whithin Western European languages. Up to the historians to
explain why (my hunch is that craftspeople travelled across Western
Europe at the time this device found widespread use, but I'm not a
historian).

"Literal" translation (the term becomes fuzzier and fuzzier
the closer you get) is bound to get tangled in that mess.

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-18  2:07 ` Michael Heerdegen
  2022-12-18  7:00   ` tomas
@ 2022-12-18  7:24   ` Jean Louis
  1 sibling, 0 replies; 38+ messages in thread
From: Jean Louis @ 2022-12-18  7:24 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

* Michael Heerdegen <michael_heerdegen@web.de> [2022-12-18 05:09]:
> Drew Adams <drew.adams@oracle.com> writes:
> 
> > And trying to learn a language by translating
> > as you go is hard, and not necessarily helpful.
> 
> I don't know if I would do anyone a favor when I would try to translate
> every Emacs specific term (and there are a lot) literally.  I would try
> to describe the terms using my own words, but use those own words to
> introduce the original English terms.
> 
> That's because I think when you really want to get something out of
> Emacs, if you don't want to use it only like Notepad or Nano or those
> simplistic editors -- with other words, when you want to use the
> commands, the menus, the customize interface and an init file, you have
> to know the original terms anyway.

IMHO, that is because of habits and environment, you are personally
used to English language and that is how it goes in German
language. 

From personal experience I know that there is tendency in various
languages to use one's own national language. Some countries have the
habit to translate words into one's own language, for example Croatia,
or Hungary, while some countries have rather the habbit to adopt
English words, for example Serbia.

I can't see practically that one "has to know" English words. We had
computer club were teaching numerous people including those from
village who had no clues about English language. All of the computer
terminology we had it translated to local language, and people could
immediately adapt.

If people are faced with their own language, they will learn it in
that language. 

There is nothing simpler but learning words in one's own language.

It cannot be simpler to learn new words in different language.

I was just searching how Italian people call various Emacs terms and I
could find here:
http://www2.ing.unipi.it/~a008149/corsi/so/materiale/Esercitazioni/E2-Emacs.pdf

that they use "Buffer" but for modeline "Barra di stato", instead of
"ENTER" in sense of entering information, document uses "<invio>"
which shows that there is, rather smaller, tendency to translate it to
Italian. 

Judging by TUTORIAL in French the word "Buffer" is translated as
"tampon" and I am not so sure if it is correct, French speaker could
tell it.

Slovenian TUTORIAL, speaks of buffer as »delovno področje« -- which
shows tendency to translate it to local language.

Emacs hrani besedilo vsake datoteke v takoimenovanem »delovnem
področju« (angl. buffer). Ko poiščemo datoteko, Emacs ustvari zanjo
novo delovno področje. Vsa obstoječa delovna področja v Emacsu vidimo
z ukazom:

Some languages have that English and foreign language adoption
tendencies while others tend to have it all localized.

In my personal programming in Emacs, I do not like using exclusively
English as I have to serve people in various languages.

Following construct I use instead of plain English strings:

(rcd-db-words-get "I am sharing this information with you" language)

that means that instead of using plain English string "I am sharing
this information with you" I use the function that is to get the
translated from from the database in specified LANGUAGE, whatever it
may be.

People speak various languages, so for people and lists of people, I
can designate the communication language:

                         Person   "Joe Doe"
                    People type   "Individual Person"
         Communication Language   "Italian"


Now when I am to share Org heading, file, task, music, anything, there
are some pieces of text that are always same like word "Hello" and
many others.

Those pieces of text get semi-automatically translated.

If word is not translated, Emacs will ask me to translate it at the
moment of running the function. Next time it will go smoothly.

That would be my recommended approach for all mainstream Emacs
strings, including Menu strings.

Would the interface be translatable to other languages, Emacs would be
spread more into other countries and tendencies to use English would
be minimized.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-17  9:00 ` Jean Louis
  2022-12-17  9:29   ` Michael Heerdegen
@ 2022-12-18  8:04   ` Eduardo Ochs
  2022-12-18 17:18     ` Jean Louis
  2022-12-18 12:06   ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
  2 siblings, 1 reply; 38+ messages in thread
From: Eduardo Ochs @ 2022-12-18  8:04 UTC (permalink / raw)
  To: Gottfried, help-gnu-emacs@gnu.org

On Sat, 17 Dec 2022 at 06:02, Jean Louis <bugs@gnu.support> wrote:
>
> * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
> > Hallo,
> > ich wollte einen Puffer ausdrucken (das erste Mal)
> > und es gab diese Fehlermeldung:
>
> So far best tool to print Emacs buffers that I have found is the
> command `paps' as it supports correctly Unicode, also emoticons. Thus
> you may try by installing `paps' tool from your Operating System
> distribution.
>
> Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> habe, ist der Befehl "paps", weil es richtig Unicode unterstützt, auch
> Emoticons. Daher können Sie es versuchen, indem Sie das "PAPS"-Tool
> aus Ihrer Betriebssystemverteilung installieren.
>
> dov/paps: A text to postscript converter through pango:
> https://github.com/dov/paps
>
> Ich verwende folgende Funktionen:
>
> (defun rcd-command-output-from-input (program input &rest args)
>   "Return output string from PROGRAM with given INPUT string and optional ARGS."
>   (let* ((output (with-temp-buffer
>                    (insert input)
>                    (apply #'call-process-region nil nil program t '(t nil) nil args)
>                    (buffer-string))))
>     output))
>
> I am too often using landscape, you can adjust it for your needs.
>
> (defun rcd-paps-process (text &optional format title &rest args)
>   (let* ((format (or format "pdf"))
>          (title (or title (buffer-name)))
>          (length (length title))
>          (max 45)
>          (title (if (> length max) (substring title 0 max) title)))
>     (apply 'rcd-command-output-from-input "paps" text "--format" format "--landscape" "--title" title "--header" args)))
>
> (defun string-to-file-force (string file)
>   "Prints string into file, matters not if file exists. Return FILE as file name."
>   (with-temp-file file
>     (insert string))
>   file)
>
> (defun rcd-paps-text-to-pdf (text &optional file-name title)
>   (let* ((output (rcd-paps-process text "pdf" title))
>          (file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
>     (string-to-file-force output file-name)))
>
> (defun rcd-paps-buffer-to-pdf-view ()
>   (interactive)
>   (let ((output (rcd-paps-process-buffer))
>         (file-name (rcd-temp-file-name nil "pdf")))
>     (sleep-for 1)
>     (start-process "evince" nil "evince" (string-to-file-force output file-name))))
>
> 😎

Hi Jean Louis,

What are the definitions of `rcd-paps-process-buffer'
and `rcd-temp-file-name'?

Thanks in advance!
  Eduardo



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-17  9:00 ` Jean Louis
  2022-12-17  9:29   ` Michael Heerdegen
  2022-12-18  8:04   ` Eduardo Ochs
@ 2022-12-18 12:06   ` Gottfried
  2022-12-18 17:20     ` Jean Louis
  2 siblings, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-18 12:06 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 4826 bytes --]

Hi Jean,

I installed paps with my System GNU Guix
and I copied
........................................
(defun rcd-command-output-from-input (program input &rest args)
 >    "Return output string from PROGRAM with given INPUT string and 
optional ARGS."
 >    (let* ((output (with-temp-buffer
 > 		   (insert input)
 > 		   (apply #'call-process-region nil nil program t '(t nil) nil args)
 > 		   (buffer-string))))
 >      output))

(defun rcd-paps-process (text &optional format title &rest args)
 >    (let* ((format (or format "pdf"))
 > 	 (title (or title (buffer-name)))
 > 	 (length (length title))
 > 	 (max 45)
 > 	 (title (if (> length max) (substring title 0 max) title)))
 >      (apply 'rcd-command-output-from-input "paps" text "--format" 
format "--landscape" "--title" title "--header" args)))
 >
 > (defun string-to-file-force (string file)
 >    "Prints string into file, matters not if file exists. Return FILE 
as file name."
 >    (with-temp-file file
 >      (insert string))
 >    file)
 >
 > (defun rcd-paps-text-to-pdf (text &optional file-name title)
 >    (let* ((output (rcd-paps-process text "pdf" title))
 > 	 (file-name (or file-name (concat (file-name-as-directory (getenv 
"HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
 >      (string-to-file-force output file-name)))
 >
 > (defun rcd-paps-buffer-to-pdf-view ()
 >    (interactive)
 >    (let ((output (rcd-paps-process-buffer))
 > 	(file-name (rcd-temp-file-name nil "pdf")))
 >      (sleep-for 1)
 >      (start-process "evince" nil "evince" (string-to-file-force 
output file-name))))
..........................................
into my init.el file

How does now the program paps find my printer?
because when I wanted to print something it says
"kein voreingestelltes Ziel/No preset destination

What else do I have to do?
Do I have to install pags in emacs?
Do I have to add something in my init.el file to find the printer?

Sorry, but I am learning

thanks for help

Gottfried



Am 17.12.22 um 10:00 schrieb Jean Louis:
> * Gottfried <gottfried@posteo.de> [2022-12-14 19:40]:
>> Hallo,
>> ich wollte einen Puffer ausdrucken (das erste Mal)
>> und es gab diese Fehlermeldung:
> 
> So far best tool to print Emacs buffers that I have found is the
> command `paps' as it supports correctly Unicode, also emoticons. Thus
> you may try by installing `paps' tool from your Operating System
> distribution.
> 
> Das beste Werkzeug zum Drucken von EMACS-Puffern, die ich gefunden
> habe, ist der Befehl "paps", weil es richtig Unicode unterstützt, auch
> Emoticons. Daher können Sie es versuchen, indem Sie das "PAPS"-Tool
> aus Ihrer Betriebssystemverteilung installieren.
> 
> dov/paps: A text to postscript converter through pango:
> https://github.com/dov/paps
> 
> Ich verwende folgende Funktionen:
> 
> (defun rcd-command-output-from-input (program input &rest args)
>    "Return output string from PROGRAM with given INPUT string and optional ARGS."
>    (let* ((output (with-temp-buffer
> 		   (insert input)
> 		   (apply #'call-process-region nil nil program t '(t nil) nil args)
> 		   (buffer-string))))
>      output))
> 
> I am too often using landscape, you can adjust it for your needs.
> 
> (defun rcd-paps-process (text &optional format title &rest args)
>    (let* ((format (or format "pdf"))
> 	 (title (or title (buffer-name)))
> 	 (length (length title))
> 	 (max 45)
> 	 (title (if (> length max) (substring title 0 max) title)))
>      (apply 'rcd-command-output-from-input "paps" text "--format" format "--landscape" "--title" title "--header" args)))
> 
> (defun string-to-file-force (string file)
>    "Prints string into file, matters not if file exists. Return FILE as file name."
>    (with-temp-file file
>      (insert string))
>    file)
> 
> (defun rcd-paps-text-to-pdf (text &optional file-name title)
>    (let* ((output (rcd-paps-process text "pdf" title))
> 	 (file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (read-string "File name without .pdf extension: ") ".pdf"))))
>      (string-to-file-force output file-name)))
> 
> (defun rcd-paps-buffer-to-pdf-view ()
>    (interactive)
>    (let ((output (rcd-paps-process-buffer))
> 	(file-name (rcd-temp-file-name nil "pdf")))
>      (sleep-for 1)
>      (start-process "evince" nil "evince" (string-to-file-force output file-name))))
> 
> 😎
> 

-- 
Kind regards

Gottfried

()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Why is HTML email a security nightmare? See https://useplaintext.email/

Please avoid sending me MS-Office attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-18  8:04   ` Eduardo Ochs
@ 2022-12-18 17:18     ` Jean Louis
  2022-12-18 22:34       ` rcd-paps.el (was: Re: wie kann ich Emacs...) Eduardo Ochs
  0 siblings, 1 reply; 38+ messages in thread
From: Jean Louis @ 2022-12-18 17:18 UTC (permalink / raw)
  To: Eduardo Ochs; +Cc: Gottfried, help-gnu-emacs@gnu.org

* Eduardo Ochs <eduardoochs@gmail.com> [2022-12-18 11:05]:
> Hi Jean Louis,
> 
> What are the definitions of `rcd-paps-process-buffer'
> and `rcd-temp-file-name'?

(defun rcd-paps-process-buffer (&rest args)
  (let ((text (buffer-substring-no-properties (point-min) (point-max))))
    (apply 'rcd-paps-process text args)))

(defcustom rcd-temp-file-directory "~/tmp/"
  "Temporary directory for other temporary files."
  :group 'rcd
  :type 'string)

(defun rcd-temp-file-name (&optional file-name extension)
  "Return temporary file name."
  (concat (file-truename (file-name-as-directory rcd-temp-file-directory))
	  (or file-name (format-time-string "%A-%B-%d-%Y-%H-%M-%S"))
	  "."
	  (or extension "txt")))

I hope you will get it to work, as paps gives quite good
output. Author has recently updated modification of header. My package
`rcd-paps' is not finished, it will be.

dov/paps: A text to postscript converter through pango:
https://github.com/dov/paps

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-18 12:06   ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
@ 2022-12-18 17:20     ` Jean Louis
  2022-12-19 13:49       ` Gottfried
  0 siblings, 1 reply; 38+ messages in thread
From: Jean Louis @ 2022-12-18 17:20 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

* Gottfried <gottfried@posteo.de> [2022-12-18 15:37]:
> How does now the program paps find my printer?

Once you generate PDF, you may preview PDF files, right?

Then you do in shell

$ lpr Your-File.pdf

or if output is ".ps" then corresponding ps file.

or you print the PDF from PDF viewer.

> Do I have to install pags in emacs?

Did you get PDF preview?

paps is program you install yes, in your system distribution.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* rcd-paps.el (was: Re: wie kann ich Emacs...)
  2022-12-18 17:18     ` Jean Louis
@ 2022-12-18 22:34       ` Eduardo Ochs
  2022-12-19 12:50         ` rcd-paps.el Jean Louis
  0 siblings, 1 reply; 38+ messages in thread
From: Eduardo Ochs @ 2022-12-18 22:34 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org, Jean Louis

On Sun, 18 Dec 2022 at 14:19, Jean Louis <bugs@gnu.support> wrote:
>
> I hope you will get it to work, as paps gives quite good
> output. Author has recently updated modification of header. My package
> `rcd-paps' is not finished, it will be.

Hi Jean Louis,
I changed the subject.
This is an answer to:

  https://lists.gnu.org/archive/html/help-gnu-emacs/2022-12/msg00575.html

I am getting errors.
When I run it in my default system I get this error in evince:

  Unable to open document
“file:///home/edrx/tmp/Sunday-December-18-2022-19-08-23.pdf”.
  File type empty document (application/x-zerosize) is not supported.

and when I run it in an emacs -Q I get this lisp error:

  Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  call-process-region(nil nil "paps" t (t nil) nil "--format" "pdf"
                      "--landscape" "--title" "rcd-paps.el" "--header")
  apply(call-process-region nil nil "paps" t (t nil) nil ("--format" "pdf"
        "--landscape" "--title" "rcd-paps.el" "--header"))

where to "run it" means to run this:

                    http://angg.twu.net/elisp/rcd-paps.el
  (find-wget-elisp "http://angg.twu.net/elisp/rcd-paps.el")

Thanks in advance!
  Eduardo Ochs
  http://angg.twu.net/eepitch.html



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: rcd-paps.el
  2022-12-18 22:34       ` rcd-paps.el (was: Re: wie kann ich Emacs...) Eduardo Ochs
@ 2022-12-19 12:50         ` Jean Louis
  0 siblings, 0 replies; 38+ messages in thread
From: Jean Louis @ 2022-12-19 12:50 UTC (permalink / raw)
  To: Eduardo Ochs; +Cc: help-gnu-emacs@gnu.org

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

This package is not finished, find it attached if you wish to modify
or suggest things.

I use it in peculiar way:

M-x rcd-paps-buffer-to-pdf and

M-x rcd-paps-buffer-to-pdf-view 

which anyway generates PDF file, and then I send PDF file for
printing.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/

[-- Attachment #2: rcd-paps.el --]
[-- Type: text/plain, Size: 6962 bytes --]

;;; rcd-paps.el --- RCD PAPS Emacs Bindings to PAPS printing utilities

;; Copyright (C) 2021-2022 by Jean Louis

;; Author: Jean Louis <bugs@gnu.support>
;; Version: 0.1
;; Package-Requires: (rcd-utilities)
;; Keywords: tools
;; URL: 

;; This file is not part of GNU Emacs.

;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation, either version 3 of the
;; License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;;; Change Log:

;;; Code:

(require 'rcd-utilities)

(defcustom rcd-paps-orientation nil
  "Page orientation. By default it is portrait, if TRUE, it will
be landscape"
  :group 'rcd-paps
  :type 'boolean)

(defcustom rcd-paps-columns 1
  "Number of columns output"
  :group 'rcd-paps
  :type 'integer)

(defcustom rcd-paps-pdf-viewer "evince"
  "PDF Viewer"
  :group 'rcd-paps
  :type 'string)

;; (defcustom rcd-paps-paper "evince"
;;   "PDF Viewer"
;;   :group 'rcd-paps
;;   :type 'string)

(defcustom rcd-paps-output-directory (file-name-as-directory (getenv "HOME"))
  "Default PAPS output directory."
  :group 'rcd-paps
  :type 'string)

;; Application Options:
;;   --landscape                       Landscape output. (Default: portrait)
;;   --columns=NUM                     Number of columns output. (Default: 1)
;;   --font=DESC                       Set font. (Default: Monospace 12)
;;   -o, --output=DESC                 Output file. (Default: stdout)
;;   -v, --version                     Current version.
;;   --rtl                             Do right-to-left text layout.
;;   --justify                         Justify the layout.
;;   --hyphens                         Show hyphens when wrapping.
;;   --wrap=WRAP                       Text wrapping mode [word, char, word-char]. (Default: word-char)
;;   --show-wrap                       Show characters for wrapping.
;;   --paper=PAPER                     Set paper size [legal, letter, a3, a4]. (Default: a4)
;;   --gravity=GRAVITY                 Base glyph rotation [south, west, north, east, auto]. (Defaut: auto)
;;   --gravity-hint=HINT               Base glyph orientation [natural, strong, line]. (Default: natural)
;;   --format=FORMAT                   Set output format [pdf, svg, ps]. (Default: ps)
;;   --bottom-margin=NUM               Set bottom margin in postscript point units (1/72 inch). (Default: 36)
;;   --top-margin=NUM                  Set top margin. (Default: 36)
;;   --right-margin=NUM                Set right margin. (Default: 36)
;;   --left-margin=NUM                 Set left margin. (Default: 36)
;;   --gutter-width=NUM                Set gutter width. (Default: 40)
;;   --header                          Draw page header for each page.
;;   --footer                          Draw page footer for each page.
;;   --title=TITLE                     Title string for page header (Default: filename/stdin).
;;   --header-left=HEADER_LEFT         Left side of the header. Default is localized date.
;;   --header-center=HEADER_CENTER     Center side of the header. Default is localized date.
;;   --header-right=HEADER_RIGHT       Right side of the header. Default is localized date.
;;   --markup                          Interpret input text as pango markup.
;;   --encoding=ENCODING               Assume encoding of input text. (Default: UTF-8)
;;   --lpi=REAL                        Set the amount of lines per inch.
;;   --cpi=REAL                        Set the amount of characters per inch.
;;   --g-fatal-warnings=REAL           Make all glib warnings fatal.

(defun rcd-paps-process (text &optional format title &rest args)
  (let* ((format (or format "pdf"))
	 (title (cond (title title)
		      (current-prefix-arg (rcd-ask-get "Title: "))
		      (t (buffer-name))))
	 (length (length title))
	 (orientation (cond (rcd-paps-orientation "--landscape")
			    (current-prefix-arg (when (y-or-n-p "Do you wish to use landscape? ")
						  "--landscape"))))
	 (max 45)
	 (title (if (> length max) (substring title 0 max) title)))
    (apply 'rcd-command-output-from-input "paps" text "--format" format "--title" title "--header"
	   (format "--columns=%d"
		   (cond (current-prefix-arg (rcd-ask-number "Columns: "))
			 (t rcd-paps-columns)))
	   (cond (orientation (append (list "--landscape") args))
		 (t args)))))

(defun rcd-paps-text-to-pdf (text &optional file-name title)
  (let* ((output (rcd-paps-process text "pdf" title))
	 (file-name (or file-name (concat (file-name-as-directory (getenv "HOME")) (rcd-ask "File name without .pdf extension: ") ".pdf"))))
    (string-to-file-force output  file-name)))

(defun rcd-paps-buffer-to-pdf ()
  (interactive)
  (let ((output (rcd-paps-process-buffer))
	(file-name (rcd-temp-file-name nil "pdf")))
    (prog1
	(string-to-file-force output file-name)
	(rcd-message "PDF: %s" file-name))))

(defun rcd-paps-buffer-to-pdf-view ()
  (interactive)
  (start-process rcd-paps-pdf-viewer rcd-paps-pdf-viewer rcd-paps-pdf-viewer (rcd-paps-buffer-to-pdf)))

(defun rcd-paps-region-to-pdf ()
  (interactive)
  (let ((output (rcd-paps-process-region))
	(file-name (rcd-temp-file-name nil "pdf")))
    (prog1
	(string-to-file-force output file-name)
	(rcd-message "PDF: %s" file-name))))

(defun rcd-paps-region-to-pdf-view ()
  (interactive)
  (start-process rcd-paps-pdf-viewer rcd-paps-pdf-viewer rcd-paps-pdf-viewer (rcd-paps-region-to-pdf)))

(defun rcd-paps-process-region (&rest args)
  (let ((text (rcd-region-string)))
    (when text
      (apply 'rcd-paps-process text args))))

(defun rcd-paps-process-buffer (&rest args)
  (let ((text (buffer-substring-no-properties (point-min) (point-max))))
    (apply 'rcd-paps-process text args)))

(defun rcd-paps-print-buffer ()
  (interactive)
  (let* ((file-name (concat (buffer-name) ".pdf"))
	 (file (read-file-name "File name: " rcd-paps-output-directory nil nil file-name))
	 (output (rcd-paps-process-buffer)))
    (string-to-file-force output file)
    (message "Buffer printed to `%s'" file)))

(defun rcd-export-pdf ()
  (interactive)
  (let* ((type "pdf")
	 (file (concat rcd-paps-output-directory (buffer-name) "." type))
	 (output (x-export-frames nil (intern type))))
    (string-to-file-force output file)
    (message "Buffer printed to `%s'" file)))

(defun rcd-paps-config-paper ()
  (interactive)
  (let ((paper (rcd-choose '("legal" "letter" "a3" "a4") "Configure `paps' paper size: " nil "a4")))
    (customize-set-value rcd-paps-paper paper)))

(provide 'rcd-paps)

;;; rcd-paps.el ends here

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-18 17:20     ` Jean Louis
@ 2022-12-19 13:49       ` Gottfried
  2022-12-19 17:19         ` Jean Louis
  0 siblings, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-19 13:49 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 844 bytes --]

Hi Jean,

how can I generate PDF?

I installed pdf-tools, but I don't know how to use it.
It said I should use

C-c C-c  to change to this mode.

When I do C-c C-c it says:


undetermined keybinding.

So I don't know how to get into pdf-tools and how to generate a pdf.


Kind regards

Gottfried


Am 18.12.22 um 18:20 schrieb Jean Louis:
> * Gottfried <gottfried@posteo.de> [2022-12-18 15:37]:
>> How does now the program paps find my printer?
> 
> Once you generate PDF, you may preview PDF files, right?
> 
> Then you do in shell
> 
> $ lpr Your-File.pdf
> 
> or if output is ".ps" then corresponding ps file.
> 
> or you print the PDF from PDF viewer.
> 
>> Do I have to install pags in emacs?
> 
> Did you get PDF preview?
> 
> paps is program you install yes, in your system distribution.
> 



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann
  2022-12-19 13:49       ` Gottfried
@ 2022-12-19 17:19         ` Jean Louis
  2022-12-27 16:10           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs) Gottfried
  2022-12-27 16:39           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
  0 siblings, 2 replies; 38+ messages in thread
From: Jean Louis @ 2022-12-19 17:19 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org


* Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
> Hi Jean,
> 
> how can I generate PDF?

With my package you have to use also:

GNU Emacs package: rcd-utilities.el :
https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html

which is pretty personal utilities.

Then you do preview with rcd-paps.el by using:

M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:

M-x rcd-paps-buffer-to-pdf

or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
for title, orientation and columns.

> I installed pdf-tools, but I don't know how to use it.
> It said I should use
> 
> C-c C-c  to change to this mode.

I do not know about pdf-tools.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs)
  2022-12-19 17:19         ` Jean Louis
@ 2022-12-27 16:10           ` Gottfried
  2022-12-27 17:35             ` Jean Louis
  2022-12-27 16:39           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
  1 sibling, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-27 16:10 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 1116 bytes --]

Hi Jean,

I downloaded

rcd-utilities.el

and put it im my emacs directory in a sub-folder

after running

M-x rcd-paps-buffer-to-pdf-view
or
M-x rcd-paps-buffer-to-pdf

it said:

symbol’s function definition is void: rcd-paps-process-buffer

Where is my mistake?

Kind regards

Gottfried



Am 19.12.22 um 18:19 schrieb Jean Louis:
> 
> * Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
>> Hi Jean,
>>
>> how can I generate PDF?
> 
> With my package you have to use also:
> 
> GNU Emacs package: rcd-utilities.el :
> https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
> 
> which is pretty personal utilities.
> 
> Then you do preview with rcd-paps.el by using:
> 
> M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:
> 
> M-x rcd-paps-buffer-to-pdf
> 
> or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
> for title, orientation and columns.
> 
>> I installed pdf-tools, but I don't know how to use it.
>> It said I should use
>>
>> C-c C-c  to change to this mode.
> 
> I do not know about pdf-tools.
> 

-- 



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps)
  2022-12-19 17:19         ` Jean Louis
  2022-12-27 16:10           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs) Gottfried
@ 2022-12-27 16:39           ` Gottfried
  2022-12-27 16:47             ` Gottfried
  1 sibling, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-27 16:39 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org, Jean Louis


[-- Attachment #1.1.1: Type: text/plain, Size: 1748 bytes --]

Hi Jean,

I tried to install rcd-utilities.el
with
M-x package-install-file RET rcd-utilities.el RET

I got this message

Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10’
\f
Compiling file 
/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/rcd-utilities.el at Tue 
Dec 27 17:33:43 2022
Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/’
rcd-utilities.el:108:44: Warning: file-directory-p called with 2 arguments,
     but accepts only 1

In rcd-sql-current-weekday:
rcd-utilities.el:1073:60: Warning: reference to free variable ‘cf-db’

In read-from-buffer:
rcd-utilities.el:1180:27: Warning: Unused lexical variable
     `my-buffer-kill-hook'

In rcd-uuid-p:
rcd-utilities.el:2692:37: Warning: reference to free variable
     ‘thing-at-point-uuid-regexp’
rcd-utilities.el:2707:1: Error: Symbol’s function definition is void: 
rcd-my-home


Kind regards

Gottfried


Am 19.12.22 um 18:19 schrieb Jean Louis:
> 
> * Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
>> Hi Jean,
>>
>> how can I generate PDF?
> 
> With my package you have to use also:
> 
> GNU Emacs package: rcd-utilities.el :
> https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
> 
> which is pretty personal utilities.
> 
> Then you do preview with rcd-paps.el by using:
> 
> M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:
> 
> M-x rcd-paps-buffer-to-pdf
> 
> or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
> for title, orientation and columns.
> 
>> I installed pdf-tools, but I don't know how to use it.
>> It said I should use
>>
>> C-c C-c  to change to this mode.
> 
> I do not know about pdf-tools.
> 

-- 

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps)
  2022-12-27 16:39           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
@ 2022-12-27 16:47             ` Gottfried
  2022-12-27 17:37               ` Jean Louis
  0 siblings, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-27 16:47 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org, Jean Louis


[-- Attachment #1.1.1: Type: text/plain, Size: 2143 bytes --]

Hi Jean,

> Error: Symbol’s function definition is void: 
>> rcd-my-home


This is in rcd-my-home:

(defun rcd-my-home ()
   "Return my home directory."
   (file-name-as-directory (getenv "HOME")))


Kind regards

Gottfried



Am 27.12.22 um 17:39 schrieb Gottfried:
> Hi Jean,
> 
> I tried to install rcd-utilities.el
> with
> M-x package-install-file RET rcd-utilities.el RET
> 
> I got this message
> 
> Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10’
> \f
> Compiling file 
> /home/gfp/.config/emacs/elpa/rcd-utilities-2.10/rcd-utilities.el at Tue 
> Dec 27 17:33:43 2022
> Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/’
> rcd-utilities.el:108:44: Warning: file-directory-p called with 2 arguments,
>      but accepts only 1
> 
> In rcd-sql-current-weekday:
> rcd-utilities.el:1073:60: Warning: reference to free variable ‘cf-db’
> 
> In read-from-buffer:
> rcd-utilities.el:1180:27: Warning: Unused lexical variable
>      `my-buffer-kill-hook'
> 
> In rcd-uuid-p:
> rcd-utilities.el:2692:37: Warning: reference to free variable
>      ‘thing-at-point-uuid-regexp’
> rcd-utilities.el:2707:1: Error: Symbol’s function definition is void: 
> rcd-my-home
> 
> 
> Kind regards
> 
> Gottfried
> 
> 
> Am 19.12.22 um 18:19 schrieb Jean Louis:
>>
>> * Gottfried <gottfried@posteo.de> [2022-12-19 16:51]:
>>> Hi Jean,
>>>
>>> how can I generate PDF?
>>
>> With my package you have to use also:
>>
>> GNU Emacs package: rcd-utilities.el :
>> https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html
>>
>> which is pretty personal utilities.
>>
>> Then you do preview with rcd-paps.el by using:
>>
>> M-x rcd-paps-buffer-to-pdf-view or just to generate PDF:
>>
>> M-x rcd-paps-buffer-to-pdf
>>
>> or C-u M-x rcd-paps-buffer-to-pdf as with prefix C-u you will be asked
>> for title, orientation and columns.
>>
>>> I installed pdf-tools, but I don't know how to use it.
>>> It said I should use
>>>
>>> C-c C-c  to change to this mode.
>>
>> I do not know about pdf-tools.
>>
> 

-- 

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs)
  2022-12-27 16:10           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs) Gottfried
@ 2022-12-27 17:35             ` Jean Louis
  0 siblings, 0 replies; 38+ messages in thread
From: Jean Louis @ 2022-12-27 17:35 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

* Gottfried <gottfried@posteo.de> [2022-12-27 19:12]:
> Hi Jean,
> 
> I downloaded
> 
> rcd-utilities.el
> 
> and put it im my emacs directory in a sub-folder

After downloading it, you install it by:

M-x package-install-file 

then you get rcd-paps.el

and install:

M-x package-install-file

See video:

https://gnu.support/files/emacs/packages/rcd-paps/2022-12-27-20:31:29.ogv


References:

GNU Emacs package: rcd-utilities.el :
https://gnu.support/gnu-emacs/packages/rcd-utilities-el.html

RCD Paps:
https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps)
  2022-12-27 16:47             ` Gottfried
@ 2022-12-27 17:37               ` Jean Louis
  2022-12-28 16:31                 ` printing with paps Gottfried
  0 siblings, 1 reply; 38+ messages in thread
From: Jean Louis @ 2022-12-27 17:37 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

* Gottfried <gottfried@posteo.de> [2022-12-27 19:48]:
> Hi Jean,
> 
> > Error: Symbol’s function definition is void:
> > > rcd-my-home
> 
> 
> This is in rcd-my-home:
> 
> (defun rcd-my-home ()
>   "Return my home directory."
>   (file-name-as-directory (getenv "HOME")))

Download latest version:

https://gnu.support/files/emacs/packages/rcd-utilities.el

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing with paps
  2022-12-27 17:37               ` Jean Louis
@ 2022-12-28 16:31                 ` Gottfried
  2022-12-30 14:26                   ` Jean Louis
  0 siblings, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-28 16:31 UTC (permalink / raw)
  To: Jean Louis, help-gnu-emacs@gnu.org


[-- Attachment #1.1.1: Type: text/plain, Size: 1219 bytes --]

Hi Jean,
I downloaded the latest version of rcd-utilities
from

> https://gnu.support/files/emacs/packages/rcd-utilities.el

and after installing:
M-x package-install-file
I got the same message, but less mistakes as earlier

\f
Compiling file 
/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/rcd-utilities.el at Wed 
Dec 28 17:16:54 2022
Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.10/’

In rcd-sql-current-weekday:
rcd-utilities.el:1086:60: Warning: reference to free variable ‘cf-db’

In rcd-uuid-p:
rcd-utilities.el:2704:37: Warning: reference to free variable
     ‘thing-at-point-uuid-regexp’
rcd-utilities.el:2719:1: Error: Symbol’s function definition is void: 
rcd-my-home

Kind regards

Gottfried



Am 27.12.22 um 18:37 schrieb Jean Louis:
> * Gottfried <gottfried@posteo.de> [2022-12-27 19:48]:
>> Hi Jean,
>>
>>> Error: Symbol’s function definition is void:
>>>> rcd-my-home
>>
>>
>> This is in rcd-my-home:
>>
>> (defun rcd-my-home ()
>>    "Return my home directory."
>>    (file-name-as-directory (getenv "HOME")))
> 
> Download latest version:
> 
> https://gnu.support/files/emacs/packages/rcd-utilities.el
> 

-- 

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing with paps
  2022-12-28 16:31                 ` printing with paps Gottfried
@ 2022-12-30 14:26                   ` Jean Louis
  2022-12-31 12:09                     ` Gottfried
  0 siblings, 1 reply; 38+ messages in thread
From: Jean Louis @ 2022-12-30 14:26 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

Hello,

Here is the improved package and you may do your own customizations
for it.

GNU Emacs package: rcd-paps.el:
https://gnu.support/gnu-emacs/packages/GNU-Emacs-package-rcd-paps-el-76862.html

1. Download new rcd-utilities.el from
   https://gnu.support/files/emacs/packages/rcd-utilities.el

2. Install with M-x package-install-file

3. Download rcd-paps.el from https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el

4. Install with M-x package-install-file

Then you can do following:

{M-x rcd-paps-buffer-to-pdf-view RET} to get instant preview of
buffer.

and setup your options by {M-x customize-group RET rcd-paps RET}

It will improve in future.

`paps` utility is excellent for reason that it will produce PDF, PS,
SVG and that it will incldue Unicode characters correctly together
with emoji. ☺️

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/


P.S. When you see something like {M-x help} in curly brackets that is
GNU Hyperbole hyperlink that you may activate by M-RET provided you
installed GNU Hyperbole.



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing with paps
  2022-12-30 14:26                   ` Jean Louis
@ 2022-12-31 12:09                     ` Gottfried
  2022-12-31 22:53                       ` Jean Louis
  0 siblings, 1 reply; 38+ messages in thread
From: Gottfried @ 2022-12-31 12:09 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org


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

Hi Jean,

thanks very much for your help.

When I downloaded the new rcd-utilities.el
and I tried to install it
it gave me less mistakes
but didn’t install it.

here the message:
...................................................
Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11’
\f
Compiling file 
/home/gfp/.config/emacs/elpa/rcd-utilities-2.11/rcd-utilities.el at Sat 
Dec 31 12:50:45 2022
Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11/’

In rcd-sql-current-weekday:
rcd-utilities.el:1087:60: Warning: reference to free variable ‘cf-db’
rcd-utilities.el:2720:1: Error: Symbol’s function definition is void: 
rcd-my-home
...........................................................

after that I installed rcd-paps.el
and there were no messages of mistakes

This means that I can't use it yet.

Kind regards

Gottfried



Am 30.12.22 um 15:26 schrieb Jean Louis:
> Hello,
> 
> Here is the improved package and you may do your own customizations
> for it.
> 
> GNU Emacs package: rcd-paps.el:
> https://gnu.support/gnu-emacs/packages/GNU-Emacs-package-rcd-paps-el-76862.html
> 
> 1. Download new rcd-utilities.el from
>     https://gnu.support/files/emacs/packages/rcd-utilities.el
> 
> 2. Install with M-x package-install-file
> 
> 3. Download rcd-paps.el from https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el
> 
> 4. Install with M-x package-install-file
> 
> Then you can do following:
> 
> {M-x rcd-paps-buffer-to-pdf-view RET} to get instant preview of
> buffer.
> 
> and setup your options by {M-x customize-group RET rcd-paps RET}
> 
> It will improve in future.
> 
> `paps` utility is excellent for reason that it will produce PDF, PS,
> SVG and that it will incldue Unicode characters correctly together
> with emoji. ☺️
> 

-- 

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing with paps
  2022-12-31 12:09                     ` Gottfried
@ 2022-12-31 22:53                       ` Jean Louis
  2022-12-31 23:46                         ` Jean Louis
  0 siblings, 1 reply; 38+ messages in thread
From: Jean Louis @ 2022-12-31 22:53 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

* Gottfried <gottfried@posteo.de> [2022-12-31 15:11]:
> Hi Jean,
> 
> thanks very much for your help.
> 
> When I downloaded the new rcd-utilities.el
> and I tried to install it
> it gave me less mistakes
> but didn’t install it.
> 
> here the message:
> ...................................................
> Leaving directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11’
> \f
> Compiling file
> /home/gfp/.config/emacs/elpa/rcd-utilities-2.11/rcd-utilities.el at Sat Dec
> 31 12:50:45 2022
> Entering directory ‘/home/gfp/.config/emacs/elpa/rcd-utilities-2.11/’
> 
> In rcd-sql-current-weekday:
> rcd-utilities.el:1087:60: Warning: reference to free variable ‘cf-db’
> rcd-utilities.el:2720:1: Error: Symbol’s function definition is void:
> rcd-my-home
> ...........................................................

I have removed it the stuff that bothered, now it should work.

And I really hope you will start producing beautiful PDFs.

Frohes neues Jahr

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing with paps
  2022-12-31 22:53                       ` Jean Louis
@ 2022-12-31 23:46                         ` Jean Louis
  2023-01-01 14:24                           ` Gottfried
  0 siblings, 1 reply; 38+ messages in thread
From: Jean Louis @ 2022-12-31 23:46 UTC (permalink / raw)
  To: Gottfried, help-gnu-emacs@gnu.org

Look at GNU/Emacs TUTORIAL generated by using RCD Paps package as PDF file:
https://gnu.support/files/emacs/packages/rcd-paps/2023-01-01-02:42:51.pdf

Here are instructions how to customize headers and footer:
https://github.com/dov/paps/issues/30

They all take a string that is based on python f-strings. I have
defined the following variable that may be used in the definitions of
the headers:

    path - The complete path of the file being printed
    filename - The basename (without directory) of the file being printed
    mtime - The file's modification time
    now - The current time
    num_pages - The total number of pages in the document
    page_idx - The current page being printed

Here is an example of how it may be used:

paps --header-left="{now:%Y-%m-%d %H:%M}" --header-center="{filename}" --header-right="Page {page_idx:02d}/{num_pages:02d}" --header -o hello.pdf paps.cc

I will work on easier customization of header and footer.

It is so important to be able to generate PDF files for even simple text.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing with paps
  2022-12-31 23:46                         ` Jean Louis
@ 2023-01-01 14:24                           ` Gottfried
  2023-01-01 14:53                             ` Jean Louis
  0 siblings, 1 reply; 38+ messages in thread
From: Gottfried @ 2023-01-01 14:24 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org, Jean Louis


[-- Attachment #1.1.1: Type: text/plain, Size: 1706 bytes --]


Hi Jean,

thanks for help
I installed the new version 2.11 and deleted the version 2.10

I opened a text file
and wanted to print it
with
M-x rcd-paps-buffer-to-pdf-view RET

it gave me the answer

Symbol’s function definition is void: rcd-paps-process-buffer

and in the menu until now there is no change. The new more detailed 
options for printing (AFAIU) did never appear.

I don't know where the problem lies???

So I didn't to the point of customizing rcd-utilities yet.

Kind regards

Gottfried



Am 01.01.23 um 00:46 schrieb Jean Louis:
> Look at GNU/Emacs TUTORIAL generated by using RCD Paps package as PDF file:
> https://gnu.support/files/emacs/packages/rcd-paps/2023-01-01-02:42:51.pdf
> 
> Here are instructions how to customize headers and footer:
> https://github.com/dov/paps/issues/30
> 
> They all take a string that is based on python f-strings. I have
> defined the following variable that may be used in the definitions of
> the headers:
> 
>      path - The complete path of the file being printed
>      filename - The basename (without directory) of the file being printed
>      mtime - The file's modification time
>      now - The current time
>      num_pages - The total number of pages in the document
>      page_idx - The current page being printed
> 
> Here is an example of how it may be used:
> 
> paps --header-left="{now:%Y-%m-%d %H:%M}" --header-center="{filename}" --header-right="Page {page_idx:02d}/{num_pages:02d}" --header -o hello.pdf paps.cc
> 
> I will work on easier customization of header and footer.
> 
> It is so important to be able to generate PDF files for even simple text.
> 
> 

-- 



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 38+ messages in thread

* Re: printing with paps
  2023-01-01 14:24                           ` Gottfried
@ 2023-01-01 14:53                             ` Jean Louis
  0 siblings, 0 replies; 38+ messages in thread
From: Jean Louis @ 2023-01-01 14:53 UTC (permalink / raw)
  To: Gottfried; +Cc: help-gnu-emacs@gnu.org

* Gottfried <gottfried@posteo.de> [2023-01-01 17:24]:
> I installed the new version 2.11 and deleted the version 2.10
> 
> I opened a text file
> and wanted to print it
> with
> M-x rcd-paps-buffer-to-pdf-view RET
> 
> it gave me the answer
> 
> Symbol’s function definition is void: rcd-paps-process-buffer

OK, I have polished it, and tested it with Emacs -Q:

Download latest RCD Utilities 2.12:

https://gnu.support/files/emacs/packages/rcd-utilities.el

Download latest RCD paps 0.3:

https://gnu.support/files/emacs/packages/rcd-paps/rcd-paps.el

and I hope it will work.

New settings I did is for header and footer to have it easier, there
is completion choice, for:

header -- left, center, right
and
footer -- left, center, right

there will be completion choices like:

- current full file name

- current file name without directory

- EMPTY -- if you wish one of those fields to be empty, choose EMPTY,
  so "EMPTY" as word cannot be part of header and footer.

- Page {page_idx:02d}/{num_pages:02d} -- you can customize this to be
  for example "Seite {page_idx:02d} von {num_pages:02d}"

- Modified time and date {mtime:%Y-%m-%d %H:%M} -- but now I remember
  I did not program it, must program it to detect modified time
  through Emacs.

- Current time and date: {now:%Y-%m-%d %H:%M}, which you may customize
  how you wish and want.

- Number of pages: {num_pages:02d}

- Page number: {page_idx:02d}

And you can customize it yourself. If you happen to have problem to
insert space, use C-q SPC to insert it.


-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2023-01-01 14:53 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 16:38 wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-14 17:27 ` Philip Kaludercic
2022-12-16 15:27   ` printing Gottfried
2022-12-16 22:26     ` printing Michael Heerdegen
2022-12-17  6:29       ` printing tomas
2022-12-17  7:41         ` printing Emanuel Berg
2022-12-17 13:48     ` printing Gottfried
2022-12-17 16:30       ` printing tomas
2022-12-14 21:30 ` wie kann ich Emacs so einstellen, dass ich drucken kann Michael Heerdegen
2022-12-17  9:00 ` Jean Louis
2022-12-17  9:29   ` Michael Heerdegen
2022-12-17  9:41     ` Jean Louis
2022-12-17 10:34       ` Michael Heerdegen
2022-12-17 10:39         ` Michael Heerdegen
2022-12-18  8:04   ` Eduardo Ochs
2022-12-18 17:18     ` Jean Louis
2022-12-18 22:34       ` rcd-paps.el (was: Re: wie kann ich Emacs...) Eduardo Ochs
2022-12-19 12:50         ` rcd-paps.el Jean Louis
2022-12-18 12:06   ` wie kann ich Emacs so einstellen, dass ich drucken kann Gottfried
2022-12-18 17:20     ` Jean Louis
2022-12-19 13:49       ` Gottfried
2022-12-19 17:19         ` Jean Louis
2022-12-27 16:10           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing in Emacs) Gottfried
2022-12-27 17:35             ` Jean Louis
2022-12-27 16:39           ` wie kann ich Emacs so einstellen, dass ich drucken kann (printing with paps) Gottfried
2022-12-27 16:47             ` Gottfried
2022-12-27 17:37               ` Jean Louis
2022-12-28 16:31                 ` printing with paps Gottfried
2022-12-30 14:26                   ` Jean Louis
2022-12-31 12:09                     ` Gottfried
2022-12-31 22:53                       ` Jean Louis
2022-12-31 23:46                         ` Jean Louis
2023-01-01 14:24                           ` Gottfried
2023-01-01 14:53                             ` Jean Louis
  -- strict thread matches above, loose matches on Subject: below --
2022-12-17 16:08 wie kann ich Emacs so einstellen, dass ich drucken kann Drew Adams
2022-12-18  2:07 ` Michael Heerdegen
2022-12-18  7:00   ` tomas
2022-12-18  7:24   ` Jean Louis

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.