|
|
@ -1,5 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
#Чтение fb2 в lynx |
|
|
|
|
|
|
|
|
|
|
|
case ${1:0-3} in |
|
|
|
case ${1:0-3} in |
|
|
|
zip) TEXT=$(zcat "$1");; |
|
|
|
zip) TEXT=$(zcat "$1");; |
|
|
@ -7,9 +8,6 @@ case ${1:0-3} in |
|
|
|
*) echo "Неизвестный формат файла"; exit 1;; |
|
|
|
*) echo "Неизвестный формат файла"; exit 1;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
# zip) zcat "$1" | xsltproc "$(dirname $(which $0))/FB2_2_xhtml.xsl" -;; |
|
|
|
|
|
|
|
# fb2) cat "$1" | xsltproc "$(dirname $(which $0))/FB2_2_xhtml.xsl" -;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FB2=`cat <<FB2RULES |
|
|
|
FB2=`cat <<FB2RULES |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fb="http://www.gribuser.ru/xml/fictionbook/2.0"> |
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fb="http://www.gribuser.ru/xml/fictionbook/2.0"> |
|
|
|
<xsl:output method="xml" encoding="UTF-8"/> |
|
|
|
<xsl:output method="xml" encoding="UTF-8"/> |
|
|
|