[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CJK scripts and lilypond
From: |
Werner LEMBERG |
Subject: |
CJK scripts and lilypond |
Date: |
Fri, 05 Nov 2004 16:50:19 +0100 (CET) |
[This is a follow-up to a similar mail from July.]
Currently, it is not possible to directly use lilypond with CJK
lyrics -- I plan to fix this.
On the other hand, you can easily use CJK characters for lyrics with
lilypond-book. The only drawback is that the syllable length for
lyrics is always based on the EC font metrics, even if the characters
are interpreted in a completely different way. This will change in
the not too distant future.
Attached are the input files sakura-sakura.tex and
xiao-haizi-guai-guai.tex which demonstrate this.
Werner
\documentclass[a4paper]{article}
\usepackage[cjkjis]{ucs}
\usepackage[C42,T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\fontfamily{min}
\begin{center}
\Large さくら さくら (Sakura, sakura)
\end{center}
\begin{lilypond}
\version "2.5.0"
melody = \relative c'' {
a4 a b2 | a4 a b2 |
a4 b c b | a4 b8[ a] f2 |
e4 c e f | e4 e8[ c] b2 |
a'4 b c b | a4 b8[ a] f2 |
e4 c e f | e4 e8[ c] b2 |
a'4 a b2 | a4 a b2 |
d,4 e b'8[ a] f4 | e1 \bar "|."
}
text = \lyrics {
さ く ら さ く ら
の や ま も さ と も
み わ た す か ぎ り
か す み か く も か
あ さ ひ に に を う
さ く ら さ く ら
は な ざ か り
}
\score {
<<
\context Voice = one {
\set Staff.autoBeaming = ##f
\melody
}
\lyricsto "one" \new Lyrics \text
>>
}
\end{lilypond}
\end{document}
% Local Variables:
% coding: utf-8
% End:
% EOF
\documentclass[a4paper]{article}
\usepackage{pinyin}
\usepackage[cjkbg5]{ucs}
\usepackage[C00,T1]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\fontfamily{bsmi}
\begin{center}
\Large 小孩子乖乖 \fontfamily{cmr}(\Xiao3 \hai2\zi5 \guai1\guai1)
\end{center}
\begin{lilypond}
\version "2.5.0"
melody = \relative c'' {
g4 c8 a g4 g |
e4 g8 a g4 g |
a4 g8 e d4 d |
e4 g8[ e] d[ e] c4 |
a'8 g a g e a g4 |
e8 g e d c4 r |
a8 c d e c4 r \bar "|."
}
text = \lyrics {
小 孩 子 乖 乖
把 門 兒 開 開
快 點 兒 開 開
我 要 進 來
不 開 不 開 不 能 開
你 是 大 野 狼
不 讓 你 進 來
}
\score {
<<
\context Voice = one {
\set Staff.autoBeaming = ##f
\melody
}
\lyricsto "one" \new Lyrics \text
>>
}
\end{lilypond}
\end{document}
% Local Variables:
% coding: utf-8
% End:
% EOF
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- CJK scripts and lilypond,
Werner LEMBERG <=