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]
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."
171 譜刻される文字列はオブジェクト プロパティを通じてセットされます。@c
172 デフォルトでは文字列はイタリック体で譜刻されます。@c
173 しかしながら、@ref{テキストをフォーマットする} で記述されているように、@c
174 @code{\markup} ブロックを用いることで他の書体にすることができます。
176 @lilypond[quote,verbatim]
178 \override TextSpanner.bound-details.left.text =
179 \markup { \upright "rit." }
186 線のスタイルもオブジェクト プロパティとして定義することができます。@c
187 線スタイルの構文は @ref{Line styles} で記述されています。
189 @funindex \textSpannerUp
190 @funindex textSpannerUp
191 @funindex \textSpannerDown
192 @funindex textSpannerDown
193 @funindex \textSpannerNeutral
194 @funindex textSpannerNeutral
198 @code{\textSpannerUp},
199 @code{\textSpannerDown},
200 @code{\textSpannerNeutral}.
204 LilyPond が処理できるテキスト スパナは 1 ボイスにつき、1 つだけです。
208 @lilypondfile[verbatim,quote,texidoc,doctitle]
209 {dynamics-text-spanner-postfix.ly}
211 @lilypondfile[verbatim,quote,texidoc,doctitle]
212 {dynamics-custom-text-spanner-postfix.ly}
222 @rlsr{Expressive marks}
225 @rinternals{TextSpanner}
229 @unnumberedsubsubsec テキスト マーク
230 @translationof Text marks
233 @cindex text marks (テキスト マーク)
234 @cindex marks, tex (テキスト マーク)t
235 @cindex text on bar line (小節線上のテキスト)
236 @cindex coda on bar line (小節線上のコーダ)
237 @cindex segno on bar line (小節線上のセーニョ)
238 @cindex fermata on bar line (小節線上のフェルマータ)
239 @cindex bar lines, symbols on (小節線上のシンボル)
246 @ref{リハーサル記号} で記述されている構文を用いて、@c
247 さまざまなテキスト要素を楽譜に付け加えることができます:
249 @c \mark needs to be placed on a separate line (it's not
250 @c attached to an object like \markup is). -vv
252 @lilypond[verbatim,quote]
261 任意のテキストを小節線上に配置することが可能です。@c
262 @ref{テキストをフォーマットする} で記述されているように、@c
263 @code{\markup} ブロックを用いてより複雑なテキスト フォーマットを@c
266 @lilypond[quote,verbatim]
269 \mark \markup { \italic { colla parte } }
276 さらに、@ref{マークアップ内部での音楽記譜法} で説明されているように、@c
277 この構文で適切なシンボル名を指定することによって、@c
278 特殊な記号 -- コーダ、セーニョ、フェルマータなど -- を譜刻することが可能です:
280 @lilypond[quote,verbatim]
283 \mark \markup { \musicglyph #"scripts.ufermata" }
289 このようなオブジェクトを配置できる位置は、@c
291 オブジェクトを小節の終わりで指定するか、途中で指定するか次第で、@c
292 小節線の上に配置されたり、音符の間に配置されたりします。@c
293 改行位置で指定した場合、そのマークは次の行の先頭に譜刻されます。
295 @lilypond[quote,verbatim,relative=2]
305 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
306 {printing-marks-at-the-end-of-a-line.ly}
308 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
309 {printing-marks-on-every-staff.ly}
315 @ref{マークアップ内部での音楽記譜法},
322 @rinternals{MarkEvent},
323 @rinternals{Mark_engraver},
324 @rinternals{RehearsalMark}
328 @unnumberedsubsubsec 独立したテキスト
329 @translationof Separate text
331 @cindex separate text (独立したテキスト)
332 @cindex text, separate (独立したテキスト)
333 @cindex standalone text (孤立したテキスト)
334 @cindex text, standalone (孤立したテキスト)
335 @cindex top-level text (最上位レベルのテキスト)
336 @cindex text, top-level (最上位レベルのテキスト)
341 @code{\markup} ブロックはそれ自体で、@c
342 すべての @code{\score} ブロックの外側に、@c
343 @qq{最上位レベルの表記} として存在することができます。@c
344 この構文は @ref{File structure} で記述されています。
346 @lilypond[verbatim,quote]
348 Tomorrow, and tomorrow, and tomorrow...
353 これによりテキストを音楽から分離して譜刻することが可能になります。@c
354 これは、@ref{Multiple scores in a book} で記述されているように、@c
355 入力ファイルが複数の楽曲を保持している場合に特に有用です。
357 @lilypond[quote,verbatim]
362 Tomorrow, and tomorrow, and tomorrow...
369 独立したテキスト ブロックは複数のページに広がることができます。@c
371 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
374 @ref{複数ページにわたるマークアップ} で記述されています。
379 @funindex \markuplist
389 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
390 {stand-alone-two-column-markup.ly}
395 @ref{File structure},
396 @ref{Multiple scores in a book},
397 @ref{複数ページにわたるマークアップ}
403 @rinternals{TextScript}
407 @subsection テキストをフォーマットする
408 @translationof Formatting text
410 このセクションでは、@code{\markup} モード特有の構文を用いた@c
411 基本的かつ高度なテキスト フォーマットについて説明します。
415 * フォントとフォント サイズを選択する::
417 * マークアップ内部でのグラフィック記譜法::
422 @node テキスト マークアップの導入部
423 @unnumberedsubsubsec テキスト マークアップの導入部
424 @translationof Text markup introduction
426 @cindex markup (マークアップ)
427 @cindex text markup (テキスト マークアップ)
428 @cindex markup text (マークアップ テキスト)
429 @cindex typeset text (テキストの譜刻)
434 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
435 拡張可能な構文でテキストを譜刻するために用いられます。
437 @cindex markup expressions (マークアップ表記)
438 @cindex expressions, markup (マークアップ表記)
439 @cindex markup syntax (マークアップ構文)
440 @cindex syntax, markup (マークアップ構文)
442 マークアップ構文は LilyPond の通常の構文と同様です:
443 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
444 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
446 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
447 @code{\markup} ブロックは、@c
448 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
449 マークアップ コマンドを保持することができます。@c
450 そのようなコマンドは直後の表記にのみ影響を与えます。
452 @lilypond[quote,verbatim,relative=2]
454 a2^\markup { poco \italic più forte }
456 d2_\markup { \italic "string. assai" }
458 b1^\markup { \bold { molto \italic agitato } }
462 @cindex special characters in markup mode (マークアップ モードでの特殊文字)
463 @cindex markup mode, special characters (マークアップ モードでの特殊文字)
464 @cindex printing reserved characters (予約文字を譜刻する)
465 @cindex reserved characters, printing (予約文字を譜刻する)
466 @cindex printing special characters (特殊文字を譜刻する)
467 @cindex special characters, printing (特殊文字を譜刻する)
468 @cindex quoted text in markup mode (マークアップ モードでの引用譜で囲まれたテキスト)
469 @cindex markup mode, quoted text (マークアップ モードでの引用譜で囲まれたテキスト)
471 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
473 そのような文字列は最小のテキスト表記として扱われます。@c
474 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
475 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
476 そのまま (逐語的に) 譜刻されます。@c
478 それ自体の前にバックスラッシュを置くことによって譜刻されます。
480 @lilypond[quote,verbatim]
482 a'1^"\italic markup..."
483 a_\markup { \italic "... prints \"italic\" letters!" }
489 単語のリストをダブル クォーテーションで囲むか、@c
493 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
496 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
498 @lilypond[quote,verbatim]
500 c1^\markup { \center-column { a bbb c } }
501 c1^\markup { \center-column { a { bbb c } } }
502 c1^\markup { \center-column { a \line { bbb c } } }
503 c1^\markup { \center-column { a "bbb c" } }
507 マークアップを変数に格納することができます。@c
508 そのような変数は直接音符にくっつけることができます:
510 @lilypond[quote,verbatim]
511 allegro = \markup { \bold \large Allegro }
520 @ref{Text markup commands} に
521 @code{\markup} 特有のコマンドの徹底したリストがあります。
525 @ref{Text markup commands}
528 @file{scm/markup.scm}
534 マークアップ モードの構文エラーは混乱しやすいです。
537 @node フォントとフォント サイズを選択する
538 @unnumberedsubsubsec フォントとフォント サイズを選択する
539 @translationof Selecting font and font size
541 @cindex font switching (フォントの切り換え)
542 @cindex changing fonts (フォントを変更する)
543 @cindex switching fonts (フォントを切り換える)
552 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
554 @lilypond[quote,verbatim,relative=2]
557 \italic { non troppo \underline Vivo }
560 d,_\markup { \italic quasi \smallCaps Tromba }
564 @cindex font size (フォント サイズ)
565 @cindex text size (テキスト サイズ)
567 @funindex \abs-fontsize
577 フォント サイズをいくつかの方法でグローバル譜サイズとの相対値で変更することができます。
579 フォント サイズをあらかじめ定義されているサイズに設定することができます:
581 @lilypond[quote,verbatim]
583 b1_\markup { \huge Sinfonia }
584 b1^\markup { \teeny da }
585 b1-\markup { \normalsize camera }
589 フォント サイズを前の値との相対関係で設定することができます:
591 @lilypond[quote,verbatim]
593 b1_\markup { \larger Sinfonia }
594 b1^\markup { \smaller da }
595 b1-\markup { \magnify #0.6 camera }
599 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは縮小させる@c
602 @lilypond[quote,verbatim]
604 b1_\markup { \fontsize #-2 Sinfonia }
605 b1^\markup { \fontsize #1 da }
606 b1-\markup { \fontsize #3 camera }
610 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに設定する@c
613 @lilypond[quote,verbatim]
615 b1_\markup { \abs-fontsize #20 Sinfonia }
616 b1^\markup { \abs-fontsize #8 da }
617 b1-\markup { \abs-fontsize #14 camera }
621 @cindex subscript (下付き文字)
622 @cindex superscript (上付き文字)
628 @funindex \normal-size-super
629 @funindex normal-size-super
631 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
632 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
635 @lilypond[quote,verbatim]
638 \line { 1 \super st movement }
639 \line { 1 \normal-size-super st movement
640 \sub { (part two) } }
645 @cindex font families (フォント ファミリ)
647 マークアップ モードは代わりのフォント ファミリを選択するための@c
650 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
651 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
653 @lilypond[quote,verbatim]
656 \line { Act \number 1 }
657 \line { \sans { Scene I. } }
658 \line { \typewriter { Verona. An open place. } }
659 \line { Enter \roman Valentine and Proteus. }
665 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
666 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
669 @c \concat is actually documented in Align (it is not
670 @c a font-switching command). But we need it here. -vv
672 フォント切り替えやフォーマット コマンドの中には、@c
674 望まない空白を作り出すものがあります。@c
675 これはテキスト要素をつなげることによって容易に解決できます:
677 @lilypond[quote,verbatim]
681 \concat { 1 \super st }
685 \concat { \dynamic p , }
686 \italic { con dolce espressione }
692 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
695 @ref{フォント} で説明されているように、@c
696 カスタム フォント セットを定義することも可能です。
704 @funindex \normalsize
734 @file{scm/define-markup-commands.scm}
740 @rinternals{TextScript}
743 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
744 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
745 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
749 @unnumberedsubsubsec テキスト揃え
750 @translationof Text alignment
752 @cindex text, aligning (テキストを揃える)
753 @cindex aligning text (テキストを揃える)
754 @cindex aligning markup text (マークアップ テキストを揃える)
755 @cindex markup text, aligning (マークアップ テキストを揃える)
756 @cindex aligning markups (マークアップを揃える)
757 @cindex markups, aligning (マークアップを揃える)
760 マークアップ モードのテキストを配置する方法について説明します。@c
761 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
762 マークアップ オブジェクト全体を移動させることも可能です。
764 @c Padding commands should be mentioned on this page, but
765 @c most of these require \box to be more clearly illustrated. -vv
767 @cindex text, horizontal alignment (テキストを水平方向に揃える)
768 @cindex horizontal text alignment (テキストを水平方向に揃える)
770 @funindex \left-align
772 @funindex \center-align
773 @funindex center-align
774 @funindex \right-align
775 @funindex right-align
777 マークアップ オブジェクトの揃え方はいくつかあります。@c
778 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
780 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
782 @lilypond[quote,verbatim]
784 d''1-\markup { poco }
786 d-\markup { \left-align poco }
788 d-\markup { \center-align { poco } }
790 d-\markup { \right-align poco }
797 水平方向の揃え方は、数値を使って、微調整することができます:
799 @lilypond[quote,verbatim]
801 a'1-\markup { \halign #-1 poco }
803 a,-\markup { \halign #0 poco }
805 a,-\markup { \halign #0.5 poco }
807 a,-\markup { \halign #2 poco }
812 オブジェクトの中には揃えるためのプロシージャをそれ自身で持っているものがあり、@c
813 それらは上記のコマンドでは影響を受けません。@c
814 @ref{テキスト マーク} の中の例で示されているように、@c
815 そのようなマークアップ オブジェクト全体を移動させることが可能です。
817 @cindex text, vertical alignment (テキストを垂直方向に揃える)
818 @cindex vertical text alignment (テキストを垂直方向に揃える)
827 @c QUERY Should the function of ``\null'' be clarified? rp
829 垂直方向に揃える方法はもう少し複雑です。@c
830 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
831 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
833 移動させる要素の前に @emph{アンカ ポイント}
834 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
836 以下の例では 2 つのケースを示しています。@c
837 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
839 @lilypond[quote,verbatim]
843 \raise #2 { Scène 1 }
848 \lower #4 \bold { Très modéré }
852 \raise #4 \italic { Une forêt. }
858 @funindex \general-align
859 @funindex general-align
862 @funindex \translate-scaled
863 @funindex translate-scaled
865 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
866 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
867 そのようなコマンドで移動させるオブジェクトの前には@c
870 @lilypond[quote,verbatim]
874 \translate #'(-1 . 2) "Scène 1"
879 \general-align #Y #3.2 \bold "Très modéré"
884 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
890 @cindex multi-line markup (複数行にわたるマークアップ)
891 @cindex markup, multi-line (複数行にわたるマークアップ)
892 @cindex multi-line text (複数行にわたるテキスト)
893 @cindex text, multi-line (複数行にわたるテキスト)
894 @cindex text in columns (縦に積み重ねたテキスト)
895 @cindex columns, text (縦に積み重ねたテキスト)
899 @funindex \center-column
900 @funindex center-column
902 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
903 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
906 @lilypond[quote,verbatim]
922 @cindex centering text on the page (テキストをページの中央に揃える)
923 @cindex text, centering on the page (テキストをページの中央に揃える)
924 @cindex centering markup on the page (マークアップをページの中央に揃える)
925 @cindex markup, centering on the page (マークアップをページの中央に揃える)
930 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
931 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
933 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
935 @lilypond[quote,verbatim]
938 \line { William S. Gilbert }
940 \huge \smallCaps "The Mikado"
942 \smallCaps "The Town of Titipu"
944 \line { Sir Arthur Sullivan }
952 @cindex wordwrapped text (折り返しされたテキスト)
953 @cindex text, wordwrapped (折り返しされたテキスト)
954 @cindex justified text (両端揃えのテキスト)
955 @cindex text, justified (両端揃えのテキスト)
956 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
957 @cindex markup text, justified (両端揃えのマークアップ テキスト)
964 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
965 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
967 @lilypond[quote,verbatim]
970 \line \smallCaps { La vida breve }
971 \line \bold { Acto I }
973 (La escena representa el corral de una casa de
974 gitanos en el AlbaicÃn de Granada. Al fondo una
975 puerta por la que se ve el negro interior de
976 una Fragua, iluminado por los rojos resplandores
981 \line \bold { Acto II }
982 \override #'(line-width . 50)
984 (Calle de Granada. Fachada de la casa de Carmela
985 y su hermano Manuel con grandes ventanas abiertas
986 a través de las que se ve el patio
987 donde se celebra una alegre fiesta)
993 @cindex text alignment commands (テキスト揃えのコマンド)
994 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
995 @cindex alignment, text, commands (テキスト揃えのコマンド)
997 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
1001 @rlearning{オブジェクトを移動させる}
1008 @file{scm/define-markup-commands.scm}.
1014 @rinternals{TextScript}
1017 @node マークアップ内部でのグラフィック記譜法
1018 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
1019 @translationof Graphic notation inside markup
1021 @cindex graphics, embedding (グラフィックを埋め込む)
1022 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
1023 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
1024 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
1025 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
1028 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
1030 @cindex decorating text (テキストを飾り付ける)
1031 @cindex framing text (テキストにフレームを付ける)
1032 @cindex text, framing (テキストにフレームを付ける)
1033 @cindex text, decorating (テキストを飾り付ける)
1034 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1035 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1041 @funindex \rounded-box
1042 @funindex rounded-box
1049 マークアップ コマンドの中にはテキスト要素を@c
1050 グラフィックスで飾り付けることができるものがあります。
1052 @lilypond[quote,verbatim]
1053 \markup \fill-line {
1061 \bracket "1866 - 1925"
1064 \rounded-box \bold Prelude
1069 @cindex padding around text (テキストの周りのパディング)
1070 @cindex text padding (テキスト パディング)
1071 @cindex markup text padding (マークアップ テキスト パディング)
1073 @funindex \pad-markup
1074 @funindex pad-markup
1077 @funindex \pad-to-box
1078 @funindex pad-to-box
1079 @funindex \pad-around
1080 @funindex pad-around
1082 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1084 パティングの増加は @ref{Align} で徹底的に記述されている@c
1085 マークアップ コマンドを用いて達成できます。
1087 @lilypond[quote,verbatim]
1088 \markup \fill-line {
1090 \box "Charles Ives (1874 - 1954)"
1092 \box \pad-markup #2 "THE UNANSWERED QUESTION"
1093 \box \pad-x #8 "A Cosmic Landscape"
1100 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1101 \bold "Largo to Presto"
1104 "String quartet keeps very even time,
1105 Flute quartet keeps very uneven time."
1109 @cindex graphic notation (グラフィック記譜法)
1110 @cindex symbols, non-musical (音楽要素ではないシンボル)
1111 @cindex non-musical symbols (音楽要素ではないシンボル)
1112 @cindex notation, graphic (グラフィック記譜法)
1116 @funindex \draw-circle
1117 @funindex draw-circle
1118 @funindex \filled-box
1119 @funindex filled-box
1122 @funindex \draw-line
1124 @funindex \arrow-head
1125 @funindex arrow-head
1127 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1129 そのようなオブジェクトも組み合わせることができます。
1131 @lilypond[quote,verbatim]
1134 \draw-circle #4 #0.4 ##f
1135 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1141 \draw-line #'(0 . 4)
1142 \arrow-head #Y #DOWN ##f
1147 @cindex embedded graphics (埋め込みグラフィック)
1148 @cindex images, embedding (画像を埋め込む)
1149 @cindex graphics, embedding (グラフィックを埋め込む)
1154 @funindex \postscript
1155 @funindex postscript
1158 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1160 ネイティブの PostScript コードを用いて@c
1161 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1162 このような機能を使う場合、以下で示すように、@c
1163 描画サイズを明示的に指定することを推奨します:
1165 @lilypond[quote,verbatim,fragment]
1168 \epsfile #X #10 #"./context-example.eps"
1169 \with-dimensions #'(0 . 6) #'(0 . 10)
1185 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1194 @file{scm/define-markup-commands.scm},
1195 @file{scm/stencil.scm}
1201 @rinternals{TextScript}
1204 @node マークアップ内部での音楽記譜法
1205 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1206 @translationof Music notation inside markup
1208 @cindex notation inside markup (マークアップ内部の記譜法)
1209 @cindex music inside markup (マークアップ内部の音楽)
1210 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1212 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1215 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1217 @lilypond[quote,verbatim,fragment]
1221 \note-by-number #1 #1 #1.5
1224 \natural \semiflat \flat
1225 \sesquiflat \doubleflat
1229 \natural \semisharp \sharp
1230 \sesquisharp \doublesharp
1235 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1237 @lilypond[quote,verbatim]
1240 ees\finger \markup \tied-lyric #"4~1"
1241 fis_\markup { \dynamic rf }
1254 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1256 @ref{The Feta font} に、@c
1257 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1259 @lilypond[quote,verbatim]
1262 c'^\markup { \musicglyph #"eight" }
1264 c,8._\markup { \musicglyph #"clefs.G_change" }
1266 c2^\markup { \musicglyph #"timesig.neomensural94" }
1271 テキストではない図柄を譜刻するもう 1 つの方法が
1272 @ref{フォントの説明} で記述されています。@c
1273 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1275 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1277 @lilypond[quote,verbatim]
1280 \fret-diagram-terse #"x;x;o;2;3;2;"
1283 \harp-pedal #"^-v|--ov^"
1288 \musicglyph #"accordion.discant"
1290 \raise #0.5 \musicglyph #"accordion.dot"
1291 \raise #1.5 \musicglyph #"accordion.dot"
1296 @c The accordion diagram is actually taken from a snippet.
1299 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1302 @cindex score inside markup (マークアップ内部の楽譜)
1303 @cindex markup, score inside (マークアップ内部の楽譜)
1305 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1307 ネストされる @code{\score} ブロックには
1308 @code{\layout} ブロックを含める必要があります:
1310 @lilypond[quote,verbatim]
1314 \relative { c'4 d e f }
1323 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1328 @ref{The Feta font},
1332 @file{scm/define-markup-commands.scm},
1333 @file{scm/fret-diagrams.scm},
1334 @file{scm/harp-pedals.scm}
1340 @rinternals{TextScript}
1343 @node 複数ページにわたるマークアップ
1344 @unnumberedsubsubsec 複数ページにわたるマークアップ
1345 @translationof Multi-page markup
1347 @cindex multi-page markup (複数ページにわたるマークアップ)
1348 @cindex markup, multi-page (複数ページにわたるマークアップ)
1349 @cindex markup text, multi-page (複数ページにわたるマークアップ テキスト)
1350 @cindex text spread over multiple pages (複数ページに広がるテキスト)
1352 @funindex \markuplist
1353 @funindex markuplist
1354 @funindex \justified-lines
1355 @funindex justified-lines
1356 @funindex \wordwrap-lines
1357 @funindex wordwrap-lines
1359 標準のマークアップ オブジェクトは分割することができません。@c
1361 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1364 @lilypond[quote,verbatim]
1378 この構文はマークアップのリストを受け付けます。@c
1389 @ref{Text markup list commands} に、@c
1390 マークアップ リスト コマンドの徹底したリストがあります。
1394 @ref{Text markup list commands}
1397 @rextend{New markup list command definition}
1400 @file{scm/define-markup-commands.scm}
1406 @rinternals{TextScript}
1408 @funindex \markuplist
1409 @funindex markuplist
1417 @translationof Fonts
1420 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1429 @unnumberedsubsubsec フォントの説明
1430 @translationof Fonts explained
1433 @cindex fonts, explained (フォントの説明)
1434 @cindex braces, various sizes (さまざまなサイズの波括弧)
1435 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1436 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1438 @funindex font-interface
1440 フォントはいくつかのライブラリを通じて扱われます。@c
1441 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1442 選択されたフォントは Pango を用いて描かれます。
1444 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1447 さまざまな LilyPond @code{feta} 非テキスト フォントを@c
1448 マークアップ モードの中で直接使用することが可能になります:
1450 @lilypond[quote,verbatim,fragment]
1453 \override #'(font-encoding . fetaBraces)
1455 \override #'(font-encoding . fetaText)
1457 \override #'(font-encoding . fetaMusic)
1458 \lookup #"noteheads.s0petrucci"
1465 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1466 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1467 もっと簡単な構文を用いて利用することができます。
1469 @code{fetaBraces} に保持されている図柄を使う場合、@c
1470 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1471 @code{0} から @code{575} までの整数すべてを指定でき、@c
1472 @code{0} は最小の波括弧を提供します。@c
1473 最適な値はトライ&エラーで決定する必要があります。@c
1475 右波括弧は回転によって得ることができます
1476 -- @ref{Rotating objects} を参照してください。
1478 3 ファミリのテキスト フォントが利用可能になっています:
1479 @emph{roman} (serif) フォント
1480 -- これはデフォルトでは New Century Schoolbook です --
1481 と、@emph{sans} フォントと単一幅の @emph{typewriter} フォント
1482 -- これら 2 つのファミリは Pango のインストール時に決定されます --
1485 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1486 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1487 デフォルト サイズから変更する場合、@c
1488 @code{font-size} に提供する値が必要となります。
1490 @lilypond[quote,verbatim,fragment]
1491 \override Score.RehearsalMark.font-family = #'typewriter
1492 \mark \markup "Ouverture"
1493 \override Voice.TextScript.font-shape = #'italic
1494 \override Voice.TextScript.font-series = #'bold
1495 d''2.^\markup "Allegro"
1496 \override Voice.TextScript.font-size = #-3
1501 同様の構文をマークアップ モードの中で使用することができます。@c
1502 しかしながら、マークアップ モードの中では、@c
1503 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1504 もっと簡単な構文を使用するほうが良いでしょう:
1506 @lilypond[quote,verbatim]
1510 \override #'(font-shape . italic)
1511 \override #'(font-size . 4)
1515 \override #'(font-family . typewriter)
1517 \override #'(font-series . bold)
1521 \override #'(font-family . sans)
1528 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1529 他のフォントを使用することも可能です。@c
1530 他のフォントを使用する方法は以下のセクションで説明されています:
1531 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1535 @ref{The Feta font},
1536 @ref{マークアップ内部での音楽記譜法},
1537 @ref{Rotating objects},
1538 @ref{フォントとフォント サイズを選択する},
1543 @unnumberedsubsubsec 個々に登録するフォント
1544 @translationof Single entry fonts
1547 オペレーティング システムにインストールされていて、@c
1548 FontConfig に認識されている任意のフォントを@c
1551 @lilypond[quote,verbatim,fragment]
1552 \override Staff.TimeSignature.font-name = #"Bitstream Charter"
1553 \override Staff.TimeSignature.font-size = #2
1557 \override #'(font-name . "Vera Bold")
1562 @cindex fonts, finding available (利用可能なフォントを見つける)
1563 @cindex finding available fonts (利用可能なフォントを見つける)
1564 @cindex listing available fonts (利用可能なフォントをリストアップする)
1565 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1567 @funindex show-available-fonts
1569 以下のコマンドはオペレーティング システムで利用可能な@c
1573 lilypond -dshow-available-fonts x
1584 @c A source file gets never installed...
1586 @c @file{lily/font-config-scheme.cc}.
1590 @unnumberedsubsubsec ドキュメント全体のフォント
1591 @translationof Entire document fonts
1593 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1594 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1595 として使用されるデフォルト フォントを変更することができます。@c
1596 この例ではグローバル譜サイズにセットされた値で自動的にフォントのサイズを@c
1598 フォントについての説明は、@ref{フォントの説明} を参照してください。
1600 @cindex font families, setting (フォント ファミリを設定する)
1601 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1603 @funindex make-pango-font-tree
1605 @lilypond[verbatim,quote]
1608 (make-pango-font-tree "Times New Roman"
1611 (/ staff-height pt 20)))
1618 \typewriter typewriter. }
1622 @c we don't do Helvetica / Courier, since GS incorrectly loads
1629 @ref{フォントとフォント サイズを選択する},