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 π·
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 πβ¨
π¦ where this page comes from
- debian bookworm: apertium 3.8.3-1+b2 Β· GPL-2.0-or-later
- debian trixie: apertium 3.9.12-1 Β· GPL-2.0-or-later
- ubuntu jammy: apertium 3.7.2-2build2 Β· GPL-2.0-or-later
- ubuntu noble: apertium 3.9.4-1build1 Β· GPL-2.0-or-later
- ubuntu questing: apertium 3.9.12-1build1
- ubuntu resolute: apertium 3.9.12-1build3 Β· GPL-2.0-or-later
- ubuntu stonking: apertium 3.9.12-2 Β· GPL-2.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms