lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UTF-8 unicode use in \markup


From: ming tsang
Subject: Re: UTF-8 unicode use in \markup
Date: Mon, 29 Nov 2021 11:58:57 -0500

Thank you very much. Helpful information.

Sent from my iPhone

> On Nov 28, 2021, at 7:39 PM, Valentin Petzel <valentin@petzel.at> wrote:
> 
> Just for clarification:
> 
> 00a7 is not a special code, but a hexadecimal number. Basically any unicode 
> char is linked with a number, and the „code” is just this number in 
> hexadecimal digits.
> 
> U+.... is just a way to specify that a hexadecimal number stands for a 
> unicode 
> char. In our case that function is taken by char. #xSOMETHING is just a guile 
> way of entering numbers as hexadecimal. So instead of ##x00a7 you can also do 
> ##xa7 as well as simply 167 (which is the decimal numeric value for hex A7).
> 
> Thus char basically takes a number and gives us that unicode character.
> 
> Cheers,
> Valentin
> 
> Am Montag, 29. November 2021, 01:27:37 CET schrieb ming tsang:
>> Hi Valentin Petzel,
>> Thank you for your reply.  I found a
>> UTF-8 encoding table and Unicode characters
>> https://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=0x
>> Now I can look up the U+00a7 and then use \markup { \char ##x00a7 ) to
>> display it.
>> for \char I cannot use unicode  U+00a7. I was hoping \char could accept
>> U+00a7.  Now I can use ##x00a7.
>> Thank you for your info.
>> Shalom,
>> yMing.
>> 
>>> On Sun, Nov 28, 2021 at 5:16 PM Valentin Petzel <valentin@petzel.at> wrote:
>>> Hello Ming,
>>> 
>>> I do not understand your exact problem. If you want to have € in markup
>>> you
>>> can either directly put € in the markup, or use \char ##20ac.
>>> 
>>> Valentin
>>> 
>>> Am Sonntag, 28. November 2021, 22:42:47 CET schrieb ming tsang:
>>>> Hi lilyponder,
>>>> 
>>>> I would like to use \markup to display  € using  U+20AC. I can use
>>> 
>>> \markup
>>> 
>>>> { \char  ##x2197 } to  display / print / output to pdf.  ##x2197 is
>>>> [image: image.png]
>>>> 
>>>> Your help is appreciated.
>>>> 
>>>> Shalom,
>>>> yMing



reply via email to

[Prev in Thread] Current Thread [Next in Thread]