all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Tomas Hlavaty <tom@logand.com>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Emacs as a word processor (ways to convert Word/RTF proprietary files)
Date: Mon, 28 Dec 2020 10:26:49 +0300	[thread overview]
Message-ID: <X+mIuUud5wbKe9K6@protected.rcdrun.com> (raw)
In-Reply-To: <87k0t3q6qk.fsf@logand.com>

* Tomas Hlavaty <tom@logand.com> [2020-12-28 00:28]:
> So far I have similar limitations in emacs-pdf but I would like to
> improve that.

I will look into that software, I have these emails flagged as
important. 

> > Yes, I said that it would be good to have the formula that makes
> > it. The only reason to use Emacs ps-print-buffer-with-faces would be
> > to print those enriched-mode notes that I have.
> 
> When I tried enriched-mode I did not figure out how to use it.

You can open any file and M-x enriched-mode, and then you may use menu
Edit -> Text Properties to make background or foreground of letters,
bold, italic, etc.

When I mark it up as italic sadly I do not see italic on screen, that
may need some set up of fonts, I cannot know. Bold italic I also do
not see. And I use these keys below to quickly change those formats. 

(defvar hyperscope-enriched-mode-map
  (let ((map (make-sparse-keymap)))
    (set-keymap-parent map enriched-mode-map)
    (define-key map (kbd "s-b") 'facemenu-set-bold)
    (define-key map (kbd "s-d") 'facemenu-set-default)
    (define-key map (kbd "s-i") 'facemenu-set-italic)
    (define-key map (kbd "s-j") 'facemenu-set-bold-italic)
    (define-key map (kbd "s-u") 'facemenu-set-underline)
    (define-key map (kbd "s-r") 'facemenu-set-background)
    (define-key map (kbd "s-f") 'facemenu-set-foreground)
    map)
  "The Hyperscope enriched keymap")

You can also save the file and next time it is opened it will be
marked up with your formats, like bold, italic, foreground and
background colors.

> If I implemented pdf-buffer-with-faces what kind of formatting stuff
> would you find important?

What is necessary is what is in the Edit -> Text properties. Also note
that there can be some invisible Lisp in enriched mode, and I wish to
come to that, but if anything is invisible it should not be shown on
paper in my opinion.

Emacs has already good printing solution. And I get easily PDF
files. Now how would your solution be useful?

I am using below function, so I already get the PDF converted there
that remains in the directory and it also shows it in front of my
face.

#!/bin/bash
tmpdir=/home/data1/protected/tmp/muttprint/
mkdir -p $tmpdir
cd $tmpdir
file=$tmpdir/$(date +'%F-%T-%A')
#highlight --syntax=lisp --page-color -O pango | paps --markup --font="Monospace 11" > $file.ps
cat > $file.ps
#gv $file.ps
# paps --font="DejaVu Sans Mono 11" > $file.ps
ps2pdf14 $file.ps
exec zathura $file.pdf 2> /dev/null &

But printing with faces has some errors if one mixes colors with bold
letters, it will not come out same in the ps/pdf files. When I find
out more about errors I will report.




  reply	other threads:[~2020-12-28  7:26 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-22 18:22 Emacs as a word processor Gregory Heytings via Emacs development discussions.
2020-12-22 18:39 ` Eli Zaretskii
2020-12-22 19:28   ` Eli Zaretskii
2020-12-22 19:37     ` Lars Ingebrigtsen
2020-12-22 19:46       ` Stefan Monnier
2020-12-22 20:00       ` Eli Zaretskii
2020-12-22 19:32 ` Jean Louis
2020-12-22 19:41   ` Arthur Miller
2020-12-22 19:51     ` Jean Louis
2020-12-22 19:57       ` Arthur Miller
2020-12-22 20:07         ` Qiantan Hong
2020-12-22 20:43           ` Arthur Miller
2020-12-22 20:56           ` Gregory Heytings via Emacs development discussions.
2020-12-24  5:49             ` Richard Stallman
2020-12-24 20:57               ` chad
2020-12-25  4:37                 ` Richard Stallman
2020-12-25  7:14                   ` Emacs as a word processor (ways to convert Word/RTF proprietary files) Jean Louis
2020-12-25  8:15                     ` Eli Zaretskii
2020-12-25  9:58                       ` Jean Louis
2020-12-25 12:08                         ` Eli Zaretskii
2020-12-25 13:11                           ` Jean Louis
2020-12-25 13:39                             ` Eli Zaretskii
2020-12-27 21:28                             ` Tomas Hlavaty
2020-12-28  7:26                               ` Jean Louis [this message]
2020-12-28 17:11                                 ` Drew Adams
2020-12-28 22:19                                 ` Tomas Hlavaty
2020-12-29  8:31                                   ` Jean Louis
2020-12-29 13:27                                     ` Tomas Hlavaty
2020-12-28 13:47                               ` Eli Zaretskii
2020-12-28 19:12                                 ` Tomas Hlavaty
2020-12-25 13:23                         ` Arthur Miller
2020-12-27  9:43                           ` Jean Louis
2020-12-25 10:30                       ` Yuri Khan
2020-12-26 10:23                         ` Richard Stallman
2020-12-26 10:32                           ` Sv: " arthur miller
2020-12-26 11:03                           ` Yuri Khan
2020-12-26 11:53                             ` Tomas Hlavaty
2020-12-26 12:19                               ` Jean Louis
2020-12-27  5:38                               ` Richard Stallman
2020-12-25 10:59                       ` Tomas Hlavaty
2020-12-25 13:19                         ` Arthur Miller
2020-12-25 14:44                           ` Tomas Hlavaty
2020-12-25 19:41                             ` Sv: " arthur miller
2020-12-25 21:08                               ` Stefan Monnier
2020-12-26 10:13                                 ` Sv: " arthur miller
2020-12-27 21:08                                 ` Tomas Hlavaty
2020-12-25 13:49                         ` Jean Louis
2020-12-25 15:02                           ` Tomas Hlavaty
2020-12-26  6:34                             ` Jean Louis
2020-12-28 11:44                             ` Eric S Fraga
2020-12-28 12:22                               ` Tomas Hlavaty
2020-12-28 12:37                                 ` Eric S Fraga
2020-12-28 16:25                                   ` Tomas Hlavaty
2020-12-29 10:10                                     ` Eric S Fraga
2020-12-28 13:37                             ` [pandoc] (was: Emacs as a word processor (ways to convert Word/RTF proprietary files)) Uwe Brauer
2020-12-28 14:56                               ` Stefan Kangas
2020-12-28 15:02                                 ` [pandoc] Uwe Brauer
2020-12-28 16:33                               ` [pandoc] (was: Emacs as a word processor (ways to convert Word/RTF proprietary files)) Tomas Hlavaty
2020-12-28 17:07                                 ` [pandoc] Uwe Brauer
2020-12-28 18:11                                   ` [pandoc] Tomas Hlavaty
     [not found]                         ` <X+Xv2f/sQzaWg/B0@protected.rcdrun.com>
2020-12-25 15:07                           ` Emacs as a word processor (ways to convert Word/RTF proprietary files) Tomas Hlavaty
2020-12-26  6:35                             ` Jean Louis
2020-12-27 21:14                               ` Tomas Hlavaty
2020-12-28  1:39                                 ` Amin Bandali
2020-12-28 16:38                                   ` Tomas Hlavaty
2020-12-26 10:23                       ` Richard Stallman
2020-12-26 10:45                         ` Eli Zaretskii
2020-12-27  5:38                           ` Richard Stallman
2020-12-26 16:12                         ` Stefan Monnier
2020-12-27  5:40                           ` Richard Stallman
2020-12-28 13:41                         ` Uwe Brauer
2020-12-23  4:53         ` Emacs as a word processor David Masterson
2020-12-23  5:26           ` Christopher Dimech
2020-12-23  7:52             ` Jean Louis
2020-12-23  8:02         ` Jean Louis
2020-12-23  9:53           ` Arthur Miller
2020-12-23  1:48 ` yarnton--- via Emacs development discussions.
2020-12-23  2:29   ` Christopher Dimech
2020-12-23  2:53   ` Stefan Kangas
2020-12-23  7:25     ` Ihor Radchenko
2020-12-23 17:58       ` yarnton--- via Emacs development discussions.
2020-12-23 18:06       ` Stefan Monnier
2020-12-24  3:09         ` Ihor Radchenko
2020-12-25  4:31         ` Richard Stallman
2020-12-25  5:17           ` Ihor Radchenko
2020-12-25  5:18           ` Ihor Radchenko
2020-12-26 10:28             ` Richard Stallman
2020-12-26 11:30               ` Ihor Radchenko
2020-12-23 17:09     ` Kévin Le Gouguec
2020-12-24  5:47     ` Richard Stallman
2020-12-23 10:18   ` Arthur Miller
2020-12-23  4:21 ` Richard Stallman
2020-12-23  4:38   ` Christopher Dimech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=X+mIuUud5wbKe9K6@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=tom@logand.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.