All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.languagetool.rules.ar.indent.sh Maven / Gradle / Ivy

echo 'Please wait...'

gsed -ri 's/([^ ])(]|!--|!ENTITY|phrase[ >]|equivalence))/    \1/' $@
gsed -ri 's/^[ \t]*(<\/?(marker|suggestion|and|or|wd))/        \1/' $@
gsed -ri 's/^[ \t]*(<\/?(antipattern|pattern|regexp|filter|message|url|short|example|disambig|includephrases))/      \1/' $@
gsed -ri 's/^[ \t]*(<\/?(token|unify|phraseref))/          \1/' $@
gsed -ri 's/^[ \t]*(<\/?(exception|feature))/            \1/' $@

gsed -ri 's/(<(token|exception|suggestion|match|disambig|feature|phraseref|wd)[^>]*?)><\/\2>/\1\/>/' $@
gsed -ri 's/[ \t]+\r?$/\r/' $@
gsed -ri 's/" >/">/' $@
gsed -ri 's/ \/>/\/>/' $@
gsed -ri 's/\.\.\.<\/example>/…<\/example>/' $@
gsed -ri 's/\.\.\./…/' $@

echo $@' indented'




© 2015 - 2024 Weber Informatics LLC | Privacy Policy