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