1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
4 Translation of GIT committish: eb38c33a95cbe6adf9f176dfbb794373ec062605
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: Tomohiro Tatejima, Masamichi Hosoda, Yoshiki Sawada
15 @c Translation status: post-GDP
22 @lilypondfile[quote]{text-headword.ly}
25 楽譜に (さまざまなフォーマットの) テキストを含める方法について説明します。
28 ここでは扱わないいくつかのテキスト要素については他のセクションで説明します:
29 @ref{Vocal music}, @ref{Titles and headers}。
39 @translationof Writing text
41 このセクションでは、楽譜にテキストを付け加えるいくつかの方法を紹介します。
43 @cindex Text, other languages (他の言語のテキスト)
44 @warning{アクセント付きのテキストや特殊なテキスト
45 (他の言語の文字など) を記述するには、@c
46 単純にその文字を直接 LilyPond ファイルに挿入します。@c
47 ファイルは UTF-8 で保存しなければなりません。@c
48 更なる情報は @ref{Text encoding} を参照してください。}
59 @unnumberedsubsubsec テキスト スクリプト
60 @translationof Text scripts
62 @cindex Text scripts (テキスト スクリプト)
63 @cindex text items, non-empty (空ではないテキスト アイテム)
64 @cindex non-empty texts (空ではないテキスト)
65 @cindex quoted text (引用符で囲まれたテキスト)
68 シンプルな @qq{引用符で囲まれたテキスト} 指示を楽譜に@c
70 そのような指示は、@ref{Direction and placement} で説明する構文を用いて、@c
71 手動で譜の上または下に配置することができます。
73 @lilypond[quote,verbatim]
74 \relative { a'8^"pizz." g f e a4-"scherz." f }
78 @ref{テキストをフォーマットする} で記述されているように、@c
79 @code{\markup} ブロックを用いて明示的に、@c
80 より複雑なテキスト フォーマットを音符に付け加えることができます。
82 @lilypond[quote,verbatim]
84 a'8^\markup { \italic pizz. } g f e
85 a4_\markup { \tiny scherz. \bold molto } f }
88 デフォルトでは、テキスト指示は音符の間隔に影響を与えません。@c
89 しかしながら、テキスト指示の幅を考慮に入れることもできます:
90 以下の例では、最初のテキスト文字列は音符の間隔に影響を与えていませんが、@c
91 2 番目のテキスト文字列は影響を与えています。
93 @lilypond[quote,verbatim]
102 アーティキュレーションを音符に付けることもできます。@c
103 更なる情報は @ref{アーティキュレーションと装飾} を参照してください。
105 テキスト スクリプトとアーティキュレーションの順序についての更なる情報は
106 @rlearning{オブジェクトの配置} を参照してください。
108 @funindex \textLengthOn
109 @funindex \textLengthOff
112 @code{\textLengthOn},
113 @code{\textLengthOff}
118 @rlearning{オブジェクトの配置}
122 @ref{Direction and placement},
129 @rinternals{TextScript}
131 @cindex text outside margin (マージンからはみ出すテキスト)
132 @cindex margin, text running over (マージンからはみ出すテキスト)
133 @cindex text, keeping inside margin (テキストをマージン内に収める)
134 @cindex lyrics, keeping inside margin (歌詞をマージン内に収める)
137 テキスト スクリプトと歌詞がマージンに収まることを保証するためのチェックは@c
139 処理速度を上げる必要がある場合は、以下を用います:
142 \override Score.PaperColumn.keep-inside-line = ##f
147 @unnumberedsubsubsec テキスト スパナ
148 @translationof Text spanners
150 @cindex Text spanners (テキスト スパナ)
153 -- 例えば @notation{rallentando} や @notation{accelerando} -- は、@c
154 テキストとして記述され、点線で複数の音符の上に伸ばされます。@c
156 -- @qq{スパナ} と呼ばれます -- は、@c
158 ある音符から他の音符までの範囲に作成することができます:
160 @lilypond[verbatim,quote]
162 \override TextSpanner.bound-details.left.text = "rit."
168 @cindex text spanners, formatting (テキスト スパナ フォーマット)
169 @cindex formatting text spanners (テキスト スパナ フォーマット)
172 譜刻される文字列はオブジェクト プロパティを通じてセットされます。@c
173 デフォルトでは文字列はイタリック体で譜刻されます。@c
174 しかしながら、@ref{テキストをフォーマットする} で記述されているように、@c
175 @code{\markup} ブロックを用いることで他の書体にすることができます。
177 @lilypond[quote,verbatim]
179 \override TextSpanner.bound-details.left.text =
180 \markup { \upright "rit." }
187 線のスタイルもオブジェクト プロパティとして定義することができます。@c
188 線スタイルの構文は @ref{Line styles} で記述されています。
190 @funindex \textSpannerUp
191 @funindex \textSpannerDown
192 @funindex \textSpannerNeutral
196 @code{\textSpannerUp},
197 @code{\textSpannerDown},
198 @code{\textSpannerNeutral}
202 LilyPond が処理できるテキスト スパナは 1 ボイスにつき、1 つだけです。
206 @lilypondfile[verbatim,quote,texidoc,doctitle]
207 {dynamics-text-spanner-postfix.ly}
209 @lilypondfile[verbatim,quote,texidoc,doctitle]
210 {dynamics-custom-text-spanner-postfix.ly}
220 @rlsr{Expressive marks}
223 @rinternals{TextSpanner}
227 @unnumberedsubsubsec テキスト マーク
228 @translationof Text marks
231 @cindex text marks (テキスト マーク)
232 @cindex marks, tex (テキスト マーク)
233 @cindex text on bar line (小節線上のテキスト)
234 @cindex coda on bar line (小節線上のコーダ)
235 @cindex segno on bar line (小節線上のセーニョ)
236 @cindex fermata on bar line (小節線上のフェルマータ)
237 @cindex bar lines, symbols on (小節線上のシンボル)
242 @ref{リハーサル記号} で記述されている構文を用いて、@c
243 さまざまなテキスト要素を楽譜に付け加えることができます:
245 @c \mark needs to be placed on a separate line (it's not
246 @c attached to an object like \markup is). -vv
248 @lilypond[verbatim,quote]
260 任意のテキストを小節線上に配置することが可能です。@c
261 @ref{テキストをフォーマットする} で記述されているように、@c
262 @code{\markup} ブロックを用いてより複雑なテキスト フォーマットを@c
265 @lilypond[quote,verbatim]
268 \mark \markup { \italic { colla parte } }
275 さらに、@ref{マークアップ内部での音楽記譜法} で説明されているように、@c
276 この構文で適切なシンボル名を指定することによって、@c
277 特殊な記号 -- コーダ、セーニョ、フェルマータなど -- を譜刻することが可能です:
279 @lilypond[quote,verbatim]
282 \mark \markup { \musicglyph #"scripts.ufermata" }
288 このようなオブジェクトを配置できる位置は、@c
290 オブジェクトを小節の終わりで指定するか、途中で指定するか次第で、@c
291 小節線の上に配置されたり、音符の間に配置されたりします。@c
292 改行位置で指定した場合、そのマークは次の行の先頭に譜刻されます。
294 @lilypond[quote,verbatim,ragged-right]
303 @funindex \markLengthOn
304 @funindex \markLengthOff
307 @code{\markLengthOn},
308 @code{\markLengthOff}
313 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
314 {printing-marks-at-the-end-of-a-line.ly}
316 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
317 {printing-marks-on-every-staff.ly}
323 @ref{マークアップ内部での音楽記譜法},
324 @ref{The Emmentaler font}.
330 @rinternals{MarkEvent},
331 @rinternals{Mark_engraver},
332 @rinternals{RehearsalMark}
336 @unnumberedsubsubsec 独立したテキスト
337 @translationof Separate text
339 @cindex separate text (独立したテキスト)
340 @cindex text, separate (独立したテキスト)
341 @cindex standalone text (孤立したテキスト)
342 @cindex text, standalone (孤立したテキスト)
343 @cindex top-level text (最上位レベルのテキスト)
344 @cindex text, top-level (最上位レベルのテキスト)
348 @code{\markup} ブロックはそれ自体で、@c
349 すべての @code{\score} ブロックの外側に、@c
350 @qq{最上位レベルの表記} として存在することができます。@c
351 この構文は @ref{File structure} で記述されています。
353 @lilypond[verbatim,quote]
355 Tomorrow, and tomorrow, and tomorrow...
360 これによりテキストを音楽から分離して譜刻することが可能になります。@c
361 これは、@ref{Multiple scores in a book} で記述されているように、@c
362 入力ファイルが複数の楽曲を保持している場合に特に有用です。
364 @lilypond[quote,verbatim]
369 Tomorrow, and tomorrow, and tomorrow...
376 独立したテキスト ブロックは複数のページに広がることができます。@c
378 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
381 @ref{複数ページにわたるマークアップ} で記述されています。
385 @funindex \markuplist
394 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
395 {stand-alone-two-column-markup.ly}
400 @ref{File structure},
401 @ref{Multiple scores in a book},
402 @ref{複数ページにわたるマークアップ}
408 @rinternals{TextScript}
412 @subsection テキストをフォーマットする
413 @translationof Formatting text
415 このセクションでは、@code{\markup} モード特有の構文を用いた@c
416 基本的かつ高度なテキスト フォーマットについて説明します。
420 * フォントとフォント サイズを選択する::
422 * マークアップ内部でのグラフィック記譜法::
427 @node テキスト マークアップの導入部
428 @unnumberedsubsubsec テキスト マークアップの導入部
429 @translationof Text markup introduction
431 @cindex markup (マークアップ)
432 @cindex text markup (テキスト マークアップ)
433 @cindex markup text (マークアップ テキスト)
434 @cindex typeset text (テキストの譜刻)
438 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
439 拡張可能な構文でテキストを譜刻するために用いられます。
441 @cindex markup expressions (マークアップ表記)
442 @cindex expressions, markup (マークアップ表記)
443 @cindex markup syntax (マークアップ構文)
444 @cindex syntax, markup (マークアップ構文)
446 マークアップ構文は LilyPond の通常の構文と同様です:
447 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
448 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
450 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
451 @code{\markup} ブロックは、@c
452 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
453 マークアップ コマンドを保持することができます。@c
454 そのようなコマンドは直後の表記にのみ影響を与えます。
456 @lilypond[quote,verbatim]
459 a2^\markup { poco \italic più forte }
461 d2_\markup { \italic "string. assai" }
463 b1^\markup { \bold { molto \italic agitato } }
468 @cindex special characters in markup mode (マークアップ モードでの特殊文字)
469 @cindex markup mode, special characters (マークアップ モードでの特殊文字)
470 @cindex printing reserved characters (予約文字を譜刻する)
471 @cindex reserved characters, printing (予約文字を譜刻する)
472 @cindex printing special characters (特殊文字を譜刻する)
473 @cindex special characters, printing (特殊文字を譜刻する)
474 @cindex quoted text in markup mode (マークアップ モードでの引用譜で囲まれたテキスト)
475 @cindex markup mode, quoted text (マークアップ モードでの引用譜で囲まれたテキスト)
477 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
479 そのような文字列は最小のテキスト表記として扱われます。@c
480 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
481 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
482 そのまま (逐語的に) 譜刻されます。@c
484 それ自体の前にバックスラッシュを置くことによって譜刻されます。
486 @lilypond[quote,verbatim]
488 a'1^"\italic markup..."
489 a_\markup { \italic "... prints \"italic\" letters!" }
495 単語のリストをダブル クォーテーションで囲むか、@c
499 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
502 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
504 @lilypond[quote,verbatim]
506 c1^\markup { \center-column { a bbb c } }
507 c1^\markup { \center-column { a { bbb c } } }
508 c1^\markup { \center-column { a \line { bbb c } } }
509 c1^\markup { \center-column { a "bbb c" } }
513 マークアップを変数に格納することができます。@c
514 そのような変数は直接音符にくっつけることができます:
516 @lilypond[quote,verbatim]
517 allegro = \markup { \bold \large Allegro }
526 @ref{Text markup commands} に
527 @code{\markup} 特有のコマンドの徹底したリストがあります。
531 @ref{Text markup commands}
534 @file{scm/markup.scm}
540 マークアップ モードの構文エラー メッセージは混乱しやすいです。
543 @node フォントとフォント サイズを選択する
544 @unnumberedsubsubsec フォントとフォント サイズを選択する
545 @translationof Selecting font and font size
547 @cindex font switching (フォントの切り換え)
548 @cindex changing fonts (フォントを変更する)
549 @cindex switching fonts (フォントを切り換える)
555 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
557 @lilypond[quote,verbatim]
561 \italic { non troppo \underline Vivo }
564 d,_\markup { \italic quasi \smallCaps Tromba }
569 @cindex font size (フォント サイズ)
570 @cindex text size (テキスト サイズ)
572 @funindex \abs-fontsize
578 フォント サイズをグローバル譜サイズとの相対値で変更する方法はいくつかあります。
580 フォント サイズをあらかじめ定義されているサイズに設定することができます:
582 @lilypond[quote,verbatim]
584 b1_\markup { \huge Sinfonia }
585 b1^\markup { \teeny da }
586 b1-\markup { \normalsize camera }
590 フォント サイズを前の値との相対関係で設定することができます:
592 @lilypond[quote,verbatim]
594 b1_\markup { \larger Sinfonia }
595 b1^\markup { \smaller da }
596 b1-\markup { \magnify #0.6 camera }
600 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは@c
603 @lilypond[quote,verbatim]
605 b1_\markup { \fontsize #-2 Sinfonia }
606 b1^\markup { \fontsize #1 da }
607 b1-\markup { \fontsize #3 camera }
611 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに@c
614 @lilypond[quote,verbatim]
616 b1_\markup { \abs-fontsize #20 Sinfonia }
617 b1^\markup { \abs-fontsize #8 da }
618 b1-\markup { \abs-fontsize #14 camera }
623 各スペースのサイズが他の文字のサイズに適したものになるので、@c
626 @lilypond[quote,verbatim]
627 \markup \fontsize #6 \bold { Sinfonia da camera }
628 \markup \fontsize #6 \bold { "Sinfonia da camera" }
631 @cindex subscript (下付き文字)
632 @cindex superscript (上付き文字)
636 @funindex \normal-size-super
638 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
639 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
642 @lilypond[quote,verbatim]
645 \line { 1 \super st movement }
646 \line { 1 \normal-size-super st movement
647 \sub { (part two) } }
652 @cindex font families (フォント ファミリ)
654 マークアップ モードは代わりのフォント ファミリを選択するための@c
657 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
658 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
660 @lilypond[quote,verbatim]
663 \line { Act \number 1 }
664 \line { \sans { Scene I. } }
665 \line { \typewriter { Verona. An open place. } }
666 \line { Enter \roman Valentine and Proteus. }
672 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
673 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
676 @c \concat is actually documented in Align (it is not
677 @c a font-switching command). But we need it here. -vv
679 フォント切り替えやフォーマット コマンドの中には、@c
681 望まない空白を作り出すものがあります。@c
682 これはテキスト要素をつなげることによって容易に解決できます:
684 @lilypond[quote,verbatim]
688 \concat { 1 \super st }
692 \concat { \dynamic p , }
693 \italic { con dolce espressione }
699 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
702 @ref{フォント} で説明されているように、@c
703 カスタム フォント セットを定義することも可能です。
708 @funindex \normalsize
733 @file{scm/define-markup-commands.scm}
739 @rinternals{TextScript}
742 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
743 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
744 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
748 @unnumberedsubsubsec テキスト揃え
749 @translationof Text alignment
751 @cindex text, aligning (テキストを揃える)
752 @cindex aligning text (テキストを揃える)
753 @cindex aligning markup text (マークアップ テキストを揃える)
754 @cindex markup text, aligning (マークアップ テキストを揃える)
755 @cindex aligning markups (マークアップを揃える)
756 @cindex markups, aligning (マークアップを揃える)
759 マークアップ モードのテキストを配置する方法について説明します。@c
760 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
761 マークアップ オブジェクト全体を移動させることも可能です。
763 @c Padding commands should be mentioned on this page, but
764 @c most of these require \box to be more clearly illustrated. -vv
766 @cindex text, horizontal alignment (テキストを水平方向に揃える)
767 @cindex horizontal text alignment (テキストを水平方向に揃える)
769 @funindex \left-align
770 @funindex \center-align
771 @funindex \right-align
773 マークアップ オブジェクトの揃え方はいくつかあります。@c
774 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
776 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
778 @lilypond[quote,verbatim]
780 d''1-\markup { poco }
782 d-\markup { \left-align poco }
784 d-\markup { \center-align { poco } }
786 d-\markup { \right-align poco }
792 水平方向の揃え方は、数値を使って、微調整することができます:
794 @lilypond[quote,verbatim]
796 a'1-\markup { \halign #-1 poco }
798 a,-\markup { \halign #0 poco }
800 a,-\markup { \halign #0.5 poco }
802 a,-\markup { \halign #2 poco }
807 オブジェクトの中には揃えるための機能をそれ自身で持っているものがあり、@c
808 それらは上記のコマンドでは影響を受けません。@c
809 @ref{テキスト マーク} の中の例で示されているように、@c
810 そのようなマークアップ オブジェクト全体を移動させることが可能です。
812 @cindex text, vertical alignment (テキストを垂直方向に揃える)
813 @cindex vertical text alignment (テキストを垂直方向に揃える)
819 @c QUERY Should the function of ``\null'' be clarified? rp
821 垂直方向に揃える方法はもう少し複雑です。@c
822 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
823 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
825 移動させる要素の前に @emph{アンカ ポイント}
826 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
828 以下の例では 2 つのケースを示しています。@c
829 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
831 @lilypond[quote,verbatim]
835 \raise #2 { Scène 1 }
840 \lower #4 \bold { Très modéré }
844 \raise #4 \italic { Une forêt. }
850 @funindex \general-align
852 @funindex \translate-scaled
854 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
855 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
856 そのようなコマンドで移動させるオブジェクトの前には@c
859 @lilypond[quote,verbatim]
863 \translate #'(-1 . 2) "Scène 1"
868 \general-align #Y #3.2 \bold "Très modéré"
873 \translate-scaled #'(-1 . 2) \teeny "Une forêt."
879 @cindex multi-line markup (複数行にわたるマークアップ)
880 @cindex markup, multi-line (複数行にわたるマークアップ)
881 @cindex multi-line text (複数行にわたるテキスト)
882 @cindex text, multi-line (複数行にわたるテキスト)
883 @cindex text in columns (縦に積み重ねたテキスト)
884 @cindex columns, text (縦に積み重ねたテキスト)
887 @funindex \center-column
889 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
890 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
893 @lilypond[quote,verbatim]
909 @cindex centering text on the page (テキストをページの中央に揃える)
910 @cindex text, centering on the page (テキストをページの中央に揃える)
911 @cindex markup, centering on the page (マークアップをページの中央に揃える)
915 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
916 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
918 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
920 @lilypond[quote,verbatim]
923 \line { William S. Gilbert }
925 \huge \smallCaps "The Mikado"
927 \smallCaps "The Town of Titipu"
929 \line { Sir Arthur Sullivan }
937 @cindex wordwrapped text (折り返しされたテキスト)
938 @cindex text, wordwrapped (折り返しされたテキスト)
939 @cindex justified text (両端揃えのテキスト)
940 @cindex text, justified (両端揃えのテキスト)
941 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
942 @cindex markup text, justified (両端揃えのマークアップ テキスト)
947 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
948 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
950 @lilypond[quote,verbatim]
953 \line \smallCaps { La vida breve }
954 \line \bold { Acto I }
956 (La escena representa el corral de una casa de
957 gitanos en el Albaicín de Granada. Al fondo una
958 puerta por la que se ve el negro interior de
959 una Fragua, iluminado por los rojos resplandores
964 \line \bold { Acto II }
965 \override #'(line-width . 50)
967 (Calle de Granada. Fachada de la casa de Carmela
968 y su hermano Manuel con grandes ventanas abiertas
969 a través de las que se ve el patio
970 donde se celebra una alegre fiesta)
976 @cindex text alignment commands (テキスト揃えのコマンド)
977 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
978 @cindex alignment, text, commands (テキスト揃えのコマンド)
980 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
984 @rlearning{オブジェクトを移動させる}
991 @file{scm/define-markup-commands.scm}.
997 @rinternals{TextScript}
1000 @node マークアップ内部でのグラフィック記譜法
1001 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
1002 @translationof Graphic notation inside markup
1004 @cindex graphics, embedding (グラフィックを埋め込む)
1005 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
1006 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
1007 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
1008 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
1011 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
1013 @cindex decorating text (テキストを飾り付ける)
1014 @cindex framing text (テキストにフレームを付ける)
1015 @cindex text, framing (テキストにフレームを付ける)
1016 @cindex text, decorating (テキストを飾り付ける)
1017 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1018 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1022 @funindex \rounded-box
1027 マークアップ コマンドの中にはテキスト要素を@c
1028 グラフィックスで飾り付けることができるものがあります。
1030 @lilypond[quote,verbatim]
1031 \markup \fill-line {
1039 \bracket "1866 - 1925"
1042 \rounded-box \bold Prelude
1047 @cindex padding around text (テキストの周りのパディング)
1048 @cindex text padding (テキスト パディング)
1049 @cindex markup text padding (マークアップ テキスト パディング)
1051 @funindex \pad-markup
1053 @funindex \pad-to-box
1054 @funindex \pad-around
1056 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1058 パティングの増加は @ref{Align} で徹底的に記述されている@c
1059 マークアップ コマンドを用いて達成できます。
1061 @lilypond[quote,verbatim]
1062 \markup \fill-line {
1064 \box "Charles Ives (1874 - 1954)"
1066 \box \pad-markup #2 "THE UNANSWERED QUESTION"
1067 \box \pad-x #8 "A Cosmic Landscape"
1074 \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1075 \bold "Largo to Presto"
1078 "String quartet keeps very even time,
1079 Flute quartet keeps very uneven time."
1083 @cindex graphic notation (グラフィック記譜法)
1084 @cindex symbols, non-musical (音楽要素ではないシンボル)
1085 @cindex non-musical symbols (音楽要素ではないシンボル)
1086 @cindex notation, graphic (グラフィック記譜法)
1089 @funindex \draw-circle
1090 @funindex \filled-box
1092 @funindex \draw-line
1093 @funindex \arrow-head
1095 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1097 そのようなオブジェクトも組み合わせることができます。
1099 @lilypond[quote,verbatim]
1102 \draw-circle #4 #0.4 ##f
1103 \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1109 \draw-line #'(0 . 4)
1110 \arrow-head #Y #DOWN ##f
1115 @cindex embedded graphics (埋め込みグラフィック)
1116 @cindex images, embedding (画像を埋め込む)
1117 @cindex graphics, embedding (グラフィックを埋め込む)
1121 @funindex \postscript
1124 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1126 ネイティブの PostScript コードを用いて@c
1127 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1128 このような機能を使う場合、以下で示すように、@c
1129 描画サイズを明示的に指定することを推奨します:
1131 @lilypond[quote,verbatim,fragment]
1134 \epsfile #X #10 #"./context-example.eps"
1135 \with-dimensions #'(0 . 6) #'(0 . 10)
1151 @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,fragment]
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]
1207 ees\finger \markup \tied-lyric #"4~1"
1208 fis_\markup { \dynamic rf }
1221 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1223 @ref{The Emmentaler font} に、@c
1224 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1226 @lilypond[quote,verbatim]
1229 c'^\markup { \musicglyph #"eight" }
1231 c,8._\markup { \musicglyph #"clefs.G_change" }
1233 c2^\markup { \musicglyph #"timesig.neomensural94" }
1237 テキストではない図柄を譜刻するもう 1 つの方法が
1238 @ref{フォントの説明} で記述されています。@c
1239 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1241 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1243 @lilypond[quote,verbatim]
1246 \fret-diagram-terse #"x;x;o;2;3;2;"
1249 \harp-pedal #"^-v|--ov^"
1254 \musicglyph #"accordion.discant"
1256 \raise #0.5 \musicglyph #"accordion.dot"
1257 \raise #1.5 \musicglyph #"accordion.dot"
1262 @c The accordion diagram is actually taken from a snippet.
1265 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1268 @cindex score inside markup (マークアップ内部の楽譜)
1269 @cindex markup, score inside (マークアップ内部の楽譜)
1271 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1273 ネストされる @code{\score} ブロックには
1274 @code{\layout} ブロックを含める必要があります:
1276 @lilypond[quote,verbatim]
1280 \relative { c'4 d e f }
1289 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1294 @ref{The Emmentaler 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 \justified-lines
1320 @funindex \wordwrap-lines
1322 標準のマークアップ オブジェクトは分割することができません。@c
1324 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1327 @lilypond[quote,verbatim]
1341 この構文はマークアップのリストを受け付けます。@c
1352 @ref{Text markup list commands} に、@c
1353 マークアップ リスト コマンドの徹底したリストがあります。
1357 @ref{Text markup list commands}
1360 @rextend{New markup list command definition}
1366 @file{scm/define-markup-commands.scm}
1369 @rinternals{TextScript}
1371 @funindex \markuplist
1379 @translationof Fonts
1382 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1391 @unnumberedsubsubsec フォントの説明
1392 @translationof Fonts explained
1395 @cindex fonts, explained (フォントの説明)
1396 @cindex braces, various sizes (さまざまなサイズの波括弧)
1397 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1398 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1400 @funindex font-interface
1402 フォントはいくつかのライブラリを通じて扱われます。@c
1403 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1404 選択されたフォントは Pango を用いて描かれます。
1406 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1409 LilyPond のさまざまな @code{Feta} グリフを@c
1410 マークアップ モードの中で直接使用することが可能になります:
1412 @lilypond[quote,verbatim,fragment]
1415 \override #'(font-encoding . fetaBraces)
1417 \override #'(font-encoding . fetaText)
1419 \override #'(font-encoding . fetaMusic)
1420 \lookup #"noteheads.s0petrucci"
1427 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1428 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1429 もっと簡単な構文を用いて利用することができます。
1431 @code{fetaBraces} に保持されている図柄を使う場合、@c
1432 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1433 @code{0} から @code{575} までの整数すべてを指定でき、@c
1434 @code{0} は最小の波括弧を提供します。@c
1435 最適な値はトライ&エラーで決定する必要があります。@c
1437 右波括弧は回転によって得ることができます
1438 -- @ref{Rotating objects} を参照してください。
1440 3 ファミリのテキスト フォントが利用可能になっています:
1443 @emph{roman} (serif) フォントの@c
1444 デフォルトは LilyPond Serif (TeX Gyre Schola のエイリアス)です。
1447 デフォルトは LilyPond Sans Serif (TeX Gyre Heros のエイリアス)です。
1449 @emph{typewriter} (monospaced) フォントの@c
1450 デフォルトは LilyPond Monospace (TeX Gyre Cursor のエイリアス)です。
1453 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1454 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1455 デフォルト サイズから変更する場合、@c
1456 @code{font-size} に提供する値が必要となります。
1458 @lilypond[quote,verbatim,fragment]
1459 \override Score.RehearsalMark.font-family = #'typewriter
1460 \mark \markup "Ouverture"
1461 \override Voice.TextScript.font-shape = #'italic
1462 \override Voice.TextScript.font-series = #'bold
1463 d''2.^\markup "Allegro"
1464 \override Voice.TextScript.font-size = #-3
1469 同様の構文をマークアップ モードの中で使用することができます。@c
1470 しかしながら、マークアップ モードの中では、@c
1471 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1472 もっと簡単な構文を使用するほうが良いでしょう:
1474 @lilypond[quote,verbatim]
1478 \override #'(font-shape . italic)
1479 \override #'(font-size . 4)
1483 \override #'(font-family . typewriter)
1485 \override #'(font-series . bold)
1489 \override #'(font-family . sans)
1496 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1497 他のフォントを使用することも可能です。@c
1498 他のフォントを使用する方法は以下のセクションで説明されています:
1499 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1503 @ref{The Emmentaler font},
1504 @ref{マークアップ内部での音楽記譜法},
1505 @ref{Rotating objects},
1506 @ref{フォントとフォント サイズを選択する},
1511 @unnumberedsubsubsec 個々に登録するフォント
1512 @translationof Single entry fonts
1515 オペレーティング システムにインストールされていて、@c
1516 FontConfig に認識されている任意のフォントを@c
1519 @lilypond[quote,verbatim,fragment]
1520 \override Staff.TimeSignature.font-name = #"Bitstream Charter"
1521 \override Staff.TimeSignature.font-size = #2
1525 \override #'(font-name . "Bitstream Vera Sans,sans-serif, Oblique Bold")
1526 { Vera Oblique Bold }
1530 @cindex fonts, finding available (利用可能なフォントを見つける)
1531 @cindex finding available fonts (利用可能なフォントを見つける)
1532 @cindex listing available fonts (利用可能なフォントをリストアップする)
1533 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1535 @var{font-name} はカンマ区切りの @q{フォント} のリストと、@c
1536 スペース区切りの @q{スタイル} のリストを記述できます。@c
1537 リスト中の @q{フォント} がインストールされていて、@c
1538 要求されたグリフを含んでいれば、それが使われます。@c
1539 そうでないなら代わりにリストの @emph{次} のフォントが使われます。
1541 @funindex show-available-fonts
1543 lilypond を以下のオプションを付けて実行すると@c
1544 オペレーティング システムで利用可能な@c
1548 lilypond -dshow-available-fonts x
1559 @c A source file gets never installed...
1561 @c @file{lily/font-config-scheme.cc}.
1565 @unnumberedsubsubsec ドキュメント全体のフォント
1566 @translationof Entire document fonts
1568 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1569 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1570 として使用されるデフォルト フォントを変更することができます。@c
1571 この例ではグローバル譜サイズにセットされた値で自動的にフォントのサイズを@c
1573 @ref{個々に登録するフォント} のように、@c
1574 カンマ区切りの @q{フォント} のリストを記述できます。@c
1575 しかし、フォント @q{スタイル} は記述できません。@c
1576 フォントについての説明は、@ref{フォントの説明} を参照してください。
1578 @cindex font families, setting (フォント ファミリを設定する)
1579 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1581 @funindex make-pango-font-tree
1583 @lilypond[verbatim,quote]
1586 (make-pango-font-tree "Times New Roman"
1587 "Nimbus Sans,Nimbus Sans L"
1589 (/ staff-height pt 20)))
1596 \typewriter typewriter. }
1600 @c we don't do Helvetica / Courier, since GS incorrectly loads
1607 @ref{フォントとフォント サイズを選択する},