APERTIUM-DESHTML-ALT(1)

✨ APERTIUM-DESHTML-ALT(1) ✨ πŸ’–

okay bestie, let's talk about apertium-deshtml-alt πŸ¦‹ it's the HTML format processor for Apertium with alt-translation, and it is genuinely giving main character energy πŸ’…

This tool is part of the Apertium open-source machine translation toolbox. You can find all the tea at https://apertium.org/ 🌸

πŸŽ€ NAME πŸŽ€

apertium-deshtml-alt β€” HTML format processor for Apertium with alt-translation πŸ’œ

🌈 SYNOPSIS 🌈

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

🧚 DESCRIPTION 🧚

okay so this one is an HTML format processor 🫢 you pass your data through it before piping it to 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 all the HTML tags and other formatting info get wrapped in brackets, so lt-proc(1) treats them as whitespace between words. no drama, no cap πŸ™ˆ

and here's the part that's lowkey iconic: unlike apertium-deshtml(1), this one unwraps the alt attribute of images, so the alt-text can actually get translated 😭πŸ”₯

πŸ’… OPTIONS πŸ’…

  • -h, --help β€” pulls up the help page so you can see everything at a glance πŸ‘‘
  • -i β€” makes the trailing sentence terminator (β€˜.’) get added every single time, no exceptions. fair warning, this can lead to duplicates πŸ’€
  • -n β€” shuts down the trailing sentence terminator entirely. no period for you πŸ™…β€β™€οΈ
  • -o β€” slaps a "❑" (U+2761 CURVED STEM PARAGRAPH SIGN ORNAMENT) at the end of <h[1–6]> and <title> tags. very extra, very cute πŸŽ€

πŸ¦‹ EXAMPLES πŸ¦‹

ok so if you want to see how the word β€œgener” gets analysed, you can write this:

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

🫢 SEE ALSO 🫢

apertium(1), apertium-desrtf(1), apertium-destxt(1), apertium-rehtml(1), apertium-rehtml-noent(1), lt-proc(1) 🌸

Copyright Β© 2005-2019 Universitat d'Alacant / Universidad de Alicante. this is free software, so you're totally allowed to 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! πŸ˜­πŸ’€

that's a wrap, bestie 🫢 this was the Apertium page, last updated June 25, 2019, and it's still giving πŸ’–βœ¨