Ticket #4167: clarify e-books support.

mc.ext: add fb2 support.
ext.f/doc.sh.in: change key name for e-books.

Thanks korrado <anyhow2@mail.ru> for the issue.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-02-19 16:31:04 +03:00
parent b01fea54a7
commit 887bd8fe86
2 changed files with 6 additions and 6 deletions

View File

@ -87,7 +87,7 @@ do_view_action() {
djvu) djvu)
djvused -e print-pure-txt "${MC_EXT_FILENAME}" djvused -e print-pure-txt "${MC_EXT_FILENAME}"
;; ;;
epub) ebook)
einfo -v "${MC_EXT_FILENAME}" einfo -v "${MC_EXT_FILENAME}"
;; ;;
*) *)
@ -197,7 +197,7 @@ do_open_action() {
comic) comic)
cbrpager "${MC_EXT_FILENAME}" & cbrpager "${MC_EXT_FILENAME}" &
;; ;;
epub) ebook)
lucidor "${MC_EXT_FILENAME}" >/dev/null & lucidor "${MC_EXT_FILENAME}" >/dev/null &
;; ;;
*) *)

View File

@ -664,10 +664,10 @@ regex/i/\.djvu?$
regex/i/\.cb[zr]$ regex/i/\.cb[zr]$
Open=@EXTHELPERSDIR@/doc.sh open comic Open=@EXTHELPERSDIR@/doc.sh open comic
# Epub & mobi # Epup, mobi, fb2
regex/i/\.(epub|mobi)$ regex/i/\.(epub|mobi|fb2)$
Open=@EXTHELPERSDIR@/doc.sh open epub Open=@EXTHELPERSDIR@/doc.sh open ebook
View=%view{ascii} @EXTHELPERSDIR@/doc.sh view epub View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ebook
### Miscellaneous ### ### Miscellaneous ###