#include "bezier.hh"
#include "font-interface.hh"
#include "grob.hh"
+#include "international.hh"
#include "lookup.hh"
#include "output-def.hh"
#include "pointer-group-interface.hh"
}
else
{
- me->warning ("no heads for arpeggio found?");
+ me->warning (_ ("no heads for arpeggio found?"));
me->suicide ();
return SCM_EOL;
}
if (d == ly_symbol2scm ("calculation-in-progress"))
{
programming_error ("Grob direction requested while calculation in"
- " progress. ");
+ " progress.");
return UP;
}
if (!is_direction (d))
scm_hashq_set_x (listeners_, ev_class, list);
if (first)
- warning ("Attempting to remove nonexisting listener.");
+ warning (_ ("Attempting to remove nonexisting listener."));
else if (!scm_is_pair (list))
{
/* Unregister with all dispatchers. */
// Don't register twice to the same dispatcher.
if (scm_assq (disp->self_scm (), dispatchers_) != SCM_BOOL_F)
{
- warning ("Already listening to dispatcher, ignoring request");
+ warning (_ ("Already listening to dispatcher, ignoring request"));
return;
}
if (isnan (val) || isinf (val))
{
- warning (_ ("Found infinity or nan in output. Substituting 0.0"));
+ warning (_ ("Found infinity or nan in output. Substituting 0.0"));
return ("0.0");
if (strict_infinity_checking)
abort ();
Cpu_timer timer;
- message (_ ("Interpreting music... "));
+ message (_ ("Interpreting music..."));
SCM protected_iter = Music_iterator::get_static_get_iterator (music);
Music_iterator *iter = unsmob_iterator (protected_iter);
if (w == prev_mom_)
{
- programming_error ("Moment is not increasing. Aborting interpretation.");
+ programming_error ("Moment is not increasing."
+ " Aborting interpretation.");
break;
}
Item *r_bound = me->get_bound (RIGHT);
if (r_bound->break_status_dir () != -1)
{
- me->warning ("Asking for broken bound padding at a non-broken bound.");
+ me->warning (_ ("Asking for broken bound padding at a non-broken bound."));
return scm_from_double (0.0);
}
#include "clef.hh"
#include "context.hh"
#include "engraver.hh"
+#include "international.hh"
#include "item.hh"
#include "pitch.hh"
#include "protected-scm.hh"
}
if (warn)
- r->origin ()->warning ("Incomplete keyAlterationOrder for key signature");
+ r->origin ()->warning (_ ("Incomplete keyAlterationOrder for key signature"));
}
context ()->set_property ("keySignature", scm_reverse_x (accs, SCM_EOL));
if (!lyrics_context_)
{
- m->origin ()->warning ("argument of \\lyricsto should contain Lyrics context");
+ m->origin ()->warning (_ ("argument of \\lyricsto should contain Lyrics context"));
}
lyricsto_voice_name_ = get_music ()->get_property ("associated-context");
}
else
{
- text_->warning (_ ("Lyric syllable does not have note. Use \\lyricsto or associatedVoice."));
+ text_->warning (_ ("Lyric syllable does not have note."
+ " Use \\lyricsto or associatedVoice."));
text_->set_property ("X-offset", scm_from_int (0));
}
}
int num = abs (audio_->beats_);
if (num > 255)
{
- warning ("Time signature with more than 255 beats. Truncating");
+ warning (_ ("Time signature with more than 255 beats. Truncating"));
num = 255;
}
&& (to_boolean (scm_null_p (duration_logs_list))
|| !to_boolean (scm_list_p (duration_logs_list))))
{
- warning (_ ("usable-duration-logs must be a non-empty list. Falling back to whole rests."));
+ warning (_ ("usable-duration-logs must be a non-empty list."
+ " Falling back to whole rests."));
closest_usable_duration_log = 0;
}
else
if (!spacing)
spacing = unsmob_grob (ri->get_object ("spacing"));
if (!spacing)
- me->warning ("Using naive multi measure rest spacing.");
+ me->warning (_ ("Using naive multi measure rest spacing."));
else
{
Spacing_options options;
foot_stencil = add_footnotes_to_footer (footnotes, foot_stencil, pb);
}
else
- warning ("A page layout problem has been initiated that cannot accommodate footnotes.");
+ warning (_ ("A page layout problem has been initiated that cannot accommodate footnotes."));
header_height_ = head ? head->extent (Y_AXIS).length () : 0;
footer_height_ = foot_stencil.extent (Y_AXIS).length ();
if (g.event_cause ()->in_event_class ("una-corda-event"))
return UNA_CORDA;
- programming_error ("Unknown piano pedal type. Defaulting to sustain");
+ programming_error ("Unknown piano pedal type. Defaulting to sustain");
return SUSTAIN;
}
LY_DEFINE (ly_make_pitch, "ly:make-pitch",
2, 1, 0, (SCM octave, SCM note, SCM alter),
"@var{octave} is specified by an integer, zero for the octave"
- " containing middle@tie{}C. @var{note} is a number indexing the"
+ " containing middle@tie{}C. @var{note} is a number indexing the"
" global default scale, with 0 corresponding to pitch@tie{}C"
- " and 6 usually corresponding to pitch@tie{}B. "
- " Optional @var{alter} is"
+ " and 6 usually corresponding to pitch@tie{}B."
+ " Optional @var{alter} is"
" a rational number of 200-cent whole tones for alteration.")
{
LY_DEFINE (ly_set_default_scale, "ly:set-default-scale",
1, 0, 0, (SCM scale),
- "Set the global default scale. This determines the tuning of"
+ "Set the global default scale. This determines the tuning of"
" pitches with no accidentals or key signatures. The first"
- " pitch is C. Alterations are calculated relative to this"
+ " pitch is C. Alterations are calculated relative to this"
" scale. The number of pitches in this scale determines the"
" number of scale steps that make up an octave. Usually the"
" 7-note major scale.")
}
else
{
- programming_error ("lv tie without Semi_tie_column. Killing lv tie.");
+ programming_error ("lv tie without Semi_tie_column. Killing lv tie.");
me->suicide ();
}
{
if (s < 0)
{
- programming_error ("Negative demerits found for slur. Ignoring");
+ programming_error ("Negative demerits found for slur. Ignoring");
s = 0.0;
}
}
}
else if (avoid != ly_symbol2scm ("ignore"))
- e->warning (_f ("Ignoring grob for slur: %s. avoid-slur not set?",
+ e->warning (_f ("Ignoring grob for slur: %s. avoid-slur not set?",
e->name ().c_str ()));
}
*/
if (!right_neighbor || !left_neighbor)
{
- c->programming_error ("Cannot determine neighbors for floating column. ");
+ c->programming_error ("Cannot determine neighbors for floating column.");
c->set_object ("between-cols", scm_cons (cols->at (i - 1)->self_scm (),
cols->at (i + 1)->self_scm ()));
}
if (!right)
{
- programming_error ("Can't attach loose column sensibly. Attaching to end of system.");
+ programming_error ("Can't attach loose column sensibly."
+ " Attaching to end of system.");
right = which->get_bound (RIGHT);
}
if (!bounds[LEFT] || ! bounds[RIGHT])
{
- programming_error ("bounds of this piece aren't breakable. ");
+ programming_error ("bounds of this piece aren't breakable.");
continue;
}
if (!ok)
{
- programming_error (to_string ("Spanner `%s' is not fully contained in parent spanner. Ignoring orphaned part",
+ programming_error (to_string ("Spanner `%s' is not fully contained in parent spanner."
+ " Ignoring orphaned part",
name ().c_str ()));
continue;
}
LY_DEFINE (ly_stencil_rotate, "ly:stencil-rotate",
4, 0, 0, (SCM stil, SCM angle, SCM x, SCM y),
"Return a stencil @var{stil} rotated @var{angle} degrees around"
- " the relative offset (@var{x}, @var{y}). E.g. an offset of"
+ " the relative offset (@var{x}, @var{y}). E.g., an offset of"
" (-1, 1) will rotate the stencil around the left upper corner.")
{
Stencil *s = unsmob_stencil (stil);
}
else
{
- programming_error ("Object is not a markup. ");
+ programming_error ("Object is not a markup.");
scm_puts ("This object should be a markup: ", scm_current_error_port ());
scm_display (markup, scm_current_error_port ());
scm_puts ("\n", scm_current_error_port ());
systems.. We should look at the first broken copy.
*/
- programming_error ("Tie without heads. Suicide");
+ programming_error ("Tie without heads. Suicide");
me->suicide ();
return 0;
}
else if (sym == ly_symbol2scm ("Score_performer"))
return new Score_performer ();
- error (_f ("fatal error. Couldn't find type: %s",
+ error (_f ("fatal error. Couldn't find type: %s",
ly_symbol2string (sym).c_str ()));
scm_flush (scm_current_error_port ());
scm_display (sym, scm_current_error_port ());
LY_DEFINE (ly_make_unpure_pure_container, "ly:make-unpure-pure-container",
1, 1, 0, (SCM unpure, SCM pure),
"Make an unpure-pure container. @var{unpure} should be an unpure"
- " expression, and @var{pure} should be a pure expression. If @var{pure}"
+ " expression, and @var{pure} should be a pure expression. If @var{pure}"
" is ommitted, the value of @var{unpure} will be used twice.")
{
SCM z;
if (pitch == new_pitch)
{
primitive.grob ()->
- warning ("Ambiguous use of dots in ligature: there are"
- " multiple dotted notes with the same pitch."
- " The ligature should be split.");
+ warning (_ ("Ambiguous use of dots in ligature: there are"
+ " multiple dotted notes with the same pitch."
+ " The ligature should be split."));
return; // supress multiple identical warnings
}
}
}
else if (augmented_primitives_.size () > 0)
{
- primitive->warning ("This ligature has a dotted head followed by"
- " a non-dotted head. The ligature should be"
- " split after the last dotted head before"
- " this head.");
+ primitive->warning (_ ("This ligature has a dotted head followed by"
+ " a non-dotted head. The ligature should be"
+ " split after the last dotted head before"
+ " this head."));
}
if (is_stacked_head (prefix_set, context_info))
1, 0, 1, (SCM str, SCM rest),
"A Scheme callable function to register a warning to be expected"
" and subsequently suppressed. If the warning is not encountered,"
- " a warning about the missing warning will be shown. The message"
+ " a warning about the missing warning will be shown. The message"
" should be translated with @code{(_ ...)} and changing parameters"
" given after the format string.")
{