Ticket #2739: add support of epub format.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2012-10-05 12:48:15 +03:00 committed by Andrew Borodin
parent fa3c7e71a8
commit 72db209691
2 changed files with 12 additions and 0 deletions

View File

@ -69,6 +69,9 @@ do_view_action() {
djvu) djvu)
djvused -e print-pure-txt "${MC_EXT_FILENAME}" djvused -e print-pure-txt "${MC_EXT_FILENAME}"
;; ;;
epub)
einfo -v "${MC_EXT_FILENAME}"
;;
*) *)
;; ;;
esac esac
@ -158,6 +161,9 @@ do_open_action() {
comic) comic)
cbrpager "${MC_EXT_FILENAME}" & cbrpager "${MC_EXT_FILENAME}" &
;; ;;
epub)
lucidor "${MC_EXT_FILENAME}" >/dev/null &
;;
*) *)
;; ;;
esac esac

View File

@ -604,6 +604,12 @@ regex/i/\.djvu?$
regex/i/\.cb[zr]$ regex/i/\.cb[zr]$
Open=@EXTHELPERSDIR@/doc.sh open comic 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 ### ### Miscellaneous ###
# Compiled Java classes # Compiled Java classes