lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "+" & utf-8 characters on file name


From: MING TSANG
Subject: Re: "+" & utf-8 characters on file name
Date: Tue, 18 Mar 2014 16:17:53 -0700 (PDT)




On Tuesday, March 18, 2014 5:58:51 PM, Simon Albrecht <address@hidden> wrote:

Am 18.03.2014 21:05, schrieb Fredrik Wallberg:
Hi Ming,

someone with more knowledge about Unicode (and Windows) could perhaps
explain why that happens, but since you also asked for a workaround:

Instead of using \bookOutSuffix, you could try with \bookOutputName, like this:

\book {
  \bookOutputName "+中国曲子+"

Which works fine over here (version 2.18, Mac OSX 10.8.4).
However, especially encoding issues are likely to depend on the operating system.
/ Fredrik

And Ming, please note that it is compulsory on bug-lilypond and strongly advised also on lilypond-user that you use Minimal examples. It often makes understanding the problem and testing solutions much easier. So in the current case, the file could have been as short as

\version "2.19.3"
\bookOutputSuffix "SA+TB"

{ c' }


, which by the way shows the same behavior on linux.

Best regards,
Simon


Simon:
Thank you for your simple code to demonstrate my problem.  Is this a bug in lily? If it is how to submit to bug report?

Fredrik:
Thank you suggesting using \bookOutputName, I see on the log file indicating .ps file is converted to pdf, but I cannot find it

Here is the revise lily code:
\version "2.19.3"
%(1 ...........)
\markup { This generate default pdf file with file name}
{ c' d ' e' f' }
\book {
\markup { This generate pdf file with SA_TB instead of SA+TB }
\bookOutputSuffix "SA+TB"
{ c' }
}
%(2 ...........)
\book {
\markup {This does not generates a pdf file}
\bookOutputName "ab+中国曲子+"
{d' d' }
}
%(3 .....................)
\book {
\markup {this generate error}
\bookOutputSuffix "男+女"
{ e' e' e' e' }
}

And the log file:
' e' e' e' }
}
And here is the log file:
Starting lilypond-windows.exe 2.19.3 [test_utf-8_filename.ly]...
Processing `C:/Users/Tsang/Dropbox/sample_lily-code/test_utf-8_filename.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `test_utf-8_filename-SA_TB.ps'...
Converting to `./test_utf-8_filename-SA_TB.pdf'...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `ab+中国曲子+.ps'...
Converting to `./ab+中国曲子+.pdf'...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
C:/Users/Tsang/Dropbox/LilyPond/usr/share/lilypond/current/scm/framework-ps.scm:450:22: Invalid argument: "test_utf-8_filename-�___�_�.ps"
Exited with return code 1.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]