X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fnotation%2Ftext.itely;h=82c7a209a3476f2a6f1f5535d172fb835f7fc595;hb=7ea158846edf78edd2ebb89a7c9b5f9dbca67bf7;hp=d56fa1348f084cda6979893b481dc4c71e500f80;hpb=b38fd63a19190741c0c19faf6a904af82c3f434c;p=lilypond.git diff --git a/Documentation/notation/text.itely b/Documentation/notation/text.itely index d56fa1348f..82c7a209a3 100644 --- a/Documentation/notation/text.itely +++ b/Documentation/notation/text.itely @@ -7,7 +7,7 @@ Guide, node Updating translation committishes.. @end ignore -@c \version "2.14.0" +@c \version "2.17.6" @node Text @section Text @@ -98,7 +98,6 @@ articulations, see @rlearning{Placement of objects}. @code{\textLengthOff}. @endpredefined - @seealso Learning Manual: @rlearning{Placement of objects}. @@ -114,20 +113,18 @@ Snippets: Internals Reference: @rinternals{TextScript}. - @cindex text outside margin @cindex margin, text running over @cindex text, keeping inside margin @cindex lyrics, keeping inside margin - @knownissues Checking to make sure that text scripts and lyrics are within the margins requires additonal calculations. In cases where slightly faster performance is desired, use @example -\override Score.PaperColumn #'keep-inside-line = ##f +\override Score.PaperColumn.keep-inside-line = ##f @end example @@ -143,7 +140,7 @@ multiple notes with dotted lines. Such objects, called following syntax: @lilypond[verbatim,quote,relative=2] -\override TextSpanner #'(bound-details left text) = "rit." +\override TextSpanner.bound-details.left.text = "rit." b1\startTextSpan e,\stopTextSpan @end lilypond @@ -158,7 +155,7 @@ obtained using @code{\markup} blocks, as described in @ref{Formatting text}. @lilypond[quote,relative=2,verbatim] -\override TextSpanner #'(bound-details left text) = +\override TextSpanner.bound-details.left.text = \markup { \upright "rit." } b1\startTextSpan c e,\stopTextSpan @@ -271,6 +268,15 @@ c1 c c c @end lilypond +@funindex \markLengthOn +@funindex markLengthOn +@funindex \markLengthOff +@funindex markLengthOff + +@predefined +@code{\markLengthOn}, +@code{\markLengthOff}. +@endpredefined @snippets @@ -283,7 +289,6 @@ c c @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {printing-marks-on-every-staff.ly} - @seealso Notation Reference: @ref{Rehearsal marks}, @@ -348,12 +353,12 @@ requires, are described in @ref{Multi-page markup}. @funindex \markup @funindex markup -@funindex \markuplines -@funindex markuplines +@funindex \markuplist +@funindex markuplist @predefined @code{\markup}, -@code{\markuplines}. +@code{\markuplist}. @endpredefined @@ -362,7 +367,6 @@ requires, are described in @ref{Multi-page markup}. @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle] {stand-alone-two-column-markup.ly} - @seealso Notation Reference: @ref{Formatting text}, @@ -482,7 +486,6 @@ allegro = \markup { \bold \large Allegro } An exhaustive list of @code{\markup}-specific commands can be found in @ref{Text markup commands}. - @seealso Notation Reference: @ref{Text markup commands}. @@ -493,7 +496,6 @@ Snippets: Installed Files: @file{scm/markup.scm}. - @knownissues Syntax errors for markup mode can be confusing. @@ -527,6 +529,7 @@ f1 d2 r @cindex font size @cindex text size +@funindex \abs-fontsize @funindex \fontsize @funindex fontsize @funindex \smaller @@ -536,38 +539,41 @@ f1 d2 r @funindex \magnify @funindex magnify -The size of the characters can also be altered in different ways: -@itemize -@item -the font size can be set to predefined standard sizes, +The font size can be altered, relative to the global staff size, in a +number of different ways -@item -the font size can be set to an absolute value, +It can be set to predefined size, -@item -the font size can also be changed relatively to its previous value. -@end itemize +@lilypond[quote,verbatim,relative=2] +b1_\markup { \huge Sinfonia } +b1^\markup { \teeny da } +b1-\markup { \normalsize camera } +@end lilypond -@noindent -The following example demonstrates these three methods: +It can be set relative to its previous value, -@lilypond[quote,verbatim,relative=1] -f1_\markup { - \tiny espressivo - \large e - \normalsize intenso -} -a^\markup { - \fontsize #5 Sinfonia - \fontsize #2 da - \fontsize #3 camera -} -bes^\markup { (con - \larger grande - \smaller emozione - \magnify #0.6 { e sentimento } ) -} -d c2 r8 c bes a g1 +@lilypond[quote,verbatim,relative=2] +b1_\markup { \larger Sinfonia } +b1^\markup { \smaller da } +b1-\markup { \magnify #0.6 camera } +@end lilypond + +It can be increased or decreased relative to the value set by the +global staff size, + +@lilypond[quote,verbatim,relative=2] +b1_\markup { \fontsize #-2 Sinfonia } +b1^\markup { \fontsize #1 da } +b1-\markup { \fontsize #3 camera } +@end lilypond + +It can also be set to a fixed point-size, regardless of the global staff +size, + +@lilypond[quote,verbatim,relative=2] +b1_\markup { \abs-fontsize #20 Sinfonia } +b1^\markup { \abs-fontsize #8 da } +b1-\markup { \abs-fontsize #14 camera } @end lilypond @cindex subscript @@ -577,6 +583,8 @@ d c2 r8 c bes a g1 @funindex super @funindex \sub @funindex sub +@funindex \normal-size-super +@funindex normal-size-super Text may be printed as subscript or superscript. By default these are printed in a smaller size, but a normal size can be used as well: @@ -671,7 +679,6 @@ Defining custom font sets is also possible, as explained in @code{\larger}. @endpredefined - @seealso Notation Reference: @ref{Font}, @@ -679,15 +686,15 @@ Notation Reference: @ref{Manual repeat marks}, @ref{Fonts}. +Installed Files: +@file{scm/define-markup-commands.scm}. + Snippets: @rlsr{Text}. Internals Reference: @rinternals{TextScript}. -Installed Files: -@file{scm/define-markup-commands.scm}. - @knownissues Using the font sizing commands @code{\teeny}, @code{\tiny}, @code{\small}, @code{\normalsize}, @code{\large}, and @@ -933,7 +940,6 @@ as shown in the following example. An exhaustive list of text alignment commands can be found in @ref{Align}. - @seealso Learning Manual: @rlearning{Moving objects}. @@ -942,15 +948,15 @@ Notation Reference: @ref{Align}, @ref{Text marks}. +Installed Files: +@file{scm/define-markup-commands.scm}. + Snippets: @rlsr{Text}. Internals Reference: @rinternals{TextScript}. -Installed Files: -@file{scm/define-markup-commands.scm}. - @node Graphic notation inside markup @unnumberedsubsubsec Graphic notation inside markup @@ -1117,23 +1123,22 @@ c An exhaustive list of graphics-specific commands can be found in @ref{Graphic}. - @seealso Notation Reference: @ref{Graphic}, @ref{Editorial annotations}, @ref{Align}. +Installed Files: +@file{scm/define-markup-commands.scm}, +@file{scm/stencil.scm}. + Snippets: @rlsr{Text}. Internals Reference: @rinternals{TextScript}. -Installed Files: -@file{scm/define-markup-commands.scm}, -@file{scm/stencil.scm}. - @node Music notation inside markup @unnumberedsubsubsec Music notation inside markup @@ -1170,11 +1175,7 @@ in markup mode: @lilypond[quote,verbatim,relative=1] g1 bes -ees-\markup { - \finger 4 - \tied-lyric #"~" - \finger 1 -} +ees\finger \markup \tied-lyric #"4~1" fis_\markup { \dynamic rf } bes^\markup { \beam #8 #0.1 #0.5 @@ -1250,24 +1251,23 @@ c d e f An exhaustive list of music notation related commands can be found in @ref{Music}. - @seealso Notation Reference: @ref{Music}, @ref{The Feta font}, @ref{Fonts explained}. +Installed Files: +@file{scm/define-markup-commands.scm}, +@file{scm/fret-diagrams.scm}, +@file{scm/harp-pedals.scm}. + Snippets: @rlsr{Text}. Internals Reference: @rinternals{TextScript}. -Installed Files: -@file{scm/define-markup-commands.scm}, -@file{scm/fret-diagrams.scm}, -@file{scm/harp-pedals.scm}. - @node Multi-page markup @unnumberedsubsubsec Multi-page markup @@ -1277,8 +1277,8 @@ Installed Files: @cindex markup text, multi-page @cindex text spread over multiple pages -@funindex \markuplines -@funindex markuplines +@funindex \markuplist +@funindex markuplist @funindex \justified-lines @funindex justified-lines @funindex \wordwrap-lines @@ -1289,7 +1289,7 @@ makes it possible to enter lines of text that can spread over multiple pages: @lilypond[quote,verbatim] -\markuplines { +\markuplist { \justified-lines { A very long text of justified lines. ... @@ -1315,29 +1315,27 @@ a list of markup lists. An exhaustive list of markup list commands can be found in @ref{Text markup list commands}. - @seealso Notation Reference: -@ref{Text markup list commands}, - -Snippets: -@rlsr{Text}. +@ref{Text markup list commands}. -Extending: +Extending LilyPond: @rextend{New markup list command definition}. -Internals Reference: -@rinternals{TextScript}. - Installed Files: @file{scm/define-markup-commands.scm}. +Snippets: +@rlsr{Text}. + +Internals Reference: +@rinternals{TextScript}. -@funindex \markuplines -@funindex markuplines +@funindex \markuplist +@funindex markuplist @predefined -@code{\markuplines}. +@code{\markuplist}. @endpredefined @@ -1410,12 +1408,12 @@ series and sizes. The value supplied to @code{font-size} is the required change from the default size. @lilypond[quote,verbatim,relative=2] -\override Score.RehearsalMark #'font-family = #'typewriter +\override Score.RehearsalMark.font-family = #'typewriter \mark \markup "Ouverture" -\override Voice.TextScript #'font-shape = #'italic -\override Voice.TextScript #'font-series = #'bold +\override Voice.TextScript.font-shape = #'italic +\override Voice.TextScript.font-series = #'bold d2.^\markup "Allegro" -\override Voice.TextScript #'font-size = #-3 +\override Voice.TextScript.font-size = #-3 c4^smaller @end lilypond @@ -1450,7 +1448,6 @@ Although it is easy to switch between preconfigured fonts, it is also possible to use other fonts, as explained in the following sections: @ref{Single entry fonts} and @ref{Entire document fonts}. - @seealso Notation Reference: @ref{The Feta font}, @@ -1467,8 +1464,8 @@ Any font that is installed on the operating system and recognized by FontConfig may be used in a score, using the following syntax: @lilypond[quote,verbatim,relative=2] -\override Staff.TimeSignature #'font-name = #"Bitstream Charter" -\override Staff.TimeSignature #'font-size = #2 +\override Staff.TimeSignature.font-name = #"Bitstream Charter" +\override Staff.TimeSignature.font-size = #2 \time 3/4 a1_\markup { @@ -1491,7 +1488,6 @@ operating system: lilypond -dshow-available-fonts x @end example - @seealso Notation Reference: @ref{Fonts explained}, @@ -1510,8 +1506,9 @@ Snippets: It is possible to change the fonts to be used as the default fonts in the @emph{roman}, @emph{sans} and @emph{typewriter} font families by -specifying them, in that order, as shown in the example below. For an -explanation of fonts, see @ref{Fonts explained}. +specifying them, in that order, as shown in the example below, which +automatically scales the fonts with the value set for the global staff +size. For an explanation of fonts, see @ref{Fonts explained}. @cindex font families, setting @cindex fonts, changing for entire document @@ -1520,12 +1517,11 @@ explanation of fonts, see @ref{Fonts explained}. @lilypond[verbatim,quote] \paper { - myStaffSize = #20 #(define fonts (make-pango-font-tree "Times New Roman" "Nimbus Sans" "Luxi Mono" - (/ myStaffSize 20))) + (/ staff-height pt 20))) } \relative c'{ @@ -1539,7 +1535,6 @@ explanation of fonts, see @ref{Fonts explained}. @c we don't do Helvetica / Courier, since GS incorrectly loads @c Apple TTF fonts - @seealso Notation Reference: @ref{Fonts explained},