wml::fmt::isolatin(3)

πŸ“¦
version 2.32.0 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– wml::fmt::isolatin β€” bestie edition πŸ’–

okay so this is wml::fmt::isolatin(3) from the EN Tools fam, and it's literally the cutest little ISO-Latin-1 to HTML entity glow-up you've ever seen. let's get into it πŸ¦‹


✨ NAME ✨

wml::fmt::isolatin β€” ISO-Latin-1 to HTML Entity Conversion

like. it takes your fancy accented letters and turns them into HTML entities. that's the whole vibe. πŸ’…


🌸 SYNOPSIS 🌸

#use wml::fmt::isolatin [global]

<isolatin>
Text with ISO latin 1 characters
for instance german umlauts: ``XXXXXXX''
</isolatin>

yes bestie, that [global] in brackets is optional, and the container tag is doing all the heavy lifting. so demure. πŸŽ€


πŸ‘‘ DESCRIPTION πŸ‘‘

so what's actually happening here? this creates an area substitution with Pass 6 (that's asubst, iykyk) for all the ISO-Latin-1 characters, swapping each one for its corresponding HTML entity. it's giving translation era. ✨

now here's the tea: this is not really necessary. HTML 3.2 literally says every browser has to understand ISO-Latin-1 characters. so there's no real need to encode them with this container tag. not me pointing out that you don't actually need me 😭

BUT. it is safe, and here's why that matters: the result is 7Bit, and 7Bit can be transferred over more mediums than the 8 Bit version with ISO-Latin-1 characters. so it's the lowkey reliable choice when you don't know what's on the other end of the wire. 🫢

and the glow-up option:

  • when you add the global argument, the complete document gets automatically encapsulated into a <isolatin> container. the whole thing. every last byte. main character energy fr fr. πŸ’–

🌈 AUTHOR 🌈

  • Ralf S. Engelschall
  • rse@engelschall.com
  • www.engelschall.com

iconic. we stan. πŸ‘‘


🧚 REQUIRES 🧚

  • Internal: P1, P2, P6
  • External: --

so it needs the internal passes, and literally nothing external. no cap, zero dependencies on the outside world. slay. πŸ“


πŸ”₯ SEE ALSO πŸ”₯

  • ISO Latin 1 character table

go look at the table bestie, it's the source of truth for all those umlauts. πŸ“–


heads up: this whole thing is about converting ISO-Latin-1 characters to HTML entities via an area substitution on Pass 6, and the global argument wraps your entire document in <isolatin>. that's it, that's the page. πŸ’œ

mwah πŸ’‹ this lil page came from the EN Tools girlies, dated 2020-11-29, and it's the wml::fmt::isolatin(3) manual β€” thanks for reading, bestie, now go encode something cute. 🌟

πŸ“¦ where this page comes from