wml::fmt::isolatin(3)
π 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
globalargument, 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.comwww.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 theglobalargument 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
- debian bookworm: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- debian trixie: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu jammy: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu noble: wml 2.32.0~ds1-1 Β· GPL-2.0-or-later
- ubuntu questing: wml 2.32.0~ds1-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms