From ce3f8e3f7787e17f1dcbc2ceb36d701f80a2af0d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 6 Jun 2020 00:47:59 +0300 Subject: [PATCH] .mc: `pdftotext`: Preserve layout And silence error messages. --- .mc/mc.ext | 2 +- .mc/menu | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.mc/mc.ext b/.mc/mc.ext index f0b5945..c032ee6 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -510,7 +510,7 @@ type/^PDF Open=(see %f &) #Open=(acroread %f &) #Open=(ghostview %f &) - View=%view{ascii} pdftotext %f - | iconv.py -f utf-8 + View=%view{ascii} pdftotext -layout -q %f - | iconv.py -f utf-8 # The following code very ugly and should not be taken as example. # It should be cleaned up when the new format of mc.ext is developed. diff --git a/.mc/menu b/.mc/menu index 12cccae..8f2acbe 100644 --- a/.mc/menu +++ b/.mc/menu @@ -63,7 +63,7 @@ T fb2txt + t lr & f \.(pdf|PDF)$ v View pdf - pdftotext %f - | iconv.py -f utf-8 | ${PAGER:-more} + pdftotext -layout -q %f - | iconv.py -f utf-8 | ${PAGER:-more} += t lr & f \.(pdf|PDF)$ e View pdf with evince -- 2.39.2