Ecma-48 proposed styling controls update updated & math expression representation proposal update

Kent Karlsson kent.b.karlsson at bahnhof.se
Mon Jan 8 05:45:11 CST 2024


It should be noted that HTML and ECMA-48 styling do not mix since HTML forbids most “Cc” characters (except a few).

Some of the other points I have responded to in other emails.

/Kent K

> 8 jan. 2024 kl. 11:17 skrev Marius Spix via Unicode <unicode at corp.unicode.org>:
> 
> 
>  
> Markup languages like HTML add an additional semantic layer to plaintext. If you want to emphasize a word, e. g. the name Gutenberg, you can use tags like <em> or <strong>. This is portable and barrier-free. For example, text-to-speech software for blind users will read emphasized words with another accentuation or a user with a color vision deficiency may use a custom CSS, with a higher contrast. It is also easy to provide the same text in different styles, for example when a website buys an article from a news agency, they don't need to reformat it. This would be a mess with hard-coded styling at plaintext layer. I absolutely see no reason for styling on the plaintext layer.
>  
> Gesendet: Sonntag, 07. Januar 2024 um 13:23 Uhr
> Von: "Alexander Lange via Unicode" <unicode at corp.unicode.org>
> An: unicode at corp.unicode.org
> Betreff: Re: Ecma-48 proposed styling controls update updated & math expression representation proposal update
> On 07.01.2024 13:02, William_J_G Overington via Unicode wrote:
> [...]
>  
> 
> "Well, the text is
> 
>  
> 
> It was printed by Gutenberg in Mainz.
> 
>  
> 
> and most of it is in green yet the name Gutenberg is in yellow. How can I code that?"
> 
>  
> 
> [...]
>  
> Alright, let's solve this example problem:
> 
>  
> 
> <p>It was printed by <i>Gutenberg</i> in Mainz.</p>
> 
>  
> 
> That would be the HTML to structure the text as needed. Any kind of styles, included all possible RGBA colors, can then easily be applied using CSS. This is also possible inline in cases where it's important to have only one file:
> 
>  
> 
> <p style="color: green">It was printed by <i style="color: yellow; font-style:normal">Gutenberg</i> in Mainz.</p>
> 
> (I added font-style:normal because <i> is shown in Italic by default.)
> 
>  
> 
> Other possibilities would be BBCode, RichText, ... or any own format you can define.
> 
>  
> 
> Kind regards,
> Alexander Lange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://corp.unicode.org/pipermail/unicode/attachments/20240108/21787714/attachment.htm>


More information about the Unicode mailing list