1 @c -*- coding: utf-8; mode: texinfo; -*-
3 Translation of GIT committish: a35594af4584e56f6dffe15371eeca10449d1a44
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. See TRANSLATION for details.
12 @c Translators: Yoshiki Sawada
13 @c Translation status: post-GDP
20 @lilypondfile[quote]{text-headword.ly}
23 楽譜に (さまざまなフォーマットの) テキストを含める方法について説明します。
26 ここでは扱わないいくつかのテキスト要素については他のセクションで説明します:
27 @ref{Vocal music}, @ref{Titles and headers}。
37 @translationof Writing text
39 このセクションでは、楽譜にテキストを付け加えるいくつかの方法を紹介します。
41 @cindex Text, other languages (他の言語のテキスト)
42 @warning{アクセント付きのテキストや特殊なテキスト
43 (他の言語の文字など) を記述するには、@c
44 単純にその文字を直接 LilyPond ファイルに挿入します。@c
45 ファイルは UTF-8 で保存しなければなりません。@c
46 更なる情報は @ref{Text encoding} を参照してください。}
57 @unnumberedsubsubsec テキスト スクリプト
58 @translationof Text scripts
60 @cindex Text scripts (テキスト スクリプト)
61 @cindex text items, non-empty (空ではないテキスト アイテム)
62 @cindex non-empty texts (空ではないテキスト)
63 @cindex quoted text (引用符で囲まれたテキスト)
66 シンプルな @qq{引用符で囲まれたテキスト} 指示を楽譜に@c
68 そのような指示は、@ref{Direction and placement} で説明する構文を用いて、@c
69 手動で譜の上または下に配置することができます。
71 @lilypond[quote,verbatim,relative=2]
72 a8^"pizz." g f e a4-"scherz." f
76 @ref{テキストをフォーマットする} で記述されているように、@c
77 @code{\markup} ブロックを用いて明示的に、@c
78 より複雑なテキスト フォーマットを音符に付け加えることができます。
80 @lilypond[quote,verbatim,relative=2]
81 a8^\markup { \italic pizz. } g f e
82 a4_\markup { \tiny scherz. \bold molto } f
85 デフォルトでは、テキスト指示は音符の間隔に影響を与えません。@c
86 しかしながら、テキスト指示の幅を考慮に入れることもできます:
87 以下の例では、最初のテキスト文字列は音符の間隔に影響を与えていませんが、@c
88 2 番目のテキスト文字列は影響を与えています。
90 @lilypond[quote,verbatim,relative=2]
97 アーティキュレーションを音符に付けることもできます。@c
98 更なる情報は @ref{アーティキュレーションと装飾} を参照してください。
100 テキスト スクリプトとアーティキュレーションの順序についての更なる情報は
101 @rlearning{オブジェクトの配置} を参照してください。
103 @funindex \textLengthOn
104 @funindex textLengthOn
105 @funindex \textLengthOff
106 @funindex textLengthOff
109 @code{\textLengthOn},
110 @code{\textLengthOff}
115 @rlearning{オブジェクトの配置}
120 @ref{Direction and placement},
127 @rinternals{TextScript}
130 @cindex text outside margin (マージンからはみ出すテキスト)
131 @cindex margin, text running over (マージンからはみ出すテキスト)
132 @cindex text, keeping inside margin (テキストをマージン内に収める)
133 @cindex lyrics, keeping inside margin (歌詞をマージン内に収める)
137 テキスト スクリプトと歌詞がマージンに収まることを保証するためのチェックは@c
139 処理速度を上げる必要がある場合は、以下を用います:
142 \override Score.PaperColumn #'keep-inside-line = ##f
147 @unnumberedsubsubsec テキスト スパナ
148 @translationof Text spanners
150 @cindex Text spanners (テキスト スパナ)
153 -- 例えば @notation{rallentando} や @notation{accelerando} -- は、@c
154 テキストとして記述され、点線で複数の音符の上に伸ばされます。@c
156 -- @qq{スパナ} と呼ばれます -- は、@c
158 ある音符から他の音符までの範囲に作成することができます:
160 @lilypond[verbatim,quote,relative=2]
161 \override TextSpanner #'(bound-details left text) = "rit."
167 譜刻される文字列はオブジェクト プロパティを通じてセットされます。@c
168 デフォルトでは文字列はイタリック体で譜刻されます。@c
169 しかしながら、@ref{テキストをフォーマットする} で記述されているように、@c
170 @code{\markup} ブロックを用いることで他の書体にすることができます。
172 @lilypond[quote,relative=2,verbatim]
173 \override TextSpanner #'(bound-details left text) =
174 \markup { \upright "rit." }
180 線のスタイルもオブジェクト プロパティとして定義することができます。@c
181 線スタイルの構文は @ref{Line styles} で記述されています。
183 @funindex \textSpannerUp
184 @funindex textSpannerUp
185 @funindex \textSpannerDown
186 @funindex textSpannerDown
187 @funindex \textSpannerNeutral
188 @funindex textSpannerNeutral
192 @code{\textSpannerUp},
193 @code{\textSpannerDown},
194 @code{\textSpannerNeutral}.
198 LilyPond が処理できるテキスト スパナは 1 ボイスにつき、1 つだけです。
202 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
203 {dynamics-text-spanner-postfix.ly}
205 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
206 {dynamics-custom-text-spanner-postfix.ly}
217 @rlsr{Expressive marks}
220 @rinternals{TextSpanner}
224 @unnumberedsubsubsec テキスト マーク
225 @translationof Text marks
228 @cindex text marks (テキスト マーク)
229 @cindex marks, tex (テキスト マーク)t
230 @cindex text on bar line (小節線上のテキスト)
231 @cindex coda on bar line (小節線上のコーダ)
232 @cindex segno on bar line (小節線上のセーニョ)
233 @cindex fermata on bar line (小節線上のフェルマータ)
234 @cindex bar lines, symbols on (小節線上のシンボル)
241 @ref{リハーサル記号} で記述されている構文を用いて、@c
242 さまざまなテキスト要素を楽譜に付け加えることができます:
244 @c \mark needs to be placed on a separate line (it's not
245 @c attached to an object like \markup is). -vv
247 @lilypond[verbatim,quote,relative=2]
254 任意のテキストを小節線上に配置することが可能です。@c
255 @ref{テキストをフォーマットする} で記述されているように、@c
256 @code{\markup} ブロックを用いてより複雑なテキスト フォーマットを@c
259 @lilypond[quote,verbatim,relative=1]
261 \mark \markup { \italic { colla parte } }
267 さらに、@ref{マークアップ内部での音楽記譜法} で説明されているように、@c
268 この構文で適切なシンボル名を指定することによって、@c
269 特殊な記号 -- コーダ、セーニョ、フェルマータなど -- を譜刻することが可能です:
271 @lilypond[quote,verbatim,relative=2]
273 \mark \markup { \musicglyph #"scripts.ufermata" }
278 このようなオブジェクトを配置できる位置は、@c
280 オブジェクトを小節の終わりで指定するか、途中で指定するか次第で、@c
281 小節線の上に配置されたり、音符の間に配置されたりします。@c
282 改行位置で指定した場合、そのマークは次の行の先頭に譜刻されます。
284 @lilypond[quote,verbatim,relative=2]
294 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
295 {printing-marks-at-the-end-of-a-line.ly}
297 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
298 {aligning-marks-with-various-notation-objects.ly}
300 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
301 {printing-marks-on-every-staff.ly}
308 @ref{マークアップ内部での音楽記譜法},
315 @rinternals{MarkEvent},
316 @rinternals{Mark_engraver},
317 @rinternals{RehearsalMark}
321 @unnumberedsubsubsec 独立したテキスト
322 @translationof Separate text
324 @cindex separate text (独立したテキスト)
325 @cindex text, separate (独立したテキスト)
326 @cindex standalone text (孤立したテキスト)
327 @cindex text, standalone (孤立したテキスト)
328 @cindex top-level text (最上位レベルのテキスト)
329 @cindex text, top-level (最上位レベルのテキスト)
334 @code{\markup} ブロックはそれ自体で、@c
335 すべての @code{\score} ブロックの外側に、@c
336 @qq{最上位レベルの表記} として存在することができます。@c
337 この構文は @ref{File structure} で記述されています。
339 @lilypond[verbatim,quote]
341 Tomorrow, and tomorrow, and tomorrow...
346 これによりテキストを音楽から分離して譜刻することが可能になります。@c
347 これは、@ref{Multiple scores in a book} で記述されているように、@c
348 入力ファイルが複数の楽曲を保持している場合に特に有用です。
350 @lilypond[quote,verbatim]
355 Tomorrow, and tomorrow, and tomorrow...
362 独立したテキスト ブロックは複数のページに広がることができます。@c
364 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
367 @ref{複数ページにわたるマークアップ} で記述されています。
372 @funindex \markuplines
373 @funindex markuplines
383 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
384 {stand-alone-two-column-markup.ly}
389 @ref{File structure},
390 @ref{Multiple scores in a book},
391 @ref{複数ページにわたるマークアップ}
397 @rinternals{TextScript}
401 @subsection テキストをフォーマットする
402 @translationof Formatting text
404 このセクションでは、@code{\markup} モード特有の構文を用いた@c
405 基本的かつ高度なテキスト フォーマットについて説明します。
409 * フォントとフォント サイズを選択する::
411 * マークアップ内部でのグラフィック記譜法::
416 @node テキスト マークアップの導入部
417 @unnumberedsubsubsec テキスト マークアップの導入部
418 @translationof Text markup introduction
420 @cindex markup (マークアップ)
421 @cindex text markup (テキスト マークアップ)
422 @cindex markup text (マークアップ テキスト)
423 @cindex typeset text (テキストの譜刻)
428 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
429 拡張可能な構文でテキストを譜刻するために用いられます。
431 @cindex markup expressions (マークアップ表記)
432 @cindex expressions, markup (マークアップ表記)
433 @cindex markup syntax (マークアップ構文)
434 @cindex syntax, markup (マークアップ構文)
436 マークアップ構文は LilyPond の通常の構文と同様です:
437 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
438 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
440 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
441 @code{\markup} ブロックは、@c
442 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
443 マークアップ コマンドを保持することができます。@c
444 そのようなコマンドは直後の表記にのみ影響を与えます。
446 @lilypond[quote,verbatim,relative=2]
448 a2^\markup { poco \italic più forte }
450 d2_\markup { \italic "string. assai" }
452 b1^\markup { \bold { molto \italic agitato } }
456 @cindex special characters in markup mode (マークアップ モードでの特殊文字)
457 @cindex markup mode, special characters (マークアップ モードでの特殊文字)
458 @cindex printing reserved characters (予約文字を譜刻する)
459 @cindex reserved characters, printing (予約文字を譜刻する)
460 @cindex printing special characters (特殊文字を譜刻する)
461 @cindex special characters, printing (特殊文字を譜刻する)
462 @cindex quoted text in markup mode (マークアップ モードでの引用譜で囲まれたテキスト)
463 @cindex markup mode, quoted text (マークアップ モードでの引用譜で囲まれたテキスト)
465 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
467 そのような文字列は最小のテキスト表記として扱われます。@c
468 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
469 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
470 そのまま (逐語的に) 譜刻されます。@c
472 それ自体の前にバックスラッシュを置くことによって譜刻されます。
474 @lilypond[quote,verbatim,relative=2]
475 a1^"\italic markup..."
476 a_\markup { \italic "... prints \"italic\" letters!" }
481 単語のリストをダブル クォーテーションで囲むか、@c
485 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
488 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
490 @lilypond[quote,verbatim,relative=2]
491 c1^\markup { \center-column { a bbb c } }
492 c1^\markup { \center-column { a { bbb c } } }
493 c1^\markup { \center-column { a \line { bbb c } } }
494 c1^\markup { \center-column { a "bbb c" } }
497 マークアップを変数に格納することができます。@c
498 そのような変数は直接音符にくっつけることができます:
500 @lilypond[quote,verbatim]
501 allegro = \markup { \bold \large Allegro }
511 @ref{Text markup commands} に
512 @code{\markup} 特有のコマンドの徹底したリストがあります。
517 @ref{Text markup commands}
523 @file{scm/markup.scm}
527 マークアップ モードの構文エラーは混乱しやすいです。
530 @node フォントとフォント サイズを選択する
531 @unnumberedsubsubsec フォントとフォント サイズを選択する
532 @translationof Selecting font and font size
534 @cindex font switching (フォントの切り換え)
535 @cindex changing fonts (フォントを変更する)
536 @cindex switching fonts (フォントを切り換える)
545 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
547 @lilypond[quote,verbatim,relative=2]
550 \italic { non troppo \underline Vivo }
553 d,_\markup { \italic quasi \smallCaps Tromba }
557 @cindex font size (フォント サイズ)
558 @cindex text size (テキスト サイズ)
569 文字のサイズもいくつかの方法で変更することができます:
572 フォント サイズをあらかじめ定義されている標準サイズに設定することができます。
575 フォント サイズを絶対値で設定することができます。
578 さらに、フォント サイズを現在の値からの相対値で設定することができます。
582 以下の例は、これら 3 つの方法の使用例です:
584 @lilypond[quote,verbatim,relative=1]
591 \fontsize #5 Sinfonia
598 \magnify #0.6 { e sentimento } )
603 @cindex subscript (下付き文字)
604 @cindex superscript (上付き文字)
611 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
612 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
615 @lilypond[quote,verbatim]
618 \line { 1 \super st movement }
619 \line { 1 \normal-size-super st movement
620 \sub { (part two) } }
625 @cindex font families (フォント ファミリ)
627 マークアップ モードは代わりのフォント ファミリを選択するための@c
630 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
631 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
633 @lilypond[quote,verbatim]
636 \line { Act \number 1 }
637 \line { \sans { Scene I. } }
638 \line { \typewriter { Verona. An open place. } }
639 \line { Enter \roman Valentine and Proteus. }
645 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
646 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
649 @c \concat is actually documented in Align (it is not
650 @c a font-switching command). But we need it here. -vv
652 フォント切り替えやフォーマット コマンドの中には、@c
654 望まない空白を作り出すものがあります。@c
655 これはテキスト要素をつなげることによって容易に解決できます:
657 @lilypond[quote,verbatim]
661 \concat { 1 \super st }
665 \concat { \dynamic p , }
666 \italic { con dolce espressione }
672 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
675 @ref{フォント} で説明されているように、@c
676 カスタム フォント セットを定義することも可能です。
684 @funindex \normalsize
719 @rinternals{TextScript}
722 @file{scm/define-markup-commands.scm}
725 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
726 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
727 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
731 @unnumberedsubsubsec テキスト揃え
732 @translationof Text alignment
734 @cindex text, aligning (テキストを揃える)
735 @cindex aligning text (テキストを揃える)
736 @cindex aligning markup text (マークアップ テキストを揃える)
737 @cindex markup text, aligning (マークアップ テキストを揃える)
738 @cindex aligning markups (マークアップを揃える)
739 @cindex markups, aligning (マークアップを揃える)
742 マークアップ モードのテキストを配置する方法について説明します。@c
743 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
744 マークアップ オブジェクト全体を移動させることも可能です。
746 @c Padding commands should be mentioned on this page, but
747 @c most of these require \box to be more clearly illustrated. -vv
749 @cindex text, horizontal alignment (テキストを水平方向に揃える)
750 @cindex horizontal text alignment (テキストを水平方向に揃える)
752 @funindex \left-align
754 @funindex \center-align
755 @funindex center-align
756 @funindex \right-align
757 @funindex right-align
759 マークアップ オブジェクトの揃え方はいくつかあります。@c
760 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
762 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
764 @lilypond[quote,verbatim,relative=2]
767 d-\markup { \left-align poco }
769 d-\markup { \center-align { poco } }
771 d-\markup { \right-align poco }
777 水平方向の揃え方は、数値を使って、微調整することができます:
779 @lilypond[quote,verbatim,relative=2]
780 a1-\markup { \halign #-1 poco }
782 a,-\markup { \halign #0 poco }
784 a,-\markup { \halign #0.5 poco }
786 a,-\markup { \halign #2 poco }
790 オブジェクトの中には揃えるためのプロシージャをそれ自身で持っているものがあり、@c
791 それらは上記のコマンドでは影響を受けません。@c
792 @ref{テキスト マーク} の中の例で示されているように、@c
793 そのようなマークアップ オブジェクト全体を移動させることが可能です。
795 @cindex text, vertical alignment (テキストを垂直方向に揃える)
796 @cindex vertical text alignment (テキストを垂直方向に揃える)
805 @c QUERY Should the function of ``\null'' be clarified? rp
807 垂直方向に揃える方法はもう少し複雑です。@c
808 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
809 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
811 移動させる要素の前に @emph{アンカ ポイント}
812 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
814 以下の例では 2 つのケースを示しています。@c
815 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
817 @lilypond[quote,verbatim,relative=1]
820 \raise #2 { Scène 1 }
825 \lower #4 \bold { Très modéré }
829 \raise #4 \italic { Une forêt. }
834 @funindex \general-align
835 @funindex general-align
838 @funindex \translate-scaled
839 @funindex translate-scaled
841 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
842 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
843 そのようなコマンドで移動させるオブジェクトの前には@c
846 @lilypond[quote,verbatim,relative=1]
849 \translate #'(-1 . 2) "Scène 1"
854 \general-align #Y #3.2 \bold "Très modéré"
859 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
864 @cindex multi-line markup (複数行にわたるマークアップ)
865 @cindex markup, multi-line (複数行にわたるマークアップ)
866 @cindex multi-line text (複数行にわたるテキスト)
867 @cindex text, multi-line (複数行にわたるテキスト)
868 @cindex text in columns (縦に積み重ねたテキスト)
869 @cindex columns, text (縦に積み重ねたテキスト)
873 @funindex \center-column
874 @funindex center-column
876 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
877 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
880 @lilypond[quote,verbatim]
896 @cindex centering text on the page (テキストをページの中央に揃える)
897 @cindex text, centering on the page (テキストをページの中央に揃える)
898 @cindex centering markup on the page (マークアップをページの中央に揃える)
899 @cindex markup, centering on the page (マークアップをページの中央に揃える)
904 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
905 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
907 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
909 @lilypond[quote,verbatim]
912 \line { William S. Gilbert }
914 \huge \smallCaps "The Mikado"
916 \smallCaps "The Town of Titipu"
918 \line { Sir Arthur Sullivan }
926 @cindex wordwrapped text (折り返しされたテキスト)
927 @cindex text, wordwrapped (折り返しされたテキスト)
928 @cindex justified text (両端揃えのテキスト)
929 @cindex text, justified (両端揃えのテキスト)
930 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
931 @cindex markup text, justified (両端揃えのマークアップ テキスト)
938 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
939 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
941 @lilypond[quote,verbatim]
944 \line \smallCaps { La vida breve }
945 \line \bold { Acto I }
947 (La escena representa el corral de una casa de
948 gitanos en el AlbaicÃn de Granada. Al fondo una
949 puerta por la que se ve el negro interior de
950 una Fragua, iluminado por los rojos resplandores
955 \line \bold { Acto II }
956 \override #'(line-width . 50)
958 (Calle de Granada. Fachada de la casa de Carmela
959 y su hermano Manuel con grandes ventanas abiertas
960 a través de las que se ve el patio
961 donde se celebra una alegre fiesta)
967 @cindex text alignment commands (テキスト揃えのコマンド)
968 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
969 @cindex alignment, text, commands (テキスト揃えのコマンド)
971 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
976 @rlearning{オブジェクトを移動させる}
986 @rinternals{TextScript}
989 @file{scm/define-markup-commands.scm}.
992 @node マークアップ内部でのグラフィック記譜法
993 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
994 @translationof Graphic notation inside markup
996 @cindex graphics, embedding (グラフィックを埋め込む)
997 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
998 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
999 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
1000 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
1003 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
1005 @cindex decorating text (テキストを飾り付ける)
1006 @cindex framing text (テキストにフレームを付ける)
1007 @cindex text, framing (テキストにフレームを付ける)
1008 @cindex text, decorating (テキストを飾り付ける)
1009 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1010 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1016 @funindex \rounded-box
1017 @funindex rounded-box
1024 マークアップ コマンドの中にはテキスト要素を@c
1025 グラフィックスで飾り付けることができるものがあります。
1027 @lilypond[quote,verbatim]
1028 \markup \fill-line {
1036 \bracket "1866 - 1925"
1039 \rounded-box \bold Prelude
1044 @cindex padding around text (テキストの周りのパディング)
1045 @cindex text padding (テキスト パディング)
1046 @cindex markup text padding (マークアップ テキスト パディング)
1048 @funindex \pad-markup
1049 @funindex pad-markup
1052 @funindex \pad-to-box
1053 @funindex pad-to-box
1054 @funindex \pad-around
1055 @funindex pad-around
1057 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1059 パティングの増加は @ref{Align} で徹底的に記述されている@c
1060 マークアップ コマンドを用いて達成できます。
1062 @lilypond[quote,verbatim]
1063 \markup \fill-line {
1065 \box "Charles Ives (1874 - 1954)"
1067 \box \pad-markup #2 "THE UNANSWERED QUESTION"
1068 \box \pad-x #8 "A Cosmic Landscape"
1075 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1076 \bold "Largo to Presto"
1079 "String quartet keeps very even time,
1080 Flute quartet keeps very uneven time."
1084 @cindex graphic notation (グラフィック記譜法)
1085 @cindex symbols, non-musical (音楽要素ではないシンボル)
1086 @cindex non-musical symbols (音楽要素ではないシンボル)
1087 @cindex notation, graphic (グラフィック記譜法)
1091 @funindex \draw-circle
1092 @funindex draw-circle
1093 @funindex \filled-box
1094 @funindex filled-box
1097 @funindex \draw-line
1099 @funindex \arrow-head
1100 @funindex arrow-head
1102 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1104 そのようなオブジェクトも組み合わせることができます。
1106 @lilypond[quote,verbatim]
1109 \draw-circle #4 #0.4 ##f
1110 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1116 \draw-line #'(0 . 4)
1117 \arrow-head #Y #DOWN ##f
1122 @cindex embedded graphics (埋め込みグラフィック)
1123 @cindex images, embedding (画像を埋め込む)
1124 @cindex graphics, embedding (グラフィックを埋め込む)
1129 @funindex \postscript
1130 @funindex postscript
1133 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1135 ネイティブの PostScript コードを用いて@c
1136 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1137 このような機能を使う場合、以下で示すように、@c
1138 描画サイズを明示的に指定することを推奨します:
1140 @lilypond[quote,verbatim,relative=1]
1143 \epsfile #X #10 #"./context-example.eps"
1144 \with-dimensions #'(0 . 6) #'(0 . 10)
1160 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1173 @rinternals{TextScript}
1176 @file{scm/define-markup-commands.scm},
1177 @file{scm/stencil.scm}
1180 @node マークアップ内部での音楽記譜法
1181 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1182 @translationof Music notation inside markup
1184 @cindex notation inside markup (マークアップ内部の記譜法)
1185 @cindex music inside markup (マークアップ内部の音楽)
1186 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1188 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1191 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1193 @lilypond[quote,verbatim,relative=2]
1197 \note-by-number #1 #1 #1.5
1200 \natural \semiflat \flat
1201 \sesquiflat \doubleflat
1205 \natural \semisharp \sharp
1206 \sesquisharp \doublesharp
1211 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1213 @lilypond[quote,verbatim,relative=1]
1220 fis_\markup { \dynamic rf }
1232 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1234 @ref{The Feta font} に、@c
1235 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1237 @lilypond[quote,verbatim,relative=2]
1239 c'^\markup { \musicglyph #"eight" }
1241 c,8._\markup { \musicglyph #"clefs.G_change" }
1243 c2^\markup { \musicglyph #"timesig.neomensural94" }
1247 テキストではない図柄を譜刻するもう 1 つの方法が
1248 @ref{フォントの説明} で記述されています。@c
1249 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1251 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1253 @lilypond[quote,verbatim,relative=2]
1255 \fret-diagram-terse #"x;x;o;2;3;2;"
1258 \harp-pedal #"^-v|--ov^"
1263 \musicglyph #"accordion.discant"
1265 \raise #0.5 \musicglyph #"accordion.dot"
1266 \raise #1.5 \musicglyph #"accordion.dot"
1270 @c The accordion diagram is actually taken from a snippet.
1273 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1276 @cindex score inside markup (マークアップ内部の楽譜)
1277 @cindex markup, score inside (マークアップ内部の楽譜)
1279 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1281 ネストされる @code{\score} ブロックには
1282 @code{\layout} ブロックを含める必要があります:
1284 @lilypond[quote,verbatim,relative=1]
1287 \relative c' { c4 d e f }
1295 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1301 @ref{The Feta font},
1308 @rinternals{TextScript}
1311 @file{scm/define-markup-commands.scm},
1312 @file{scm/fret-diagrams.scm},
1313 @file{scm/harp-pedals.scm}.
1316 @node 複数ページにわたるマークアップ
1317 @unnumberedsubsubsec 複数ページにわたるマークアップ
1318 @translationof Multi-page markup
1320 @cindex multi-page markup (複数ページにわたるマークアップ)
1321 @cindex markup, multi-page (複数ページにわたるマークアップ)
1322 @cindex markup text, multi-page (複数ページにわたるマークアップ テキスト)
1323 @cindex text spread over multiple pages (複数ページに広がるテキスト)
1325 @funindex \markuplines
1326 @funindex markuplines
1327 @funindex \justified-lines
1328 @funindex justified-lines
1329 @funindex \wordwrap-lines
1330 @funindex wordwrap-lines
1332 標準のマークアップ オブジェクトは分割することができません。@c
1334 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1337 @lilypond[quote,verbatim]
1351 この構文はマークアップのリストを受け付けます。@c
1362 @ref{Text markup list commands} に、@c
1363 マークアップ リスト コマンドの徹底したリストがあります。
1368 @ref{Text markup list commands},
1374 @rextend{New markup list command definition}
1377 @rinternals{TextScript}
1380 @file{scm/define-markup-commands.scm}.
1382 @funindex \markuplines
1383 @funindex markuplines
1392 @translationof Fonts
1395 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1404 @unnumberedsubsubsec フォントの説明
1405 @translationof Fonts explained
1408 @cindex fonts, explained (フォントの説明)
1409 @cindex braces, various sizes (さまざまなサイズの波括弧)
1410 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1411 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1413 @funindex font-interface
1415 フォントはいくつかのライブラリを通じて扱われます。@c
1416 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1417 選択されたフォントは Pango を用いて描かれます。
1419 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1422 さまざまな LilyPond @code{feta} 非テキスト フォントを@c
1423 マークアップ モードの中で直接使用することが可能になります:
1425 @lilypond[quote,verbatim,relative=2]
1428 \override #'(font-encoding . fetaBraces)
1430 \override #'(font-encoding . fetaText)
1432 \override #'(font-encoding . fetaMusic)
1433 \lookup #"noteheads.s0petrucci"
1440 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1441 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1442 もっと簡単な構文を用いて利用することができます。
1444 @code{fetaBraces} に保持されている図柄を使う場合、@c
1445 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1446 @code{0} から @code{575} までの整数すべてを指定でき、@c
1447 @code{0} は最小の波括弧を提供します。@c
1448 最適な値はトライ&エラーで決定する必要があります。@c
1450 右波括弧は回転によって得ることができます
1451 -- @ref{Rotating objects} を参照してください。
1453 3 ファミリのテキスト フォントが利用可能になっています:
1454 @emph{roman} (serif) フォント
1455 -- これはデフォルトでは New Century Schoolbook です --
1456 と、@emph{sans} フォントと単一幅の @emph{typewriter} フォント
1457 -- これら 2 つのファミリは Pango のインストール時に決定されます --
1460 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1461 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1462 デフォルト サイズから変更する場合、@c
1463 @code{font-size} に提供する値が必要となります。
1465 @lilypond[quote,verbatim,relative=2]
1466 \override Score.RehearsalMark #'font-family = #'typewriter
1467 \mark \markup "Ouverture"
1468 \override Voice.TextScript #'font-shape = #'italic
1469 \override Voice.TextScript #'font-series = #'bold
1470 d2.^\markup "Allegro"
1471 \override Voice.TextScript #'font-size = #-3
1476 同様の構文をマークアップ モードの中で使用することができます。@c
1477 しかしながら、マークアップ モードの中では、@c
1478 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1479 もっと簡単な構文を使用するほうが良いでしょう:
1481 @lilypond[quote,verbatim]
1485 \override #'(font-shape . italic)
1486 \override #'(font-size . 4)
1490 \override #'(font-family . typewriter)
1492 \override #'(font-series . bold)
1496 \override #'(font-family . sans)
1503 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1504 他のフォントを使用することも可能です。@c
1505 他のフォントを使用する方法は以下のセクションで説明されています:
1506 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1511 @ref{The Feta font},
1512 @ref{マークアップ内部での音楽記譜法},
1513 @ref{Rotating objects},
1514 @ref{フォントとフォント サイズを選択する},
1519 @unnumberedsubsubsec 個々に登録するフォント
1520 @translationof Single entry fonts
1523 オペレーティング システムにインストールされていて、@c
1524 FontConfig に認識されている任意のフォントを@c
1527 @lilypond[quote,verbatim,relative=2]
1528 \override Staff.TimeSignature #'font-name = #"Bitstream Charter"
1529 \override Staff.TimeSignature #'font-size = #2
1533 \override #'(font-name . "Vera Bold")
1538 @cindex fonts, finding available (利用可能なフォントを見つける)
1539 @cindex finding available fonts (利用可能なフォントを見つける)
1540 @cindex listing available fonts (利用可能なフォントをリストアップする)
1541 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1543 @funindex show-available-fonts
1545 以下のコマンドはオペレーティング システムで利用可能な@c
1549 lilypond -dshow-available-fonts x
1561 @c A source file gets never installed...
1563 @c @file{lily/font-config-scheme.cc}.
1567 @unnumberedsubsubsec ドキュメント全体のフォント
1568 @translationof Entire document fonts
1570 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1571 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1572 として使用されるデフォルト フォントを変更することができます。@c
1573 フォントについての説明は、@ref{フォントの説明} を参照してください。
1575 @cindex font families, setting (フォント ファミリを設定する)
1576 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1578 @funindex make-pango-font-tree
1580 @lilypond[verbatim,quote]
1584 (make-pango-font-tree "Times New Roman"
1587 (/ myStaffSize 20)))
1594 \typewriter typewriter. }
1598 @c we don't do Helvetica / Courier, since GS incorrectly loads
1606 @ref{フォントとフォント サイズを選択する},