Download data/userdocs/userguide/html2xhtml from introvoyz045/COPASI: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/datasets/introvoyz045/COPASI/resolve/main/data/userdocs/userguide/html2xhtml
- Command line
-
hf download hf://datasets/introvoyz045/COPASI/data/userdocs/userguide/html2xhtml
-
curl -L -o html2xhtml https://huggingface.co/datasets/introvoyz045/COPASI/resolve/main/data/userdocs/userguide/html2xhtml
354 Bytes
| #!/bin/bash | |
| base_name=`basename $1 .html` | |
| sed -e 's/<[Hh]0/<h1/g' \ | |
| -e 's/<\\[Hh]0/<\\h1/g' \ | |
| -e 's/<!--.*-->//g' \ | |
| -e 's?</*x>??g' \ | |
| $1 > $$.html | |
| tidy -asxml -utf8 -o $$.xhtml $$.html | |
| sed -e 's?<html.*>?<html xmlns=\"http://www.w3.org/1999/xhtml\" >?' \ | |
| -e 's/ / /g' \ | |
| $$.xhtml > ${base_name}.xhtml | |
| rm $$.xhtml $$.html | |