1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
4 Translation of GIT committish: 76ee88f5adfc7bcd8eff487543e3605e43a93d80
6 When revising a translation, copy the HEAD committish of the
7 version that you are working on. For details, see the Contributors'
8 Guide, node Updating translation committishes..
14 @c Translators: Masamichi Hosoda, Yoshiki Sawada
15 @c Translation status: post-GDP
22 @lilypondfile[quote]{text-headword.ly}
25 楽譜に (さまざまなフォーマットの) テキストを含める方法について説明します。
28 ここでは扱わないいくつかのテキスト要素については他のセクションで説明します:
29 @ref{Vocal music}, @ref{Titles and headers}。
39 @translationof Writing text
41 このセクションでは、楽譜にテキストを付け加えるいくつかの方法を紹介します。
43 @cindex Text, other languages (他の言語のテキスト)
44 @warning{アクセント付きのテキストや特殊なテキスト
45 (他の言語の文字など) を記述するには、@c
46 単純にその文字を直接 LilyPond ファイルに挿入します。@c
47 ファイルは UTF-8 で保存しなければなりません。@c
48 更なる情報は @ref{Text encoding} を参照してください。}
59 @unnumberedsubsubsec テキスト スクリプト
60 @translationof Text scripts
62 @cindex Text scripts (テキスト スクリプト)
63 @cindex text items, non-empty (空ではないテキスト アイテム)
64 @cindex non-empty texts (空ではないテキスト)
65 @cindex quoted text (引用符で囲まれたテキスト)
68 シンプルな @qq{引用符で囲まれたテキスト} 指示を楽譜に@c
70 そのような指示は、@ref{Direction and placement} で説明する構文を用いて、@c
71 手動で譜の上または下に配置することができます。
73 @lilypond[quote,verbatim]
74 \relative { a'8^"pizz." g f e a4-"scherz." f }
78 @ref{テキストをフォーマットする} で記述されているように、@c
79 @code{\markup} ブロックを用いて明示的に、@c
80 より複雑なテキスト フォーマットを音符に付け加えることができます。
82 @lilypond[quote,verbatim]
84 a'8^\markup { \italic pizz. } g f e
85 a4_\markup { \tiny scherz. \bold molto } f }
88 デフォルトでは、テキスト指示は音符の間隔に影響を与えません。@c
89 しかしながら、テキスト指示の幅を考慮に入れることもできます:
90 以下の例では、最初のテキスト文字列は音符の間隔に影響を与えていませんが、@c
91 2 番目のテキスト文字列は影響を与えています。
93 @lilypond[quote,verbatim]
102 アーティキュレーションを音符に付けることもできます。@c
103 更なる情報は @ref{アーティキュレーションと装飾} を参照してください。
105 テキスト スクリプトとアーティキュレーションの順序についての更なる情報は
106 @rlearning{オブジェクトの配置} を参照してください。
108 @funindex \textLengthOn
109 @funindex \textLengthOff
112 @code{\textLengthOn},
113 @code{\textLengthOff}
118 @rlearning{オブジェクトの配置}
122 @ref{Direction and placement},
129 @rinternals{TextScript}
131 @cindex text outside margin (マージンからはみ出すテキスト)
132 @cindex margin, text running over (マージンからはみ出すテキスト)
133 @cindex text, keeping inside margin (テキストをマージン内に収める)
134 @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]
162 \override TextSpanner.bound-details.left.text = "rit."
168 @cindex text spanners, formatting (テキスト スパナ フォーマット)
169 @cindex formatting text spanners (テキスト スパナ フォーマット)
172 譜刻される文字列はオブジェクト プロパティを通じてセットされます。@c
173 デフォルトでは文字列はイタリック体で譜刻されます。@c
174 しかしながら、@ref{テキストをフォーマットする} で記述されているように、@c
175 @code{\markup} ブロックを用いることで他の書体にすることができます。
177 @lilypond[quote,verbatim]
179 \override TextSpanner.bound-details.left.text =
180 \markup { \upright "rit." }
187 線のスタイルもオブジェクト プロパティとして定義することができます。@c
188 線スタイルの構文は @ref{Line styles} で記述されています。
190 @funindex \textSpannerUp
191 @funindex \textSpannerDown
192 @funindex \textSpannerNeutral
196 @code{\textSpannerUp},
197 @code{\textSpannerDown},
198 @code{\textSpannerNeutral}
202 LilyPond が処理できるテキスト スパナは 1 ボイスにつき、1 つだけです。
206 @lilypondfile[verbatim,quote,texidoc,doctitle]
207 {dynamics-text-spanner-postfix.ly}
209 @lilypondfile[verbatim,quote,texidoc,doctitle]
210 {dynamics-custom-text-spanner-postfix.ly}
220 @rlsr{Expressive marks}
223 @rinternals{TextSpanner}
227 @unnumberedsubsubsec テキスト マーク
228 @translationof Text marks
231 @cindex text marks (テキスト マーク)
232 @cindex marks, tex (テキスト マーク)
233 @cindex text on bar line (小節線上のテキスト)
234 @cindex coda on bar line (小節線上のコーダ)
235 @cindex segno on bar line (小節線上のセーニョ)
236 @cindex fermata on bar line (小節線上のフェルマータ)
237 @cindex bar lines, symbols on (小節線上のシンボル)
242 @ref{リハーサル記号} で記述されている構文を用いて、@c
243 さまざまなテキスト要素を楽譜に付け加えることができます:
245 @c \mark needs to be placed on a separate line (it's not
246 @c attached to an object like \markup is). -vv
248 @lilypond[verbatim,quote]
257 任意のテキストを小節線上に配置することが可能です。@c
258 @ref{テキストをフォーマットする} で記述されているように、@c
259 @code{\markup} ブロックを用いてより複雑なテキスト フォーマットを@c
262 @lilypond[quote,verbatim]
265 \mark \markup { \italic { colla parte } }
272 さらに、@ref{マークアップ内部での音楽記譜法} で説明されているように、@c
273 この構文で適切なシンボル名を指定することによって、@c
274 特殊な記号 -- コーダ、セーニョ、フェルマータなど -- を譜刻することが可能です:
276 @lilypond[quote,verbatim]
279 \mark \markup { \musicglyph #"scripts.ufermata" }
285 このようなオブジェクトを配置できる位置は、@c
287 オブジェクトを小節の終わりで指定するか、途中で指定するか次第で、@c
288 小節線の上に配置されたり、音符の間に配置されたりします。@c
289 改行位置で指定した場合、そのマークは次の行の先頭に譜刻されます。
291 @lilypond[quote,verbatim,ragged-right]
300 @funindex \markLengthOn
301 @funindex \markLengthOff
304 @code{\markLengthOn},
305 @code{\markLengthOff}
310 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
311 {printing-marks-at-the-end-of-a-line.ly}
313 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
314 {printing-marks-on-every-staff.ly}
320 @ref{マークアップ内部での音楽記譜法},
327 @rinternals{MarkEvent},
328 @rinternals{Mark_engraver},
329 @rinternals{RehearsalMark}
333 @unnumberedsubsubsec 独立したテキスト
334 @translationof Separate text
336 @cindex separate text (独立したテキスト)
337 @cindex text, separate (独立したテキスト)
338 @cindex standalone text (孤立したテキスト)
339 @cindex text, standalone (孤立したテキスト)
340 @cindex top-level text (最上位レベルのテキスト)
341 @cindex text, top-level (最上位レベルのテキスト)
345 @code{\markup} ブロックはそれ自体で、@c
346 すべての @code{\score} ブロックの外側に、@c
347 @qq{最上位レベルの表記} として存在することができます。@c
348 この構文は @ref{File structure} で記述されています。
350 @lilypond[verbatim,quote]
352 Tomorrow, and tomorrow, and tomorrow...
357 これによりテキストを音楽から分離して譜刻することが可能になります。@c
358 これは、@ref{Multiple scores in a book} で記述されているように、@c
359 入力ファイルが複数の楽曲を保持している場合に特に有用です。
361 @lilypond[quote,verbatim]
366 Tomorrow, and tomorrow, and tomorrow...
373 独立したテキスト ブロックは複数のページに広がることができます。@c
375 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
378 @ref{複数ページにわたるマークアップ} で記述されています。
382 @funindex \markuplist
391 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
392 {stand-alone-two-column-markup.ly}
397 @ref{File structure},
398 @ref{Multiple scores in a book},
399 @ref{複数ページにわたるマークアップ}
405 @rinternals{TextScript}
409 @subsection テキストをフォーマットする
410 @translationof Formatting text
412 このセクションでは、@code{\markup} モード特有の構文を用いた@c
413 基本的かつ高度なテキスト フォーマットについて説明します。
417 * フォントとフォント サイズを選択する::
419 * マークアップ内部でのグラフィック記譜法::
424 @node テキスト マークアップの導入部
425 @unnumberedsubsubsec テキスト マークアップの導入部
426 @translationof Text markup introduction
428 @cindex markup (マークアップ)
429 @cindex text markup (テキスト マークアップ)
430 @cindex markup text (マークアップ テキスト)
431 @cindex typeset text (テキストの譜刻)
435 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
436 拡張可能な構文でテキストを譜刻するために用いられます。
438 @cindex markup expressions (マークアップ表記)
439 @cindex expressions, markup (マークアップ表記)
440 @cindex markup syntax (マークアップ構文)
441 @cindex syntax, markup (マークアップ構文)
443 マークアップ構文は LilyPond の通常の構文と同様です:
444 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
445 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
447 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
448 @code{\markup} ブロックは、@c
449 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
450 マークアップ コマンドを保持することができます。@c
451 そのようなコマンドは直後の表記にのみ影響を与えます。
453 @lilypond[quote,verbatim]
456 a2^\markup { poco \italic più forte }
458 d2_\markup { \italic "string. assai" }
460 b1^\markup { \bold { molto \italic agitato } }
465 @cindex special characters in markup mode (マークアップ モードでの特殊文字)
466 @cindex markup mode, special characters (マークアップ モードでの特殊文字)
467 @cindex printing reserved characters (予約文字を譜刻する)
468 @cindex reserved characters, printing (予約文字を譜刻する)
469 @cindex printing special characters (特殊文字を譜刻する)
470 @cindex special characters, printing (特殊文字を譜刻する)
471 @cindex quoted text in markup mode (マークアップ モードでの引用譜で囲まれたテキスト)
472 @cindex markup mode, quoted text (マークアップ モードでの引用譜で囲まれたテキスト)
474 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
476 そのような文字列は最小のテキスト表記として扱われます。@c
477 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
478 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
479 そのまま (逐語的に) 譜刻されます。@c
481 それ自体の前にバックスラッシュを置くことによって譜刻されます。
483 @lilypond[quote,verbatim]
485 a'1^"\italic markup..."
486 a_\markup { \italic "... prints \"italic\" letters!" }
492 単語のリストをダブル クォーテーションで囲むか、@c
496 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
499 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
501 @lilypond[quote,verbatim]
503 c1^\markup { \center-column { a bbb c } }
504 c1^\markup { \center-column { a { bbb c } } }
505 c1^\markup { \center-column { a \line { bbb c } } }
506 c1^\markup { \center-column { a "bbb c" } }
510 マークアップを変数に格納することができます。@c
511 そのような変数は直接音符にくっつけることができます:
513 @lilypond[quote,verbatim]
514 allegro = \markup { \bold \large Allegro }
523 @ref{Text markup commands} に
524 @code{\markup} 特有のコマンドの徹底したリストがあります。
528 @ref{Text markup commands}
531 @file{scm/markup.scm}
537 マークアップ モードの構文エラーは混乱しやすいです。
540 @node フォントとフォント サイズを選択する
541 @unnumberedsubsubsec フォントとフォント サイズを選択する
542 @translationof Selecting font and font size
544 @cindex font switching (フォントの切り換え)
545 @cindex changing fonts (フォントを変更する)
546 @cindex switching fonts (フォントを切り換える)
552 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
554 @lilypond[quote,verbatim]
558 \italic { non troppo \underline Vivo }
561 d,_\markup { \italic quasi \smallCaps Tromba }
566 @cindex font size (フォント サイズ)
567 @cindex text size (テキスト サイズ)
569 @funindex \abs-fontsize
575 フォント サイズをいくつかの方法でグローバル譜サイズとの相対値で変更することができます。
577 フォント サイズをあらかじめ定義されているサイズに設定することができます:
579 @lilypond[quote,verbatim]
581 b1_\markup { \huge Sinfonia }
582 b1^\markup { \teeny da }
583 b1-\markup { \normalsize camera }
587 フォント サイズを前の値との相対関係で設定することができます:
589 @lilypond[quote,verbatim]
591 b1_\markup { \larger Sinfonia }
592 b1^\markup { \smaller da }
593 b1-\markup { \magnify #0.6 camera }
597 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは縮小させる@c
600 @lilypond[quote,verbatim]
602 b1_\markup { \fontsize #-2 Sinfonia }
603 b1^\markup { \fontsize #1 da }
604 b1-\markup { \fontsize #3 camera }
608 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに設定する@c
611 @lilypond[quote,verbatim]
613 b1_\markup { \abs-fontsize #20 Sinfonia }
614 b1^\markup { \abs-fontsize #8 da }
615 b1-\markup { \abs-fontsize #14 camera }
620 各スペースのサイズが他の文字のサイズに適したものになるので、@c
623 @lilypond[quote,verbatim]
624 \markup \fontsize #6 \bold { Sinfonia da camera }
625 \markup \fontsize #6 \bold { "Sinfonia da camera" }
628 @cindex subscript (下付き文字)
629 @cindex superscript (上付き文字)
633 @funindex \normal-size-super
635 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
636 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
639 @lilypond[quote,verbatim]
642 \line { 1 \super st movement }
643 \line { 1 \normal-size-super st movement
644 \sub { (part two) } }
649 @cindex font families (フォント ファミリ)
651 マークアップ モードは代わりのフォント ファミリを選択するための@c
654 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
655 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
657 @lilypond[quote,verbatim]
660 \line { Act \number 1 }
661 \line { \sans { Scene I. } }
662 \line { \typewriter { Verona. An open place. } }
663 \line { Enter \roman Valentine and Proteus. }
669 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
670 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
673 @c \concat is actually documented in Align (it is not
674 @c a font-switching command). But we need it here. -vv
676 フォント切り替えやフォーマット コマンドの中には、@c
678 望まない空白を作り出すものがあります。@c
679 これはテキスト要素をつなげることによって容易に解決できます:
681 @lilypond[quote,verbatim]
685 \concat { 1 \super st }
689 \concat { \dynamic p , }
690 \italic { con dolce espressione }
696 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
699 @ref{フォント} で説明されているように、@c
700 カスタム フォント セットを定義することも可能です。
705 @funindex \normalsize
730 @file{scm/define-markup-commands.scm}
736 @rinternals{TextScript}
739 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
740 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
741 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
745 @unnumberedsubsubsec テキスト揃え
746 @translationof Text alignment
748 @cindex text, aligning (テキストを揃える)
749 @cindex aligning text (テキストを揃える)
750 @cindex aligning markup text (マークアップ テキストを揃える)
751 @cindex markup text, aligning (マークアップ テキストを揃える)
752 @cindex aligning markups (マークアップを揃える)
753 @cindex markups, aligning (マークアップを揃える)
756 マークアップ モードのテキストを配置する方法について説明します。@c
757 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
758 マークアップ オブジェクト全体を移動させることも可能です。
760 @c Padding commands should be mentioned on this page, but
761 @c most of these require \box to be more clearly illustrated. -vv
763 @cindex text, horizontal alignment (テキストを水平方向に揃える)
764 @cindex horizontal text alignment (テキストを水平方向に揃える)
766 @funindex \left-align
767 @funindex \center-align
768 @funindex \right-align
770 マークアップ オブジェクトの揃え方はいくつかあります。@c
771 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
773 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
775 @lilypond[quote,verbatim]
777 d''1-\markup { poco }
779 d-\markup { \left-align poco }
781 d-\markup { \center-align { poco } }
783 d-\markup { \right-align poco }
789 水平方向の揃え方は、数値を使って、微調整することができます:
791 @lilypond[quote,verbatim]
793 a'1-\markup { \halign #-1 poco }
795 a,-\markup { \halign #0 poco }
797 a,-\markup { \halign #0.5 poco }
799 a,-\markup { \halign #2 poco }
804 オブジェクトの中には揃えるためのプロシージャをそれ自身で持っているものがあり、@c
805 それらは上記のコマンドでは影響を受けません。@c
806 @ref{テキスト マーク} の中の例で示されているように、@c
807 そのようなマークアップ オブジェクト全体を移動させることが可能です。
809 @cindex text, vertical alignment (テキストを垂直方向に揃える)
810 @cindex vertical text alignment (テキストを垂直方向に揃える)
816 @c QUERY Should the function of ``\null'' be clarified? rp
818 垂直方向に揃える方法はもう少し複雑です。@c
819 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
820 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
822 移動させる要素の前に @emph{アンカ ポイント}
823 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
825 以下の例では 2 つのケースを示しています。@c
826 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
828 @lilypond[quote,verbatim]
832 \raise #2 { Scène 1 }
837 \lower #4 \bold { Très modéré }
841 \raise #4 \italic { Une forêt. }
847 @funindex \general-align
849 @funindex \translate-scaled
851 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
852 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
853 そのようなコマンドで移動させるオブジェクトの前には@c
856 @lilypond[quote,verbatim]
860 \translate #'(-1 . 2) "Scène 1"
865 \general-align #Y #3.2 \bold "Très modéré"
870 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
876 @cindex multi-line markup (複数行にわたるマークアップ)
877 @cindex markup, multi-line (複数行にわたるマークアップ)
878 @cindex multi-line text (複数行にわたるテキスト)
879 @cindex text, multi-line (複数行にわたるテキスト)
880 @cindex text in columns (縦に積み重ねたテキスト)
881 @cindex columns, text (縦に積み重ねたテキスト)
884 @funindex \center-column
886 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
887 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
890 @lilypond[quote,verbatim]
906 @cindex centering text on the page (テキストをページの中央に揃える)
907 @cindex text, centering on the page (テキストをページの中央に揃える)
908 @cindex markup, centering on the page (マークアップをページの中央に揃える)
912 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
913 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
915 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
917 @lilypond[quote,verbatim]
920 \line { William S. Gilbert }
922 \huge \smallCaps "The Mikado"
924 \smallCaps "The Town of Titipu"
926 \line { Sir Arthur Sullivan }
934 @cindex wordwrapped text (折り返しされたテキスト)
935 @cindex text, wordwrapped (折り返しされたテキスト)
936 @cindex justified text (両端揃えのテキスト)
937 @cindex text, justified (両端揃えのテキスト)
938 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
939 @cindex markup text, justified (両端揃えのマークアップ テキスト)
944 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
945 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
947 @lilypond[quote,verbatim]
950 \line \smallCaps { La vida breve }
951 \line \bold { Acto I }
953 (La escena representa el corral de una casa de
954 gitanos en el Albaicín de Granada. Al fondo una
955 puerta por la que se ve el negro interior de
956 una Fragua, iluminado por los rojos resplandores
961 \line \bold { Acto II }
962 \override #'(line-width . 50)
964 (Calle de Granada. Fachada de la casa de Carmela
965 y su hermano Manuel con grandes ventanas abiertas
966 a través de las que se ve el patio
967 donde se celebra una alegre fiesta)
973 @cindex text alignment commands (テキスト揃えのコマンド)
974 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
975 @cindex alignment, text, commands (テキスト揃えのコマンド)
977 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
981 @rlearning{オブジェクトを移動させる}
988 @file{scm/define-markup-commands.scm}.
994 @rinternals{TextScript}
997 @node マークアップ内部でのグラフィック記譜法
998 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
999 @translationof Graphic notation inside markup
1001 @cindex graphics, embedding (グラフィックを埋め込む)
1002 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
1003 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
1004 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
1005 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
1008 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
1010 @cindex decorating text (テキストを飾り付ける)
1011 @cindex framing text (テキストにフレームを付ける)
1012 @cindex text, framing (テキストにフレームを付ける)
1013 @cindex text, decorating (テキストを飾り付ける)
1014 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1015 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1019 @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
1050 @funindex \pad-to-box
1051 @funindex \pad-around
1053 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1055 パティングの増加は @ref{Align} で徹底的に記述されている@c
1056 マークアップ コマンドを用いて達成できます。
1058 @lilypond[quote,verbatim]
1059 \markup \fill-line {
1061 \box "Charles Ives (1874 - 1954)"
1063 \box \pad-markup #2 "THE UNANSWERED QUESTION"
1064 \box \pad-x #8 "A Cosmic Landscape"
1071 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1072 \bold "Largo to Presto"
1075 "String quartet keeps very even time,
1076 Flute quartet keeps very uneven time."
1080 @cindex graphic notation (グラフィック記譜法)
1081 @cindex symbols, non-musical (音楽要素ではないシンボル)
1082 @cindex non-musical symbols (音楽要素ではないシンボル)
1083 @cindex notation, graphic (グラフィック記譜法)
1086 @funindex \draw-circle
1087 @funindex \filled-box
1089 @funindex \draw-line
1090 @funindex \arrow-head
1092 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1094 そのようなオブジェクトも組み合わせることができます。
1096 @lilypond[quote,verbatim]
1099 \draw-circle #4 #0.4 ##f
1100 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1106 \draw-line #'(0 . 4)
1107 \arrow-head #Y #DOWN ##f
1112 @cindex embedded graphics (埋め込みグラフィック)
1113 @cindex images, embedding (画像を埋め込む)
1114 @cindex graphics, embedding (グラフィックを埋め込む)
1118 @funindex \postscript
1121 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1123 ネイティブの PostScript コードを用いて@c
1124 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1125 このような機能を使う場合、以下で示すように、@c
1126 描画サイズを明示的に指定することを推奨します:
1128 @lilypond[quote,verbatim,fragment]
1131 \epsfile #X #10 #"./context-example.eps"
1132 \with-dimensions #'(0 . 6) #'(0 . 10)
1148 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1158 @file{scm/define-markup-commands.scm},
1159 @file{scm/stencil.scm}
1165 @rinternals{TextScript}
1168 @node マークアップ内部での音楽記譜法
1169 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1170 @translationof Music notation inside markup
1172 @cindex notation inside markup (マークアップ内部の記譜法)
1173 @cindex music inside markup (マークアップ内部の音楽)
1174 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1176 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1179 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1181 @lilypond[quote,verbatim,fragment]
1185 \note-by-number #1 #1 #1.5
1188 \natural \semiflat \flat
1189 \sesquiflat \doubleflat
1193 \natural \semisharp \sharp
1194 \sesquisharp \doublesharp
1199 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1201 @lilypond[quote,verbatim]
1204 ees\finger \markup \tied-lyric #"4~1"
1205 fis_\markup { \dynamic rf }
1218 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1220 @ref{The Feta font} に、@c
1221 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1223 @lilypond[quote,verbatim]
1226 c'^\markup { \musicglyph #"eight" }
1228 c,8._\markup { \musicglyph #"clefs.G_change" }
1230 c2^\markup { \musicglyph #"timesig.neomensural94" }
1234 テキストではない図柄を譜刻するもう 1 つの方法が
1235 @ref{フォントの説明} で記述されています。@c
1236 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1238 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1240 @lilypond[quote,verbatim]
1243 \fret-diagram-terse #"x;x;o;2;3;2;"
1246 \harp-pedal #"^-v|--ov^"
1251 \musicglyph #"accordion.discant"
1253 \raise #0.5 \musicglyph #"accordion.dot"
1254 \raise #1.5 \musicglyph #"accordion.dot"
1259 @c The accordion diagram is actually taken from a snippet.
1262 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1265 @cindex score inside markup (マークアップ内部の楽譜)
1266 @cindex markup, score inside (マークアップ内部の楽譜)
1268 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1270 ネストされる @code{\score} ブロックには
1271 @code{\layout} ブロックを含める必要があります:
1273 @lilypond[quote,verbatim]
1277 \relative { c'4 d e f }
1286 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1291 @ref{The Feta font},
1295 @file{scm/define-markup-commands.scm},
1296 @file{scm/fret-diagrams.scm},
1297 @file{scm/harp-pedals.scm}
1303 @rinternals{TextScript}
1306 @node 複数ページにわたるマークアップ
1307 @unnumberedsubsubsec 複数ページにわたるマークアップ
1308 @translationof Multi-page markup
1310 @cindex multi-page markup (複数ページにわたるマークアップ)
1311 @cindex markup, multi-page (複数ページにわたるマークアップ)
1312 @cindex markup text, multi-page (複数ページにわたるマークアップ テキスト)
1313 @cindex text spread over multiple pages (複数ページに広がるテキスト)
1315 @funindex \markuplist
1316 @funindex \justified-lines
1317 @funindex \wordwrap-lines
1319 標準のマークアップ オブジェクトは分割することができません。@c
1321 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1324 @lilypond[quote,verbatim]
1338 この構文はマークアップのリストを受け付けます。@c
1349 @ref{Text markup list commands} に、@c
1350 マークアップ リスト コマンドの徹底したリストがあります。
1354 @ref{Text markup list commands}
1357 @rextend{New markup list command definition}
1360 @file{scm/define-markup-commands.scm}
1366 @rinternals{TextScript}
1368 @funindex \markuplist
1376 @translationof Fonts
1379 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1388 @unnumberedsubsubsec フォントの説明
1389 @translationof Fonts explained
1392 @cindex fonts, explained (フォントの説明)
1393 @cindex braces, various sizes (さまざまなサイズの波括弧)
1394 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1395 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1397 @funindex font-interface
1399 フォントはいくつかのライブラリを通じて扱われます。@c
1400 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1401 選択されたフォントは Pango を用いて描かれます。
1403 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1406 さまざまな LilyPond @code{feta} 非テキスト フォントを@c
1407 マークアップ モードの中で直接使用することが可能になります:
1409 @lilypond[quote,verbatim,fragment]
1412 \override #'(font-encoding . fetaBraces)
1414 \override #'(font-encoding . fetaText)
1416 \override #'(font-encoding . fetaMusic)
1417 \lookup #"noteheads.s0petrucci"
1424 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1425 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1426 もっと簡単な構文を用いて利用することができます。
1428 @code{fetaBraces} に保持されている図柄を使う場合、@c
1429 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1430 @code{0} から @code{575} までの整数すべてを指定でき、@c
1431 @code{0} は最小の波括弧を提供します。@c
1432 最適な値はトライ&エラーで決定する必要があります。@c
1434 右波括弧は回転によって得ることができます
1435 -- @ref{Rotating objects} を参照してください。
1437 3 ファミリのテキスト フォントが利用可能になっています:
1440 @emph{roman} (serif) フォントの@c
1441 デフォルトは LilyPond Serif (TeX Gyre Schola のエイリアス)です。
1444 デフォルトは LilyPond Sans Serif (TeX Gyre Heros のエイリアス)です。
1446 @emph{typewriter} (monospaced) フォントの@c
1447 デフォルトは LilyPond Monospace (TeX Gyre Cursor のエイリアス)です。
1450 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1451 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1452 デフォルト サイズから変更する場合、@c
1453 @code{font-size} に提供する値が必要となります。
1455 @lilypond[quote,verbatim,fragment]
1456 \override Score.RehearsalMark.font-family = #'typewriter
1457 \mark \markup "Ouverture"
1458 \override Voice.TextScript.font-shape = #'italic
1459 \override Voice.TextScript.font-series = #'bold
1460 d''2.^\markup "Allegro"
1461 \override Voice.TextScript.font-size = #-3
1466 同様の構文をマークアップ モードの中で使用することができます。@c
1467 しかしながら、マークアップ モードの中では、@c
1468 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1469 もっと簡単な構文を使用するほうが良いでしょう:
1471 @lilypond[quote,verbatim]
1475 \override #'(font-shape . italic)
1476 \override #'(font-size . 4)
1480 \override #'(font-family . typewriter)
1482 \override #'(font-series . bold)
1486 \override #'(font-family . sans)
1493 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1494 他のフォントを使用することも可能です。@c
1495 他のフォントを使用する方法は以下のセクションで説明されています:
1496 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1500 @ref{The Feta font},
1501 @ref{マークアップ内部での音楽記譜法},
1502 @ref{Rotating objects},
1503 @ref{フォントとフォント サイズを選択する},
1508 @unnumberedsubsubsec 個々に登録するフォント
1509 @translationof Single entry fonts
1512 オペレーティング システムにインストールされていて、@c
1513 FontConfig に認識されている任意のフォントを@c
1516 @lilypond[quote,verbatim,fragment]
1517 \override Staff.TimeSignature.font-name = #"Bitstream Charter"
1518 \override Staff.TimeSignature.font-size = #2
1522 \override #'(font-name . "Bitstream Vera Sans,sans-serif, Oblique Bold")
1523 { Vera Oblique Bold }
1527 @cindex fonts, finding available (利用可能なフォントを見つける)
1528 @cindex finding available fonts (利用可能なフォントを見つける)
1529 @cindex listing available fonts (利用可能なフォントをリストアップする)
1530 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1532 @var{font-name} はカンマ区切りの @q{フォント} のリストと、@c
1533 スペース区切りの @q{スタイル} のリストを記述できます。@c
1534 リスト中の @q{フォント} がインストールされていて、@c
1535 要求されたグリフを含んでいれば、それが使われます。@c
1536 そうでないなら代わりにリストの @emph{次} のフォントが使われます。
1538 @funindex show-available-fonts
1540 lilypond を以下のオプションを付けて実行すると@c
1541 オペレーティング システムで利用可能な@c
1545 lilypond -dshow-available-fonts x
1556 @c A source file gets never installed...
1558 @c @file{lily/font-config-scheme.cc}.
1562 @unnumberedsubsubsec ドキュメント全体のフォント
1563 @translationof Entire document fonts
1565 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1566 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1567 として使用されるデフォルト フォントを変更することができます。@c
1568 この例ではグローバル譜サイズにセットされた値で自動的にフォントのサイズを@c
1570 @ref{個々に登録するフォント} のように、@c
1571 カンマ区切りの @q{フォント} のリストを記述できます。@c
1572 しかし、フォント @q{スタイル} は記述できません。@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]
1583 (make-pango-font-tree "Times New Roman"
1584 "Nimbus Sans,Nimbus Sans L"
1586 (/ staff-height pt 20)))
1593 \typewriter typewriter. }
1597 @c we don't do Helvetica / Courier, since GS incorrectly loads
1604 @ref{フォントとフォント サイズを選択する},