1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
4 Translation of GIT committish: c1b0482f63f881bd3f67845e5f76a3e04675ef2a
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: 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,relative=2]
74 a8^"pizz." g f e a4-"scherz." f
78 @ref{テキストをフォーマットする} で記述されているように、@c
79 @code{\markup} ブロックを用いて明示的に、@c
80 より複雑なテキスト フォーマットを音符に付け加えることができます。
82 @lilypond[quote,verbatim,relative=2]
83 a8^\markup { \italic pizz. } g f e
84 a4_\markup { \tiny scherz. \bold molto } f
87 デフォルトでは、テキスト指示は音符の間隔に影響を与えません。@c
88 しかしながら、テキスト指示の幅を考慮に入れることもできます:
89 以下の例では、最初のテキスト文字列は音符の間隔に影響を与えていませんが、@c
90 2 番目のテキスト文字列は影響を与えています。
92 @lilypond[quote,verbatim,relative=2]
99 アーティキュレーションを音符に付けることもできます。@c
100 更なる情報は @ref{アーティキュレーションと装飾} を参照してください。
102 テキスト スクリプトとアーティキュレーションの順序についての更なる情報は
103 @rlearning{オブジェクトの配置} を参照してください。
105 @funindex \textLengthOn
106 @funindex textLengthOn
107 @funindex \textLengthOff
108 @funindex textLengthOff
111 @code{\textLengthOn},
112 @code{\textLengthOff}
117 @rlearning{オブジェクトの配置}
121 @ref{Direction and placement},
128 @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 (歌詞をマージン内に収める)
136 テキスト スクリプトと歌詞がマージンに収まることを保証するためのチェックは@c
138 処理速度を上げる必要がある場合は、以下を用います:
141 \override Score.PaperColumn.keep-inside-line = ##f
146 @unnumberedsubsubsec テキスト スパナ
147 @translationof Text spanners
149 @cindex Text spanners (テキスト スパナ)
152 -- 例えば @notation{rallentando} や @notation{accelerando} -- は、@c
153 テキストとして記述され、点線で複数の音符の上に伸ばされます。@c
155 -- @qq{スパナ} と呼ばれます -- は、@c
157 ある音符から他の音符までの範囲に作成することができます:
159 @lilypond[verbatim,quote,relative=2]
160 \override TextSpanner.bound-details.left.text = "rit."
166 譜刻される文字列はオブジェクト プロパティを通じてセットされます。@c
167 デフォルトでは文字列はイタリック体で譜刻されます。@c
168 しかしながら、@ref{テキストをフォーマットする} で記述されているように、@c
169 @code{\markup} ブロックを用いることで他の書体にすることができます。
171 @lilypond[quote,relative=2,verbatim]
172 \override TextSpanner.bound-details.left.text =
173 \markup { \upright "rit." }
179 線のスタイルもオブジェクト プロパティとして定義することができます。@c
180 線スタイルの構文は @ref{Line styles} で記述されています。
182 @funindex \textSpannerUp
183 @funindex textSpannerUp
184 @funindex \textSpannerDown
185 @funindex textSpannerDown
186 @funindex \textSpannerNeutral
187 @funindex textSpannerNeutral
191 @code{\textSpannerUp},
192 @code{\textSpannerDown},
193 @code{\textSpannerNeutral}.
197 LilyPond が処理できるテキスト スパナは 1 ボイスにつき、1 つだけです。
201 @lilypondfile[verbatim,quote,texidoc,doctitle]
202 {dynamics-text-spanner-postfix.ly}
204 @lilypondfile[verbatim,quote,texidoc,doctitle]
205 {dynamics-custom-text-spanner-postfix.ly}
215 @rlsr{Expressive marks}
218 @rinternals{TextSpanner}
222 @unnumberedsubsubsec テキスト マーク
223 @translationof Text marks
226 @cindex text marks (テキスト マーク)
227 @cindex marks, tex (テキスト マーク)t
228 @cindex text on bar line (小節線上のテキスト)
229 @cindex coda on bar line (小節線上のコーダ)
230 @cindex segno on bar line (小節線上のセーニョ)
231 @cindex fermata on bar line (小節線上のフェルマータ)
232 @cindex bar lines, symbols on (小節線上のシンボル)
239 @ref{リハーサル記号} で記述されている構文を用いて、@c
240 さまざまなテキスト要素を楽譜に付け加えることができます:
242 @c \mark needs to be placed on a separate line (it's not
243 @c attached to an object like \markup is). -vv
245 @lilypond[verbatim,quote,relative=2]
252 任意のテキストを小節線上に配置することが可能です。@c
253 @ref{テキストをフォーマットする} で記述されているように、@c
254 @code{\markup} ブロックを用いてより複雑なテキスト フォーマットを@c
257 @lilypond[quote,verbatim,relative=1]
259 \mark \markup { \italic { colla parte } }
265 さらに、@ref{マークアップ内部での音楽記譜法} で説明されているように、@c
266 この構文で適切なシンボル名を指定することによって、@c
267 特殊な記号 -- コーダ、セーニョ、フェルマータなど -- を譜刻することが可能です:
269 @lilypond[quote,verbatim,relative=2]
271 \mark \markup { \musicglyph #"scripts.ufermata" }
276 このようなオブジェクトを配置できる位置は、@c
278 オブジェクトを小節の終わりで指定するか、途中で指定するか次第で、@c
279 小節線の上に配置されたり、音符の間に配置されたりします。@c
280 改行位置で指定した場合、そのマークは次の行の先頭に譜刻されます。
282 @lilypond[quote,verbatim,relative=2]
292 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
293 {printing-marks-at-the-end-of-a-line.ly}
295 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
296 {printing-marks-on-every-staff.ly}
302 @ref{マークアップ内部での音楽記譜法},
309 @rinternals{MarkEvent},
310 @rinternals{Mark_engraver},
311 @rinternals{RehearsalMark}
315 @unnumberedsubsubsec 独立したテキスト
316 @translationof Separate text
318 @cindex separate text (独立したテキスト)
319 @cindex text, separate (独立したテキスト)
320 @cindex standalone text (孤立したテキスト)
321 @cindex text, standalone (孤立したテキスト)
322 @cindex top-level text (最上位レベルのテキスト)
323 @cindex text, top-level (最上位レベルのテキスト)
328 @code{\markup} ブロックはそれ自体で、@c
329 すべての @code{\score} ブロックの外側に、@c
330 @qq{最上位レベルの表記} として存在することができます。@c
331 この構文は @ref{File structure} で記述されています。
333 @lilypond[verbatim,quote]
335 Tomorrow, and tomorrow, and tomorrow...
340 これによりテキストを音楽から分離して譜刻することが可能になります。@c
341 これは、@ref{Multiple scores in a book} で記述されているように、@c
342 入力ファイルが複数の楽曲を保持している場合に特に有用です。
344 @lilypond[quote,verbatim]
349 Tomorrow, and tomorrow, and tomorrow...
356 独立したテキスト ブロックは複数のページに広がることができます。@c
358 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
361 @ref{複数ページにわたるマークアップ} で記述されています。
366 @funindex \markuplist
376 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
377 {stand-alone-two-column-markup.ly}
382 @ref{File structure},
383 @ref{Multiple scores in a book},
384 @ref{複数ページにわたるマークアップ}
390 @rinternals{TextScript}
394 @subsection テキストをフォーマットする
395 @translationof Formatting text
397 このセクションでは、@code{\markup} モード特有の構文を用いた@c
398 基本的かつ高度なテキスト フォーマットについて説明します。
402 * フォントとフォント サイズを選択する::
404 * マークアップ内部でのグラフィック記譜法::
409 @node テキスト マークアップの導入部
410 @unnumberedsubsubsec テキスト マークアップの導入部
411 @translationof Text markup introduction
413 @cindex markup (マークアップ)
414 @cindex text markup (テキスト マークアップ)
415 @cindex markup text (マークアップ テキスト)
416 @cindex typeset text (テキストの譜刻)
421 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
422 拡張可能な構文でテキストを譜刻するために用いられます。
424 @cindex markup expressions (マークアップ表記)
425 @cindex expressions, markup (マークアップ表記)
426 @cindex markup syntax (マークアップ構文)
427 @cindex syntax, markup (マークアップ構文)
429 マークアップ構文は LilyPond の通常の構文と同様です:
430 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
431 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
433 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
434 @code{\markup} ブロックは、@c
435 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
436 マークアップ コマンドを保持することができます。@c
437 そのようなコマンドは直後の表記にのみ影響を与えます。
439 @lilypond[quote,verbatim,relative=2]
441 a2^\markup { poco \italic più forte }
443 d2_\markup { \italic "string. assai" }
445 b1^\markup { \bold { molto \italic agitato } }
449 @cindex special characters in markup mode (マークアップ モードでの特殊文字)
450 @cindex markup mode, special characters (マークアップ モードでの特殊文字)
451 @cindex printing reserved characters (予約文字を譜刻する)
452 @cindex reserved characters, printing (予約文字を譜刻する)
453 @cindex printing special characters (特殊文字を譜刻する)
454 @cindex special characters, printing (特殊文字を譜刻する)
455 @cindex quoted text in markup mode (マークアップ モードでの引用譜で囲まれたテキスト)
456 @cindex markup mode, quoted text (マークアップ モードでの引用譜で囲まれたテキスト)
458 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
460 そのような文字列は最小のテキスト表記として扱われます。@c
461 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
462 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
463 そのまま (逐語的に) 譜刻されます。@c
465 それ自体の前にバックスラッシュを置くことによって譜刻されます。
467 @lilypond[quote,verbatim,relative=2]
468 a1^"\italic markup..."
469 a_\markup { \italic "... prints \"italic\" letters!" }
474 単語のリストをダブル クォーテーションで囲むか、@c
478 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
481 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
483 @lilypond[quote,verbatim,relative=2]
484 c1^\markup { \center-column { a bbb c } }
485 c1^\markup { \center-column { a { bbb c } } }
486 c1^\markup { \center-column { a \line { bbb c } } }
487 c1^\markup { \center-column { a "bbb c" } }
490 マークアップを変数に格納することができます。@c
491 そのような変数は直接音符にくっつけることができます:
493 @lilypond[quote,verbatim]
494 allegro = \markup { \bold \large Allegro }
503 @ref{Text markup commands} に
504 @code{\markup} 特有のコマンドの徹底したリストがあります。
508 @ref{Text markup commands}
511 @file{scm/markup.scm}
517 マークアップ モードの構文エラーは混乱しやすいです。
520 @node フォントとフォント サイズを選択する
521 @unnumberedsubsubsec フォントとフォント サイズを選択する
522 @translationof Selecting font and font size
524 @cindex font switching (フォントの切り換え)
525 @cindex changing fonts (フォントを変更する)
526 @cindex switching fonts (フォントを切り換える)
535 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
537 @lilypond[quote,verbatim,relative=2]
540 \italic { non troppo \underline Vivo }
543 d,_\markup { \italic quasi \smallCaps Tromba }
547 @cindex font size (フォント サイズ)
548 @cindex text size (テキスト サイズ)
550 @funindex \abs-fontsize
560 フォント サイズをいくつかの方法でグローバル譜サイズとの相対値で変更することができます。
562 フォント サイズをあらかじめ定義されているサイズに設定することができます:
564 @lilypond[quote,verbatim,relative=2]
565 b1_\markup { \huge Sinfonia }
566 b1^\markup { \teeny da }
567 b1-\markup { \normalsize camera }
570 フォント サイズを前の値との相対関係で設定することができます:
572 @lilypond[quote,verbatim,relative=2]
573 b1_\markup { \larger Sinfonia }
574 b1^\markup { \smaller da }
575 b1-\markup { \magnify #0.6 camera }
578 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは縮小させる@c
581 @lilypond[quote,verbatim,relative=2]
582 b1_\markup { \fontsize #-2 Sinfonia }
583 b1^\markup { \fontsize #1 da }
584 b1-\markup { \fontsize #3 camera }
587 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに設定する@c
590 @lilypond[quote,verbatim,relative=2]
591 b1_\markup { \abs-fontsize #20 Sinfonia }
592 b1^\markup { \abs-fontsize #8 da }
593 b1-\markup { \abs-fontsize #14 camera }
596 @cindex subscript (下付き文字)
597 @cindex superscript (上付き文字)
603 @funindex \normal-size-super
604 @funindex normal-size-super
606 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
607 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
610 @lilypond[quote,verbatim]
613 \line { 1 \super st movement }
614 \line { 1 \normal-size-super st movement
615 \sub { (part two) } }
620 @cindex font families (フォント ファミリ)
622 マークアップ モードは代わりのフォント ファミリを選択するための@c
625 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
626 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
628 @lilypond[quote,verbatim]
631 \line { Act \number 1 }
632 \line { \sans { Scene I. } }
633 \line { \typewriter { Verona. An open place. } }
634 \line { Enter \roman Valentine and Proteus. }
640 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
641 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
644 @c \concat is actually documented in Align (it is not
645 @c a font-switching command). But we need it here. -vv
647 フォント切り替えやフォーマット コマンドの中には、@c
649 望まない空白を作り出すものがあります。@c
650 これはテキスト要素をつなげることによって容易に解決できます:
652 @lilypond[quote,verbatim]
656 \concat { 1 \super st }
660 \concat { \dynamic p , }
661 \italic { con dolce espressione }
667 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
670 @ref{フォント} で説明されているように、@c
671 カスタム フォント セットを定義することも可能です。
679 @funindex \normalsize
709 @file{scm/define-markup-commands.scm}
715 @rinternals{TextScript}
718 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
719 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
720 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
724 @unnumberedsubsubsec テキスト揃え
725 @translationof Text alignment
727 @cindex text, aligning (テキストを揃える)
728 @cindex aligning text (テキストを揃える)
729 @cindex aligning markup text (マークアップ テキストを揃える)
730 @cindex markup text, aligning (マークアップ テキストを揃える)
731 @cindex aligning markups (マークアップを揃える)
732 @cindex markups, aligning (マークアップを揃える)
735 マークアップ モードのテキストを配置する方法について説明します。@c
736 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
737 マークアップ オブジェクト全体を移動させることも可能です。
739 @c Padding commands should be mentioned on this page, but
740 @c most of these require \box to be more clearly illustrated. -vv
742 @cindex text, horizontal alignment (テキストを水平方向に揃える)
743 @cindex horizontal text alignment (テキストを水平方向に揃える)
745 @funindex \left-align
747 @funindex \center-align
748 @funindex center-align
749 @funindex \right-align
750 @funindex right-align
752 マークアップ オブジェクトの揃え方はいくつかあります。@c
753 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
755 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
757 @lilypond[quote,verbatim,relative=2]
760 d-\markup { \left-align poco }
762 d-\markup { \center-align { poco } }
764 d-\markup { \right-align poco }
770 水平方向の揃え方は、数値を使って、微調整することができます:
772 @lilypond[quote,verbatim,relative=2]
773 a1-\markup { \halign #-1 poco }
775 a,-\markup { \halign #0 poco }
777 a,-\markup { \halign #0.5 poco }
779 a,-\markup { \halign #2 poco }
783 オブジェクトの中には揃えるためのプロシージャをそれ自身で持っているものがあり、@c
784 それらは上記のコマンドでは影響を受けません。@c
785 @ref{テキスト マーク} の中の例で示されているように、@c
786 そのようなマークアップ オブジェクト全体を移動させることが可能です。
788 @cindex text, vertical alignment (テキストを垂直方向に揃える)
789 @cindex vertical text alignment (テキストを垂直方向に揃える)
798 @c QUERY Should the function of ``\null'' be clarified? rp
800 垂直方向に揃える方法はもう少し複雑です。@c
801 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
802 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
804 移動させる要素の前に @emph{アンカ ポイント}
805 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
807 以下の例では 2 つのケースを示しています。@c
808 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
810 @lilypond[quote,verbatim,relative=1]
813 \raise #2 { Scène 1 }
818 \lower #4 \bold { Très modéré }
822 \raise #4 \italic { Une forêt. }
827 @funindex \general-align
828 @funindex general-align
831 @funindex \translate-scaled
832 @funindex translate-scaled
834 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
835 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
836 そのようなコマンドで移動させるオブジェクトの前には@c
839 @lilypond[quote,verbatim,relative=1]
842 \translate #'(-1 . 2) "Scène 1"
847 \general-align #Y #3.2 \bold "Très modéré"
852 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
857 @cindex multi-line markup (複数行にわたるマークアップ)
858 @cindex markup, multi-line (複数行にわたるマークアップ)
859 @cindex multi-line text (複数行にわたるテキスト)
860 @cindex text, multi-line (複数行にわたるテキスト)
861 @cindex text in columns (縦に積み重ねたテキスト)
862 @cindex columns, text (縦に積み重ねたテキスト)
866 @funindex \center-column
867 @funindex center-column
869 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
870 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
873 @lilypond[quote,verbatim]
889 @cindex centering text on the page (テキストをページの中央に揃える)
890 @cindex text, centering on the page (テキストをページの中央に揃える)
891 @cindex centering markup on the page (マークアップをページの中央に揃える)
892 @cindex markup, centering on the page (マークアップをページの中央に揃える)
897 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
898 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
900 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
902 @lilypond[quote,verbatim]
905 \line { William S. Gilbert }
907 \huge \smallCaps "The Mikado"
909 \smallCaps "The Town of Titipu"
911 \line { Sir Arthur Sullivan }
919 @cindex wordwrapped text (折り返しされたテキスト)
920 @cindex text, wordwrapped (折り返しされたテキスト)
921 @cindex justified text (両端揃えのテキスト)
922 @cindex text, justified (両端揃えのテキスト)
923 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
924 @cindex markup text, justified (両端揃えのマークアップ テキスト)
931 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
932 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
934 @lilypond[quote,verbatim]
937 \line \smallCaps { La vida breve }
938 \line \bold { Acto I }
940 (La escena representa el corral de una casa de
941 gitanos en el AlbaicÃn de Granada. Al fondo una
942 puerta por la que se ve el negro interior de
943 una Fragua, iluminado por los rojos resplandores
948 \line \bold { Acto II }
949 \override #'(line-width . 50)
951 (Calle de Granada. Fachada de la casa de Carmela
952 y su hermano Manuel con grandes ventanas abiertas
953 a través de las que se ve el patio
954 donde se celebra una alegre fiesta)
960 @cindex text alignment commands (テキスト揃えのコマンド)
961 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
962 @cindex alignment, text, commands (テキスト揃えのコマンド)
964 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
968 @rlearning{オブジェクトを移動させる}
975 @file{scm/define-markup-commands.scm}.
981 @rinternals{TextScript}
984 @node マークアップ内部でのグラフィック記譜法
985 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
986 @translationof Graphic notation inside markup
988 @cindex graphics, embedding (グラフィックを埋め込む)
989 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
990 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
991 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
992 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
995 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
997 @cindex decorating text (テキストを飾り付ける)
998 @cindex framing text (テキストにフレームを付ける)
999 @cindex text, framing (テキストにフレームを付ける)
1000 @cindex text, decorating (テキストを飾り付ける)
1001 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1002 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1008 @funindex \rounded-box
1009 @funindex rounded-box
1016 マークアップ コマンドの中にはテキスト要素を@c
1017 グラフィックスで飾り付けることができるものがあります。
1019 @lilypond[quote,verbatim]
1020 \markup \fill-line {
1028 \bracket "1866 - 1925"
1031 \rounded-box \bold Prelude
1036 @cindex padding around text (テキストの周りのパディング)
1037 @cindex text padding (テキスト パディング)
1038 @cindex markup text padding (マークアップ テキスト パディング)
1040 @funindex \pad-markup
1041 @funindex pad-markup
1044 @funindex \pad-to-box
1045 @funindex pad-to-box
1046 @funindex \pad-around
1047 @funindex pad-around
1049 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1051 パティングの増加は @ref{Align} で徹底的に記述されている@c
1052 マークアップ コマンドを用いて達成できます。
1054 @lilypond[quote,verbatim]
1055 \markup \fill-line {
1057 \box "Charles Ives (1874 - 1954)"
1059 \box \pad-markup #2 "THE UNANSWERED QUESTION"
1060 \box \pad-x #8 "A Cosmic Landscape"
1067 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1068 \bold "Largo to Presto"
1071 "String quartet keeps very even time,
1072 Flute quartet keeps very uneven time."
1076 @cindex graphic notation (グラフィック記譜法)
1077 @cindex symbols, non-musical (音楽要素ではないシンボル)
1078 @cindex non-musical symbols (音楽要素ではないシンボル)
1079 @cindex notation, graphic (グラフィック記譜法)
1083 @funindex \draw-circle
1084 @funindex draw-circle
1085 @funindex \filled-box
1086 @funindex filled-box
1089 @funindex \draw-line
1091 @funindex \arrow-head
1092 @funindex arrow-head
1094 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1096 そのようなオブジェクトも組み合わせることができます。
1098 @lilypond[quote,verbatim]
1101 \draw-circle #4 #0.4 ##f
1102 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1108 \draw-line #'(0 . 4)
1109 \arrow-head #Y #DOWN ##f
1114 @cindex embedded graphics (埋め込みグラフィック)
1115 @cindex images, embedding (画像を埋め込む)
1116 @cindex graphics, embedding (グラフィックを埋め込む)
1121 @funindex \postscript
1122 @funindex postscript
1125 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1127 ネイティブの PostScript コードを用いて@c
1128 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1129 このような機能を使う場合、以下で示すように、@c
1130 描画サイズを明示的に指定することを推奨します:
1132 @lilypond[quote,verbatim,relative=1]
1135 \epsfile #X #10 #"./context-example.eps"
1136 \with-dimensions #'(0 . 6) #'(0 . 10)
1152 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1161 @file{scm/define-markup-commands.scm},
1162 @file{scm/stencil.scm}
1168 @rinternals{TextScript}
1171 @node マークアップ内部での音楽記譜法
1172 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1173 @translationof Music notation inside markup
1175 @cindex notation inside markup (マークアップ内部の記譜法)
1176 @cindex music inside markup (マークアップ内部の音楽)
1177 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1179 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1182 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1184 @lilypond[quote,verbatim,relative=2]
1188 \note-by-number #1 #1 #1.5
1191 \natural \semiflat \flat
1192 \sesquiflat \doubleflat
1196 \natural \semisharp \sharp
1197 \sesquisharp \doublesharp
1202 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1204 @lilypond[quote,verbatim,relative=1]
1206 ees\finger \markup \tied-lyric #"4~1"
1207 fis_\markup { \dynamic rf }
1219 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1221 @ref{The Feta font} に、@c
1222 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1224 @lilypond[quote,verbatim,relative=2]
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,relative=2]
1242 \fret-diagram-terse #"x;x;o;2;3;2;"
1245 \harp-pedal #"^-v|--ov^"
1250 \musicglyph #"accordion.discant"
1252 \raise #0.5 \musicglyph #"accordion.dot"
1253 \raise #1.5 \musicglyph #"accordion.dot"
1257 @c The accordion diagram is actually taken from a snippet.
1260 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1263 @cindex score inside markup (マークアップ内部の楽譜)
1264 @cindex markup, score inside (マークアップ内部の楽譜)
1266 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1268 ネストされる @code{\score} ブロックには
1269 @code{\layout} ブロックを含める必要があります:
1271 @lilypond[quote,verbatim,relative=1]
1274 \relative c' { c4 d e f }
1282 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1287 @ref{The Feta font},
1291 @file{scm/define-markup-commands.scm},
1292 @file{scm/fret-diagrams.scm},
1293 @file{scm/harp-pedals.scm}
1299 @rinternals{TextScript}
1302 @node 複数ページにわたるマークアップ
1303 @unnumberedsubsubsec 複数ページにわたるマークアップ
1304 @translationof Multi-page markup
1306 @cindex multi-page markup (複数ページにわたるマークアップ)
1307 @cindex markup, multi-page (複数ページにわたるマークアップ)
1308 @cindex markup text, multi-page (複数ページにわたるマークアップ テキスト)
1309 @cindex text spread over multiple pages (複数ページに広がるテキスト)
1311 @funindex \markuplist
1312 @funindex markuplist
1313 @funindex \justified-lines
1314 @funindex justified-lines
1315 @funindex \wordwrap-lines
1316 @funindex wordwrap-lines
1318 標準のマークアップ オブジェクトは分割することができません。@c
1320 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1323 @lilypond[quote,verbatim]
1337 この構文はマークアップのリストを受け付けます。@c
1348 @ref{Text markup list commands} に、@c
1349 マークアップ リスト コマンドの徹底したリストがあります。
1353 @ref{Text markup list commands}
1356 @rextend{New markup list command definition}
1359 @file{scm/define-markup-commands.scm}
1365 @rinternals{TextScript}
1367 @funindex \markuplist
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,relative=2]
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 ファミリのテキスト フォントが利用可能になっています:
1438 @emph{roman} (serif) フォント
1439 -- これはデフォルトでは New Century Schoolbook です --
1440 と、@emph{sans} フォントと単一幅の @emph{typewriter} フォント
1441 -- これら 2 つのファミリは Pango のインストール時に決定されます --
1444 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1445 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1446 デフォルト サイズから変更する場合、@c
1447 @code{font-size} に提供する値が必要となります。
1449 @lilypond[quote,verbatim,relative=2]
1450 \override Score.RehearsalMark.font-family = #'typewriter
1451 \mark \markup "Ouverture"
1452 \override Voice.TextScript.font-shape = #'italic
1453 \override Voice.TextScript.font-series = #'bold
1454 d2.^\markup "Allegro"
1455 \override Voice.TextScript.font-size = #-3
1460 同様の構文をマークアップ モードの中で使用することができます。@c
1461 しかしながら、マークアップ モードの中では、@c
1462 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1463 もっと簡単な構文を使用するほうが良いでしょう:
1465 @lilypond[quote,verbatim]
1469 \override #'(font-shape . italic)
1470 \override #'(font-size . 4)
1474 \override #'(font-family . typewriter)
1476 \override #'(font-series . bold)
1480 \override #'(font-family . sans)
1487 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1488 他のフォントを使用することも可能です。@c
1489 他のフォントを使用する方法は以下のセクションで説明されています:
1490 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1494 @ref{The Feta font},
1495 @ref{マークアップ内部での音楽記譜法},
1496 @ref{Rotating objects},
1497 @ref{フォントとフォント サイズを選択する},
1502 @unnumberedsubsubsec 個々に登録するフォント
1503 @translationof Single entry fonts
1506 オペレーティング システムにインストールされていて、@c
1507 FontConfig に認識されている任意のフォントを@c
1510 @lilypond[quote,verbatim,relative=2]
1511 \override Staff.TimeSignature.font-name = #"Bitstream Charter"
1512 \override Staff.TimeSignature.font-size = #2
1516 \override #'(font-name . "Vera Bold")
1521 @cindex fonts, finding available (利用可能なフォントを見つける)
1522 @cindex finding available fonts (利用可能なフォントを見つける)
1523 @cindex listing available fonts (利用可能なフォントをリストアップする)
1524 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1526 @funindex show-available-fonts
1528 以下のコマンドはオペレーティング システムで利用可能な@c
1532 lilypond -dshow-available-fonts x
1543 @c A source file gets never installed...
1545 @c @file{lily/font-config-scheme.cc}.
1549 @unnumberedsubsubsec ドキュメント全体のフォント
1550 @translationof Entire document fonts
1552 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1553 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1554 として使用されるデフォルト フォントを変更することができます。@c
1555 この例ではグローバル譜サイズにセットされた値で自動的にフォントのサイズを@c
1557 フォントについての説明は、@ref{フォントの説明} を参照してください。
1559 @cindex font families, setting (フォント ファミリを設定する)
1560 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1562 @funindex make-pango-font-tree
1564 @lilypond[verbatim,quote]
1567 (make-pango-font-tree "Times New Roman"
1570 (/ staff-height pt 20)))
1577 \typewriter typewriter. }
1581 @c we don't do Helvetica / Courier, since GS incorrectly loads
1588 @ref{フォントとフォント サイズを選択する},