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