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