]> git.phdru.name Git - dotfiles.git/blobdiff - .mc/menu
Use iconv.py instead of iconv
[dotfiles.git] / .mc / menu
index f849f0117ce626cf6cca98017778a422e1e1ae39..c3b6786ab74052259e9ff7460a1ab3f323784948 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -57,6 +57,14 @@ T  fb2txt
    esac
    $A %f | xsltproc /usr/local/src/FictionBook/FB2_2_txt_ru.xsl - | webstdin -e txt -t
 
++= t r & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
+o  View OpenDoc with odt2txt
+   odt2txt %f | ${PAGER:-more}
+
++ t r & f \.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$
+e  Edit OpenDoc with libreoffice
+   libreoffice %f &
+
 += t r & f \.(pdf|PDF|djvu)(\.bz2|\.gz)?$
 e  View pdf/djvu with evince
    evince %f &
@@ -65,9 +73,17 @@ e  View pdf/djvu with evince
 d  View doc with catdoc
    catdoc %f | ${PAGER:-more}
 
++ t r & f \.(doc|DOC|rtf)$
+e  Edit doc with libreoffice
+   libreoffice %f &
+
 += t r & f \.(docx|DOCX)$
 d  View docx with docx2txt
-   docx2txt %f - | ${PAGER:-more}
+   docx2txt %f - | iconv.py -f utf-8 | ${PAGER:-more}
+
++ t r & f \.(docx|DOCX)$
+e  Edit docx with libreoffice
+   libreoffice %f &
 
 += t r & f \.(xls|XLS)$
 x  View xls with xls2csv