sh/convert_to_text.sh in biblicit-2.1.0 vs sh/convert_to_text.sh in biblicit-2.2.0

- old
+ new

@@ -7,10 +7,11 @@ INPUT=$1 OUTPUT=$2 TYPE=`file -b --mime-type "$INPUT"` -if [[ "$TYPE" == "text/plain" ]]; then +# file occasionally misidentifies plain text as pascal given the presence of certain keywords :( +if [[ "$TYPE" == "text/plain" || "$TYPE" == "text/x-pascal" ]]; then cp "$INPUT" "$OUTPUT"; elif [[ "$TYPE" == "application/pdf" && -n `which pdftotext` ]]; then pdftotext -raw -enc UTF-8 "$INPUT" "$OUTPUT"; elif [[ "$TYPE" == "application/postscript" && -n `which ps2ascii` ]]; then ps2ascii "$INPUT" > "$OUTPUT";