lilypond-devel
[Top][All Lists]
Advanced

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

Re: Renaming `ly:wide-char->utf-8`


From: Jean Abou Samra
Subject: Re: Renaming `ly:wide-char->utf-8`
Date: Thu, 10 Feb 2022 08:42:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

Le 10/02/2022 à 08:26, Werner LEMBERG a écrit :
Given that LilyPond uses Unicode exclusively I wonder whether we
should rename

    ly:wide-char->utf-8

to

    ly:unicode->utf-8

or something similar.  'Wide character' is too broad a term IMHO, and
the function doesn't do any character set conversions.
We are more or less close to transitioning to Guile 2 exclusively
which is going to obviate it anyway.
Obviate what?  Will the name of this function change automatically?


No :-) But we will be able to spell (ly:wide-char->utf-8 1234) as either (integer->char 1234) or (for literals which is the majority of cases) #\x4d2 (where 4d2 is the hex representation for the number that has the decimal representation 1234).






reply via email to

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