Thank you David,simon, Jacques & Thomas: Turn out it was the file name that cause the problem.As suggest by David, 1.. I rename the .ly file not using any utf-8 code and it complies fine.2.. I change the first utf-8 character "禱" to another "主" and the file complies fine as well3.. the file name with utf-8 "禱" when comply generate the strange error -- no version statement found. Question: can be be resolved? Or nothing we can do? Immanuel,ming. From: David Wright <lily...@lionunicorn.co.uk> To: MING TSANG <tsan...@rogers.com> Cc: Lilypond-user Mailinglist <lilypond-user@gnu.org> Sent: Friday, October 30, 2015 9:38 AM Subject: Re: strange error message - cannot open .ly file On Fri 30 Oct 2015 at 00:01:44 (+0000), MING TSANG wrote: > Hi lilyponders:
Hi, please post text, not HTML, and if you can't avoid that, please post source code etc as attachments rather than inline. > Frecobaldi can open the file, yet when I hit to run lilypond, I got strange > error message: > > Starting lilypond-windows.exe 2.19.29 [06_prayer-willing_禱願.ly]... > Processing `K:/����/06_prayer-willing_�/�.ly' > Parsing... > warning: cannot open file: `K:/����/06_prayer-willing_�/�.ly' > K:/粤曲/06_prayer-willing_?願.ly:1: warning: no \version statement found, > please add > \version "2.19.29" > for future compatibility > Success: compilation successfully completed > Completed successfully in 0.7". Well I can't see any evidence that LP compiled anything: nothing of any substance occurs before the "Success" line. So it looks as if your filenames are defeating either the operating system or the application that you're using. It might be worth using filenames containing only ASCII characters to see if the problem goes away. Using Unicode *within* the source should be OK: I get some likely-looking glyphs when I compile your source in 2.18.2. Cheers, David.
\version "2.19.30" \language "italiano" \header { title = "禱é¡" subtitle = "Prayer Willing" poet = "é¨æèè" % Remove default LilyPond tagline tagline = ##f } \paper { #(set-paper-size "letter") } \layout { \context { \Voice \consists "Melody_engraver" \override Stem #'neutral-direction = #'() } } global = { \key do \major \numericTimeSignature \time 2/4 \tempo 4=100 } chordNames = \chordmode { \global % Chords follow here. } melody = { \global mi''4. re''8 |%m01 do''8 re''16 sol''16 mi''16 re''16 mi''16 sol'' |%m02 } verse = \lyricmode { % Lyrics follow here. } \score { << \new ChordNames \chordNames \new Staff { \melody } \addlyrics { \verse } >> \layout { } \midi { } }
\version "2.19.30" \language "italiano" \header { title = "禱é¡" subtitle = "Prayer Willing" poet = "é¨æèè" % Remove default LilyPond tagline tagline = ##f } \paper { #(set-paper-size "letter") } \layout { \context { \Voice \consists "Melody_engraver" \override Stem #'neutral-direction = #'() } } global = { \key do \major \numericTimeSignature \time 2/4 \tempo 4=100 } chordNames = \chordmode { \global % Chords follow here. } melody = { \global mi''4. re''8 |%m01 do''8 re''16 sol''16 mi''16 re''16 mi''16 sol'' |%m02 } verse = \lyricmode { % Lyrics follow here. } \score { << \new ChordNames \chordNames \new Staff { \melody } \addlyrics { \verse } >> \layout { } \midi { } }
\version "2.19.30" \language "italiano" \header { title = "禱é¡" subtitle = "Prayer Willing" poet = "é¨æèè" % Remove default LilyPond tagline tagline = ##f } \paper { #(set-paper-size "letter") } \layout { \context { \Voice \consists "Melody_engraver" \override Stem #'neutral-direction = #'() } } global = { \key do \major \numericTimeSignature \time 2/4 \tempo 4=100 } chordNames = \chordmode { \global % Chords follow here. } melody = { \global mi''4. re''8 |%m01 do''8 re''16 sol''16 mi''16 re''16 mi''16 sol'' |%m02 } verse = \lyricmode { % Lyrics follow here. } \score { << \new ChordNames \chordNames \new Staff { \melody } \addlyrics { \verse } >> \layout { } \midi { } }
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user