]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/ja/notation/text.itely
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / ja / notation / text.itely
1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
2
3 @ignore
4     Translation of GIT committish: 6647daf0d6c8459d2b52bfc3a2a40bad4672fc7a
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.16.0"
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 \abs-fontsize
554 @funindex \fontsize
555 @funindex fontsize
556 @funindex \smaller
557 @funindex smaller
558 @funindex \larger
559 @funindex larger
560 @funindex \magnify
561 @funindex magnify
562
563 フォント サイズをいくつかの方法でグローバル譜サイズとの相対値で変更することができます。
564
565 フォント サイズをあらかじめ定義されているサイズに設定することができます:
566
567 @lilypond[quote,verbatim,relative=2]
568 b1_\markup { \huge Sinfonia }
569 b1^\markup { \teeny da }
570 b1-\markup { \normalsize camera }
571 @end lilypond
572
573 フォント サイズを前の値との相対関係で設定することができます:
574
575 @lilypond[quote,verbatim,relative=2]
576 b1_\markup { \larger Sinfonia }
577 b1^\markup { \smaller da }
578 b1-\markup { \magnify #0.6  camera }
579 @end lilypond
580
581 フォント サイズをグローバル譜サイズによって設定されている値で拡大あるいは縮小させる@c
582 ことができます:
583
584 @lilypond[quote,verbatim,relative=2]
585 b1_\markup { \fontsize #-2 Sinfonia }
586 b1^\markup { \fontsize #1 da }
587 b1-\markup { \fontsize #3 camera }
588 @end lilypond
589
590 さらに、フォント サイズをグローバル譜サイズとは無関係に、固定ポイント サイズに設定する@c
591 ことができます:
592
593 @lilypond[quote,verbatim,relative=2]
594 b1_\markup { \abs-fontsize #20 Sinfonia }
595 b1^\markup { \abs-fontsize #8 da }
596 b1-\markup { \abs-fontsize #14 camera }
597 @end lilypond
598
599 @cindex subscript (下付き文字)
600 @cindex superscript (上付き文字)
601
602 @funindex \super
603 @funindex super
604 @funindex \sub
605 @funindex sub
606 @funindex \normal-size-super
607 @funindex normal-size-super
608
609 テキストを下付き文字あるいは上付き文字として譜刻することができます。@c
610 デフォルトでは、それらは小さなサイズで譜刻されますが、@c
611 通常サイズにすることもできます:
612
613 @lilypond[quote,verbatim]
614 \markup {
615   \column {
616     \line { 1 \super st movement }
617     \line { 1 \normal-size-super st movement
618       \sub { (part two) }  }
619   }
620 }
621 @end lilypond
622
623 @cindex font families (フォント ファミリ)
624
625 マークアップ モードは代わりのフォント ファミリを選択するための@c
626 簡単な方法を提供します。@c
627 他を指定しないかぎり、@c
628 デフォルトの Serif フォント -- ローマン体 -- が自動的に選択されます。@c
629 以下の例の最後の行では、最初の単語と 2 番目の単語はまったく同じです。
630
631 @lilypond[quote,verbatim]
632 \markup {
633   \column {
634     \line { Act \number 1 }
635     \line { \sans { Scene I. } }
636     \line { \typewriter { Verona. An open place. } }
637     \line { Enter \roman Valentine and Proteus. }
638   }
639 }
640 @end lilypond
641
642 @noindent
643 @ref{新たな強弱記号} や @ref{手動の繰り返し記号} で言及されているように、@c
644 番号や強弱記号など特定の項目に用いられるフォント ファミリの中には@c
645 すべての文字を提供しないものもあります。
646
647 @c \concat is actually documented in Align (it is not
648 @c a font-switching command). But we need it here. -vv
649
650 フォント切り替えやフォーマット コマンドの中には、@c
651 単語の中で使用されると@c
652 望まない空白を作り出すものがあります。@c
653 これはテキスト要素をつなげることによって容易に解決できます:
654
655 @lilypond[quote,verbatim]
656 \markup {
657   \column {
658     \line {
659       \concat { 1 \super st }
660       movement
661     }
662     \line {
663       \concat { \dynamic p , }
664       \italic { con dolce espressione }
665     }
666   }
667 }
668 @end lilypond
669
670 @ref{フォント} に フォント切り換えとフォントのカスタム コマンドの@c
671 徹底したリストがあります。
672
673 @ref{フォント} で説明されているように、@c
674 カスタム フォント セットを定義することも可能です。
675
676 @funindex \teeny
677 @funindex teeny
678 @funindex \tiny
679 @funindex tiny
680 @funindex \small
681 @funindex small
682 @funindex \normalsize
683 @funindex normalsize
684 @funindex \large
685 @funindex large
686 @funindex \huge
687 @funindex huge
688 @funindex \smaller
689 @funindex smaller
690 @funindex \larger
691 @funindex larger
692
693 @predefined
694 @code{\teeny},
695 @code{\tiny},
696 @code{\small},
697 @code{\normalsize},
698 @code{\large},
699 @code{\huge},
700 @code{\smaller},
701 @code{\larger}
702 @endpredefined
703
704 @seealso
705 記譜法リファレンス:
706 @ref{フォント},
707 @ref{新たな強弱記号},
708 @ref{手動の繰り返し記号},
709 @ref{フォント}
710
711 インストールされているファイル:
712 @file{scm/define-markup-commands.scm}
713
714 コード断片集:
715 @rlsr{Text}
716
717 内部リファレンス:
718 @rinternals{TextScript}
719
720 @knownissues
721 フォントのサイズ コマンド @code{\teeny}, @code{\tiny}, @code{\small},
722 @code{\normalsize}, @code{\large} それに @code{\huge} を用いると、@c
723 @code{\fontsize} を用いた場合と比較して、つじつまの合わない行間になります。
724
725
726 @node テキスト揃え
727 @unnumberedsubsubsec テキスト揃え
728 @translationof Text alignment
729
730 @cindex text, aligning (テキストを揃える)
731 @cindex aligning text (テキストを揃える)
732 @cindex aligning markup text (マークアップ テキストを揃える)
733 @cindex markup text, aligning (マークアップ テキストを揃える)
734 @cindex aligning markups (マークアップを揃える)
735 @cindex markups, aligning (マークアップを揃える)
736
737 このサブセクションでは、@c
738 マークアップ モードのテキストを配置する方法について説明します。@c
739 @rlearning{オブジェクトを移動させる} で記述されている構文を用いて、@c
740 マークアップ オブジェクト全体を移動させることも可能です。
741
742 @c Padding commands should be mentioned on this page, but
743 @c most of these require \box to be more clearly illustrated. -vv
744
745 @cindex text, horizontal alignment (テキストを水平方向に揃える)
746 @cindex horizontal text alignment (テキストを水平方向に揃える)
747
748 @funindex \left-align
749 @funindex left-align
750 @funindex \center-align
751 @funindex center-align
752 @funindex \right-align
753 @funindex right-align
754
755 マークアップ オブジェクトの揃え方はいくつかあります。@c
756 デフォルトでは、テキスト指示はそのテキストの左端で揃えられます:
757 以下の例では、@c
758 最初のマークアップと 2 番目のマークアップの揃えられ方はまったく同じです。
759
760 @lilypond[quote,verbatim,relative=2]
761 d1-\markup { poco }
762 f
763 d-\markup { \left-align poco }
764 f
765 d-\markup { \center-align { poco } }
766 f
767 d-\markup { \right-align poco }
768 @end lilypond
769
770 @funindex \halign
771 @funindex halign
772
773 水平方向の揃え方は、数値を使って、微調整することができます:
774
775 @lilypond[quote,verbatim,relative=2]
776 a1-\markup { \halign #-1 poco }
777 e'
778 a,-\markup { \halign #0 poco }
779 e'
780 a,-\markup { \halign #0.5 poco }
781 e'
782 a,-\markup { \halign #2 poco }
783 @end lilypond
784
785 @noindent
786 オブジェクトの中には揃えるためのプロシージャをそれ自身で持っているものがあり、@c
787 それらは上記のコマンドでは影響を受けません。@c
788 @ref{テキスト マーク} の中の例で示されているように、@c
789 そのようなマークアップ オブジェクト全体を移動させることが可能です。
790
791 @cindex text, vertical alignment (テキストを垂直方向に揃える)
792 @cindex vertical text alignment (テキストを垂直方向に揃える)
793
794 @funindex \raise
795 @funindex raise
796 @funindex \lower
797 @funindex lower
798 @funindex \null
799 @funindex null
800
801 @c QUERY Should the function of ``\null'' be clarified? rp
802
803 垂直方向に揃える方法はもう少し複雑です。@c
804 上で述べたようにマークアップ オブジェクト全体を移動させることが可能ですが、@c
805 マークアップ ブロックの中にある特定の要素を移動させることも可能です。
806 特定要素だけをを移動させるには、@c
807 移動させる要素の前に @emph{アンカ ポイント}
808 -- もう 1 つのオブジェクト要素、あるいは不可視のオブジェクト要素 --
809 を置く必要があります。@c
810 以下の例では 2 つのケースを示しています。@c
811 最後のマークアップはアンカ ポイントを持たず、それゆえ移動されません。
812
813 @lilypond[quote,verbatim,relative=1]
814 d2^\markup {
815   Acte I
816   \raise #2 { Scène 1 }
817 }
818 a'
819 g_\markup {
820   \null
821   \lower #4 \bold { Très modéré }
822 }
823 a
824 d,^\markup {
825   \raise #4 \italic { Une forêt. }
826 }
827 a'4 a g2 a
828 @end lilypond
829
830 @funindex \general-align
831 @funindex general-align
832 @funindex \translate
833 @funindex translate
834 @funindex \translate-scaled
835 @funindex translate-scaled
836
837 コマンドの中にはマークアップ モードの中にあるテキスト オブジェクトの@c
838 水平方向と垂直方向の両方の揃え方に影響を与えることができるものもあります。@c
839 そのようなコマンドで移動させるオブジェクトの前には@c
840 アンカ ポイントを置く必要があります:
841
842 @lilypond[quote,verbatim,relative=1]
843 d2^\markup {
844   Acte I
845   \translate #'(-1 . 2) "Scène 1"
846 }
847 a'
848 g_\markup {
849   \null
850   \general-align #Y #3.2 \bold "Très modéré"
851 }
852 a
853 d,^\markup {
854   \null
855   \translate-scaled #'(-1 . 2) \teeny "Une forêt."
856 }
857 a'4 a g2 a
858 @end lilypond
859
860 @cindex multi-line markup (複数行にわたるマークアップ)
861 @cindex markup, multi-line (複数行にわたるマークアップ)
862 @cindex multi-line text (複数行にわたるテキスト)
863 @cindex text, multi-line (複数行にわたるテキスト)
864 @cindex text in columns (縦に積み重ねたテキスト)
865 @cindex columns, text (縦に積み重ねたテキスト)
866
867 @funindex \column
868 @funindex column
869 @funindex \center-column
870 @funindex center-column
871
872 マークアップ オブジェクトに何行かのテキストが含まれる場合もあります。@c
873 以下の例では、それぞれの要素あるいは表記はそれ自体の行に配置され、@c
874 左揃えあるいは中央揃えされています:
875
876 @lilypond[quote,verbatim]
877 \markup {
878   \column {
879     a
880     "b c"
881     \line { d e f }
882   }
883   \hspace #10
884   \center-column {
885     a
886     "b c"
887     \line { d e f }
888   }
889 }
890 @end lilypond
891
892 @cindex centering text on the page (テキストをページの中央に揃える)
893 @cindex text, centering on the page (テキストをページの中央に揃える)
894 @cindex centering markup on the page (マークアップをページの中央に揃える)
895 @cindex markup, centering on the page (マークアップをページの中央に揃える)
896
897 @funindex \fill-line
898 @funindex fill-line
899
900 同様に、要素あるいは表記のリストの広がりが水平の行幅いっぱいを占める@c
901 ことがあります (要素が 1 つだけの場合、その要素はページの中央に揃えられます)。@c
902 さらに、@c
903 そのような表記は複数行にわたるテキストや他の任意の表記を含むことができます:
904
905 @lilypond[quote,verbatim]
906 \markup {
907   \fill-line {
908     \line { William S. Gilbert }
909     \center-column {
910       \huge \smallCaps "The Mikado"
911       or
912       \smallCaps "The Town of Titipu"
913     }
914     \line { Sir Arthur Sullivan }
915   }
916 }
917 \markup {
918   \fill-line { 1885 }
919 }
920 @end lilypond
921
922 @cindex wordwrapped text (折り返しされたテキスト)
923 @cindex text, wordwrapped (折り返しされたテキスト)
924 @cindex justified text (両端揃えのテキスト)
925 @cindex text, justified (両端揃えのテキスト)
926 @cindex markup text, wordwrapped (折り返しされたマークアップ テキスト)
927 @cindex markup text, justified (両端揃えのマークアップ テキスト)
928
929 @funindex \wordwrap
930 @funindex wordwrap
931 @funindex \justify
932 @funindex justify
933
934 さらに、長いテキスト指示を自動的に行幅に合わせて折り返すことができます。@c
935 そのようなテキスト指示は、以下の例で示すように、左揃えされるか両端揃えされます。
936
937 @lilypond[quote,verbatim]
938 \markup {
939   \column {
940     \line  \smallCaps { La vida breve }
941     \line \bold { Acto I }
942     \wordwrap \italic {
943       (La escena representa el corral de una casa de
944       gitanos en el Albaicín de Granada.  Al fondo una
945       puerta por la que se ve el negro interior de
946       una Fragua, iluminado por los rojos resplandores
947       del fuego.)
948     }
949     \hspace #0
950
951     \line \bold { Acto II }
952     \override #'(line-width . 50)
953     \justify \italic {
954       (Calle de Granada.  Fachada de la casa de Carmela
955       y su hermano Manuel con grandes ventanas abiertas
956       a través de las que se ve el patio
957       donde se celebra una alegre fiesta)
958     }
959   }
960 }
961 @end lilypond
962
963 @cindex text alignment commands (テキスト揃えのコマンド)
964 @cindex markup text alignment commands (マークアップ テキスト揃えのコマンド)
965 @cindex alignment, text, commands (テキスト揃えのコマンド)
966
967 @ref{Align} にテキスト揃えコマンドの徹底したリストがあります。
968
969 @seealso
970 学習マニュアル:
971 @rlearning{オブジェクトを移動させる}
972
973 記譜法リファレンス:
974 @ref{Align},
975 @ref{テキスト マーク}
976
977 インストールされているファイル:
978 @file{scm/define-markup-commands.scm}.
979
980 コード断片集:
981 @rlsr{Text}
982
983 内部リファレンス:
984 @rinternals{TextScript}
985
986
987 @node マークアップ内部でのグラフィック記譜法
988 @unnumberedsubsubsec マークアップ内部でのグラフィック記譜法
989 @translationof Graphic notation inside markup
990
991 @cindex graphics, embedding (グラフィックを埋め込む)
992 @cindex drawing graphic objects (グラフィック オブジェクトを描く)
993 @cindex graphic objects, drawing (グラフィック オブジェクトを描く)
994 @cindex embedding graphic objects (グラフィック オブジェクトを埋め込む)
995 @cindex graphic objects, embedding (グラフィック オブジェクトを埋め込む)
996
997 マークアップ コマンドを用いて、@c
998 さまざまなグラフィック オブジェクトを楽譜に付け加えることができます。
999
1000 @cindex decorating text (テキストを飾り付ける)
1001 @cindex framing text (テキストにフレームを付ける)
1002 @cindex text, framing (テキストにフレームを付ける)
1003 @cindex text, decorating (テキストを飾り付ける)
1004 @cindex markup text, decorating (マークアップ テキストを飾り付ける)
1005 @cindex markup text, framing (マークアップ テキストにフレームを付ける)
1006
1007 @funindex \box
1008 @funindex box
1009 @funindex \circle
1010 @funindex circle
1011 @funindex \rounded-box
1012 @funindex rounded-box
1013 @funindex \bracket
1014 @funindex bracket
1015 @funindex \hbracket
1016 @funindex hbracket
1017
1018 以下の例で示すように、@c
1019 マークアップ コマンドの中にはテキスト要素を@c
1020 グラフィックスで飾り付けることができるものがあります。
1021
1022 @lilypond[quote,verbatim]
1023 \markup \fill-line {
1024   \center-column {
1025     \circle Jack
1026     \box "in the box"
1027     \null
1028     \line {
1029       Erik Satie
1030       \hspace #3
1031       \bracket "1866 - 1925"
1032     }
1033     \null
1034     \rounded-box \bold Prelude
1035   }
1036 }
1037 @end lilypond
1038
1039 @cindex padding around text (テキストの周りのパディング)
1040 @cindex text padding (テキスト パディング)
1041 @cindex markup text padding (マークアップ テキスト パディング)
1042
1043 @funindex \pad-markup
1044 @funindex pad-markup
1045 @funindex \pad-x
1046 @funindex pad-x
1047 @funindex \pad-to-box
1048 @funindex pad-to-box
1049 @funindex \pad-around
1050 @funindex pad-around
1051
1052 コマンドの中にはテキストの周りのパディングを増やすことを必要とするものも@c
1053 あります。@c
1054 パティングの増加は @ref{Align} で徹底的に記述されている@c
1055 マークアップ コマンドを用いて達成できます。
1056
1057 @lilypond[quote,verbatim]
1058 \markup \fill-line {
1059   \center-column {
1060     \box "Charles Ives (1874 - 1954)"
1061     \null
1062     \box \pad-markup #2 "THE UNANSWERED QUESTION"
1063     \box \pad-x #8 "A Cosmic Landscape"
1064     \null
1065   }
1066 }
1067 \markup \column {
1068   \line {
1069     \hspace #10
1070     \box \pad-to-box #'(-5 . 20) #'(0 . 5)
1071       \bold "Largo to Presto"
1072   }
1073   \pad-around #3
1074       "String quartet keeps very even time,
1075 Flute quartet keeps very uneven time."
1076 }
1077 @end lilypond
1078
1079 @cindex graphic notation (グラフィック記譜法)
1080 @cindex symbols, non-musical (音楽要素ではないシンボル)
1081 @cindex non-musical symbols (音楽要素ではないシンボル)
1082 @cindex notation, graphic (グラフィック記譜法)
1083
1084 @funindex \combine
1085 @funindex combine
1086 @funindex \draw-circle
1087 @funindex draw-circle
1088 @funindex \filled-box
1089 @funindex filled-box
1090 @funindex \triangle
1091 @funindex triangle
1092 @funindex \draw-line
1093 @funindex draw-line
1094 @funindex \arrow-head
1095 @funindex arrow-head
1096
1097 テキストを持たないグラフィック要素やシンボルを譜刻することもできます。@c
1098 他のマークアップ表記と同様に、@c
1099 そのようなオブジェクトも組み合わせることができます。
1100
1101 @lilypond[quote,verbatim]
1102 \markup {
1103   \combine
1104     \draw-circle #4 #0.4 ##f
1105     \filled-box #'(-4 . 4) #'(-0.5 . 0.5) #1
1106   \hspace #5
1107
1108   \center-column {
1109     \triangle ##t
1110     \combine
1111       \draw-line #'(0 . 4)
1112       \arrow-head #Y #DOWN ##f
1113   }
1114 }
1115 @end lilypond
1116
1117 @cindex embedded graphics (埋め込みグラフィック)
1118 @cindex images, embedding (画像を埋め込む)
1119 @cindex graphics, embedding (グラフィックを埋め込む)
1120 @cindex postscript
1121
1122 @funindex \epsfile
1123 @funindex epsfile
1124 @funindex \postscript
1125 @funindex postscript
1126
1127 高度なグラフィック機能として、@c
1128 外部画像ファイルを Encapsulated PostScript フォーマット (@emph{eps})
1129 に変換してインクルードする機能や、@c
1130 ネイティブの PostScript コードを用いて@c
1131 グラフィックを直接に入力ファイルへ埋め込む機能があります。@c
1132 このような機能を使う場合、以下で示すように、@c
1133 描画サイズを明示的に指定することを推奨します:
1134
1135 @lilypond[quote,verbatim,relative=1]
1136 c1^\markup {
1137   \combine
1138     \epsfile #X #10 #"./context-example.eps"
1139     \with-dimensions #'(0 . 6) #'(0 . 10)
1140     \postscript #"
1141       -2 3 translate
1142       2.7 2 scale
1143       newpath
1144       2 -1 moveto
1145       4 -2 4 1 1 arct
1146       4 2 3 3 1 arct
1147       0 4 0 3 1 arct
1148       0 0 1 -1 1 arct
1149       closepath
1150       stroke"
1151   }
1152 c
1153 @end lilypond
1154
1155 @ref{Graphic} にグラフィック特有のコマンドの徹底したリストがあります。
1156
1157 @seealso
1158 記譜法リファレンス:
1159 @ref{Graphic},
1160 @ref{編集者の注釈},
1161 @ref{Align}
1162
1163 インストールされているファイル:
1164 @file{scm/define-markup-commands.scm},
1165 @file{scm/stencil.scm}
1166
1167 コード断片集:
1168 @rlsr{Text}
1169
1170 内部リファレンス:
1171 @rinternals{TextScript}
1172
1173
1174 @node マークアップ内部での音楽記譜法
1175 @unnumberedsubsubsec マークアップ内部での音楽記譜法
1176 @translationof Music notation inside markup
1177
1178 @cindex notation inside markup (マークアップ内部の記譜法)
1179 @cindex music inside markup (マークアップ内部の音楽)
1180 @cindex markup, music notation inside (マークアップ内部の音楽記譜法)
1181
1182 マークアップ オブジェクトの内部で、さまざまな音楽記譜要素を楽譜に@c
1183 付け加えることができます。
1184
1185 音符と臨時記号はマークアップ コマンドを用いて入力することができます:
1186
1187 @lilypond[quote,verbatim,relative=2]
1188 a2 a^\markup {
1189   \note #"4" #1
1190   =
1191   \note-by-number #1 #1 #1.5
1192 }
1193 b1_\markup {
1194   \natural \semiflat \flat
1195   \sesquiflat \doubleflat
1196 }
1197 \glissando
1198 a1_\markup {
1199   \natural \semisharp \sharp
1200   \sesquisharp \doublesharp
1201 }
1202 \glissando b
1203 @end lilypond
1204
1205 他の記譜オブジェクトもマークアップ モードの中で譜刻することができます:
1206
1207 @lilypond[quote,verbatim,relative=1]
1208 g1 bes
1209 ees-\markup {
1210   \finger 4
1211   \tied-lyric #"~"
1212   \finger 1
1213 }
1214 fis_\markup { \dynamic rf }
1215 bes^\markup {
1216   \beam #8 #0.1 #0.5
1217 }
1218 cis
1219 d-\markup {
1220   \markalphabet #8
1221   \markletter #8
1222 }
1223 @end lilypond
1224
1225 より一般的には、以下で示すように、@c
1226 使用可能な音楽シンボルはすべてマークアップ オブジェクトに@c
1227 含めることができます。@c
1228 @ref{The Feta font} に、@c
1229 音楽シンボルと音楽シンボル名の徹底したリストがあります。
1230
1231 @lilypond[quote,verbatim,relative=2]
1232 c2
1233 c'^\markup { \musicglyph #"eight" }
1234 c,4
1235 c,8._\markup { \musicglyph #"clefs.G_change" }
1236 c16
1237 c2^\markup { \musicglyph #"timesig.neomensural94" }
1238 @end lilypond
1239
1240 @noindent
1241 テキストではない図柄を譜刻するもう 1 つの方法が
1242 @ref{フォントの説明} で記述されています。@c
1243 この方法はさまざまなサイズの波括弧を譜刻する場合に有用です。
1244
1245 さらに、マークアップ モードは特定の楽器のためのダイアグラムをサポートします:
1246
1247 @lilypond[quote,verbatim,relative=2]
1248 c1^\markup {
1249   \fret-diagram-terse #"x;x;o;2;3;2;"
1250 }
1251 c^\markup {
1252   \harp-pedal #"^-v|--ov^"
1253 }
1254 c
1255 c^\markup {
1256   \combine
1257     \musicglyph #"accordion.discant"
1258     \combine
1259       \raise #0.5 \musicglyph #"accordion.dot"
1260       \raise #1.5 \musicglyph #"accordion.dot"
1261 }
1262 @end lilypond
1263
1264 @c The accordion diagram is actually taken from a snippet.
1265
1266 @noindent
1267 そのようなダイアグラムは @ref{Instrument Specific Markup} で@c
1268 ドキュメント化されています。
1269
1270 @cindex score inside markup (マークアップ内部の楽譜)
1271 @cindex markup, score inside (マークアップ内部の楽譜)
1272
1273 楽譜全体でさえもマークアップ オブジェクト内部にネストさせることができます。@c
1274 そのような場合、以下で示すように、@c
1275 ネストされる @code{\score} ブロックには
1276 @code{\layout} ブロックを含める必要があります:
1277
1278 @lilypond[quote,verbatim,relative=1]
1279 c4 d^\markup {
1280   \score {
1281     \relative c' { c4 d e f }
1282     \layout { }
1283   }
1284 }
1285 e f |
1286 c d e f
1287 @end lilypond
1288
1289 @ref{Music} に、音楽記譜法関連のコマンドの徹底したリストがあります。
1290
1291 @seealso
1292 記譜法リファレンス:
1293 @ref{Music},
1294 @ref{The Feta 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 markuplist
1320 @funindex \justified-lines
1321 @funindex justified-lines
1322 @funindex \wordwrap-lines
1323 @funindex wordwrap-lines
1324
1325 標準のマークアップ オブジェクトは分割することができません。@c
1326 しかしながら、
1327 ある特定の構文は複数ページにわたるテキストを入力することを可能にします:
1328
1329 @c KEEP LY
1330 @lilypond[quote,verbatim]
1331 \markuplist {
1332   \justified-lines {
1333     両端揃えされた非常に長いテキスト。
1334     ...
1335   }
1336   \wordwrap-lines {
1337     もう 1 つの非常に長いテキスト。
1338     ...
1339   }
1340   ...
1341 }
1342 @end lilypond
1343
1344 この構文はマークアップのリストを受け付けます。@c
1345 受け付けるものは以下の通りです:
1346 @itemize
1347 @item
1348 マークアップ リスト コマンドの結果
1349 @item
1350 マークアップのリスト
1351 @item
1352 マークアップ リストのリスト
1353 @end itemize
1354
1355 @ref{Text markup list commands} に、@c
1356 マークアップ リスト コマンドの徹底したリストがあります。
1357
1358 @seealso
1359 記譜法リファレンス:
1360 @ref{Text markup list commands}
1361
1362 拡張:
1363 @rextend{New markup list command definition}
1364
1365 インストールされているファイル:
1366 @file{scm/define-markup-commands.scm}
1367
1368 コード断片集:
1369 @rlsr{Text}
1370
1371 内部リファレンス:
1372 @rinternals{TextScript}
1373
1374 @funindex \markuplist
1375 @funindex markuplist
1376
1377 @predefined
1378 @code{\markuplist}
1379 @endpredefined
1380
1381 @node フォント
1382 @subsection フォント
1383 @translationof Fonts
1384
1385 このセクションでは、@c
1386 フォントを扱う方法と、楽譜の中でフォントを変更する方法について説明します。
1387
1388 @menu
1389 * フォントの説明::
1390 * 個々に登録するフォント::
1391 * ドキュメント全体のフォント::
1392 @end menu
1393
1394 @node フォントの説明
1395 @unnumberedsubsubsec フォントの説明
1396 @translationof Fonts explained
1397
1398 @cindex Pango
1399 @cindex fonts, explained (フォントの説明)
1400 @cindex braces, various sizes (さまざまなサイズの波括弧)
1401 @cindex fonts, non-text in markup (マークアップ内の非テキスト フォント)
1402 @cindex non-text fonts in markup (マークアップ内の非テキスト フォント)
1403
1404 @funindex font-interface
1405
1406 フォントはいくつかのライブラリを通じて扱われます。@c
1407 FontConfig はシステムで利用可能なフォントを検出するために使用されます。@c
1408 選択されたフォントは Pango を用いて描かれます。
1409
1410 音楽記譜フォントはいくつかのファミリに分類された特殊な図柄のセットと@c
1411 言うことができます。@c
1412 以下の構文により、@c
1413 さまざまな LilyPond @code{feta} 非テキスト フォントを@c
1414 マークアップ モードの中で直接使用することが可能になります:
1415
1416 @lilypond[quote,verbatim,relative=2]
1417 a1^\markup {
1418   \vcenter {
1419     \override #'(font-encoding . fetaBraces)
1420     \lookup #"brace120"
1421     \override #'(font-encoding . fetaText)
1422     \column { 1 3 sf }
1423     \override #'(font-encoding . fetaMusic)
1424     \lookup #"noteheads.s0petrucci"
1425   }
1426 }
1427 @end lilypond
1428
1429 @noindent
1430 しかしながら、これらの図柄はすべて
1431 -- @code{fetaBraces} で保持されているさまざまサイズの波括弧を除いて --
1432 は、@ref{マークアップ内部での音楽記譜法} で記述されている、@c
1433 もっと簡単な構文を用いて利用することができます。
1434
1435 @code{fetaBraces} に保持されている図柄を使う場合、@c
1436 波括弧のサイズは図柄名の一部となっている任意の数値によって指定されます。@c
1437 @code{0} から @code{575} までの整数すべてを指定でき、@c
1438 @code{0} は最小の波括弧を提供します。@c
1439 最適な値はトライ&エラーで決定する必要があります。@c
1440 これらの図柄はすべて左波括弧です。@c
1441 右波括弧は回転によって得ることができます
1442 -- @ref{Rotating objects} を参照してください。
1443
1444 3 ファミリのテキスト フォントが利用可能になっています:
1445 @emph{roman} (serif) フォント
1446 -- これはデフォルトでは New Century Schoolbook です --
1447 と、@emph{sans} フォントと単一幅の @emph{typewriter} フォント
1448 -- これら 2 つのファミリは Pango のインストール時に決定されます --
1449 です。
1450
1451 それぞれのファミリには異なる形状とセットのフォントが保持されています。@c
1452 以下の例は、ファミリ、形状、セットそれにサイズを変更する様子を示しています。@c
1453 デフォルト サイズから変更する場合、@c
1454 @code{font-size} に提供する値が必要となります。
1455
1456 @lilypond[quote,verbatim,relative=2]
1457 \override Score.RehearsalMark #'font-family = #'typewriter
1458 \mark \markup "Ouverture"
1459 \override Voice.TextScript #'font-shape = #'italic
1460 \override Voice.TextScript #'font-series = #'bold
1461 d2.^\markup "Allegro"
1462 \override Voice.TextScript #'font-size = #-3
1463 c4^smaller
1464 @end lilypond
1465
1466 @noindent
1467 同様の構文をマークアップ モードの中で使用することができます。@c
1468 しかしながら、マークアップ モードの中では、@c
1469 @ref{フォントとフォント サイズを選択する} で説明されている、@c
1470 もっと簡単な構文を使用するほうが良いでしょう:
1471
1472 @lilypond[quote,verbatim]
1473 \markup {
1474   \column {
1475     \line {
1476       \override #'(font-shape . italic)
1477       \override #'(font-size . 4)
1478       Idomeneo,
1479     }
1480     \line {
1481       \override #'(font-family . typewriter)
1482       {
1483         \override #'(font-series . bold)
1484         re
1485         di
1486       }
1487       \override #'(font-family . sans)
1488       Creta
1489     }
1490   }
1491 }
1492 @end lilypond
1493
1494 あらかじめ構成されているフォント間で切り替えを行う方が簡単ですが、@c
1495 他のフォントを使用することも可能です。@c
1496 他のフォントを使用する方法は以下のセクションで説明されています:
1497 @ref{個々に登録するフォント} と @ref{ドキュメント全体のフォント}。
1498
1499 @seealso
1500 記譜法リファレンス:
1501 @ref{The Feta font},
1502 @ref{マークアップ内部での音楽記譜法},
1503 @ref{Rotating objects},
1504 @ref{フォントとフォント サイズを選択する},
1505 @ref{フォント}
1506
1507
1508 @node 個々に登録するフォント
1509 @unnumberedsubsubsec 個々に登録するフォント
1510 @translationof Single entry fonts
1511
1512 以下の構文を用いることで、@c
1513 オペレーティング システムにインストールされていて、@c
1514 FontConfig に認識されている任意のフォントを@c
1515 楽譜の中で使用することができます:
1516
1517 @lilypond[quote,verbatim,relative=2]
1518 \override Staff.TimeSignature #'font-name = #"Bitstream Charter"
1519 \override Staff.TimeSignature #'font-size = #2
1520 \time 3/4
1521
1522 a1_\markup {
1523   \override #'(font-name . "Vera Bold")
1524     { Vera Bold }
1525 }
1526 @end lilypond
1527
1528 @cindex fonts, finding available (利用可能なフォントを見つける)
1529 @cindex finding available fonts (利用可能なフォントを見つける)
1530 @cindex listing available fonts (利用可能なフォントをリストアップする)
1531 @cindex available fonts, listing (利用可能なフォントをリストアップする)
1532
1533 @funindex show-available-fonts
1534
1535 以下のコマンドはオペレーティング システムで利用可能な@c
1536 すべてのフォントのリストを表示します:
1537
1538 @example
1539 lilypond -dshow-available-fonts x
1540 @end example
1541
1542 @seealso
1543 記譜法リファレンス:
1544 @ref{フォントの説明},
1545 @ref{ドキュメント全体のフォント}
1546
1547 コード断片集:
1548 @rlsr{Text}
1549
1550 @c A source file gets never installed...
1551 @c Installed Files:
1552 @c @file{lily/font-config-scheme.cc}.
1553
1554
1555 @node ドキュメント全体のフォント
1556 @unnumberedsubsubsec ドキュメント全体のフォント
1557 @translationof Entire document fonts
1558
1559 以下の例で示す方法に従ってフォント ファミリを指定することにより、@c
1560 @emph{roman}, @emph{sans} それに @emph{typewriter} フォント ファミリ@c
1561 として使用されるデフォルト フォントを変更することができます。@c
1562 フォントについての説明は、@ref{フォントの説明} を参照してください。
1563
1564 @cindex font families, setting (フォント ファミリを設定する)
1565 @cindex fonts, changing for entire document (ドキュメント全体のフォントを変更する)
1566
1567 @funindex make-pango-font-tree
1568
1569 @lilypond[verbatim,quote]
1570 \paper  {
1571   myStaffSize = #20
1572   #(define fonts
1573     (make-pango-font-tree "Times New Roman"
1574                           "Nimbus Sans"
1575                           "Luxi Mono"
1576                            (/ myStaffSize 20)))
1577 }
1578
1579 \relative c'{
1580   c1-\markup {
1581     roman,
1582     \sans sans,
1583     \typewriter typewriter. }
1584 }
1585 @end lilypond
1586
1587 @c we don't do Helvetica / Courier, since GS incorrectly loads
1588 @c Apple TTF fonts
1589
1590 @seealso
1591 記譜法リファレンス:
1592 @ref{フォントの説明},
1593 @ref{個々に登録するフォント},
1594 @ref{フォントとフォント サイズを選択する},
1595 @ref{フォント}