summaryrefslogtreecommitdiff
path: root/conversion.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-06-16 13:40:39 -0400
committerB Stack <bgstack15@gmail.com>2020-06-16 13:40:39 -0400
commit0ca931489f98b65e1025a4c4f00ae9eb8484dc27 (patch)
tree231f9fa86e40a62ef59ca0cc1ba81d52086b3597 /conversion.sh
parentinitial commit (diff)
downloadglip-0ca931489f98b65e1025a4c4f00ae9eb8484dc27.tar.gz
glip-0ca931489f98b65e1025a4c4f00ae9eb8484dc27.tar.bz2
glip-0ca931489f98b65e1025a4c4f00ae9eb8484dc27.zip
add minor fixes and major image fixes
perform better unicode removal/conversion fix image retrieval, including svg and minor graphics assets remove even more html elements not necessary for archival display
Diffstat (limited to 'conversion.sh')
-rwxr-xr-xconversion.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/conversion.sh b/conversion.sh
new file mode 100755
index 0000000..f739eaf
--- /dev/null
+++ b/conversion.sh
@@ -0,0 +1,10 @@
+# startdate 2020-06-15
+# References:
+# iconv(1), charsets(7)
+for oldfile in $@ ; do
+ test -w "${oldfile}" && {
+ newfile="${oldfile}.2"
+ iconv -c -f utf-8 -t iso-8859-1 < "${oldfile}" > "${newfile}"
+ mv "${newfile}" "${oldfile}"
+ }
+done
bgstack15