]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/utf-8.ly
Add '-dcrop' option to ps and svg backends
[lilypond.git] / Documentation / snippets / utf-8.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.12
8 \version "2.19.12"
9
10 \header {
11   lsrtags = "text"
12
13   texidoc = "
14 Various scripts may be used for texts (like titles and lyrics) by
15 entering them in UTF-8 encoding, and using a Pango based backend.
16 Depending on the fonts installed, this fragment will render Bulgarian
17 (Cyrillic), Hebrew, Japanese and Portuguese.
18
19 "
20   doctitle = "UTF-8"
21 } % begin verbatim
22
23 % end verbatim - this comment is a hack to prevent texinfo.tex
24 % from choking on non-European UTF-8 subsets
25
26 %% Edit this file using a Unicode aware editor, such as GVIM, GEDIT, Emacs
27
28 %{
29
30 You may have to install additional fonts.
31
32 Red Hat Fedora
33
34         linux-libertine-fonts (Latin, Cyrillic, Hebrew)
35         ipa-mincho-fonts ipa-gothic-fonts (Japanese)
36
37 Debian GNU/Linux, Ubuntu
38
39         fonts-linuxlibertine (Latin, Cyrillic, Hebrew)
40         fonts-ipafont (Japanese)
41
42 %} % begin verbatim
43
44
45 % Font settings for Cyrillic and Hebrew
46 % Linux Libertine fonts contain Cyrillic and Hebrew glyphs.
47 \paper {
48   #(define fonts
49     (set-global-fonts
50      #:roman "Linux Libertine O,serif"
51      #:sans "Linux Biolinum O,sans-serif"
52      #:typewriter "Linux Libertine Mono O,monospace"
53    ))
54 }
55
56 % Cyrillic font
57 bulgarian = \lyricmode {
58   Жълтата дюля беше щастлива, че пухът, който цъфна, замръзна като гьон.
59 }
60
61 hebrew = \lyricmode {
62   זה כיף סתם לשמוע איך תנצח קרפד עץ טוב בגן.
63 }
64
65 japanese = \lyricmode {
66   いろはにほへど ちりぬるを
67   わがよたれぞ  つねならむ
68   うゐのおくや  まけふこえて
69   あさきゆめみじ ゑひもせず
70 }
71
72 % "a legal song to you"
73 portuguese = \lyricmode {
74   à vo -- cê uma can -- ção legal
75 }
76
77 \relative c' {
78   c2 d
79   e2 f
80   g2 f
81   e1
82 }
83 \addlyrics { \bulgarian }
84 \addlyrics { \hebrew }
85 \addlyrics { \japanese }
86 \addlyrics { \portuguese }