Re: How To Write Non-Unicode Symbol?
Norm Tovey-Walsh <[email protected]> Sat, 27 May 2023 10:27:49 +0100
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Michael Urban <[email protected]> writes: > What Unicode construct has the best semantics for representing an One approach is to use =E2=80=9Cinlinemediaobject=E2=80=9D which exists lar= gely for this purpose. Anywhere you can write text that should be rendered, you can also insert an inlinemediaobject and use a graphic for the glyph. (Markup for =E2=80=9Cmedia objects=E2=80=9D got more complicated over the y= ears. I expect that was originally =E2=80=9Cinlinegraphic=E2=80=9D and took a singl= e fileref attribute. C=E2=80=99est la vie.) Markup-wise, it=E2=80=99s the most tedious if the currency symbol occurs frequently, but it=E2=80=99s the most portable solution because it doesn=E2= =80=99t (have to) involve a particular font. > oddball non-Unicode character? If I am writing a novel in which > there is a currency symbol, the Quatloo, represented by a glyph > from a custom font (say, a Q with three lines through it), how should > I write it? <phrase role=3D"quatloo">Q</phrase>? Sure, that would be fine. I might go with <symbol>Quatloo</symbol> or maybe even <symbol>Q</symbol>. If you want it to be an actual Unicode character in your document, you could take any of the characters from the a private use area[1] but those aren=E2=80=99t likely to render nicely in your document and transform= ing them into a font+character reference may be trickier in subsequent processing. To be honest, if I was going to use an actual character for a currency symbol, planning to later replace that with something else for publication, I=E2=80=99d be tempted to choose an existing currency symbol so that it would be easy to see in my editor. For example, the existing fantasy currency symbol, =E2=82=BF. Be seeing you, norm [1] https://en.wikipedia.org/wiki/Private_Use_Areas =2D- Norm Tovey-Walsh <[email protected]> https://norm.tovey-walsh.com/ > Much of the social history of the Western world over the past three > decades has involved replacing what worked with what sounded > good.--Thomas Sowell --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSEJUqRvjpp8yLt8uKDEiZHbwv9OwUCZHHR5AAKCRCDEiZHbwv9 O9hfAQDsQeaXfOhcdtSmAYjKUjsjI6q4ELA8VqmwdT3sWF4B0QD/URcQkFxY1+lk 1zTmCOmIf1c9jh9fNnfgD8dP2IlR5wU= =GOvv -----END PGP SIGNATURE----- --=-=-=--