From 368472ca9930fd3b23a9b3b6bdf9f8d247ab5be2 Mon Sep 17 00:00:00 2001 From: Trevor Daniels Date: Fri, 27 Mar 2009 09:23:22 +0000 Subject: [PATCH] Docs NR 3.3.3 Further clarification of \char --- Documentation/user/input.itely | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/Documentation/user/input.itely b/Documentation/user/input.itely index 03bde3229e..27cdfbd041 100644 --- a/Documentation/user/input.itely +++ b/Documentation/user/input.itely @@ -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. -- 2.39.2