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