bug-texinfo
[Top][All Lists]
Advanced

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

Re: better glyph for U+00B0 (DEGREE SIGN)


From: Werner LEMBERG
Subject: Re: better glyph for U+00B0 (DEGREE SIGN)
Date: Sat, 12 Nov 2022 22:18:31 +0000 (UTC)

>> Well, for cut and paste, `\circ` is *not* an alternative, since it
>> maps to U+25E6 (WHITE BULLET) in font `cmsy10.pfb`.  This might not
>> be an issue in math, but for code listings typeset with typewriter
>> it would be really nice to get it right.
> 
> Can you give us an idea of when or why you would have a degree sign
> in a code listing, as this wouldn't be a symbol that most
> programming languages would use?

LilyPond's input encoding is UTF-8; markup strings must be thus
emitted as UTF-8, too.  Its Texinfo documentation extracts code
snippets from master files (using the `lilypond-book` script),
compiles them for graphical output, and shows the source code at the
same time.   Example:

```
\markup {
  default
  \hspace #2
  \rotate #45
  \line {
    rotated 45°
  }
}
```


    Werner

reply via email to

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