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