automated documentation.
2003-08-30 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * scm/document-translation.scm (context-doc): add aliases to
+ automated documentation.
+
* make/lilypond-vars.make: remove stepmake compat glue.
* make/generic-vars.make: remove cruft.
}
| translator_spec_body ALIAS STRING {
Translator_def*td = unsmob_translator_def ($$);
- td->type_aliases_ = scm_cons ($3, td->type_aliases_);
+ td->type_aliases_ = scm_cons (scm_string_to_symbol ($3), td->type_aliases_);
}
| translator_spec_body GROBDESCRIPTIONS embedded_scm {
Translator_def*td = unsmob_translator_def($$);
l = gh_cons (gh_cons (ly_symbol2scm ("consists"), consists_name_list_), l);
l = gh_cons (gh_cons (ly_symbol2scm ("description"), description_), l);
+ l = gh_cons (gh_cons (ly_symbol2scm ("aliases"), type_aliases_), l);
l = gh_cons (gh_cons (ly_symbol2scm ("end-consists"),
end_consists_name_list_), l);
l = gh_cons (gh_cons (ly_symbol2scm ("accepts"), accepts_name_list_), l);
metronomeMarkFormatter = #make-metronome-markup
graceSettings = #`#(
- ("Voice" Stem direction 1)
- ("Voice" Stem lengths ,(map (lambda (x) (* 0.8 x)) '(2.5 2.5 3.0 4.0 5.0)))
- ("Voice" Stem stem-shorten (0.4 0))
- ("Voice" Stem font-relative-size -1)
- ("Voice" NoteHead font-relative-size -1)
- ("Voice" Dots font-relative-size -1)
- ("Voice" Stem beamed-lengths
+ (Voice Stem direction 1)
+ (Voice Stem lengths ,(map (lambda (x) (* 0.8 x)) '(2.5 2.5 3.0 4.0 5.0)))
+ (Voice Stem stem-shorten (0.4 0))
+ (Voice Stem font-relative-size -1)
+ (Voice NoteHead font-relative-size -1)
+ (Voice Dots font-relative-size -1)
+ (Voice Stem beamed-lengths
,(map (lambda (x) (* 0.8 x)) '(3.26)))
- ("Voice" Stem beamed-minimum-free-lengths
+ (Voice Stem beamed-minimum-free-lengths
,(map (lambda (x) (* 0.8 x)) '(2.5 2.0 1.5)))
- ("Voice" Stem beamed-extreme-minimum-free-lengths
+ (Voice Stem beamed-extreme-minimum-free-lengths
,(map (lambda (x) (* 0.8 x)) '(1.83 1.5)))
- ("Voice" Stem no-stem-extend #t)
- ("Voice" Beam thickness 0.384)
- ("Voice" Beam space-function ,(lambda (beam mult)
+ (Voice Stem no-stem-extend #t)
+ (Voice Beam thickness 0.384)
+ (Voice Beam space-function ,(lambda (beam mult)
(* 0.8 (Beam::space_function
beam mult))))
- ("Voice" Beam position-callbacks (,Beam::least_squares
+ (Voice Beam position-callbacks (,Beam::least_squares
,Beam::check_concave
,Beam::slope_damping))
- ("Staff" Accidental font-relative-size -2)
- ("Voice" Slur direction -1)
+ (Staff Accidental font-relative-size -2)
+ (Voice Slur direction -1)
)
\grobdescriptions #all-grob-descriptions
c 'autoBeamSettings
setting (ly:make-moment num den))
))
- "Voice")
+ 'Voice)
))
(define-public (revert-auto-beam-setting setting)
c 'autoBeamSettings
setting)))
- "Voice")))
+ 'Voice)))
)
(ly:set-mus-property! seq 'elements musics)
- (ly:set-mus-property! csp 'element seq)
- (ly:set-mus-property! csp 'context-type "Staff")
-
- csp
- )
+ (context-spec-music seq 'Staff))
(begin
(ly:warn (format "Unknown clef type `~a'
See scm/lily.scm for supported clefs" cl))
(
(name-sym (cdr (assoc 'type-name context-desc)))
(name (symbol->string name-sym))
+ (aliases (map symbol->string (cdr (assoc 'aliases context-desc))))
(desc-handle (assoc 'description context-desc))
(desc (if (and (pair? desc-handle) (string? (cdr desc-handle)))
(cdr desc-handle) "(not documented)"))
))
(props (cdr (assoc 'property-ops context-desc)))
(grobs (context-grobs context-desc))
- (grob-refs (map (lambda (x) (ref-ify x)) grobs))
- )
+ (grob-refs (map (lambda (x) (ref-ify x)) grobs)) )
+
(make <texi-node>
#:name name
#:text
(string-append
desc
+ "\n\n This context is also known as: \n\n"
+ (human-listify aliases)
"\n\nThis context creates the following grobs: \n\n"
(human-listify (uniq-list (sort grob-refs string<? )))
"."