]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/ja/notation/text.itely
2182ad81864dba1be359d32ce124e085134a4ea6
[lilypond.git] / Documentation / ja / notation / text.itely
1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
2
3 @ignore
4     Translation of GIT committish: eb38c33a95cbe6adf9f176dfbb794373ec062605
5
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..
9 @end ignore
10
11 @c \version "2.19.21"
12
13
14 @c Translators: Tomohiro Tatejima, Masamichi Hosoda, Yoshiki Sawada
15 @c Translation status: post-GDP
16
17
18 @node テキスト
19 @section テキスト
20 @translationof Text
21
22 @lilypondfile[quote]{text-headword.ly}
23
24 このセクションでは、@c
25 楽譜に (さまざまなフォーマットの) テキストを含める方法について説明します。
26
27 @noindent
28 ここでは扱わないいくつかのテキスト要素については他のセクションで説明します:
29 @ref{Vocal music}, @ref{Titles and headers}。
30
31 @menu
32 * テキストを記述する::
33 * テキストをフォーマットする::
34 * フォント::
35 @end menu
36
37 @node テキストを記述する
38 @subsection テキストを記述する
39 @translationof Writing text
40
41 このセクションでは、楽譜にテキストを付け加えるいくつかの方法を紹介します。
42
43 @cindex Text, other languages (他の言語のテキスト)
44 @warning{アクセント付きのテキストや特殊なテキスト
45 (他の言語の文字など) を記述するには、@c
46 単純にその文字を直接 LilyPond ファイルに挿入します。@c
47 ファイルは UTF-8 で保存しなければなりません。@c
48 更なる情報は @ref{Text encoding} を参照してください。}
49
50 @menu
51 * テキスト スクリプト::
52 * テキスト スパナ::
53 * テキスト マーク::
54 * 独立したテキスト::
55 @end menu
56
57
58 @node テキスト スクリプト
59 @unnumberedsubsubsec テキスト スクリプト
60 @translationof Text scripts
61
62 @cindex Text scripts (テキスト スクリプト)
63 @cindex text items, non-empty (空ではないテキスト アイテム)
64 @cindex non-empty texts (空ではないテキスト)
65 @cindex quoted text (引用符で囲まれたテキスト)
66
67 以下の例で示すように、@c
68 シンプルな @qq{引用符で囲まれたテキスト} 指示を楽譜に@c
69 付け加えることができます。@c
70 そのような指示は、@ref{Direction and placement} で説明する構文を用いて、@c
71 手動で譜の上または下に配置することができます。
72
73 @lilypond[quote,verbatim]
74 \relative { a'8^"pizz." g f e a4-"scherz." f }
75 @end lilypond
76
77 この構文は実際には短縮記法です。@c
78 @ref{テキストをフォーマットする} で記述されているように、@c
79 @code{\markup} ブロックを用いて明示的に、@c
80 より複雑なテキスト フォーマットを音符に付け加えることができます。
81
82 @lilypond[quote,verbatim]
83 \relative {
84   a'8^\markup { \italic pizz. } g f e
85   a4_\markup { \tiny scherz. \bold molto } f }
86 @end lilypond
87
88 デフォルトでは、テキスト指示は音符の間隔に影響を与えません。@c
89 しかしながら、テキスト指示の幅を考慮に入れることもできます:
90 以下の例では、最初のテキスト文字列は音符の間隔に影響を与えていませんが、@c
91 2 番目のテキスト文字列は影響を与えています。
92
93 @lilypond[quote,verbatim]
94 \relative {
95   a'8^"pizz." g f e
96   \textLengthOn
97   a4_"scherzando" f
98 }
99 @end lilypond
100
101 テキスト スクリプトだけでなく、@c
102 アーティキュレーションを音符に付けることもできます。@c
103 更なる情報は @ref{アーティキュレーションと装飾} を参照してください。
104
105 テキスト スクリプトとアーティキュレーションの順序についての更なる情報は
106 @rlearning{オブジェクトの配置} を参照してください。
107
108 @funindex \textLengthOn
109 @funindex \textLengthOff
110
111 @predefined
112 @code{\textLengthOn},
113 @code{\textLengthOff}
114 @endpredefined
115
116 @seealso
117 学習マニュアル:
118 @rlearning{オブジェクトの配置}
119
120 記譜法リファレンス:
121 @ref{テキストをフォーマットする},
122 @ref{Direction and placement},
123 @ref{アーティキュレーションと装飾}
124
125 コード断片集:
126 @rlsr{Text}
127
128 内部リファレンス:
129 @rinternals{TextScript}
130
131 @cindex text outside margin (マージンからはみ出すテキスト)
132 @cindex margin, text running over (マージンからはみ出すテキスト)
133 @cindex text, keeping inside margin (テキストをマージン内に収める)
134 @cindex lyrics, keeping inside margin (歌詞をマージン内に収める)
135
136 @knownissues
137 テキスト スクリプトと歌詞がマージンに収まることを保証するためのチェックは@c
138 計算量を増やします。@c
139 処理速度を上げる必要がある場合は、以下を用います:
140
141 @example
142 \override Score.PaperColumn.keep-inside-line = ##f
143 @end example
144
145
146 @node テキスト スパナ
147 @unnumberedsubsubsec テキスト スパナ
148 @translationof Text spanners
149
150 @cindex Text spanners (テキスト スパナ)
151
152 いくつかの演奏指示
153 -- 例えば @notation{rallentando} や @notation{accelerando} -- は、@c
154 テキストとして記述され、点線で複数の音符の上に伸ばされます。@c
155 そのようなオブジェクト
156 -- @qq{スパナ} と呼ばれます -- は、@c
157 以下の構文を用いることで、@c
158 ある音符から他の音符までの範囲に作成することができます:
159
160 @lilypond[verbatim,quote]
161 \relative {
162   \override TextSpanner.bound-details.left.text = "rit."
163   b'1\startTextSpan
164   e,\stopTextSpan
165 }
166 @end lilypond
167
168 @cindex text spanners, formatting (テキスト スパナ フォーマット)
169 @cindex formatting text spanners (テキスト スパナ フォーマット)
170
171 @noindent
172 譜刻される文字列はオブジェクト プロパティを通じてセットされます。@c
173 デフォルトでは文字列はイタリック体で譜刻されます。@c
174 しかしながら、@ref{テキストをフォーマットする} で記述されているように、@c
175 @code{\markup} ブロックを用いることで他の書体にすることができます。
176
177 @lilypond[quote,verbatim]
178 \relative {
179   \override TextSpanner.bound-details.left.text =
180     \markup { \upright "rit." }
181   b'1\startTextSpan c
182   e,\stopTextSpan
183 }
184 @end lilypond
185
186 テキスト文字列と同様に、@c
187 線のスタイルもオブジェクト プロパティとして定義することができます。@c
188 線スタイルの構文は @ref{Line styles} で記述されています。
189
190 @funindex \textSpannerUp
191 @funindex \textSpannerDown
192 @funindex \textSpannerNeutral
193
194
195 @predefined
196 @code{\textSpannerUp},
197 @code{\textSpannerDown},
198 @code{\textSpannerNeutral}
199 @endpredefined
200
201 @knownissues
202 LilyPond が処理できるテキスト スパナは 1 ボイスにつき、1 つだけです。
203
204 @snippets
205
206 @lilypondfile[verbatim,quote,texidoc,doctitle]
207 {dynamics-text-spanner-postfix.ly}
208
209 @lilypondfile[verbatim,quote,texidoc,doctitle]
210 {dynamics-custom-text-spanner-postfix.ly}
211
212 @seealso
213 記譜法リファレンス:
214 @ref{Line styles},
215 @ref{強弱記号},
216 @ref{テキストをフォーマットする}
217
218 コード断片集:
219 @rlsr{Text},
220 @rlsr{Expressive marks}
221
222 内部リファレンス:
223 @rinternals{TextSpanner}
224
225
226 @node テキスト マーク
227 @unnumberedsubsubsec テキスト マーク
228 @translationof Text marks
229
230
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 (小節線上のシンボル)
238
239 @funindex \mark
240 @funindex \markup
241
242 @ref{リハーサル記号} で記述されている構文を用いて、@c
243 さまざまなテキスト要素を楽譜に付け加えることができます:
244
245 @c \mark needs to be placed on a separate line (it's not
246 @c attached to an object like \markup is). -vv
247
248 @lilypond[verbatim,quote]
249 \relative {
250   \mark "Verse"
251   c'2 g'
252   \bar "||"
253   \mark "Chorus"
254   g2 c,
255   \bar "|."
256 }
257 @end lilypond
258
259 この構文を用いることで、@c
260 任意のテキストを小節線上に配置することが可能です。@c
261 @ref{テキストをフォーマットする} で記述されているように、@c
262 @code{\markup} ブロックを用いてより複雑なテキスト フォーマットを@c
263 付け加えることもできます:
264
265 @lilypond[quote,verbatim]
266 \relative {
267   <c' e>1
268   \mark \markup { \italic { colla parte } }
269   <d f>2 <e g>
270   <c f aes>1
271 }
272 @end lilypond
273
274 @noindent
275 さらに、@ref{マークアップ内部での音楽記譜法} で説明されているように、@c
276 この構文で適切なシンボル名を指定することによって、@c
277 特殊な記号 -- コーダ、セーニョ、フェルマータなど -- を譜刻することが可能です:
278
279 @lilypond[quote,verbatim]
280 \relative {
281   <bes' f>2 <aes d>
282   \mark \markup { \musicglyph #"scripts.ufermata" }
283   <e g>1
284 }
285 @end lilypond
286
287 @noindent
288 このようなオブジェクトを配置できる位置は、@c
289 楽譜の最上段の譜の上だけです。@c
290 オブジェクトを小節の終わりで指定するか、途中で指定するか次第で、@c
291 小節線の上に配置されたり、音符の間に配置されたりします。@c
292 改行位置で指定した場合、そのマークは次の行の先頭に譜刻されます。
293
294 @lilypond[quote,verbatim,ragged-right]
295 \relative c'' {
296   \mark "Allegro"
297   c1 c
298   \mark "assai" \break
299   c  c
300 }
301 @end lilypond
302
303 @funindex \markLengthOn
304 @funindex \markLengthOff
305
306 @predefined
307 @code{\markLengthOn},
308 @code{\markLengthOff}
309 @endpredefined
310
311 @snippets
312
313 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
314 {printing-marks-at-the-end-of-a-line.ly}
315
316 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
317 {printing-marks-on-every-staff.ly}
318
319 @seealso
320 記譜法リファレンス:
321 @ref{リハーサル記号},
322 @ref{テキストをフォーマットする},
323 @ref{マークアップ内部での音楽記譜法},
324 @ref{The Emmentaler font}.
325
326 コード断片集:
327 @rlsr{Text}
328
329 内部リファレンス:
330 @rinternals{MarkEvent},
331 @rinternals{Mark_engraver},
332 @rinternals{RehearsalMark}
333
334
335 @node 独立したテキスト
336 @unnumberedsubsubsec 独立したテキスト
337 @translationof Separate text
338
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 (最上位レベルのテキスト)
345
346 @funindex \markup
347
348 @code{\markup} ブロックはそれ自体で、@c
349 すべての @code{\score} ブロックの外側に、@c
350 @qq{最上位レベルの表記} として存在することができます。@c
351 この構文は @ref{File structure} で記述されています。
352
353 @lilypond[verbatim,quote]
354 \markup {
355   Tomorrow, and tomorrow, and tomorrow...
356 }
357 @end lilypond
358
359 @noindent
360 これによりテキストを音楽から分離して譜刻することが可能になります。@c
361 これは、@ref{Multiple scores in a book} で記述されているように、@c
362 入力ファイルが複数の楽曲を保持している場合に特に有用です。
363
364 @lilypond[quote,verbatim]
365 \score {
366   c'1
367 }
368 \markup {
369   Tomorrow, and tomorrow, and tomorrow...
370 }
371 \score {
372   c'1
373 }
374 @end lilypond
375
376 独立したテキスト ブロックは複数のページに広がることができます。@c
377 これにより、@c
378 テキスト ドキュメントやブック全体を LilyPond の中に譜刻することが@c
379 可能になります。@c
380 この機能と、この機能の構文は
381 @ref{複数ページにわたるマークアップ} で記述されています。
382
383
384 @funindex \markup
385 @funindex \markuplist
386
387 @predefined
388 @code{\markup},
389 @code{\markuplist}
390 @endpredefined
391
392 @snippets
393
394 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
395 {stand-alone-two-column-markup.ly}
396
397 @seealso
398 記譜法リファレンス:
399 @ref{テキストをフォーマットする},
400 @ref{File structure},
401 @ref{Multiple scores in a book},
402 @ref{複数ページにわたるマークアップ}
403
404 コード断片集:
405 @rlsr{Text}
406
407 内部リファレンス:
408 @rinternals{TextScript}
409
410
411 @node テキストをフォーマットする
412 @subsection テキストをフォーマットする
413 @translationof Formatting text
414
415 このセクションでは、@code{\markup} モード特有の構文を用いた@c
416 基本的かつ高度なテキスト フォーマットについて説明します。
417
418 @menu
419 * テキスト マークアップの導入部::
420 * フォントとフォント サイズを選択する::
421 * テキスト揃え::
422 * マークアップ内部でのグラフィック記譜法::
423 * マークアップ内部での音楽記譜法::
424 * 複数ページにわたるマークアップ::
425 @end menu
426
427 @node テキスト マークアップの導入部
428 @unnumberedsubsubsec テキスト マークアップの導入部
429 @translationof Text markup introduction
430
431 @cindex markup (マークアップ)
432 @cindex text markup (テキスト マークアップ)
433 @cindex markup text (マークアップ テキスト)
434 @cindex typeset text (テキストの譜刻)
435
436 @funindex \markup
437
438 @code{\markup} ブロックは @qq{マークアップ モード} と呼ばれる@c
439 拡張可能な構文でテキストを譜刻するために用いられます。
440
441 @cindex markup expressions (マークアップ表記)
442 @cindex expressions, markup (マークアップ表記)
443 @cindex markup syntax (マークアップ構文)
444 @cindex syntax, markup (マークアップ構文)
445
446 マークアップ構文は LilyPond の通常の構文と同様です:
447 @code{\markup} 表記は波括弧 @code{@{ @dots{} @}} で囲まれます。@c
448 単語 1 つが最小の表記と見なされ、その場合は波括弧で囲む必要はありません。
449
450 シンプルな @qq{引用符で囲まれたテキスト} 指示とは異なり、@c
451 @code{\markup} ブロックは、@c
452 バックスラッシュ @code{\} を用いて挿入されるネストされた表記や@c
453 マークアップ コマンドを保持することができます。@c
454 そのようなコマンドは直後の表記にのみ影響を与えます。
455
456 @lilypond[quote,verbatim]
457 \relative {
458   a'1-\markup intenso
459   a2^\markup { poco \italic più forte  }
460   c e1
461   d2_\markup { \italic "string. assai" }
462   e
463   b1^\markup { \bold { molto \italic  agitato } }
464   c
465 }
466 @end lilypond
467
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 (マークアップ モードでの引用譜で囲まれたテキスト)
476
477 また、@code{\markup} ブロックは引用符で囲まれたテキスト文字列を@c
478 保持することがあります。@c
479 そのような文字列は最小のテキスト表記として扱われます。@c
480 そのため、引用符で囲まれたマークアップ コマンドや特殊文字
481 (@code{\} や @code{#} など) はテキストのフォーマットに影響を与えず、@c
482 そのまま (逐語的に) 譜刻されます。@c
483 ダブル クォーテーション自体は、@c
484 それ自体の前にバックスラッシュを置くことによって譜刻されます。
485
486 @lilypond[quote,verbatim]
487 \relative {
488   a'1^"\italic markup..."
489   a_\markup { \italic "... prints \"italic\" letters!" }
490   a a
491 }
492 @end lilypond
493
494 表記をばらばらなものとして扱うには、@c
495 単語のリストをダブル クォーテーションで囲むか、@c
496 前にコマンドを置く必要があります。@c
497 マークアップ表記の定義の仕方は、@c
498 表記の配置のされ方
499 -- 垂直に中央揃えして積み重ねられる、水平に並べられる --
500 に影響を与えます。@c
501 以下の例では、@c
502 2 番目の @code{\markup} 表記は 1 番目の表記と同じように扱われています:
503
504 @lilypond[quote,verbatim]
505 \relative c'' {
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" } }
510 }
511 @end lilypond
512
513 マークアップを変数に格納することができます。@c
514 そのような変数は直接音符にくっつけることができます:
515
516 @lilypond[quote,verbatim]
517 allegro = \markup { \bold \large Allegro }
518
519 {
520   d''8.^\allegro
521   d'16 d'4 r2
522 }
523 @end lilypond
524
525 @noindent
526 @ref{Text markup commands} に
527 @code{\markup} 特有のコマンドの徹底したリストがあります。
528
529 @seealso
530 記譜法リファレンス:
531 @ref{Text markup commands}
532
533 インストールされているファイル:
534 @file{scm/markup.scm}
535
536 コード断片集:
537 @rlsr{Text}
538
539 @knownissues
540 マークアップ モードの構文エラー メッセージは混乱しやすいです。
541
542
543 @node フォントとフォント サイズを選択する
544 @unnumberedsubsubsec フォントとフォント サイズを選択する
545 @translationof Selecting font and font size
546
547 @cindex font switching (フォントの切り換え)
548 @cindex changing fonts (フォントを変更する)
549 @cindex switching fonts (フォントを切り換える)
550
551 @funindex \italic
552 @funindex \bold
553 @funindex \underline
554
555 マークアップ モードでは、基本的なフォント切り替えがサポートされています:
556
557 @lilypond[quote,verbatim]
558 \relative {
559   d''1^\markup {
560     \bold { Più mosso }
561     \italic { non troppo \underline Vivo }
562   }
563   r2 r4 r8
564   d,_\markup { \italic quasi \smallCaps Tromba }
565   f1 d2 r
566 }
567 @end lilypond
568
569 @cindex font size (フォント サイズ)
570 @cindex text size (テキスト サイズ)
571
572 @funindex \abs-fontsize
573 @funindex \fontsize
574 @funindex \smaller
575 @funindex \larger
576 @funindex \magnify
577
578 フォント サイズをグローバル譜サイズとの相対値で変更する方法はいくつかあります。
579
580 フォント サイズをあらかじめ定義されているサイズに設定することができます:
581
582 @lilypond[quote,verbatim]
583 \relative b' {
584   b1_\markup { \huge Sinfonia }
585   b1^\markup { \teeny da }
586   b1-\markup { \normalsize camera }
587 }
588 @end lilypond
589
590 フォント サイズを前の値との相対関係で設定することができます:
591
592 @lilypond[quote,verbatim]
593 \relative b' {
594   b1_\markup { \larger Sinfonia }
595   b1^\markup { \smaller da }
596   b1-\markup { \magnify #0.6  camera }
597 }
598 @end lilypond
599
600 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは@c
601 縮小させることができます:
602
603 @lilypond[quote,verbatim]
604 \relative b' {
605   b1_\markup { \fontsize #-2 Sinfonia }
606   b1^\markup { \fontsize #1 da }
607   b1-\markup { \fontsize #3 camera }
608 }
609 @end lilypond
610
611 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに@c
612 設定することができます:
613
614 @lilypond[quote,verbatim]
615 \relative b' {
616   b1_\markup { \abs-fontsize #20 Sinfonia }
617   b1^\markup { \abs-fontsize #8 da }
618   b1-\markup { \abs-fontsize #14 camera }
619 }
620 @end lilypond
621
622 テキストにスペースが含まれる場合、@c
623 各スペースのサイズが他の文字のサイズに適したものになるので、@c
624 引用符の内側にすべて置くのがベストです。
625
626 @lilypond[quote,verbatim]
627 \markup \fontsize #6 \bold { Sinfonia da camera }
628 \markup \fontsize #6 \bold { "Sinfonia da camera" }
629 @end lilypond
630
631 @cindex subscript (下付き文字)
632 @cindex superscript (上付き文字)
633
634 @funindex \super
635 @funindex \sub
636 @funindex \normal-size-super
637
638 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
639 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
640 通常サイズにすることもできます:
641
642 @lilypond[quote,verbatim]
643 \markup {
644   \column {
645     \line { 1 \super st movement }
646     \line { 1 \normal-size-super st movement
647       \sub { (part two) }  }
648   }
649 }
650 @end lilypond
651
652 @cindex font families (フォント ファミリ)
653
654 マークアップ モードは代わりのフォント ファミリを選択するための@c
655 簡単な方法を提供します。@c
656 他を指定しないかぎり、@c
657 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
658 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
659
660 @lilypond[quote,verbatim]
661 \markup {
662   \column {
663     \line { Act \number 1 }
664     \line { \sans { Scene I. } }
665     \line { \typewriter { Verona. An open place. } }
666     \line { Enter \roman Valentine and Proteus. }
667   }
668 }
669 @end lilypond
670
671 @noindent
672 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
673 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
674 すべての文字を提供しないものもあります。
675
676 @c \concat is actually documented in Align (it is not
677 @c a font-switching command).  But we need it here. -vv
678
679 フォント切り替えやフォーマット コマンドの中には、@c
680 単語の中で使用されると@c
681 望まない空白を作り出すものがあります。@c
682 これはテキスト要素をつなげることによって容易に解決できます:
683
684 @lilypond[quote,verbatim]
685 \markup {
686   \column {
687     \line {
688       \concat { 1 \super st }
689       movement
690     }
691     \line {
692       \concat { \dynamic p , }
693       \italic { con dolce espressione }
694     }
695   }
696 }
697 @end lilypond
698
699 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
700 徹底したリストがあります。
701
702 @ref{フォント} で説明されているように、@c
703 カスタム フォント セットを定義することも可能です。
704
705 @funindex \teeny
706 @funindex \tiny
707 @funindex \small
708 @funindex \normalsize
709 @funindex \large
710 @funindex \huge
711 @funindex \smaller
712 @funindex \larger
713
714 @predefined
715 @code{\teeny},
716 @code{\tiny},
717 @code{\small},
718 @code{\normalsize},
719 @code{\large},
720 @code{\huge},
721 @code{\smaller},
722 @code{\larger}
723 @endpredefined
724
725 @seealso
726 記譜法リファレンス:
727 @ref{フォント},
728 @ref{新たな強弱記号},
729 @ref{手動の繰り返し記号},
730 @ref{フォント}
731
732 インストールされているファイル:
733 @file{scm/define-markup-commands.scm}
734
735 コード断片集:
736 @rlsr{Text}
737
738 内部リファレンス:
739 @rinternals{TextScript}
740
741 @knownissues
742 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
743 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
744 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
745
746
747 @node テキスト揃え
748 @unnumberedsubsubsec テキスト揃え
749 @translationof Text alignment
750
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 (マークアップを揃える)
757
758 このサブセクションでは、@c
759 マークアップ モードのテキストを配置する方法について説明します。@c
760 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
761 マークアップ オブジェクト全体を移動させることも可能です。
762
763 @c Padding commands should be mentioned on this page, but
764 @c most of these require \box to be more clearly illustrated. -vv
765
766 @cindex text, horizontal alignment (テキストを水平方向に揃える)
767 @cindex horizontal text alignment (テキストを水平方向に揃える)
768
769 @funindex \left-align
770 @funindex \center-align
771 @funindex \right-align
772
773 マークアップ オブジェクトの揃え方はいくつかあります。@c
774 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
775 以下の例では、@c
776 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
777
778 @lilypond[quote,verbatim]
779 \relative {
780   d''1-\markup { poco }
781   f
782   d-\markup { \left-align poco }
783   f
784   d-\markup { \center-align { poco } }
785   f
786   d-\markup { \right-align poco }
787 }
788 @end lilypond
789
790 @funindex \halign
791
792 水平方向の揃え方は、数値を使って、微調整することができます:
793
794 @lilypond[quote,verbatim]
795 \relative {
796   a'1-\markup { \halign #-1 poco }
797   e'
798   a,-\markup { \halign #0 poco }
799   e'
800   a,-\markup { \halign #0.5 poco }
801   e'
802   a,-\markup { \halign #2 poco }
803 }
804 @end lilypond
805
806 @noindent
807 オブジェクトの中には揃えるための機能をそれ自身で持っているものがあり、@c
808 それらは上記のコマンドでは影響を受けません。@c
809 @ref{テキスト マーク} の中の例で示されているように、@c
810 そのようなマークアップ オブジェクト全体を移動させることが可能です。
811
812 @cindex text, vertical alignment (テキストを垂直方向に揃える)
813 @cindex vertical text alignment (テキストを垂直方向に揃える)
814
815 @funindex \raise
816 @funindex \lower
817 @funindex \null
818
819 @c QUERY Should the function of ``\null'' be clarified? rp
820
821 垂直方向に揃える方法はもう少し複雑です。@c
822 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
823 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
824 特定要素だけをを移動させるには、@c
825 移動させる要素の前に @emph{アンカ ポイント}
826 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
827 を置く必要があります。@c
828 以下の例では 2 つのケースを示しています。@c
829 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
830
831 @lilypond[quote,verbatim]
832 \relative {
833   d'2^\markup {
834     Acte I
835     \raise #2 { Scène 1 }
836   }
837   a'
838   g_\markup {
839     \null
840     \lower #4 \bold { Très modéré }
841   }
842   a
843   d,^\markup {
844     \raise #4 \italic { Une forêt. }
845   }
846   a'4 a g2 a
847 }
848 @end lilypond
849
850 @funindex \general-align
851 @funindex \translate
852 @funindex \translate-scaled
853
854 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
855 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
856 そのようなコマンドで移動させるオブジェクトの前には@c
857 アンカ ポイントを置く必要があります:
858
859 @lilypond[quote,verbatim]
860 \relative {
861   d'2^\markup {
862     Acte I
863     \translate #'(-1 . 2) "Scène 1"
864   }
865   a'
866   g_\markup {
867     \null
868     \general-align #Y #3.2 \bold "Très modéré"
869   }
870   a
871   d,^\markup {
872     \null
873     \translate-scaled #'(-1 . 2) \teeny "Une forêt."
874   }
875   a'4 a g2 a
876 }
877 @end lilypond
878
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 (縦に積み重ねたテキスト)
885
886 @funindex \column
887 @funindex \center-column
888
889 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
890 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
891 左揃えあるいは中央揃えされています:
892
893 @lilypond[quote,verbatim]
894 \markup {
895   \column {
896     a
897     "b c"
898     \line { d e f }
899   }
900   \hspace #10
901   \center-column {
902     a
903     "b c"
904     \line { d e f }
905   }
906 }
907 @end lilypond
908
909 @cindex centering text on the page (テキストをページの中央に揃える)
910 @cindex text, centering on the page (テキストをページの中央に揃える)
911 @cindex markup, centering on the page (マークアップをページの中央に揃える)
912
913 @funindex \fill-line
914
915 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
916 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
917 さらに、@c
918 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
919
920 @lilypond[quote,verbatim]
921 \markup {
922   \fill-line {
923     \line { William S. Gilbert }
924     \center-column {
925       \huge \smallCaps "The Mikado"
926       or
927       \smallCaps "The Town of Titipu"
928     }
929     \line { Sir Arthur Sullivan }
930   }
931 }
932 \markup {
933   \fill-line { 1885 }
934 }
935 @end lilypond
936
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 (両端揃えのマークアップ テキスト)
943
944 @funindex \wordwrap
945 @funindex \justify
946
947 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
948 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
949
950 @lilypond[quote,verbatim]
951 \markup {
952   \column {
953     \line  \smallCaps { La vida breve }
954     \line \bold { Acto I }
955     \wordwrap \italic {
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
960       del fuego.)
961     }
962     \hspace #0
963
964     \line \bold { Acto II }
965     \override #'(line-width . 50)
966     \justify \italic {
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)
971     }
972   }
973 }
974 @end lilypond
975
976 @cindex text alignment commands (テキスト揃えのコマンド)
977 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
978 @cindex alignment, text, commands (テキスト揃えのコマンド)
979
980 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
981
982 @seealso
983 学習マニュアル:
984 @rlearning{オブジェクトを移動させる}
985
986 記譜法リファレンス:
987 @ref{Align},
988 @ref{テキスト マーク}
989
990 インストールされているファイル:
991 @file{scm/define-markup-commands.scm}.
992
993 コード断片集:
994 @rlsr{Text}
995
996 内部リファレンス:
997 @rinternals{TextScript}
998
999
1000 @node マークアップ内部でのグラフィック記譜法
1001 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
1002 @translationof Graphic notation inside markup
1003
1004 @cindex graphics, embedding (グラフィックを埋め込む)
1005 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
1006 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
1007 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
1008 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
1009
1010 マークアップ コマンドを用いて、@c
1011 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
1012
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 (マークアップ テキストにフレームを付ける)
1019
1020 @funindex \box
1021 @funindex \circle
1022 @funindex \rounded-box
1023 @funindex \bracket
1024 @funindex \hbracket
1025
1026 以下の例で示すように、@c
1027 マークアップ コマンドの中にはテキスト要素を@c
1028 グラフィックスで飾り付けることができるものがあります。
1029
1030 @lilypond[quote,verbatim]
1031 \markup \fill-line {
1032   \center-column {
1033     \circle Jack
1034     \box "in the box"
1035     \null
1036     \line {
1037       Erik Satie
1038       \hspace #3
1039       \bracket "1866 - 1925"
1040     }
1041     \null
1042     \rounded-box \bold Prelude
1043   }
1044 }
1045 @end lilypond
1046
1047 @cindex padding around text (テキストの周りのパディング)
1048 @cindex text padding (テキスト パディング)
1049 @cindex markup text padding (マークアップ テキスト パディング)
1050
1051 @funindex \pad-markup
1052 @funindex \pad-x
1053 @funindex \pad-to-box
1054 @funindex \pad-around
1055
1056 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1057 あります。@c
1058 パティングの増加は @ref{Align} で徹底的に記述されている@c
1059 マークアップ コマンドを用いて達成できます。
1060
1061 @lilypond[quote,verbatim]
1062 \markup \fill-line {
1063   \center-column {
1064     \box "Charles Ives (1874 - 1954)"
1065     \null
1066     \box \pad-markup #2 "THE UNANSWERED QUESTION"
1067     \box \pad-x #8 "A Cosmic Landscape"
1068     \null
1069   }
1070 }
1071 \markup \column {
1072   \line {
1073     \hspace #10
1074     \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1075       \bold "Largo to Presto"
1076   }
1077   \pad-around #3
1078       "String quartet keeps very even time,
1079 Flute quartet keeps very uneven time."
1080 }
1081 @end lilypond
1082
1083 @cindex graphic notation (グラフィック記譜法)
1084 @cindex symbols, non-musical (音楽要素ではないシンボル)
1085 @cindex non-musical symbols (音楽要素ではないシンボル)
1086 @cindex notation, graphic (グラフィック記譜法)
1087
1088 @funindex \combine
1089 @funindex \draw-circle
1090 @funindex \filled-box
1091 @funindex \triangle
1092 @funindex \draw-line
1093 @funindex \arrow-head
1094
1095 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1096 他のマークアップ表記と同様に、@c
1097 そのようなオブジェクトも組み合わせることができます。
1098
1099 @lilypond[quote,verbatim]
1100 \markup {
1101   \combine
1102     \draw-circle #4 #0.4 ##f
1103     \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1104   \hspace #5
1105
1106   \center-column {
1107     \triangle ##t
1108     \combine
1109       \draw-line #'(0 . 4)
1110       \arrow-head #Y #DOWN ##f
1111   }
1112 }
1113 @end lilypond
1114
1115 @cindex embedded graphics (埋め込みグラフィック)
1116 @cindex images, embedding (画像を埋め込む)
1117 @cindex graphics, embedding (グラフィックを埋め込む)
1118 @cindex postscript
1119
1120 @funindex \epsfile
1121 @funindex \postscript
1122
1123 高度なグラフィック機能として、@c
1124 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1125 に変換してインクルードする機能や、@c
1126 ネイティブの PostScript コードを用いて@c
1127 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1128 このような機能を使う場合、以下で示すように、@c
1129 描画サイズを明示的に指定することを推奨します:
1130
1131 @lilypond[quote,verbatim,fragment]
1132 c'1^\markup {
1133   \combine
1134     \epsfile #X #10 #"./context-example.eps"
1135     \with-dimensions #'(0 . 6) #'(0 . 10)
1136     \postscript #"
1137       -2 3 translate
1138       2.7 2 scale
1139       newpath
1140       2 -1 moveto
1141       4 -2 4 1 1 arct
1142       4 2 3 3 1 arct
1143       0 4 0 3 1 arct
1144       0 0 1 -1 1 arct
1145       closepath
1146       stroke"
1147   }
1148 c'
1149 @end lilypond
1150
1151 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1152
1153 @seealso
1154 記譜法リファレンス:
1155 @ref{Align},
1156 @ref{Dimensions},
1157 @ref{編集者の注釈},
1158 @ref{Graphic}
1159
1160 インストールされているファイル:
1161 @file{scm/define-markup-commands.scm},
1162 @file{scm/stencil.scm}
1163
1164 コード断片集:
1165 @rlsr{Text}
1166
1167 内部リファレンス:
1168 @rinternals{TextScript}
1169
1170
1171 @node マークアップ内部での音楽記譜法
1172 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1173 @translationof Music notation inside markup
1174
1175 @cindex notation inside markup (マークアップ内部の記譜法)
1176 @cindex music inside markup (マークアップ内部の音楽)
1177 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1178
1179 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1180 付け加えることができます。
1181
1182 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1183
1184 @lilypond[quote,verbatim,fragment]
1185 a'2 a'^\markup {
1186   \note #"4" #1
1187   =
1188   \note-by-number #1 #1 #1.5
1189 }
1190 b'1_\markup {
1191   \natural \semiflat \flat
1192   \sesquiflat \doubleflat
1193 }
1194 \glissando
1195 a'1_\markup {
1196   \natural \semisharp \sharp
1197   \sesquisharp \doublesharp
1198 }
1199 \glissando b'
1200 @end lilypond
1201
1202 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1203
1204 @lilypond[quote,verbatim]
1205 \relative {
1206   g1 bes
1207   ees\finger \markup \tied-lyric #"4~1"
1208   fis_\markup { \dynamic rf }
1209   bes^\markup {
1210     \beam #8 #0.1 #0.5
1211   }
1212   cis
1213   d-\markup {
1214     \markalphabet #8
1215     \markletter #8
1216   }
1217 }
1218 @end lilypond
1219
1220 より一般的には、以下で示すように、@c
1221 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1222 含めることができます。@c
1223 @ref{The Emmentaler font} に、@c
1224 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1225
1226 @lilypond[quote,verbatim]
1227 \relative {
1228   c''2
1229   c'^\markup { \musicglyph #"eight" }
1230   c,4
1231   c,8._\markup { \musicglyph #"clefs.G_change" }
1232   c16
1233   c2^\markup { \musicglyph #"timesig.neomensural94" }
1234 }
1235 @end lilypond
1236
1237 テキストではない図柄を譜刻するもう 1 つの方法が
1238 @ref{フォントの説明} で記述されています。@c
1239 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1240
1241 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1242
1243 @lilypond[quote,verbatim]
1244 \relative {
1245   c''1^\markup {
1246     \fret-diagram-terse #"x;x;o;2;3;2;"
1247   }
1248   c^\markup {
1249     \harp-pedal #"^-v|--ov^"
1250   }
1251   c
1252   c^\markup {
1253     \combine
1254       \musicglyph #"accordion.discant"
1255       \combine
1256         \raise #0.5 \musicglyph #"accordion.dot"
1257         \raise #1.5 \musicglyph #"accordion.dot"
1258   }
1259 }
1260 @end lilypond
1261
1262 @c The accordion diagram is actually taken from a snippet.
1263
1264 @noindent
1265 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1266 ドキュメント化されています。
1267
1268 @cindex score inside markup (マークアップ内部の楽譜)
1269 @cindex markup, score inside (マークアップ内部の楽譜)
1270
1271 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1272 そのような場合、以下で示すように、@c
1273 ネストされる @code{\score} ブロックには
1274 @code{\layout} ブロックを含める必要があります:
1275
1276 @lilypond[quote,verbatim]
1277 \relative {
1278   c'4 d^\markup {
1279     \score {
1280       \relative { c'4 d e f }
1281       \layout { }
1282     }
1283   }
1284   e f |
1285   c d e f
1286 }
1287 @end lilypond
1288
1289 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1290
1291 @seealso
1292 記譜法リファレンス:
1293 @ref{Music},
1294 @ref{The Emmentaler font},
1295 @ref{フォントの説明}
1296
1297 インストールされているファイル:
1298 @file{scm/define-markup-commands.scm},
1299 @file{scm/fret-diagrams.scm},
1300 @file{scm/harp-pedals.scm}
1301
1302 コード断片集:
1303 @rlsr{Text}
1304
1305 内部リファレンス:
1306 @rinternals{TextScript}
1307
1308
1309 @node 複数ページにわたるマークアップ
1310 @unnumberedsubsubsec 複数ページにわたるマークアップ
1311 @translationof Multi-page markup
1312
1313 @cindex multi-page markup (複数ページにわたるマークアップ)
1314 @cindex markup, multi-page (複数ページにわたるマークアップ)
1315 @cindex markup text, multi-page (複数ページにわたるマークアップ テキスト)
1316 @cindex text spread over multiple pages (複数ページに広がるテキスト)
1317
1318 @funindex \markuplist
1319 @funindex \justified-lines
1320 @funindex \wordwrap-lines
1321
1322 標準のマークアップ オブジェクトは分割することができません。@c
1323 しかしながら、
1324 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1325
1326 @c KEEP LY
1327 @lilypond[quote,verbatim]
1328 \markuplist {
1329   \justified-lines {
1330     両端揃えされた非常に長いテキスト。
1331     ...
1332   }
1333   \wordwrap-lines {
1334     もう 1 つの非常に長いテキスト。
1335     ...
1336   }
1337   ...
1338 }
1339 @end lilypond
1340
1341 この構文はマークアップのリストを受け付けます。@c
1342 受け付けるものは以下の通りです:
1343 @itemize
1344 @item
1345 マークアップ リスト コマンドの結果
1346 @item
1347 マークアップのリスト
1348 @item
1349 マークアップ リストのリスト
1350 @end itemize
1351
1352 @ref{Text markup list commands} に、@c
1353 マークアップ リスト コマンドの徹底したリストがあります。
1354
1355 @seealso
1356 記譜法リファレンス:
1357 @ref{Text markup list commands}
1358
1359 拡張:
1360 @rextend{New markup list command definition}
1361
1362 コード断片集:
1363 @rlsr{Text}
1364
1365 インストールされているファイル:
1366 @file{scm/define-markup-commands.scm}
1367
1368 内部リファレンス:
1369 @rinternals{TextScript}
1370
1371 @funindex \markuplist
1372
1373 @predefined
1374 @code{\markuplist}
1375 @endpredefined
1376
1377 @node フォント
1378 @subsection フォント
1379 @translationof Fonts
1380
1381 このセクションでは、@c
1382 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1383
1384 @menu
1385 * フォントの説明::
1386 * 個々に登録するフォント::
1387 * ドキュメント全体のフォント::
1388 @end menu
1389
1390 @node フォントの説明
1391 @unnumberedsubsubsec フォントの説明
1392 @translationof Fonts explained
1393
1394 @cindex Pango
1395 @cindex fonts, explained (フォントの説明)
1396 @cindex braces, various sizes (さまざまなサイズの波括弧)
1397 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1398 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1399
1400 @funindex font-interface
1401
1402 フォントはいくつかのライブラリを通じて扱われます。@c
1403 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1404 選択されたフォントは Pango を用いて描かれます。
1405
1406 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1407 言うことができます。@c
1408 以下の構文により、@c
1409 LilyPond のさまざまな @code{Feta} グリフを@c
1410 マークアップ モードの中で直接使用することが可能になります:
1411
1412 @lilypond[quote,verbatim,fragment]
1413 a'1^\markup {
1414   \vcenter {
1415     \override #'(font-encoding . fetaBraces)
1416     \lookup #"brace120"
1417     \override #'(font-encoding . fetaText)
1418     \column { 1 3 sf }
1419     \override #'(font-encoding . fetaMusic)
1420     \lookup #"noteheads.s0petrucci"
1421   }
1422 }
1423 @end lilypond
1424
1425 @noindent
1426 しかしながら、これらの図柄はすべて
1427 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1428 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1429 もっと簡単な構文を用いて利用することができます。
1430
1431 @code{fetaBraces} に保持されている図柄を使う場合、@c
1432 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1433 @code{0} から @code{575} までの整数すべてを指定でき、@c
1434 @code{0} は最小の波括弧を提供します。@c
1435 最適な値はトライ&エラーで決定する必要があります。@c
1436 これらの図柄はすべて左波括弧です。@c
1437 右波括弧は回転によって得ることができます
1438 -- @ref{Rotating objects} を参照してください。
1439
1440 3 ファミリのテキスト フォントが利用可能になっています:
1441 @itemize
1442 @item
1443 @emph{roman} (serif) フォントの@c
1444 デフォルトは LilyPond Serif (TeX Gyre Schola のエイリアス)です。
1445 @item
1446 @emph{sans} フォントの@c
1447 デフォルトは LilyPond Sans Serif (TeX Gyre Heros のエイリアス)です。
1448 @item
1449 @emph{typewriter} (monospaced) フォントの@c
1450 デフォルトは LilyPond Monospace (TeX Gyre Cursor のエイリアス)です。
1451 @end itemize
1452
1453 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1454 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1455 デフォルト サイズから変更する場合、@c
1456 @code{font-size} に提供する値が必要となります。
1457
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
1465 c''4^smaller
1466 @end lilypond
1467
1468 @noindent
1469 同様の構文をマークアップ モードの中で使用することができます。@c
1470 しかしながら、マークアップ モードの中では、@c
1471 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1472 もっと簡単な構文を使用するほうが良いでしょう:
1473
1474 @lilypond[quote,verbatim]
1475 \markup {
1476   \column {
1477     \line {
1478       \override #'(font-shape . italic)
1479       \override #'(font-size . 4)
1480       Idomeneo,
1481     }
1482     \line {
1483       \override #'(font-family . typewriter)
1484       {
1485         \override #'(font-series . bold)
1486         re
1487         di
1488       }
1489       \override #'(font-family . sans)
1490       Creta
1491     }
1492   }
1493 }
1494 @end lilypond
1495
1496 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1497 他のフォントを使用することも可能です。@c
1498 他のフォントを使用する方法は以下のセクションで説明されています:
1499 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1500
1501 @seealso
1502 記譜法リファレンス:
1503 @ref{The Emmentaler font},
1504 @ref{マークアップ内部での音楽記譜法},
1505 @ref{Rotating objects},
1506 @ref{フォントとフォント サイズを選択する},
1507 @ref{フォント}
1508
1509
1510 @node 個々に登録するフォント
1511 @unnumberedsubsubsec 個々に登録するフォント
1512 @translationof Single entry fonts
1513
1514 以下の構文を用いることで、@c
1515 オペレーティング システムにインストールされていて、@c
1516 FontConfig に認識されている任意のフォントを@c
1517 楽譜の中で使用することができます:
1518
1519 @lilypond[quote,verbatim,fragment]
1520 \override Staff.TimeSignature.font-name = #"Bitstream Charter"
1521 \override Staff.TimeSignature.font-size = #2
1522 \time 3/4
1523
1524 a'1_\markup {
1525   \override #'(font-name . "Bitstream Vera Sans,sans-serif, Oblique Bold")
1526     { Vera Oblique Bold }
1527 }
1528 @end lilypond
1529
1530 @cindex fonts, finding available (利用可能なフォントを見つける)
1531 @cindex finding available fonts (利用可能なフォントを見つける)
1532 @cindex listing available fonts (利用可能なフォントをリストアップする)
1533 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1534
1535 @var{font-name} はカンマ区切りの @q{フォント} のリストと、@c
1536 スペース区切りの @q{スタイル} のリストを記述できます。@c
1537 リスト中の @q{フォント} がインストールされていて、@c
1538 要求されたグリフを含んでいれば、それが使われます。@c
1539 そうでないなら代わりにリストの @emph{次} のフォントが使われます。
1540
1541 @funindex show-available-fonts
1542
1543 lilypond を以下のオプションを付けて実行すると@c
1544 オペレーティング システムで利用可能な@c
1545 すべてのフォントのリストを表示します:
1546
1547 @example
1548 lilypond -dshow-available-fonts x
1549 @end example
1550
1551 @seealso
1552 記譜法リファレンス:
1553 @ref{フォントの説明},
1554 @ref{ドキュメント全体のフォント}
1555
1556 コード断片集:
1557 @rlsr{Text}
1558
1559 @c A source file gets never installed...
1560 @c Installed Files:
1561 @c @file{lily/font-config-scheme.cc}.
1562
1563
1564 @node ドキュメント全体のフォント
1565 @unnumberedsubsubsec ドキュメント全体のフォント
1566 @translationof Entire document fonts
1567
1568 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1569 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1570 として使用されるデフォルト フォントを変更することができます。@c
1571 この例ではグローバル譜サイズにセットされた値で自動的にフォントのサイズを@c
1572 伸縮しています。@c
1573 @ref{個々に登録するフォント} のように、@c
1574 カンマ区切りの @q{フォント} のリストを記述できます。@c
1575 しかし、フォント @q{スタイル} は記述できません。@c
1576 フォントについての説明は、@ref{フォントの説明} を参照してください。
1577
1578 @cindex font families, setting (フォント ファミリを設定する)
1579 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1580
1581 @funindex make-pango-font-tree
1582
1583 @lilypond[verbatim,quote]
1584 \paper  {
1585   #(define fonts
1586     (make-pango-font-tree "Times New Roman"
1587                           "Nimbus Sans,Nimbus Sans L"
1588                           "Luxi Mono"
1589                           (/ staff-height pt 20)))
1590 }
1591
1592 \relative c'{
1593   c1-\markup {
1594     roman,
1595     \sans sans,
1596     \typewriter typewriter. }
1597 }
1598 @end lilypond
1599
1600 @c we don't do Helvetica / Courier, since GS incorrectly loads
1601 @c Apple TTF fonts
1602
1603 @seealso
1604 記譜法リファレンス:
1605 @ref{フォントの説明},
1606 @ref{個々に登録するフォント},
1607 @ref{フォントとフォント サイズを選択する},
1608 @ref{フォント}