]> git.phdru.name Git - dotfiles.git/commitdiff
Use iconv.py instead of iconv
authorOleg Broytman <phd@phdru.name>
Wed, 12 Nov 2014 14:30:22 +0000 (17:30 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 12 Nov 2014 14:30:22 +0000 (17:30 +0300)
.mailcap
.mc/mc.ext
.mc/menu

index 1a2074a73ab3a1b076c113e6a367318115467661..b667ff863f1cedc5ac8e669364731119cfa3c25e 100644 (file)
--- a/.mailcap
+++ b/.mailcap
@@ -31,7 +31,7 @@ application/msword; doc2html2 %s; copiousoutput; description="M$ Word Text"; tes
 application/msword; catdoc %s; copiousoutput; description="M$ Word Text"; test=test -n "`which catdoc 2>/dev/null`"
 application/msword; wordview %s; edit=libreoffice %s; description="M$ Word Text"; test=test -n "$DISPLAY" -a -n "`which wordview 2>/dev/null`"
 application/vnd.ms-excel; xls2csv %s; copiousoutput; description="M$ Excel files"; test=test -n "`which xls2csv 2>/dev/null`"
-application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | iconv -f utf-8 | less; edit=libreoffice %s; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" -a -n "`which iconv 2>/dev/null`" -a -n "`which less 2>/dev/null`"
+application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | iconv.py -f utf-8 | less; edit=libreoffice %s; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`" -a -n "`which iconv.py 2>/dev/null`" -a -n "`which less 2>/dev/null`"
 application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s - | more; needsterminal; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`"
 application/vnd.openxmlformats-officedocument.wordprocessingml.document; docx2txt %s -; copiousoutput; description="M$ Word OOXML Text"; test=test -n "`which docx2txt 2>/dev/null`"
 
index 2f9d08bbc7d6360c57e22f24d267459f36239d39..ce6b166f02f93ed2c389e8298d62d8662d6ee9e2 100644 (file)
@@ -716,7 +716,7 @@ regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
 regex/\.([Dd][oO][cC][Xx])$
    Edit=libreoffice %f &
    Open=libreoffice %f &
-   View=%view{ascii} docx2txt %f - | iconv -f utf-8
+   View=%view{ascii} docx2txt %f - | iconv.py -f utf-8
 
 type/^Microsoft\ Word
    Include=msoffice
index 7a303a7379f0785462c429d97b0c5387df39ffaf..c3b6786ab74052259e9ff7460a1ab3f323784948 100644 (file)
--- a/.mc/menu
+++ b/.mc/menu
@@ -79,7 +79,7 @@ e  Edit doc with libreoffice
 
 += t r & f \.(docx|DOCX)$
 d  View docx with docx2txt
-   docx2txt %f - | iconv -f utf-8 | ${PAGER:-more}
+   docx2txt %f - | iconv.py -f utf-8 | ${PAGER:-more}
 
 + t r & f \.(docx|DOCX)$
 e  Edit docx with libreoffice