Add some missing escape characters to abc2ly.py.
" key signature. The @var{laziness} is the number of bars for which reminder"
" accidentals are used (ie. if @var{laziness} is zero, we only cancel accidentals"
" in the same bar; if @var{laziness} is three, we cancel accidentals up to three"
- " bars after they first appear. @var{octaveness} is either "
- " @code{'same-octave} or @code{'any-octave} and it specifies whether "
+ " bars after they first appear. @var{octaveness} is either"
+ " @code{'same-octave} or @code{'any-octave} and it specifies whether"
" accidentals should be canceled in different octaves.")
{
LY_ASSERT_TYPE (unsmob_pitch, pitch_scm, 2);
" is a string which specifies the kind of bar line to print."
" Options are @code{:|}, @code{|:}, @code{:|:}, @code{:|.|:},"
" @code{:|.:}, @code{||}, @code{|.}, @code{.|}, @code{.|.},"
- " @code{|.|}, @code{:} and @code{\"dashed\"}.\n"
+ " @code{|.|}, @code{:} and @code{dashed}.\n"
"\n"
"These produce, respectively, a right repeat, a left repeat,"
" a thick double repeat, a thin-thick-thin double repeat,"
" a thin-thick double repeat, a double bar, a start bar,"
" an end bar, a thick double bar, a thin-thick-thin bar,"
- " a dotted bar and a dashed bar. "
- " In addition, there is an option"
+ " a dotted bar and a dashed bar."
+ " In addition, there is an option"
" @code{||:} which is equivalent to @code{|:} except at line"
" breaks, where it produces a double bar (@code{||}) at the"
" end of the line and a repeat sign (@code{|:}) at the"
"bar-size "
"bar-extent "
);
-
-
for (Dot_configuration::const_iterator i (begin ());
i != end (); i++)
printf ("%d, ", i->first);
- printf ("} \n");
+ printf ("}\n");
}
/*
*/
LY_DEFINE (ly_make_scale, "ly:make-scale",
1, 0, 0, (SCM steps),
- "Create a scale. "
- "The argument is a vector of rational numbers, each of which "
- "represents the number of tones of a pitch above the tonic.")
+ "Create a scale."
+ " The argument is a vector of rational numbers, each of which"
+ " represents the number of tones of a pitch above the tonic.")
{
bool type_ok = scm_is_vector (steps);
}
LY_DEFINE (ly_round_filled_polygon, "ly:round-filled-polygon",
- 2, 0, 0,
- (SCM points, SCM blot),
- "Make a @code{Stencil} object that prints a black polygon with "
- "corners at the points defined by @var{points} (list of coordinate "
- "pairs) and roundness @var{blot}.")
+ 2, 0, 0,
+ (SCM points, SCM blot),
+ "Make a @code{Stencil} object that prints a black polygon with"
+ " corners at the points defined by @var{points} (list of coordinate"
+ " pairs) and roundness @var{blot}.")
{
SCM_ASSERT_TYPE (scm_ilength (points) > 0, points, SCM_ARG1, __FUNCTION__, "list of coordinate pairs");
LY_ASSERT_TYPE (scm_is_number, blot, 2);
str = re.sub (r"\\bigger", r"\\larger", str)
return str
-@rule ((2, 11, 64), "systemSeparatorMarkup -> system-separator-markup, \n\
+@rule ((2, 11, 64), "systemSeparatorMarkup -> system-separator-markup,\n\
InnerStaffGroup -> StaffGroup, InnerChoirStaff -> ChoirStaff")
def conv (str):
str = re.sub (r'systemSeparatorMarkup', r'system-separator-markup', str)
engraver-list))
"."
- "\n\nStandard settings: \n\n"
+ "\n\nStandard settings:\n\n"
(grob-alist->texi description)
- "\n\nThis object supports the following interface(s): \n"
+ "\n\nThis object supports the following interface(s):\n"
(human-listify ifacedoc)
"."))))
(define-method (display (leaf <Font-tree-leaf>) port)
(map (lambda (x) (display x port))
(list
- "#<Font-size-family: \n"
+ "#<Font-size-family:\n"
(slot-ref leaf 'default-size)
(slot-ref leaf 'size-vector)
"#>"
(display x port))
(list
- "Font_node { \nqual: "
+ "Font_node {\nqual: "
(font-qualifier node)
"(def: "
(font-default node)
(display "=" port)
(display (cdr x) port))
(hash-table->alist (font-children node)))
- (display "} } \n"))
+ (display "} }\n"))
(define default-qualifier-order
"set-ps-scale-to-lily-scale "
"\n"))
(ly:outputter-dump-stencil outputter page)
- (ly:outputter-dump-string outputter "stroke grestore \nshowpage\n"))
+ (ly:outputter-dump-string outputter "stroke grestore\nshowpage\n"))
(define (supplies-or-needs paper load-fonts?)
(define (extract-names font)
(if (not embed)
(begin
- (set! embed "% failed \n")
+ (set! embed "% failed\n")
(ly:warning (_ "cannot extract file matching ~a from ~a") name filename)))
embed))
(display header port)
(write-preamble paper load-fonts port)
- (display "gsave set-ps-scale-to-lily-scale \n" port)
+ (display "gsave set-ps-scale-to-lily-scale\n" port)
(ly:outputter-dump-stencil outputter dump-me)
(display "stroke grestore\n%%Trailer\n%%EOF\n" port)
(ly:outputter-close outputter)))
(format graph-out "~a ~a\n" time mem)
(if stack
(begin
- (format stacks-out "~5a t = ~5a - delta-mem: ~15a - ~a \n" i
+ (format stacks-out "~5a t = ~5a - delta-mem: ~15a - ~a\n" i
time
(- mem last-mem) proc)
(do
(list r g b)))
;; restore color from stack
-(define (resetcolor) "grestore \n")
+(define (resetcolor) "grestore\n")
;; rotation around given point
(define (setrotation ang x y)
m = k
for i in range (len(slyrics[voice_idx_dict[k]])):
l= alphabet(i)
- outf.write ("\nwords%sV%s = \lyricmode {" % (m, l))
+ outf.write ("\nwords%sV%s = \\lyricmode {" % (m, l))
outf.write ("\n" + slyrics [voice_idx_dict[k]][i])
outf.write ("\n}")
denominator=array2[0]
perminute=array2[1]
duration = str (int (denominator) / int (numerator))
- midi_specs = ' '.join([" \n\t\t\context {\n\t\t \Score tempoWholesPerMinute = #(ly:make-moment ", perminute, " ", duration, ")\n\t\t }\n"])
+ midi_specs = ' '.join(["\n\t\t\\context {\n\t\t \\Score tempoWholesPerMinute = #(ly:make-moment ", perminute, " ", duration, ")\n\t\t }\n"])
else:
sys.stderr.write("abc2ly: Warning, unable to parse Q specification: %s\n" % a)
l = ord( 'A' )
for lyrics in slyrics [voice_idx_dict[k]]:
- outf.write ("\n\t\\addlyrics { \n")
+ outf.write ("\n\t\\addlyrics {\n")
if re.match('[1-9]',k):
m = alphabet (int (k))
else:
if a == 'C':
if not state.common_time:
state.common_time = 1
- voices_append (" \\override Staff.TimeSignature #\'style = #'C\n")
+ voices_append (" \\override Staff.TimeSignature #'style = #'C\n")
a = '4/4'
if a == 'C|':
if not state.common_time:
state.common_time = 1
- voices_append ("\\override Staff.TimeSignature #\'style = #'C\n")
+ voices_append ("\\override Staff.TimeSignature #'style = #'C\n")
a = '2/2'
if not length_specified:
set_default_len_from_time_sig (a)
base = '\\breve'
dots = 1
if (multiply_tup[0] / multiply_tup[1]) == 4:
- base = '\longa'
+ base = '\\longa'
return '%s%s' % ( base, '.'* dots)
class Parser_state:
if left[0]:
str = str + rational_to_lily_skip (left)
- str = str + ' | \n'
+ str = str + ' |\n'
return str
def encodeint (i):
fr = m.frames[x]
except IndexError:
sys.stderr.write ("Skipping nonexistent frame %d\n" % x)
- laystr = laystr + "%% non existent frame %d (skipped) \n" % x
+ laystr = laystr + "%% non existent frame %d (skipped)\n" % x
if fr:
first_frame = fr
if gap <> (0,1):
(define-public (_ x) x))
(define (show-version port)
- (format port "~a (GNU LilyPond) ~a \n" PROGRAM-NAME TOPLEVEL-VERSION))
+ (format port "~a (GNU LilyPond) ~a\n" PROGRAM-NAME TOPLEVEL-VERSION))
(define (show-help port)
(format port (_ "Usage: lilypond-invoke-editor [textedit://]FILE:LINE:CHAR:COLUMN