1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
4 Translation of GIT committish: 6647daf0d6c8459d2b52bfc3a2a40bad4672fc7a
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 {aligning-marks-with-various-notation-objects.ly}
298 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
299 {printing-marks-on-every-staff.ly}
305 @ref{マークアップ内部での音楽記譜法},
312 @rinternals{MarkEvent},
313 @rinternals{Mark_engraver},
314 @rinternals{RehearsalMark}
318 @unnumberedsubsubsec 独立したテキスト
319 @translationof Separate text
321 @cindex separate text (独立したテキスト)
322 @cindex text, separate (独立したテキスト)
323 @cindex standalone text (孤立したテキスト)
324 @cindex text, standalone (孤立したテキスト)
325 @cindex top-level text (最上位レベルのテキスト)
326 @cindex text, top-level (最上位レベルのテキスト)
331 @code{\markup} ブロックはそれ自体で、@c
332 すべての @code{\score} ブロックの外側に、@c
333 @qq{最上位レベルの表記} として存在することができます。@c
334 この構文は @ref{File structure} で記述されています。
336 @lilypond[verbatim,quote]
338 Tomorrow, and tomorrow, and tomorrow...
343 これによりテキストを音楽から分離して譜刻することが可能になります。@c
344 これは、@ref{Multiple scores in a book} で記述されているように、@c
345 入力ファイルが複数の楽曲を保持している場合に特に有用です。
347 @lilypond[quote,verbatim]
352 Tomorrow, and tomorrow, and tomorrow...
359 独立したテキスト ブロックは複数のページに広がることができます。@c
361 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
364 @ref{複数ページにわたるマークアップ} で記述されています。
369 @funindex \markuplist
379 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
380 {stand-alone-two-column-markup.ly}
385 @ref{File structure},
386 @ref{Multiple scores in a book},
387 @ref{複数ページにわたるマークアップ}
393 @rinternals{TextScript}
397 @subsection テキストをフォーマットする
398 @translationof Formatting text
400 このセクションでは、@code{\markup} モード特有の構文を用いた@c
401 基本的かつ高度なテキスト フォーマットについて説明します。
405 * フォントとフォント サイズを選択する::
407 * マークアップ内部でのグラフィック記譜法::
412 @node テキスト マークアップの導入部
413 @unnumberedsubsubsec テキスト マークアップの導入部
414 @translationof Text markup introduction
416 @cindex markup (マークアップ)
417 @cindex text markup (テキスト マークアップ)
418 @cindex markup text (マークアップ テキスト)
419 @cindex typeset text (テキストの譜刻)
424 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
425 拡張可能な構文でテキストを譜刻するために用いられます。
427 @cindex markup expressions (マークアップ表記)
428 @cindex expressions, markup (マークアップ表記)
429 @cindex markup syntax (マークアップ構文)
430 @cindex syntax, markup (マークアップ構文)
432 マークアップ構文は LilyPond の通常の構文と同様です:
433 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
434 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
436 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
437 @code{\markup} ブロックは、@c
438 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
439 マークアップ コマンドを保持することができます。@c
440 そのようなコマンドは直後の表記にのみ影響を与えます。
442 @lilypond[quote,verbatim,relative=2]
444 a2^\markup { poco \italic più forte }
446 d2_\markup { \italic "string. assai" }
448 b1^\markup { \bold { molto \italic agitato } }
452 @cindex special characters in markup mode (マークアップ モードでの特殊文字)
453 @cindex markup mode, special characters (マークアップ モードでの特殊文字)
454 @cindex printing reserved characters (予約文字を譜刻する)
455 @cindex reserved characters, printing (予約文字を譜刻する)
456 @cindex printing special characters (特殊文字を譜刻する)
457 @cindex special characters, printing (特殊文字を譜刻する)
458 @cindex quoted text in markup mode (マークアップ モードでの引用譜で囲まれたテキスト)
459 @cindex markup mode, quoted text (マークアップ モードでの引用譜で囲まれたテキスト)
461 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
463 そのような文字列は最小のテキスト表記として扱われます。@c
464 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
465 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
466 そのまま (逐語的に) 譜刻されます。@c
468 それ自体の前にバックスラッシュを置くことによって譜刻されます。
470 @lilypond[quote,verbatim,relative=2]
471 a1^"\italic markup..."
472 a_\markup { \italic "... prints \"italic\" letters!" }
477 単語のリストをダブル クォーテーションで囲むか、@c
481 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
484 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
486 @lilypond[quote,verbatim,relative=2]
487 c1^\markup { \center-column { a bbb c } }
488 c1^\markup { \center-column { a { bbb c } } }
489 c1^\markup { \center-column { a \line { bbb c } } }
490 c1^\markup { \center-column { a "bbb c" } }
493 マークアップを変数に格納することができます。@c
494 そのような変数は直接音符にくっつけることができます:
496 @lilypond[quote,verbatim]
497 allegro = \markup { \bold \large Allegro }
506 @ref{Text markup commands} に
507 @code{\markup} 特有のコマンドの徹底したリストがあります。
511 @ref{Text markup commands}
514 @file{scm/markup.scm}
520 マークアップ モードの構文エラーは混乱しやすいです。
523 @node フォントとフォント サイズを選択する
524 @unnumberedsubsubsec フォントとフォント サイズを選択する
525 @translationof Selecting font and font size
527 @cindex font switching (フォントの切り換え)
528 @cindex changing fonts (フォントを変更する)
529 @cindex switching fonts (フォントを切り換える)
538 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
540 @lilypond[quote,verbatim,relative=2]
543 \italic { non troppo \underline Vivo }
546 d,_\markup { \italic quasi \smallCaps Tromba }
550 @cindex font size (フォント サイズ)
551 @cindex text size (テキスト サイズ)
553 @funindex \abs-fontsize
563 フォント サイズをいくつかの方法でグローバル譜サイズとの相対値で変更することができます。
565 フォント サイズをあらかじめ定義されているサイズに設定することができます:
567 @lilypond[quote,verbatim,relative=2]
568 b1_\markup { \huge Sinfonia }
569 b1^\markup { \teeny da }
570 b1-\markup { \normalsize camera }
573 フォント サイズを前の値との相対関係で設定することができます:
575 @lilypond[quote,verbatim,relative=2]
576 b1_\markup { \larger Sinfonia }
577 b1^\markup { \smaller da }
578 b1-\markup { \magnify #0.6 camera }
581 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは縮小させる@c
584 @lilypond[quote,verbatim,relative=2]
585 b1_\markup { \fontsize #-2 Sinfonia }
586 b1^\markup { \fontsize #1 da }
587 b1-\markup { \fontsize #3 camera }
590 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに設定する@c
593 @lilypond[quote,verbatim,relative=2]
594 b1_\markup { \abs-fontsize #20 Sinfonia }
595 b1^\markup { \abs-fontsize #8 da }
596 b1-\markup { \abs-fontsize #14 camera }
599 @cindex subscript (下付き文字)
600 @cindex superscript (上付き文字)
606 @funindex \normal-size-super
607 @funindex normal-size-super
609 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
610 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
613 @lilypond[quote,verbatim]
616 \line { 1 \super st movement }
617 \line { 1 \normal-size-super st movement
618 \sub { (part two) } }
623 @cindex font families (フォント ファミリ)
625 マークアップ モードは代わりのフォント ファミリを選択するための@c
628 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
629 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
631 @lilypond[quote,verbatim]
634 \line { Act \number 1 }
635 \line { \sans { Scene I. } }
636 \line { \typewriter { Verona. An open place. } }
637 \line { Enter \roman Valentine and Proteus. }
643 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
644 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
647 @c \concat is actually documented in Align (it is not
648 @c a font-switching command). But we need it here. -vv
650 フォント切り替えやフォーマット コマンドの中には、@c
652 望まない空白を作り出すものがあります。@c
653 これはテキスト要素をつなげることによって容易に解決できます:
655 @lilypond[quote,verbatim]
659 \concat { 1 \super st }
663 \concat { \dynamic p , }
664 \italic { con dolce espressione }
670 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
673 @ref{フォント} で説明されているように、@c
674 カスタム フォント セットを定義することも可能です。
682 @funindex \normalsize
712 @file{scm/define-markup-commands.scm}
718 @rinternals{TextScript}
721 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
722 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
723 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
727 @unnumberedsubsubsec テキスト揃え
728 @translationof Text alignment
730 @cindex text, aligning (テキストを揃える)
731 @cindex aligning text (テキストを揃える)
732 @cindex aligning markup text (マークアップ テキストを揃える)
733 @cindex markup text, aligning (マークアップ テキストを揃える)
734 @cindex aligning markups (マークアップを揃える)
735 @cindex markups, aligning (マークアップを揃える)
738 マークアップ モードのテキストを配置する方法について説明します。@c
739 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
740 マークアップ オブジェクト全体を移動させることも可能です。
742 @c Padding commands should be mentioned on this page, but
743 @c most of these require \box to be more clearly illustrated. -vv
745 @cindex text, horizontal alignment (テキストを水平方向に揃える)
746 @cindex horizontal text alignment (テキストを水平方向に揃える)
748 @funindex \left-align
750 @funindex \center-align
751 @funindex center-align
752 @funindex \right-align
753 @funindex right-align
755 マークアップ オブジェクトの揃え方はいくつかあります。@c
756 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
758 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
760 @lilypond[quote,verbatim,relative=2]
763 d-\markup { \left-align poco }
765 d-\markup { \center-align { poco } }
767 d-\markup { \right-align poco }
773 水平方向の揃え方は、数値を使って、微調整することができます:
775 @lilypond[quote,verbatim,relative=2]
776 a1-\markup { \halign #-1 poco }
778 a,-\markup { \halign #0 poco }
780 a,-\markup { \halign #0.5 poco }
782 a,-\markup { \halign #2 poco }
786 オブジェクトの中には揃えるためのプロシージャをそれ自身で持っているものがあり、@c
787 それらは上記のコマンドでは影響を受けません。@c
788 @ref{テキスト マーク} の中の例で示されているように、@c
789 そのようなマークアップ オブジェクト全体を移動させることが可能です。
791 @cindex text, vertical alignment (テキストを垂直方向に揃える)
792 @cindex vertical text alignment (テキストを垂直方向に揃える)
801 @c QUERY Should the function of ``\null'' be clarified? rp
803 垂直方向に揃える方法はもう少し複雑です。@c
804 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
805 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
807 移動させる要素の前に @emph{アンカ ポイント}
808 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
810 以下の例では 2 つのケースを示しています。@c
811 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
813 @lilypond[quote,verbatim,relative=1]
816 \raise #2 { Scène 1 }
821 \lower #4 \bold { Très modéré }
825 \raise #4 \italic { Une forêt. }
830 @funindex \general-align
831 @funindex general-align
834 @funindex \translate-scaled
835 @funindex translate-scaled
837 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
838 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
839 そのようなコマンドで移動させるオブジェクトの前には@c
842 @lilypond[quote,verbatim,relative=1]
845 \translate #'(-1 . 2) "Scène 1"
850 \general-align #Y #3.2 \bold "Très modéré"
855 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
860 @cindex multi-line markup (複数行にわたるマークアップ)
861 @cindex markup, multi-line (複数行にわたるマークアップ)
862 @cindex multi-line text (複数行にわたるテキスト)
863 @cindex text, multi-line (複数行にわたるテキスト)
864 @cindex text in columns (縦に積み重ねたテキスト)
865 @cindex columns, text (縦に積み重ねたテキスト)
869 @funindex \center-column
870 @funindex center-column
872 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
873 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
876 @lilypond[quote,verbatim]
892 @cindex centering text on the page (テキストをページの中央に揃える)
893 @cindex text, centering on the page (テキストをページの中央に揃える)
894 @cindex centering markup on the page (マークアップをページの中央に揃える)
895 @cindex markup, centering on the page (マークアップをページの中央に揃える)
900 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
901 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
903 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
905 @lilypond[quote,verbatim]
908 \line { William S. Gilbert }
910 \huge \smallCaps "The Mikado"
912 \smallCaps "The Town of Titipu"
914 \line { Sir Arthur Sullivan }
922 @cindex wordwrapped text (折り返しされたテキスト)
923 @cindex text, wordwrapped (折り返しされたテキスト)
924 @cindex justified text (両端揃えのテキスト)
925 @cindex text, justified (両端揃えのテキスト)
926 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
927 @cindex markup text, justified (両端揃えのマークアップ テキスト)
934 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
935 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
937 @lilypond[quote,verbatim]
940 \line \smallCaps { La vida breve }
941 \line \bold { Acto I }
943 (La escena representa el corral de una casa de
944 gitanos en el AlbaicÃn de Granada. Al fondo una
945 puerta por la que se ve el negro interior de
946 una Fragua, iluminado por los rojos resplandores
951 \line \bold { Acto II }
952 \override #'(line-width . 50)
954 (Calle de Granada. Fachada de la casa de Carmela
955 y su hermano Manuel con grandes ventanas abiertas
956 a través de las que se ve el patio
957 donde se celebra una alegre fiesta)
963 @cindex text alignment commands (テキスト揃えのコマンド)
964 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
965 @cindex alignment, text, commands (テキスト揃えのコマンド)
967 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
971 @rlearning{オブジェクトを移動させる}
978 @file{scm/define-markup-commands.scm}.
984 @rinternals{TextScript}
987 @node マークアップ内部でのグラフィック記譜法
988 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
989 @translationof Graphic notation inside markup
991 @cindex graphics, embedding (グラフィックを埋め込む)
992 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
993 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
994 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
995 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
998 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
1000 @cindex decorating text (テキストを飾り付ける)
1001 @cindex framing text (テキストにフレームを付ける)
1002 @cindex text, framing (テキストにフレームを付ける)
1003 @cindex text, decorating (テキストを飾り付ける)
1004 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1005 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1011 @funindex \rounded-box
1012 @funindex rounded-box
1019 マークアップ コマンドの中にはテキスト要素を@c
1020 グラフィックスで飾り付けることができるものがあります。
1022 @lilypond[quote,verbatim]
1023 \markup \fill-line {
1031 \bracket "1866 - 1925"
1034 \rounded-box \bold Prelude
1039 @cindex padding around text (テキストの周りのパディング)
1040 @cindex text padding (テキスト パディング)
1041 @cindex markup text padding (マークアップ テキスト パディング)
1043 @funindex \pad-markup
1044 @funindex pad-markup
1047 @funindex \pad-to-box
1048 @funindex pad-to-box
1049 @funindex \pad-around
1050 @funindex pad-around
1052 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1054 パティングの増加は @ref{Align} で徹底的に記述されている@c
1055 マークアップ コマンドを用いて達成できます。
1057 @lilypond[quote,verbatim]
1058 \markup \fill-line {
1060 \box "Charles Ives (1874 - 1954)"
1062 \box \pad-markup #2 "THE UNANSWERED QUESTION"
1063 \box \pad-x #8 "A Cosmic Landscape"
1070 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1071 \bold "Largo to Presto"
1074 "String quartet keeps very even time,
1075 Flute quartet keeps very uneven time."
1079 @cindex graphic notation (グラフィック記譜法)
1080 @cindex symbols, non-musical (音楽要素ではないシンボル)
1081 @cindex non-musical symbols (音楽要素ではないシンボル)
1082 @cindex notation, graphic (グラフィック記譜法)
1086 @funindex \draw-circle
1087 @funindex draw-circle
1088 @funindex \filled-box
1089 @funindex filled-box
1092 @funindex \draw-line
1094 @funindex \arrow-head
1095 @funindex arrow-head
1097 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1099 そのようなオブジェクトも組み合わせることができます。
1101 @lilypond[quote,verbatim]
1104 \draw-circle #4 #0.4 ##f
1105 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1111 \draw-line #'(0 . 4)
1112 \arrow-head #Y #DOWN ##f
1117 @cindex embedded graphics (埋め込みグラフィック)
1118 @cindex images, embedding (画像を埋め込む)
1119 @cindex graphics, embedding (グラフィックを埋め込む)
1124 @funindex \postscript
1125 @funindex postscript
1128 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1130 ネイティブの PostScript コードを用いて@c
1131 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1132 このような機能を使う場合、以下で示すように、@c
1133 描画サイズを明示的に指定することを推奨します:
1135 @lilypond[quote,verbatim,relative=1]
1138 \epsfile #X #10 #"./context-example.eps"
1139 \with-dimensions #'(0 . 6) #'(0 . 10)
1155 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1164 @file{scm/define-markup-commands.scm},
1165 @file{scm/stencil.scm}
1171 @rinternals{TextScript}
1174 @node マークアップ内部での音楽記譜法
1175 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1176 @translationof Music notation inside markup
1178 @cindex notation inside markup (マークアップ内部の記譜法)
1179 @cindex music inside markup (マークアップ内部の音楽)
1180 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1182 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1185 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1187 @lilypond[quote,verbatim,relative=2]
1191 \note-by-number #1 #1 #1.5
1194 \natural \semiflat \flat
1195 \sesquiflat \doubleflat
1199 \natural \semisharp \sharp
1200 \sesquisharp \doublesharp
1205 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1207 @lilypond[quote,verbatim,relative=1]
1214 fis_\markup { \dynamic rf }
1226 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1228 @ref{The Feta font} に、@c
1229 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1231 @lilypond[quote,verbatim,relative=2]
1233 c'^\markup { \musicglyph #"eight" }
1235 c,8._\markup { \musicglyph #"clefs.G_change" }
1237 c2^\markup { \musicglyph #"timesig.neomensural94" }
1241 テキストではない図柄を譜刻するもう 1 つの方法が
1242 @ref{フォントの説明} で記述されています。@c
1243 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1245 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1247 @lilypond[quote,verbatim,relative=2]
1249 \fret-diagram-terse #"x;x;o;2;3;2;"
1252 \harp-pedal #"^-v|--ov^"
1257 \musicglyph #"accordion.discant"
1259 \raise #0.5 \musicglyph #"accordion.dot"
1260 \raise #1.5 \musicglyph #"accordion.dot"
1264 @c The accordion diagram is actually taken from a snippet.
1267 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1270 @cindex score inside markup (マークアップ内部の楽譜)
1271 @cindex markup, score inside (マークアップ内部の楽譜)
1273 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1275 ネストされる @code{\score} ブロックには
1276 @code{\layout} ブロックを含める必要があります:
1278 @lilypond[quote,verbatim,relative=1]
1281 \relative c' { c4 d e f }
1289 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1294 @ref{The Feta font},
1298 @file{scm/define-markup-commands.scm},
1299 @file{scm/fret-diagrams.scm},
1300 @file{scm/harp-pedals.scm}
1306 @rinternals{TextScript}
1309 @node 複数ページにわたるマークアップ
1310 @unnumberedsubsubsec 複数ページにわたるマークアップ
1311 @translationof Multi-page markup
1313 @cindex multi-page markup (複数ページにわたるマークアップ)
1314 @cindex markup, multi-page (複数ページにわたるマークアップ)
1315 @cindex markup text, multi-page (複数ページにわたるマークアップ テキスト)
1316 @cindex text spread over multiple pages (複数ページに広がるテキスト)
1318 @funindex \markuplist
1319 @funindex markuplist
1320 @funindex \justified-lines
1321 @funindex justified-lines
1322 @funindex \wordwrap-lines
1323 @funindex wordwrap-lines
1325 標準のマークアップ オブジェクトは分割することができません。@c
1327 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1330 @lilypond[quote,verbatim]
1344 この構文はマークアップのリストを受け付けます。@c
1355 @ref{Text markup list commands} に、@c
1356 マークアップ リスト コマンドの徹底したリストがあります。
1360 @ref{Text markup list commands}
1363 @rextend{New markup list command definition}
1366 @file{scm/define-markup-commands.scm}
1372 @rinternals{TextScript}
1374 @funindex \markuplist
1375 @funindex markuplist
1383 @translationof Fonts
1386 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1395 @unnumberedsubsubsec フォントの説明
1396 @translationof Fonts explained
1399 @cindex fonts, explained (フォントの説明)
1400 @cindex braces, various sizes (さまざまなサイズの波括弧)
1401 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1402 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1404 @funindex font-interface
1406 フォントはいくつかのライブラリを通じて扱われます。@c
1407 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1408 選択されたフォントは Pango を用いて描かれます。
1410 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1413 さまざまな LilyPond @code{feta} 非テキスト フォントを@c
1414 マークアップ モードの中で直接使用することが可能になります:
1416 @lilypond[quote,verbatim,relative=2]
1419 \override #'(font-encoding . fetaBraces)
1421 \override #'(font-encoding . fetaText)
1423 \override #'(font-encoding . fetaMusic)
1424 \lookup #"noteheads.s0petrucci"
1431 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1432 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1433 もっと簡単な構文を用いて利用することができます。
1435 @code{fetaBraces} に保持されている図柄を使う場合、@c
1436 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1437 @code{0} から @code{575} までの整数すべてを指定でき、@c
1438 @code{0} は最小の波括弧を提供します。@c
1439 最適な値はトライ&エラーで決定する必要があります。@c
1441 右波括弧は回転によって得ることができます
1442 -- @ref{Rotating objects} を参照してください。
1444 3 ファミリのテキスト フォントが利用可能になっています:
1445 @emph{roman} (serif) フォント
1446 -- これはデフォルトでは New Century Schoolbook です --
1447 と、@emph{sans} フォントと単一幅の @emph{typewriter} フォント
1448 -- これら 2 つのファミリは Pango のインストール時に決定されます --
1451 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1452 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1453 デフォルト サイズから変更する場合、@c
1454 @code{font-size} に提供する値が必要となります。
1456 @lilypond[quote,verbatim,relative=2]
1457 \override Score.RehearsalMark #'font-family = #'typewriter
1458 \mark \markup "Ouverture"
1459 \override Voice.TextScript #'font-shape = #'italic
1460 \override Voice.TextScript #'font-series = #'bold
1461 d2.^\markup "Allegro"
1462 \override Voice.TextScript #'font-size = #-3
1467 同様の構文をマークアップ モードの中で使用することができます。@c
1468 しかしながら、マークアップ モードの中では、@c
1469 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1470 もっと簡単な構文を使用するほうが良いでしょう:
1472 @lilypond[quote,verbatim]
1476 \override #'(font-shape . italic)
1477 \override #'(font-size . 4)
1481 \override #'(font-family . typewriter)
1483 \override #'(font-series . bold)
1487 \override #'(font-family . sans)
1494 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1495 他のフォントを使用することも可能です。@c
1496 他のフォントを使用する方法は以下のセクションで説明されています:
1497 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1501 @ref{The Feta font},
1502 @ref{マークアップ内部での音楽記譜法},
1503 @ref{Rotating objects},
1504 @ref{フォントとフォント サイズを選択する},
1509 @unnumberedsubsubsec 個々に登録するフォント
1510 @translationof Single entry fonts
1513 オペレーティング システムにインストールされていて、@c
1514 FontConfig に認識されている任意のフォントを@c
1517 @lilypond[quote,verbatim,relative=2]
1518 \override Staff.TimeSignature #'font-name = #"Bitstream Charter"
1519 \override Staff.TimeSignature #'font-size = #2
1523 \override #'(font-name . "Vera Bold")
1528 @cindex fonts, finding available (利用可能なフォントを見つける)
1529 @cindex finding available fonts (利用可能なフォントを見つける)
1530 @cindex listing available fonts (利用可能なフォントをリストアップする)
1531 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1533 @funindex show-available-fonts
1535 以下のコマンドはオペレーティング システムで利用可能な@c
1539 lilypond -dshow-available-fonts x
1550 @c A source file gets never installed...
1552 @c @file{lily/font-config-scheme.cc}.
1556 @unnumberedsubsubsec ドキュメント全体のフォント
1557 @translationof Entire document fonts
1559 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1560 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1561 として使用されるデフォルト フォントを変更することができます。@c
1562 フォントについての説明は、@ref{フォントの説明} を参照してください。
1564 @cindex font families, setting (フォント ファミリを設定する)
1565 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1567 @funindex make-pango-font-tree
1569 @lilypond[verbatim,quote]
1573 (make-pango-font-tree "Times New Roman"
1576 (/ myStaffSize 20)))
1583 \typewriter typewriter. }
1587 @c we don't do Helvetica / Courier, since GS incorrectly loads
1594 @ref{フォントとフォント サイズを選択する},