* lily/main.cc (main): Invoke identify.
* scm/lily.scm (postscript->pdf): Remove progress newline.
Write progress to stderr.
* lily/paper-book.cc (output): Remove progress newline.
* scm/framework-tex.scm (convert-to-dvi, convert-to-ps): Call
gettext on user messages, and remove whitespace.
* lily/paper-outputter.cc (get_paper_outputter): Add progress newline.
* lily/main.cc (usage): Typo.
2004-11-03 Jan Nieuwenhuizen <janneke@gnu.org>
+ * lily/lily-parser.cc (LY_DEFINE): Remove "Now " from message.
+
+ * lily/main.cc (main): Invoke identify.
+
+ * scm/lily.scm (postscript->pdf): Remove progress newline.
+ Write progress to stderr.
+
+ * lily/paper-book.cc (output): Remove progress newline.
+
+ * scm/framework-tex.scm (convert-to-dvi, convert-to-ps): Call
+ gettext on user messages, and remove whitespace.
+
+ * lily/paper-outputter.cc (get_paper_outputter): Add progress newline.
+
* scripts/lilypond-latex.py (program_name): Bugfix: use only basename of
argv[0] (Thomas Scharkowski).
You will see something resembling
@example
-lilypond (GNU LilyPond) 2.2.0
-Running lilypond...
-Now processing `/home/fred/ly/test.ly'
+lilypond test.ly
+GNU LilyPond 2.5.0
+Processing `test.ly'
Parsing...
-Interpreting music...[1]
-@emph{... more interesting stuff ... }
-DVI output to `test.dvi'...
-PDF output to `test.pdf'...
-PS output to `test.ps'...
+Interpreting music... [1]
+Preprocessing graphical objects...
+Calculating line breaks... [2]
+Layout output to `test.tex'...
+Converting to `test.dvi'...
+Converting to `test.ps'...
+Converting to `test.pdf'...
@end example
@cindex DVI file
Sources sources;
sources.set_path (&global_path);
- progress_indication (_f ("Now processing `%s'", file_name.to_str0 ()));
+ progress_indication (_f ("Processing `%s'", file_name.to_str0 ()));
progress_indication ("\n");
Lily_parser *parser = new Lily_parser (&sources);
identify (FILE *out)
{
fputs (gnu_lilypond_version_string ().to_str0 (), out);
+ fputs ("\n", out);
}
static void
notice ()
{
identify (stdout);
- printf ("\n");
printf (_f (NOTICE, PROGRAM_NAME).to_str0 ());
printf ("\n");
copyright ();
ly_c_init_guile ();
call_constructors ();
- progress_indication ("\n");
determine_output_options ();
all_fonts_global = new All_font_metrics (global_path.to_string ());
if (help_b)
{
+ identify (stdout);
usage ();
if (verbose_global_b)
dir_info (stdout);
int
main (int argc, char **argv)
{
- setup_localisation ();
+ setup_localisation ();
setup_paths ();
parse_argv (argc, argv);
+ identify (stderr);
initialize_kpathsea (argv[0]);
scm_boot_guile (argc, argv, main_with_guile, 0);
{make_ps, "convert-to-ps"},
{make_pdf, "convert-to-pdf"},
{make_png, "convert-to-png"},
- {0,0}
+ {0, 0},
};
- for (int i= 0; settings[i].func_name_; i++)
+ for (int i = 0; settings[i].func_name_; i++)
{
if (settings[i].do_it_)
{
{
func = scm_variable_ref (func);
if (ly_c_procedure_p (func))
- scm_call_2 (func, self_scm(), file_name);
+ scm_call_2 (func, self_scm (), file_name);
}
}
}
post_processing (mod, scm_makfrom0str (file_name.to_str0 ()));
}
-
- progress_indication ("\n");
}
+ progress_indication ("\n");
}
void
{
progress_indication (_f ("Layout output to `%s'...",
outname == "-" ? String ("<stdout>") : outname));
+ progress_indication ("\n");
return new Paper_outputter (outname, f);
}
midi_stream << Midi_header (1, tracks_i, clocks_per_4_i);
output_header_track (midi_stream);
progress_indication ("\n");
- progress_indication (_ ("Track ... "));
+ progress_indication (_ ("Track...") + " ");
int channel = 0;
- for (int i =0; i < audio_staffs_.size (); i++)
+ for (int i = 0; i < audio_staffs_.size (); i++)
{
Audio_staff *s = audio_staffs_[i];
if (verbose_global_b)
(if (ly:get-option 'verbose)
" "
- " 2>&1 1>& /dev/null ")
- )))
+ " 2>&1 1>& /dev/null "))))
(if (ly:get-option 'verbose)
(begin
(newline (current-error-port))
-
- (display (format #f (_ "Invoking ~S") cmd) (current-error-port))
+ (format (current-error-port) (_ "Invoking ~S") cmd)
(newline (current-error-port)))
- (display (format #f "Converting to `~a.ps'...\n" base) (current-error-port))
- )
+ (begin
+ (format (current-error-port) (_ "Converting to `~a.ps'...") base)
+ (newline (current-error-port))))
(system cmd)))
(define-public (convert-to-dvi book name)
"latex \\\\nonstopmode \\\\input " name
(if (ly:get-option 'verbose)
" "
- " 2>&1 1>& /dev/null ")
-
- )))
+ " 2>&1 1>& /dev/null "))))
(setenv "extra_mem_top" (number->string (max curr-extra-mem 1024000)))
(if (ly:get-option 'verbose)
(begin
(newline (current-error-port))
- (display (format #f (_ "Invoking ~S") cmd) (current-error-port))
+ (format (current-error-port) (_ "Invoking ~S") cmd)
(newline (current-error-port)))
- (format (current-error-port) "Converting to `~a.dvi'...\n" base))
+ (begin
+ (format (current-error-port) (_ "Converting to `~a.dvi'...") base)
+ (newline (current-error-port))))
;; fixme: set in environment?
(if (ly:get-option 'safe)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-public (ly:system command)
- (let*
- ((status 0))
-
+ (let* ((status 0))
(if (ly:get-option 'verbose)
- (display (format (_ "Invoking `~a'...\n") command) (current-error-port)))
-
+ (format (current-error-port) (_ "Invoking `~a'...\n") command))
(set! status (system command))
-
-
(if (> status 0)
- (display (format (_ "Error invoking `~a'. Return value ~a")
- command status)))
- ))
+ (format (current-error-port) (_ "Error invoking `~a'. Return value ~a")
+ command status))))
(define-public (postscript->pdf papersizename name)
(let* ((cmd (string-append "ps2pdf -sPAPERSIZE=" papersizename " " name))
(output-name
(regexp-substitute/global #f "\\.ps" name 'pre ".pdf" 'post)))
-
- (newline (current-error-port))
- (display (format (_ "Converting to `~a'...") output-name)
- (current-error-port))
-
+ (format (current-error-port) (_ "Converting to `~a'...") output-name)
(ly:system cmd)))
(define-public (postscript->png resolution name)