From: janneke Date: Sun, 18 Aug 2002 11:46:53 +0000 (+0000) Subject: message and silly fix X-Git-Tag: release/1.7.25~850 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=09759a80298ac5feea3b6b313e02163f59674cd4;p=lilypond.git message and silly fix --- diff --git a/ChangeLog b/ChangeLog index 10663780b0..c555f04a3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,9 @@ 2002-08-18 Jan Nieuwenhuizen + * lily/parser.yy (assignment, Simple_music): Warning message fix. + Junk ARRAY_SIZE definition. + * lily/score-engraver.cc: Uniformise error message. * lily/grob-property.cc (internal_set_grob_property, diff --git a/lily/lexer.ll b/lily/lexer.ll index d9b61340f6..78b43638f2 100644 --- a/lily/lexer.ll +++ b/lily/lexer.ll @@ -361,7 +361,7 @@ HYPHEN -- char c = s[s.length () - 1]; if (c == '{' || c == '}') // brace open is for not confusing dumb tools. here_input ().warning ( - _ ("Brace found at end of lyric. Did you forget a space?")); + _ ("Brace found at end of lyric. Did you forget a space?")); yylval.scm = scm_makfrom0str (s.to_str0 ()); diff --git a/lily/parser.yy b/lily/parser.yy index c314a96b17..480edf162e 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -124,7 +124,6 @@ set_music_properties (Music *p, SCM a) ((My_lily_parser *) my_lily_parser) #define yyerror THIS->parser_error -#define ARRAY_SIZE(a,s) if (a.size () != s) THIS->parser_error (_f ("Expecting %d arguments", s)) %} @@ -432,7 +431,7 @@ assignment: if (! regular_identifier_b ($1)) { - ip.warning (_ ("Identifier should have alphabetic characters only")); + ip.warning (_ ("Identifier should have alphabetic characters only")); } THIS->lexer_->set_identifier ($1, $4); @@ -798,10 +797,10 @@ Simple_music: { THIS->parser_error (_ ("Second argument must be a symbol")); } - /*hould check # args */ + /* Should check # args */ if (!gh_procedure_p (pred)) { - THIS->parser_error (_ ("First argument must be a procedure taking 1 argument")); + THIS->parser_error (_ ("First argument must be a procedure taking one argument")); } Music *m = new Music (SCM_EOL); diff --git a/lily/tfm-reader.cc b/lily/tfm-reader.cc index 5822424008..5e72942e29 100644 --- a/lily/tfm-reader.cc +++ b/lily/tfm-reader.cc @@ -103,6 +103,8 @@ Tex_font_metric_reader::read_header () /* We don't care about the extensible table. */ if (header_length < 2) + /* Not using ngettext's plural feature here, as this message is + more of a programming error. */ error (_f ("TFM header of `%s' has only %u word (s)", input_.name_string ().to_str0 (), header_length)); diff --git a/scripts/ly2dvi.py b/scripts/ly2dvi.py index 5b016b2d5e..f8ce3f462f 100644 --- a/scripts/ly2dvi.py +++ b/scripts/ly2dvi.py @@ -327,7 +327,7 @@ latex_cmd = 'latex' tex_extension = '.tex' pdftex_p = 0 -help_summary = _ ("Generate .dvi with LaTeX for LilyPond") +help_summary = _ ("Run LilyPond using LaTeX for titling") option_definitions = [ ('', 'd', 'dependencies', _ ("write Makefile dependencies for every input file")), @@ -338,9 +338,9 @@ option_definitions = [ ('', 'm', 'no-paper', _ ("produce MIDI output only")), (_ ("FILE"), 'o', 'output', _ ("write ouput to FILE")), (_ ("FILE"), 'f', 'find-pfa', _ ("find pfa fonts used in FILE")), - # why capital P? - ('', '', 'preview', _("Make a picture of the first system.")), - (_ ('RES'), '', 'preview-resolution', _("Set the resolution of the preview to RES.")), + # FIXME: preview, picture; to indicate creation of a PNG? + ('', '', 'preview', _("make a picture of the first system.")), + (_ ('RES'), '', 'preview-resolution', _("set the resolution of the preview to RES.")), ('', 'P', 'postscript', _ ("generate PostScript output")), ('', 'p', 'pdf', _ ("generate PDF output")), (_ ("KEY=VAL"), 's', 'set', _ ("change global setting KEY to VAL")),