]> git.donarmstrong.com Git - lilypond.git/commitdiff
Docs NR 3.3.3 Further clarification of \char
authorTrevor Daniels <t.daniels@treda.co.uk>
Fri, 27 Mar 2009 09:23:22 +0000 (09:23 +0000)
committerTrevor Daniels <t.daniels@treda.co.uk>
Fri, 27 Mar 2009 09:23:22 +0000 (09:23 +0000)
Documentation/user/input.itely

index 03bde3229e23144a48bd11bf1ff21eece9c32237..27cdfbd041b324fbdd2115e18ef8c9ea0b6669a7 100644 (file)
@@ -1217,18 +1217,22 @@ portuguese = \lyricmode {
 \addlyrics { \portuguese }
 @end lilypond
 
-To enter a single character for which the Unicode code point
-is known but which is not available in the editor being used, use
-@code{\char ##xhhhh} within a @code{\markup} block, where
-@code{hhhh} is the hexadecimal code for the character required.
-Leading zeroes may be omitted, but it is usual to specify all
-four hexadecimal characters.  (Note that the UTF-8 encoding of the
-code point should @emph{not} be used after @code{\char}, as UTF-8
-contains extra bits used to indicate the number of octets.)
-
-For example, @code{\char ##x03BE} enters the Unicode U+03BE
-character, which has the Unicode name @qq{Greek Small Letter Xi}.
-Any Unicode hexadecimal value may be substituted, and if all special
+To enter a single character for which the Unicode code point is
+known but which is not available in the editor being used, use
+either @code{\char ##xhhhh} or @code{\char #dddd} within a
+@code{\markup} block, where @code{hhhh} is the hexadecimal code for
+the character required and @code{dddd} is the corresponding decimal
+value.  Leading zeroes may be omitted, but it is usual to specify
+all four characters in the hexadecimal representation.  (Note that
+the UTF-8 encoding of the code point should @emph{not} be used
+after @code{\char}, as UTF-8 encodings contain extra bits indicating
+the number of octets.)
+
+For example, @code{\char ##x03BE} and @code{\char #958} would both
+enter the Unicode U+03BE character, which has the Unicode name
+@qq{Greek Small Letter Xi}.
+
+Any Unicode code point may be entered in this way and if all special
 characters are entered in this format it is not necessary to save
 the input file in UTF-8 format.  Of course, a font containing all
 such encoded characters must be installed and available to LilyPond.