emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: Ypo <ypuntot@gmail.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Help with a (query) replacement
Date: Sat, 12 Nov 2022 16:04:01 +0000	[thread overview]
Message-ID: <878rkgxiq6.fsf@posteo.net> (raw)
In-Reply-To: <b4087633-5ff2-4336-3712-7af42e39ccec@gmail.com> (Ypo's message of "Sat, 12 Nov 2022 16:12:10 +0100")

Ypo writes:

> Thanks, Juan Manuel.
>
> I normally study using PDF books. Their typography is like
> "hardcoded", so a post-processing using Orgmode is needed, I think.

If it's a PDF then forget what I told you about pandoc, because here
pandoc would have nothing to do. I thought you were referring to files
in epub format, sorry.

In the case of PDFs, I would use pdftotext. It converts the PDF to plain
text and (in theory) removes hyphens from the PDF after conversion. The
resulting plain text is somewhat ugly (page numbers and other elements
are preserved), but if you just want to copy/paste text, I think it's
enough.

The command:

pdftotext my-file.pdf

https://man.archlinux.org/man/pdftotext.1.en

https://en.wikipedia.org/wiki/Pdftotext


  reply	other threads:[~2022-11-12 16:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-12 14:42 Help with a (query) replacement Ypo
2022-11-12 15:10 ` Juan Manuel Macías
2022-11-12 15:12   ` Ypo
2022-11-12 16:04     ` Juan Manuel Macías [this message]
2022-11-12 16:29       ` Juan Manuel Macías
2022-11-12 15:23   ` Juan Manuel Macías
2022-11-12 15:25     ` Ypo
2022-11-12 15:31 ` Alain.Cochard
2022-11-16 19:20   ` Ypo
2022-11-16 22:16     ` Alain.Cochard

Reply instructions:

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

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

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=878rkgxiq6.fsf@posteo.net \
    --to=maciaschain@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=ypuntot@gmail.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 public inbox

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

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