<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">29 aug. 2022 kl. 16:56 skrev Doug Ewell via Unicode <<a href="mailto:unicode@corp.unicode.org" class="">unicode@corp.unicode.org</a>>:</div><br class="Apple-interchange-newline"><div class=""><div class="">David Chmelik wrote:<br class=""><br class=""><blockquote type="cite" class="">I know unicode does bold, italic, underline, but does it do them all<br class="">at once?<br class=""></blockquote><br class="">It depends on the sense in which you mean that Unicode "does bold, italic, underline."<br class=""><br class="">If you're talking about ISO/IEC 6429 ("ANSI”)</div></div></blockquote><div><br class=""></div><div>Nit: it is actually ANSI<span style="font-family: sans-serif; font-size: 12.32px; orphans: 2; widows: 2; background-color: rgb(248, 249, 250);" class=""> </span><span style="font-family: sans-serif; font-size: 12.32px; orphans: 2; widows: 2; background-color: rgb(248, 249, 250);" class="">X3.64; but the best way to refer to it (international, original, easy to remember) is ECMA-48.</span></div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div class=""> SGR escape sequences:</div></div></blockquote><div><br class=""></div>Another nit: they are control sequences (I will not delve on the details here).</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""> in principle you should be able to combine bold ("1"), italic ("3"), and underline ("4”). </div></div></blockquote><div><br class=""></div>Formally, it depends on the GRCM - GRAPHIC RENDITION COMBINATION MODE setting: REPLACING (**really** bad idea) or CUMULATIVE (combine). However, I know of no implementation of any of the ECMA-48 ”modes" (and all of those ”modes" are a bad idea anyway).</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">In practice it depends on the capabilities of your terminal or console emulator. </div></div></blockquote><div><br class=""></div>A rather important note: ECMA-48 SGR is <i class="">in no way at all </i>limited to terminal emulators, though ECMA-48 is popular there since such things as RTF, markdown, HTML are all non-starters for terminals.</div><div><br class=""></div><div>ECMA-48 SGR control sequences are perfectly well applicable to text files (though there is a lack of implementations) and ”WYSIWYG” text editors (nowadays called just GUI text editors or text editor windows). Only CSI 0m is specifically targeted to terminals, for use at the beginning(!) of prompts, doing a ”general style reset” from an unknown style setting.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">Note that this has nothing to do with Unicode.<br class=""></div></div></blockquote><div><br class=""></div>Not entirely true... ISO/IEC 6429 (i.e. ECMA-48) is referenced from both Unicode and ISO/IEC 10646.</div><div><br class=""></div><div>/Kent K</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">If you're talking about Microsoft Word, OpenOffice Writer, or some other word-processing package: this is almost always supported. Note that this also has nothing to do with Unicode, or plain text at all.<br class=""><br class="">If you're talking about a private-use mechanism, such as the HTML-like Plane 14 tags supported by Andrew West's BabelPad editor: it depends on the specific mechanism. Andrew's approach does support combining these, plus strikethrough, based on font attributes. Note that no mechanism of this sort is authorized by the Unicode Standard.<br class=""><br class="">Mathematical Alphanumeric Symbols do not include underlining, do not support combinations of bold and italic except as explicitly encoded, are limited to a very small set of base characters, and are not intended for plain text styling in any event.<br class=""><br class="">--<br class="">Doug Ewell, CC, ALB | Lakewood, CO, US | <a href="http://ewellic.org" class="">ewellic.org</a><br class=""><br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>