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