cht電腦資訊文書排版TeX
adm Find login register

lilypond utf8 中文字

神經囍囍
1 lilypond utf8 中文字
Promote 0 Bookmark 02009-03-21quote  

請教...

 

使用 lilypond 2.12.0

原檔如下列 

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/sonata_althorn_e-flat_4_ChU8.ly

(這個檔有想顯示的中文字, 於 line 115 ~ 144 )

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/defs.lyi

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/horn01.lyi

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/horn02.lyi

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/horn03.lyi

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/horn04.lyi 

結果的 ps 及 pdf : 

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/sonata_althorn_e-flat_4_ChU8.ps

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/sonata_althorn_e-flat_4_ChU8.pdf

(但就是看不到中文 - 在 第3頁的 IV 後,有左右兩則英文及 底下應有中譯);  請幫我看看.

 

log 說 

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name 

 

Fedora 10, latex 用 texlive2007, lilypond 2.12.0

我其實也裝有  cwt1  nkait1  nsungt1  wenq 這些字型; wenq 是後來去裝的.

且若 CJK 部份  git pull 則 "Already up-to-date".

# cat /foot/tmp/cjk/ChangeLog | more 
2009-01-19  Werner LEMBERG  <wl@gnu.org>
* texlive/cjk-build.pl: Remove unused stuff.
From Karl Berry.
 

$ lilyopnd sonata_althorn_e-flat_4_ChU8.ly <enter>

GNU LilyPond 2.12.0

Processing `sonata_althorn_e-flat_4_ChU8.ly'

Parsing...

Interpreting music... [8][16][24][32][40]

Preprocessing graphical objects...

Interpreting music...

Interpreting music... [8][16][24][32][40][48][56][64][72][80][88][96][104][112][120][128][136][144][152][160][168]

Preprocessing graphical objects...

Interpreting music...

Interpreting music... [8]

Preprocessing graphical objects...

Interpreting music...

Interpreting music... [8][16][24][32][40][48][56][56]

Preprocessing graphical objects...

Interpreting music...

MIDI output to `sonata_althorn_e-flat_4_ChU8.midi'...

MIDI output to `sonata_althorn_e-flat_4_ChU8-1.midi'...

MIDI output to `sonata_althorn_e-flat_4_ChU8-2.midi'...

MIDI output to `sonata_althorn_e-flat_4_ChU8-3.midi'...

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

Calculating page and line breaks (1 possible page breaks)...

warning: cannot fit the first page turn onto a single page.  Consider setting first-page-number to an even number.

[1]

Drawing systems...

Layout output to `sonata_althorn_e-flat_4_ChU8.ps'...

Converting to `./sonata_althorn_e-flat_4_ChU8.pdf'...

 ---
 
以上..
請教 再下來該如何, 可以讓他出現 (utf-8) 中文字
 
謝謝 ^_^
 
 
neuro
neuroh@gmail.com
 
 
 
本人已不在此站活動
2 lilypond utf8 中文字
Promote 0 Bookmark 02009-03-21quote  
神經囍囍
請教...

使用 lilypond 2.12.0

原檔如下列 

http://neuro.ohbi.net/lab/lilypond/hindemith_althorn/sonata_althorn_e-flat_4_ChU8.ly

現在的 lilypond 已經不需和 TeX/CJK 配合,他可以直接使用中文(需 UTF-8 編碼)。實際例子請參考:

http://edt1023.sayya.org/lily/lily.tar.gz

神經囍囍
3
Promote 0 Bookmark 02009-03-23quote  

感謝 前輩不吝指點..

 

我抓回來試了一下...

結果類似,  仍說 沒中文 postscript font ,  就是說:  

 

$ lilypond utf-8.ly <enter>

GNU LilyPond 2.12.0

Processing `utf-8.ly'

Parsing...

Interpreting music...

Preprocessing graphical objects...

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: Improbable offset for stencil: -inf staff space

Setting to zero.

continuing, cross fingers

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

warning: no PostScript font name for font `/usr/share/fonts/wenquanyi/wqy-bitmapfont/wenquanyi_12pt.pcf'

warning: FreeType face has no PostScript font name

programming error: cannot align on self: empty element

continuing, cross fingers

programming error: cannot align on self: empty element

continuing, cross fingers

programming error: cannot align on self: empty element

continuing, cross fingers

programming error: cannot align on self: empty element

continuing, cross fingers

programming error: cannot align on self: empty element

continuing, cross fingers

Finding the ideal number of pages...

Fitting music on 1 page...

Drawing systems...

Layout output to `utf-8.ps'...

Converting to `./utf-8.pdf'...

 

出來的 結果在 

http://neuro.ohbi.net//lab/lilypond/hindemith_althorn/lgj/utf-8.ps

http://neuro.ohbi.net//lab/lilypond/hindemith_althorn/lgj/utf-8.pdf

 

請問, 不知再來如何更正...? 

謝謝 

 

本人已不在此站活動
4
Promote 0 Bookmark 12009-03-23quote  

請列出

fc-list :lang=zh-tw

的內容。lilypond 是去抓系統所安裝的 ttf/otf,如果沒有安裝向量字型,他無法直接使用點陣字型(*.pcf)。

神經囍囍
5
Promote 0 Bookmark 02009-03-23quote  

# fc-list :lang=zh-tw <enter>

Biwidth:style=Bold Italic

WenQuanYi Bitmap Song:style=Bold

Biwidth:style=Bold

Fixed:style=Bold

WenQuanYi Zen Hei Mono,文泉驛等寬正黑,文泉驿等宽正黑:style=Medium,中等

AR PL UMing TW:style=Light

AR PL UMing HK:style=Light

AR PL UMing CN:style=Light

Fixed:style=Bold Italic

AR PL UKai TW MBE:style=Book

WenQuanYi Zen Hei,文泉驛正黑,文泉驿正黑:style=Medium,中等

Unibit:style=Regular

AR PL UKai CN:style=Book

Biwidth:style=Italic

AR PL UKai HK:style=Book

AR PL UKai TW:style=Book

Fixed:style=Italic

Biwidth:style=Regular

WenQuanYi Bitmap Song:style=Regular

Fixed:style=Regular

AR PL UMing TW MBE:style=Light

 
請指正
謝謝
 

 

本人已不在此站活動
6
Promote 0 Bookmark 12009-03-23quote  

fc-match :lang=zh-tw

如果 AR PL UMing 字型不是出現在第一個,請調整你的 fontconfig 設定,把他往前調。另外,暫時把測試的 bulgarian, hebrew, portuguese 等語言的部份暫時先去掉試試看。就是只留下中日文的部份。

神經囍囍
7
Promote 0 Bookmark 02009-03-23quote  
 
# fc-match :lang=zh-tw <enter>
wenquanyi_10pt.pcf: "WenQuanYi Bitmap Song" "Regular"
 
 
> 如果 AR PL UMing 字型不是出現在第一個,請調整你的 fontconfig 設定,把他往前調。
 
請問, how?
 
謝謝 
 
 
本人已不在此站活動
8
Promote 0 Bookmark 12009-03-24quote  
神經囍囍
> 如果 AR PL UMing 字型不是出現在第一個,請調整你的 fontconfig 設定,把他往前調。
 
請問, how?
 
謝謝
 
這已經完全和 TeX 無關,請參考:
 
 http://edt1023.sayya.org/fontconfig/fontconfig-user.html
 
如有問題請至「字型討論區」討論。
 
 
ps. 另一討論串已移至字型討論區:
     http://hyperrate.com/thread.php?tid=9783
 
edited: 1
神經囍囍
9
Promote 1 Bookmark 02009-03-23quote  

感謝指點, 終於搞出來了... :)

 

就是譬如

\markup { \override #'(font-name . "AR PL UKai TW") "中文字在此"} 

 

謝謝多方指導 ^_^

 

 

cht電腦資訊文書排版TeX
adm Find login register
views:28353