Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Yesterday 17:27:26

Vienuolis
Member
From: Vilnius, Lithuania
Registered: 2009-06-14
Posts: 329
Website GitHub GitLab Mastodon Twitter

span: abbr: span

Hi Textile weavers! Should not we get rid of the requirement to enclose abbreviations in <span class="caps"> tags automatically? What is the point for it? Nevertheless, the two-letter abbreviation remains unmarked, just as US in the Textile manual itself. In my case, when I need to insert an English acronym into a Lithuanian text, it turns into a ridiculous ‹span›‹abbr›‹span› piece of HTML code:

%[en]LLM(language Learning Models)%
<span lang="en"><abbr title="language learning models"><span class="caps">LLM</span></abbr></span>

When an abbreviation is needed, we can specify it precisely: CBDC(Central Bank Digital Currency). Which would be enough to enclose in a single ‹abbr› tag, couldn’t it?

Offline

#2 Today 06:11:46

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,672
Website

Re: span: abbr: span

And furthermore, if you want the abbr without the title attribute (e.g you are inserting the abbreviation a second or more time) there is no Textile way of doing it…

Best /recommended practice in some more accessibility focussed circles: the first time you insert the full series of words followed by the abbr in between (). Second and further use only the abbreviation. That pleases everybody.

Central Bank Digital Currency <abbr>CBDC</abbr>

Note that most screen readers ignore the abbr tag; they just just read the string of letters.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB