APERTIUM-DESHTML(1)

✨ APERTIUM-DESHTML(1) β€” the General Commands Manual, bestie πŸŽ€

πŸ’– NAME

okay so the whole thing is apertium-deshtml β€” an HTML format processor for Apertium πŸ¦‹ It's the glow-up step that cleans up HTML before it goes to lt-proc(1). no cap, it's iconic ✨

🌸 SYNOPSIS

apertium-deshtml [-hino] [input_file [output_file]]

🧚 DESCRIPTION

This tool is part of the Apertium open-source machine translation toolbox, which you can find at https://apertium.org/ πŸ’…

okay bestie, so apertium-deshtml is an HTML format processor πŸ’œ You pass your data through it before piping it into lt-proc(1). It takes an HTML document as input and spits out something lt-proc(1) can actually work with ✨

the trick is that HTML tags and other formatting info get wrapped in brackets, so lt-proc(1) treats them as whitespace between words. it's giving main character energy, fr fr πŸ”₯

πŸŽ€ OPTIONS

  • -h, --help β€” Shows the help text. literally the "I'm lost, help me" button πŸ™ˆ
  • -i β€” Makes the trailing sentence terminator (.) get added every single time, no exceptions. be warned, this can lead to duplicates πŸ’€
  • -n β€” Stops the trailing sentence terminator from being added at all 🫢
  • -o β€” Drops a "❑" (U+2761 CURVED STEM PARAGRAPH SIGN ORNAMENT) at the end of every <h[1–6]> and <title> tag. so cute, so extra 🌈

πŸ“ EXAMPLES

You could write the following to show how the word gener gets analysed πŸ¦‹

echo "<b>gener</b>" | apertium-deshtml | lt-proc
ca-es.automorf.bin

πŸ‘‘ SEE ALSO

apertium(1), apertium-desrtf(1), apertium-destxt(1), lt-proc(1) β€” the whole squad, iykyk 🌸

Copyright © 2005, 2006 Universitat d'Alacant / Universidad de Alicante. ngl this is free software ✨ You may redistribute copies of it under the terms of the GNU General Public License: https://www.gnu.org/licenses/gpl.html 🩷

πŸ™ˆ BUGS

Many... lurking in the dark and waiting for you! πŸ‘» bestie, be careful out there 😭


Apertium Β· March 21, 2006 Β· APERTIUM-DESHTML(1) β€” periodt, that's a wrap πŸ’…πŸ¦‹βœ¨