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 textLengthOn
110 @funindex \textLengthOff
111 @funindex textLengthOff
114 @code{\textLengthOn},
115 @code{\textLengthOff}
120 @rlearning{オブジェクトの配置}
124 @ref{Direction and placement},
131 @rinternals{TextScript}
133 @cindex text outside margin (マージンからはみ出すテキスト)
134 @cindex margin, text running over (マージンからはみ出すテキスト)
135 @cindex text, keeping inside margin (テキストをマージン内に収める)
136 @cindex lyrics, keeping inside margin (歌詞をマージン内に収める)
139 テキスト スクリプトと歌詞がマージンに収まることを保証するためのチェックは@c
141 処理速度を上げる必要がある場合は、以下を用います:
144 \override Score.PaperColumn.keep-inside-line = ##f
149 @unnumberedsubsubsec テキスト スパナ
150 @translationof Text spanners
152 @cindex Text spanners (テキスト スパナ)
155 -- 例えば @notation{rallentando} や @notation{accelerando} -- は、@c
156 テキストとして記述され、点線で複数の音符の上に伸ばされます。@c
158 -- @qq{スパナ} と呼ばれます -- は、@c
160 ある音符から他の音符までの範囲に作成することができます:
162 @lilypond[verbatim,quote]
164 \override TextSpanner.bound-details.left.text = "rit."
170 @cindex text spanners, formatting (テキスト スパナ フォーマット)
171 @cindex formatting text spanners (テキスト スパナ フォーマット)
174 譜刻される文字列はオブジェクト プロパティを通じてセットされます。@c
175 デフォルトでは文字列はイタリック体で譜刻されます。@c
176 しかしながら、@ref{テキストをフォーマットする} で記述されているように、@c
177 @code{\markup} ブロックを用いることで他の書体にすることができます。
179 @lilypond[quote,verbatim]
181 \override TextSpanner.bound-details.left.text =
182 \markup { \upright "rit." }
189 線のスタイルもオブジェクト プロパティとして定義することができます。@c
190 線スタイルの構文は @ref{Line styles} で記述されています。
192 @funindex \textSpannerUp
193 @funindex textSpannerUp
194 @funindex \textSpannerDown
195 @funindex textSpannerDown
196 @funindex \textSpannerNeutral
197 @funindex textSpannerNeutral
201 @code{\textSpannerUp},
202 @code{\textSpannerDown},
203 @code{\textSpannerNeutral}
207 LilyPond が処理できるテキスト スパナは 1 ボイスにつき、1 つだけです。
211 @lilypondfile[verbatim,quote,texidoc,doctitle]
212 {dynamics-text-spanner-postfix.ly}
214 @lilypondfile[verbatim,quote,texidoc,doctitle]
215 {dynamics-custom-text-spanner-postfix.ly}
225 @rlsr{Expressive marks}
228 @rinternals{TextSpanner}
232 @unnumberedsubsubsec テキスト マーク
233 @translationof Text marks
236 @cindex text marks (テキスト マーク)
237 @cindex marks, tex (テキスト マーク)
238 @cindex text on bar line (小節線上のテキスト)
239 @cindex coda on bar line (小節線上のコーダ)
240 @cindex segno on bar line (小節線上のセーニョ)
241 @cindex fermata on bar line (小節線上のフェルマータ)
242 @cindex bar lines, symbols on (小節線上のシンボル)
249 @ref{リハーサル記号} で記述されている構文を用いて、@c
250 さまざまなテキスト要素を楽譜に付け加えることができます:
252 @c \mark needs to be placed on a separate line (it's not
253 @c attached to an object like \markup is). -vv
255 @lilypond[verbatim,quote]
264 任意のテキストを小節線上に配置することが可能です。@c
265 @ref{テキストをフォーマットする} で記述されているように、@c
266 @code{\markup} ブロックを用いてより複雑なテキスト フォーマットを@c
269 @lilypond[quote,verbatim]
272 \mark \markup { \italic { colla parte } }
279 さらに、@ref{マークアップ内部での音楽記譜法} で説明されているように、@c
280 この構文で適切なシンボル名を指定することによって、@c
281 特殊な記号 -- コーダ、セーニョ、フェルマータなど -- を譜刻することが可能です:
283 @lilypond[quote,verbatim]
286 \mark \markup { \musicglyph #"scripts.ufermata" }
292 このようなオブジェクトを配置できる位置は、@c
294 オブジェクトを小節の終わりで指定するか、途中で指定するか次第で、@c
295 小節線の上に配置されたり、音符の間に配置されたりします。@c
296 改行位置で指定した場合、そのマークは次の行の先頭に譜刻されます。
298 @lilypond[quote,verbatim,ragged-right]
307 @funindex \markLengthOn
308 @funindex markLengthOn
309 @funindex \markLengthOff
310 @funindex markLengthOff
313 @code{\markLengthOn},
314 @code{\markLengthOff}
319 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
320 {printing-marks-at-the-end-of-a-line.ly}
322 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
323 {printing-marks-on-every-staff.ly}
329 @ref{マークアップ内部での音楽記譜法},
336 @rinternals{MarkEvent},
337 @rinternals{Mark_engraver},
338 @rinternals{RehearsalMark}
342 @unnumberedsubsubsec 独立したテキスト
343 @translationof Separate text
345 @cindex separate text (独立したテキスト)
346 @cindex text, separate (独立したテキスト)
347 @cindex standalone text (孤立したテキスト)
348 @cindex text, standalone (孤立したテキスト)
349 @cindex top-level text (最上位レベルのテキスト)
350 @cindex text, top-level (最上位レベルのテキスト)
355 @code{\markup} ブロックはそれ自体で、@c
356 すべての @code{\score} ブロックの外側に、@c
357 @qq{最上位レベルの表記} として存在することができます。@c
358 この構文は @ref{File structure} で記述されています。
360 @lilypond[verbatim,quote]
362 Tomorrow, and tomorrow, and tomorrow...
367 これによりテキストを音楽から分離して譜刻することが可能になります。@c
368 これは、@ref{Multiple scores in a book} で記述されているように、@c
369 入力ファイルが複数の楽曲を保持している場合に特に有用です。
371 @lilypond[quote,verbatim]
376 Tomorrow, and tomorrow, and tomorrow...
383 独立したテキスト ブロックは複数のページに広がることができます。@c
385 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
388 @ref{複数ページにわたるマークアップ} で記述されています。
393 @funindex \markuplist
403 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
404 {stand-alone-two-column-markup.ly}
409 @ref{File structure},
410 @ref{Multiple scores in a book},
411 @ref{複数ページにわたるマークアップ}
417 @rinternals{TextScript}
421 @subsection テキストをフォーマットする
422 @translationof Formatting text
424 このセクションでは、@code{\markup} モード特有の構文を用いた@c
425 基本的かつ高度なテキスト フォーマットについて説明します。
429 * フォントとフォント サイズを選択する::
431 * マークアップ内部でのグラフィック記譜法::
436 @node テキスト マークアップの導入部
437 @unnumberedsubsubsec テキスト マークアップの導入部
438 @translationof Text markup introduction
440 @cindex markup (マークアップ)
441 @cindex text markup (テキスト マークアップ)
442 @cindex markup text (マークアップ テキスト)
443 @cindex typeset text (テキストの譜刻)
448 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
449 拡張可能な構文でテキストを譜刻するために用いられます。
451 @cindex markup expressions (マークアップ表記)
452 @cindex expressions, markup (マークアップ表記)
453 @cindex markup syntax (マークアップ構文)
454 @cindex syntax, markup (マークアップ構文)
456 マークアップ構文は LilyPond の通常の構文と同様です:
457 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
458 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
460 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
461 @code{\markup} ブロックは、@c
462 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
463 マークアップ コマンドを保持することができます。@c
464 そのようなコマンドは直後の表記にのみ影響を与えます。
466 @lilypond[quote,verbatim]
469 a2^\markup { poco \italic più forte }
471 d2_\markup { \italic "string. assai" }
473 b1^\markup { \bold { molto \italic agitato } }
478 @cindex special characters in markup mode (マークアップ モードでの特殊文字)
479 @cindex markup mode, special characters (マークアップ モードでの特殊文字)
480 @cindex printing reserved characters (予約文字を譜刻する)
481 @cindex reserved characters, printing (予約文字を譜刻する)
482 @cindex printing special characters (特殊文字を譜刻する)
483 @cindex special characters, printing (特殊文字を譜刻する)
484 @cindex quoted text in markup mode (マークアップ モードでの引用譜で囲まれたテキスト)
485 @cindex markup mode, quoted text (マークアップ モードでの引用譜で囲まれたテキスト)
487 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
489 そのような文字列は最小のテキスト表記として扱われます。@c
490 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
491 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
492 そのまま (逐語的に) 譜刻されます。@c
494 それ自体の前にバックスラッシュを置くことによって譜刻されます。
496 @lilypond[quote,verbatim]
498 a'1^"\italic markup..."
499 a_\markup { \italic "... prints \"italic\" letters!" }
505 単語のリストをダブル クォーテーションで囲むか、@c
509 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
512 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
514 @lilypond[quote,verbatim]
516 c1^\markup { \center-column { a bbb c } }
517 c1^\markup { \center-column { a { bbb c } } }
518 c1^\markup { \center-column { a \line { bbb c } } }
519 c1^\markup { \center-column { a "bbb c" } }
523 マークアップを変数に格納することができます。@c
524 そのような変数は直接音符にくっつけることができます:
526 @lilypond[quote,verbatim]
527 allegro = \markup { \bold \large Allegro }
536 @ref{Text markup commands} に
537 @code{\markup} 特有のコマンドの徹底したリストがあります。
541 @ref{Text markup commands}
544 @file{scm/markup.scm}
550 マークアップ モードの構文エラーは混乱しやすいです。
553 @node フォントとフォント サイズを選択する
554 @unnumberedsubsubsec フォントとフォント サイズを選択する
555 @translationof Selecting font and font size
557 @cindex font switching (フォントの切り換え)
558 @cindex changing fonts (フォントを変更する)
559 @cindex switching fonts (フォントを切り換える)
568 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
570 @lilypond[quote,verbatim]
574 \italic { non troppo \underline Vivo }
577 d,_\markup { \italic quasi \smallCaps Tromba }
582 @cindex font size (フォント サイズ)
583 @cindex text size (テキスト サイズ)
585 @funindex \abs-fontsize
595 フォント サイズをいくつかの方法でグローバル譜サイズとの相対値で変更することができます。
597 フォント サイズをあらかじめ定義されているサイズに設定することができます:
599 @lilypond[quote,verbatim]
601 b1_\markup { \huge Sinfonia }
602 b1^\markup { \teeny da }
603 b1-\markup { \normalsize camera }
607 フォント サイズを前の値との相対関係で設定することができます:
609 @lilypond[quote,verbatim]
611 b1_\markup { \larger Sinfonia }
612 b1^\markup { \smaller da }
613 b1-\markup { \magnify #0.6 camera }
617 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは縮小させる@c
620 @lilypond[quote,verbatim]
622 b1_\markup { \fontsize #-2 Sinfonia }
623 b1^\markup { \fontsize #1 da }
624 b1-\markup { \fontsize #3 camera }
628 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに設定する@c
631 @lilypond[quote,verbatim]
633 b1_\markup { \abs-fontsize #20 Sinfonia }
634 b1^\markup { \abs-fontsize #8 da }
635 b1-\markup { \abs-fontsize #14 camera }
640 各スペースのサイズが他の文字のサイズに適したものになるので、@c
643 @lilypond[quote,verbatim]
644 \markup \fontsize #6 \bold { Sinfonia da camera }
645 \markup \fontsize #6 \bold { "Sinfonia da camera" }
648 @cindex subscript (下付き文字)
649 @cindex superscript (上付き文字)
655 @funindex \normal-size-super
656 @funindex normal-size-super
658 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
659 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
662 @lilypond[quote,verbatim]
665 \line { 1 \super st movement }
666 \line { 1 \normal-size-super st movement
667 \sub { (part two) } }
672 @cindex font families (フォント ファミリ)
674 マークアップ モードは代わりのフォント ファミリを選択するための@c
677 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
678 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
680 @lilypond[quote,verbatim]
683 \line { Act \number 1 }
684 \line { \sans { Scene I. } }
685 \line { \typewriter { Verona. An open place. } }
686 \line { Enter \roman Valentine and Proteus. }
692 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
693 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
696 @c \concat is actually documented in Align (it is not
697 @c a font-switching command). But we need it here. -vv
699 フォント切り替えやフォーマット コマンドの中には、@c
701 望まない空白を作り出すものがあります。@c
702 これはテキスト要素をつなげることによって容易に解決できます:
704 @lilypond[quote,verbatim]
708 \concat { 1 \super st }
712 \concat { \dynamic p , }
713 \italic { con dolce espressione }
719 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
722 @ref{フォント} で説明されているように、@c
723 カスタム フォント セットを定義することも可能です。
731 @funindex \normalsize
761 @file{scm/define-markup-commands.scm}
767 @rinternals{TextScript}
770 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
771 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
772 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
776 @unnumberedsubsubsec テキスト揃え
777 @translationof Text alignment
779 @cindex text, aligning (テキストを揃える)
780 @cindex aligning text (テキストを揃える)
781 @cindex aligning markup text (マークアップ テキストを揃える)
782 @cindex markup text, aligning (マークアップ テキストを揃える)
783 @cindex aligning markups (マークアップを揃える)
784 @cindex markups, aligning (マークアップを揃える)
787 マークアップ モードのテキストを配置する方法について説明します。@c
788 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
789 マークアップ オブジェクト全体を移動させることも可能です。
791 @c Padding commands should be mentioned on this page, but
792 @c most of these require \box to be more clearly illustrated. -vv
794 @cindex text, horizontal alignment (テキストを水平方向に揃える)
795 @cindex horizontal text alignment (テキストを水平方向に揃える)
797 @funindex \left-align
799 @funindex \center-align
800 @funindex center-align
801 @funindex \right-align
802 @funindex right-align
804 マークアップ オブジェクトの揃え方はいくつかあります。@c
805 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
807 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
809 @lilypond[quote,verbatim]
811 d''1-\markup { poco }
813 d-\markup { \left-align poco }
815 d-\markup { \center-align { poco } }
817 d-\markup { \right-align poco }
824 水平方向の揃え方は、数値を使って、微調整することができます:
826 @lilypond[quote,verbatim]
828 a'1-\markup { \halign #-1 poco }
830 a,-\markup { \halign #0 poco }
832 a,-\markup { \halign #0.5 poco }
834 a,-\markup { \halign #2 poco }
839 オブジェクトの中には揃えるためのプロシージャをそれ自身で持っているものがあり、@c
840 それらは上記のコマンドでは影響を受けません。@c
841 @ref{テキスト マーク} の中の例で示されているように、@c
842 そのようなマークアップ オブジェクト全体を移動させることが可能です。
844 @cindex text, vertical alignment (テキストを垂直方向に揃える)
845 @cindex vertical text alignment (テキストを垂直方向に揃える)
854 @c QUERY Should the function of ``\null'' be clarified? rp
856 垂直方向に揃える方法はもう少し複雑です。@c
857 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
858 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
860 移動させる要素の前に @emph{アンカ ポイント}
861 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
863 以下の例では 2 つのケースを示しています。@c
864 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
866 @lilypond[quote,verbatim]
870 \raise #2 { Scène 1 }
875 \lower #4 \bold { Très modéré }
879 \raise #4 \italic { Une forêt. }
885 @funindex \general-align
886 @funindex general-align
889 @funindex \translate-scaled
890 @funindex translate-scaled
892 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
893 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
894 そのようなコマンドで移動させるオブジェクトの前には@c
897 @lilypond[quote,verbatim]
901 \translate #'(-1 . 2) "Scène 1"
906 \general-align #Y #3.2 \bold "Très modéré"
911 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
917 @cindex multi-line markup (複数行にわたるマークアップ)
918 @cindex markup, multi-line (複数行にわたるマークアップ)
919 @cindex multi-line text (複数行にわたるテキスト)
920 @cindex text, multi-line (複数行にわたるテキスト)
921 @cindex text in columns (縦に積み重ねたテキスト)
922 @cindex columns, text (縦に積み重ねたテキスト)
926 @funindex \center-column
927 @funindex center-column
929 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
930 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
933 @lilypond[quote,verbatim]
949 @cindex centering text on the page (テキストをページの中央に揃える)
950 @cindex text, centering on the page (テキストをページの中央に揃える)
951 @cindex markup, centering on the page (マークアップをページの中央に揃える)
956 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
957 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
959 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
961 @lilypond[quote,verbatim]
964 \line { William S. Gilbert }
966 \huge \smallCaps "The Mikado"
968 \smallCaps "The Town of Titipu"
970 \line { Sir Arthur Sullivan }
978 @cindex wordwrapped text (折り返しされたテキスト)
979 @cindex text, wordwrapped (折り返しされたテキスト)
980 @cindex justified text (両端揃えのテキスト)
981 @cindex text, justified (両端揃えのテキスト)
982 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
983 @cindex markup text, justified (両端揃えのマークアップ テキスト)
990 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
991 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
993 @lilypond[quote,verbatim]
996 \line \smallCaps { La vida breve }
997 \line \bold { Acto I }
999 (La escena representa el corral de una casa de
1000 gitanos en el Albaicín de Granada. Al fondo una
1001 puerta por la que se ve el negro interior de
1002 una Fragua, iluminado por los rojos resplandores
1007 \line \bold { Acto II }
1008 \override #'(line-width . 50)
1010 (Calle de Granada. Fachada de la casa de Carmela
1011 y su hermano Manuel con grandes ventanas abiertas
1012 a través de las que se ve el patio
1013 donde se celebra una alegre fiesta)
1019 @cindex text alignment commands (テキスト揃えのコマンド)
1020 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
1021 @cindex alignment, text, commands (テキスト揃えのコマンド)
1023 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
1027 @rlearning{オブジェクトを移動させる}
1034 @file{scm/define-markup-commands.scm}.
1040 @rinternals{TextScript}
1043 @node マークアップ内部でのグラフィック記譜法
1044 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
1045 @translationof Graphic notation inside markup
1047 @cindex graphics, embedding (グラフィックを埋め込む)
1048 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
1049 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
1050 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
1051 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
1054 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
1056 @cindex decorating text (テキストを飾り付ける)
1057 @cindex framing text (テキストにフレームを付ける)
1058 @cindex text, framing (テキストにフレームを付ける)
1059 @cindex text, decorating (テキストを飾り付ける)
1060 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1061 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1067 @funindex \rounded-box
1068 @funindex rounded-box
1075 マークアップ コマンドの中にはテキスト要素を@c
1076 グラフィックスで飾り付けることができるものがあります。
1078 @lilypond[quote,verbatim]
1079 \markup \fill-line {
1087 \bracket "1866 - 1925"
1090 \rounded-box \bold Prelude
1095 @cindex padding around text (テキストの周りのパディング)
1096 @cindex text padding (テキスト パディング)
1097 @cindex markup text padding (マークアップ テキスト パディング)
1099 @funindex \pad-markup
1100 @funindex pad-markup
1103 @funindex \pad-to-box
1104 @funindex pad-to-box
1105 @funindex \pad-around
1106 @funindex pad-around
1108 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1110 パティングの増加は @ref{Align} で徹底的に記述されている@c
1111 マークアップ コマンドを用いて達成できます。
1113 @lilypond[quote,verbatim]
1114 \markup \fill-line {
1116 \box "Charles Ives (1874 - 1954)"
1118 \box \pad-markup #2 "THE UNANSWERED QUESTION"
1119 \box \pad-x #8 "A Cosmic Landscape"
1126 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1127 \bold "Largo to Presto"
1130 "String quartet keeps very even time,
1131 Flute quartet keeps very uneven time."
1135 @cindex graphic notation (グラフィック記譜法)
1136 @cindex symbols, non-musical (音楽要素ではないシンボル)
1137 @cindex non-musical symbols (音楽要素ではないシンボル)
1138 @cindex notation, graphic (グラフィック記譜法)
1142 @funindex \draw-circle
1143 @funindex draw-circle
1144 @funindex \filled-box
1145 @funindex filled-box
1148 @funindex \draw-line
1150 @funindex \arrow-head
1151 @funindex arrow-head
1153 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1155 そのようなオブジェクトも組み合わせることができます。
1157 @lilypond[quote,verbatim]
1160 \draw-circle #4 #0.4 ##f
1161 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1167 \draw-line #'(0 . 4)
1168 \arrow-head #Y #DOWN ##f
1173 @cindex embedded graphics (埋め込みグラフィック)
1174 @cindex images, embedding (画像を埋め込む)
1175 @cindex graphics, embedding (グラフィックを埋め込む)
1180 @funindex \postscript
1181 @funindex postscript
1184 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1186 ネイティブの PostScript コードを用いて@c
1187 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1188 このような機能を使う場合、以下で示すように、@c
1189 描画サイズを明示的に指定することを推奨します:
1191 @lilypond[quote,verbatim,fragment]
1194 \epsfile #X #10 #"./context-example.eps"
1195 \with-dimensions #'(0 . 6) #'(0 . 10)
1211 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1221 @file{scm/define-markup-commands.scm},
1222 @file{scm/stencil.scm}
1228 @rinternals{TextScript}
1231 @node マークアップ内部での音楽記譜法
1232 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1233 @translationof Music notation inside markup
1235 @cindex notation inside markup (マークアップ内部の記譜法)
1236 @cindex music inside markup (マークアップ内部の音楽)
1237 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1239 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1242 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1244 @lilypond[quote,verbatim,fragment]
1248 \note-by-number #1 #1 #1.5
1251 \natural \semiflat \flat
1252 \sesquiflat \doubleflat
1256 \natural \semisharp \sharp
1257 \sesquisharp \doublesharp
1262 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1264 @lilypond[quote,verbatim]
1267 ees\finger \markup \tied-lyric #"4~1"
1268 fis_\markup { \dynamic rf }
1281 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1283 @ref{The Feta font} に、@c
1284 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1286 @lilypond[quote,verbatim]
1289 c'^\markup { \musicglyph #"eight" }
1291 c,8._\markup { \musicglyph #"clefs.G_change" }
1293 c2^\markup { \musicglyph #"timesig.neomensural94" }
1297 テキストではない図柄を譜刻するもう 1 つの方法が
1298 @ref{フォントの説明} で記述されています。@c
1299 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1301 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1303 @lilypond[quote,verbatim]
1306 \fret-diagram-terse #"x;x;o;2;3;2;"
1309 \harp-pedal #"^-v|--ov^"
1314 \musicglyph #"accordion.discant"
1316 \raise #0.5 \musicglyph #"accordion.dot"
1317 \raise #1.5 \musicglyph #"accordion.dot"
1322 @c The accordion diagram is actually taken from a snippet.
1325 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1328 @cindex score inside markup (マークアップ内部の楽譜)
1329 @cindex markup, score inside (マークアップ内部の楽譜)
1331 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1333 ネストされる @code{\score} ブロックには
1334 @code{\layout} ブロックを含める必要があります:
1336 @lilypond[quote,verbatim]
1340 \relative { c'4 d e f }
1349 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1354 @ref{The Feta font},
1358 @file{scm/define-markup-commands.scm},
1359 @file{scm/fret-diagrams.scm},
1360 @file{scm/harp-pedals.scm}
1366 @rinternals{TextScript}
1369 @node 複数ページにわたるマークアップ
1370 @unnumberedsubsubsec 複数ページにわたるマークアップ
1371 @translationof Multi-page markup
1373 @cindex multi-page markup (複数ページにわたるマークアップ)
1374 @cindex markup, multi-page (複数ページにわたるマークアップ)
1375 @cindex markup text, multi-page (複数ページにわたるマークアップ テキスト)
1376 @cindex text spread over multiple pages (複数ページに広がるテキスト)
1378 @funindex \markuplist
1379 @funindex markuplist
1380 @funindex \justified-lines
1381 @funindex justified-lines
1382 @funindex \wordwrap-lines
1383 @funindex wordwrap-lines
1385 標準のマークアップ オブジェクトは分割することができません。@c
1387 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1390 @lilypond[quote,verbatim]
1404 この構文はマークアップのリストを受け付けます。@c
1415 @ref{Text markup list commands} に、@c
1416 マークアップ リスト コマンドの徹底したリストがあります。
1420 @ref{Text markup list commands}
1423 @rextend{New markup list command definition}
1426 @file{scm/define-markup-commands.scm}
1432 @rinternals{TextScript}
1434 @funindex \markuplist
1435 @funindex markuplist
1443 @translationof Fonts
1446 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1455 @unnumberedsubsubsec フォントの説明
1456 @translationof Fonts explained
1459 @cindex fonts, explained (フォントの説明)
1460 @cindex braces, various sizes (さまざまなサイズの波括弧)
1461 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1462 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1464 @funindex font-interface
1466 フォントはいくつかのライブラリを通じて扱われます。@c
1467 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1468 選択されたフォントは Pango を用いて描かれます。
1470 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1473 さまざまな LilyPond @code{feta} 非テキスト フォントを@c
1474 マークアップ モードの中で直接使用することが可能になります:
1476 @lilypond[quote,verbatim,fragment]
1479 \override #'(font-encoding . fetaBraces)
1481 \override #'(font-encoding . fetaText)
1483 \override #'(font-encoding . fetaMusic)
1484 \lookup #"noteheads.s0petrucci"
1491 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1492 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1493 もっと簡単な構文を用いて利用することができます。
1495 @code{fetaBraces} に保持されている図柄を使う場合、@c
1496 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1497 @code{0} から @code{575} までの整数すべてを指定でき、@c
1498 @code{0} は最小の波括弧を提供します。@c
1499 最適な値はトライ&エラーで決定する必要があります。@c
1501 右波括弧は回転によって得ることができます
1502 -- @ref{Rotating objects} を参照してください。
1504 3 ファミリのテキスト フォントが利用可能になっています:
1507 @emph{roman} (serif) フォントの@c
1508 デフォルトは LilyPond Serif (TeX Gyre Schola のエイリアス)です。
1511 デフォルトは LilyPond Sans Serif (TeX Gyre Heros のエイリアス)です。
1513 @emph{typewriter} (monospaced) フォントの@c
1514 デフォルトは LilyPond Monospace (TeX Gyre Cursor のエイリアス)です。
1517 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1518 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1519 デフォルト サイズから変更する場合、@c
1520 @code{font-size} に提供する値が必要となります。
1522 @lilypond[quote,verbatim,fragment]
1523 \override Score.RehearsalMark.font-family = #'typewriter
1524 \mark \markup "Ouverture"
1525 \override Voice.TextScript.font-shape = #'italic
1526 \override Voice.TextScript.font-series = #'bold
1527 d''2.^\markup "Allegro"
1528 \override Voice.TextScript.font-size = #-3
1533 同様の構文をマークアップ モードの中で使用することができます。@c
1534 しかしながら、マークアップ モードの中では、@c
1535 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1536 もっと簡単な構文を使用するほうが良いでしょう:
1538 @lilypond[quote,verbatim]
1542 \override #'(font-shape . italic)
1543 \override #'(font-size . 4)
1547 \override #'(font-family . typewriter)
1549 \override #'(font-series . bold)
1553 \override #'(font-family . sans)
1560 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1561 他のフォントを使用することも可能です。@c
1562 他のフォントを使用する方法は以下のセクションで説明されています:
1563 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1567 @ref{The Feta font},
1568 @ref{マークアップ内部での音楽記譜法},
1569 @ref{Rotating objects},
1570 @ref{フォントとフォント サイズを選択する},
1575 @unnumberedsubsubsec 個々に登録するフォント
1576 @translationof Single entry fonts
1579 オペレーティング システムにインストールされていて、@c
1580 FontConfig に認識されている任意のフォントを@c
1583 @lilypond[quote,verbatim,fragment]
1584 \override Staff.TimeSignature.font-name = #"Bitstream Charter"
1585 \override Staff.TimeSignature.font-size = #2
1589 \override #'(font-name . "Bitstream Vera Sans,sans-serif, Oblique Bold")
1590 { Vera Oblique Bold }
1594 @cindex fonts, finding available (利用可能なフォントを見つける)
1595 @cindex finding available fonts (利用可能なフォントを見つける)
1596 @cindex listing available fonts (利用可能なフォントをリストアップする)
1597 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1599 @var{font-name} はカンマ区切りの @q{フォント} のリストと、@c
1600 スペース区切りの @q{スタイル} のリストを記述できます。@c
1601 リスト中の @q{フォント} がインストールされていて、@c
1602 要求されたグリフを含んでいれば、それが使われます。@c
1603 そうでないなら代わりにリストの @emph{次} のフォントが使われます。
1605 @funindex show-available-fonts
1607 lilypond を以下のオプションを付けて実行すると@c
1608 オペレーティング システムで利用可能な@c
1612 lilypond -dshow-available-fonts x
1623 @c A source file gets never installed...
1625 @c @file{lily/font-config-scheme.cc}.
1629 @unnumberedsubsubsec ドキュメント全体のフォント
1630 @translationof Entire document fonts
1632 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1633 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1634 として使用されるデフォルト フォントを変更することができます。@c
1635 この例ではグローバル譜サイズにセットされた値で自動的にフォントのサイズを@c
1637 @ref{個々に登録するフォント} のように、@c
1638 カンマ区切りの @q{フォント} のリストを記述できます。@c
1639 しかし、フォント @q{スタイル} は記述できません。@c
1640 フォントについての説明は、@ref{フォントの説明} を参照してください。
1642 @cindex font families, setting (フォント ファミリを設定する)
1643 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1645 @funindex make-pango-font-tree
1647 @lilypond[verbatim,quote]
1650 (make-pango-font-tree "Times New Roman"
1651 "Nimbus Sans,Nimbus Sans L"
1653 (/ staff-height pt 20)))
1660 \typewriter typewriter. }
1664 @c we don't do Helvetica / Courier, since GS incorrectly loads
1671 @ref{フォントとフォント サイズを選択する},