On Fri 30 Oct 2015 at 14:03:30 (+0000), MING TSANG wrote:
> 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 well
> 3.. 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?

AFAICT the newer versions of frescobaldi, eg 2.18.1 in Debian's
stretch, use python3, and that should handle UTF8 natively. The older
version in Debian's stable (jessie) is 2.0.13 which uses python2, and
so UTF has to be handled with extra code (easy, but necessary).
But it's odd that particular characters should troublesome but not
others.

LilyPond itself probably cares little about the filename it's given
because all it has to do with it is reflect it on the console.
I've tested the jessie version (2.18.2) with filenames consisting
of SPACE, NBSP, strings like ¶‱™ ⇈☂✂♠♫ (which has a NBSP in the
middle) and also your title and poet thus:

lilypond 雨打芭蕉xxx禱願
lilypond 禱願xxx雨打芭蕉

I don't know what platform you're running this on. If it's MS, it
could be their use of UTF16 that's causing a problem.

Attached are the files for a run based on your troublesome character
(if I captured the correct one):

禱       source file
lilyerr  console output
lilyout  output from displayLilyMusic
禱.pdf   output file

Because my xterms have limited fonts available, there's also a
screenshot of these files altogether in emacs.

Cheers,
David.
\version "2.18.2"
\header { tagline = ##f }
filename = \markup { "禱" }
notes = \relative {
  f4. f8 f4 f2. |
  d4. d8 d4 d2. |
  f4. f8 f4 f2. |
  d4. d8~ d d~ d4 d2 |
  f4. f8 f4 f2. |
  d4. d8 d4 d2. |
  c4. c8~ c c~ c c~ c4 c4 |
  f1 r2 _\filename
}
\score {
  {
    \clef bass
    \key f \major
    \time 3/2
    \notes
    \void \displayLilyMusic { a ^\filename }
  }
  \layout { }
  \midi { \tempo 2=84 }
}
GNU LilyPond 2.18.2
Processing `禱'
Parsing...
Interpreting music...[8]
Preprocessing graphical objects...
Interpreting music...
MIDI output to `禱.midi'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `禱.ps'...
Converting to `./禱.pdf'...
Success: compilation successfully completed
{ a2^\markup \line { "禱"} }

Attachment: pdfsPaRzD83Pa.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to