From 72db2096914438c278afc7c88a80e3255504fc3e Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Fri, 5 Oct 2012 12:48:15 +0300 Subject: [PATCH] Ticket #2739: add support of epub format. Signed-off-by: Slava Zanko --- misc/ext.d/doc.sh.in | 6 ++++++ misc/mc.ext.in | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/misc/ext.d/doc.sh.in b/misc/ext.d/doc.sh.in index f4afd1a78..851e3583a 100644 --- a/misc/ext.d/doc.sh.in +++ b/misc/ext.d/doc.sh.in @@ -69,6 +69,9 @@ do_view_action() { djvu) djvused -e print-pure-txt "${MC_EXT_FILENAME}" ;; + epub) + einfo -v "${MC_EXT_FILENAME}" + ;; *) ;; esac @@ -158,6 +161,9 @@ do_open_action() { comic) cbrpager "${MC_EXT_FILENAME}" & ;; + epub) + lucidor "${MC_EXT_FILENAME}" >/dev/null & + ;; *) ;; esac diff --git a/misc/mc.ext.in b/misc/mc.ext.in index d9e492e41..0229fcb80 100644 --- a/misc/mc.ext.in +++ b/misc/mc.ext.in @@ -604,6 +604,12 @@ regex/i/\.djvu?$ regex/i/\.cb[zr]$ Open=@EXTHELPERSDIR@/doc.sh open comic +# Epub +shell/i/.epub + Open=@EXTHELPERSDIR@/doc.sh open epub + View=%view{ascii} @EXTHELPERSDIR@/doc.sh view epub + + ### Miscellaneous ### # Compiled Java classes