]> git.donarmstrong.com Git - lilypond.git/commitdiff
Minor documentation improvements for Scheme functions.
authorWerner Lemberg <wl@gnu.org>
Tue, 26 Oct 2010 06:57:45 +0000 (08:57 +0200)
committerWerner Lemberg <wl@gnu.org>
Tue, 26 Oct 2010 06:57:45 +0000 (08:57 +0200)
12 files changed:
lily/axis-group-interface-scheme.cc
lily/book-scheme.cc
lily/context-scheme.cc
lily/general-scheme.cc
lily/global-context-scheme.cc
lily/grob-scheme.cc
lily/note-column-scheme.cc
lily/page-marker-scheme.cc
lily/pfb-scheme.cc
lily/prob-scheme.cc
lily/score-scheme.cc
lily/simple-closure.cc

index 37a7ed323888dcee3457248685f8c02ad0d9af60..f15c4636abac01402ea4694b43576722488fef02 100644 (file)
@@ -49,7 +49,7 @@ LY_DEFINE (ly_relative_group_extent, "ly:relative-group-extent",
 LY_DEFINE (ly_axis_group_interface__add_element, "ly:axis-group-interface::add-element",
           2, 0, 0, (SCM grob, SCM grob_element),
           "Set @var{grob} the parent of @var{grob-element} on all axes of"
-          "@var{grob}.")
+          " @var{grob}.")
 {
   LY_ASSERT_SMOB (Grob, grob, 1);
   LY_ASSERT_SMOB (Grob, grob_element, 2);
index 28ad90cd4407c38e9f22cf7b4e0f5ec900704830..a10b39e36a5ff03644e331bb17688abfa16c813f 100644 (file)
@@ -122,7 +122,7 @@ LY_DEFINE (ly_book_add_score_x, "ly:book-add-score!",
 
 LY_DEFINE (ly_book_add_bookpart_x, "ly:book-add-bookpart!",
           2, 0, 0, (SCM book_smob, SCM book_part),
-          "Add @var{book_part} to @var{book-smob} book part list.")
+          "Add @var{book-part} to @var{book-smob} book part list.")
 {
   LY_ASSERT_SMOB (Book, book_smob, 1);
   Book *book = unsmob_book (book_smob); 
@@ -132,7 +132,7 @@ LY_DEFINE (ly_book_add_bookpart_x, "ly:book-add-bookpart!",
 
 LY_DEFINE (ly_book_book_parts, "ly:book-book-parts",
           1, 0, 0, (SCM book),
-          "Return book parts in book.")
+          "Return book parts in @var{book}.")
 {
   LY_ASSERT_SMOB (Book, book, 1);
   Book *b = unsmob_book (book);
@@ -141,7 +141,7 @@ LY_DEFINE (ly_book_book_parts, "ly:book-book-parts",
 
 LY_DEFINE (ly_book_paper, "ly:book-paper",
           1, 0, 0, (SCM book),
-          "Return paper in book.")
+          "Return paper in @var{book}.")
 {
   LY_ASSERT_SMOB (Book, book, 1);
   Book *b = unsmob_book (book);
@@ -150,7 +150,7 @@ LY_DEFINE (ly_book_paper, "ly:book-paper",
 
 LY_DEFINE (ly_book_scores, "ly:book-scores",
           1, 0, 0, (SCM book),
-          "Return scores in book.")
+          "Return scores in @var{book}.")
 {
   LY_ASSERT_SMOB (Book, book, 1);
   Book *b = unsmob_book (book);
index 8f43236d86c794dc29fbf6b385d581c1d35f405e..c18dc911f77dd23b6bc679dae3d88aeb3f9106ba 100644 (file)
@@ -37,7 +37,7 @@ LY_DEFINE (ly_context_current_moment,
 LY_DEFINE (ly_context_id, "ly:context-id",
           1, 0, 0, (SCM context),
           "Return the ID string of @var{context},"
-          " i.e., for @code{\\context Voice = one @dots{}}"
+          " i.e., for @code{\\context Voice = \"one\" @dots{}}"
           " return the string @code{one}.")
 {
   Context *tr = unsmob_context (context);
@@ -50,7 +50,7 @@ LY_DEFINE (ly_context_id, "ly:context-id",
 LY_DEFINE (ly_context_name, "ly:context-name",
           1, 0, 0, (SCM context),
           "Return the name of @var{context},"
-          " i.e., for @code{\\context Voice = one @dots{}}"
+          " i.e., for @code{\\context Voice = \"one\" @dots{}}"
           " return the symbol @code{Voice}.")
 {
   LY_ASSERT_SMOB (Context, context, 1);
index 53b0564ceb812133b8b5405b328a56df727d4d08..8359e8fc5bb3a2fce775369dc9a0e6955138cfa2 100644 (file)
@@ -289,7 +289,7 @@ LY_DEFINE (ly_string_percent_encode, "ly:string-percent-encode",
 
 LY_DEFINE (ly_number_2_string, "ly:number->string",
           1, 0, 0, (SCM s),
-          "Convert @var{num} to a string without generating many decimals.")
+          "Convert @var{s} to a string without generating many decimals.")
 {
   LY_ASSERT_TYPE (scm_is_number, s, 1);
 
index 4b525e8253e4cfad5ae9184a96fc7d93454bae70..0fdf12562431797df8204c46c53af9aad9defd80 100644 (file)
@@ -65,7 +65,7 @@ LY_DEFINE (ly_make_global_translator, "ly:make-global-translator",
 LY_DEFINE (ly_make_global_context, "ly:make-global-context",
           1, 0, 0, (SCM output_def),
           "Set up a global interpretation context, using the output"
-          " block @var{output_def}.  The context is returned.")
+          " block @var{output-def}.  The context is returned.")
 {
   LY_ASSERT_SMOB (Output_def, output_def, 1);
   Output_def *odef = unsmob_output_def (output_def);
index c27a9ee8bdab5ff3dbe941a0e9bc6533857ca264..052d952a6f7010bf613020fcd64b588749c8c711 100644 (file)
@@ -111,9 +111,9 @@ LY_DEFINE (ly_grob_interfaces, "ly:grob-interfaces",
 
 LY_DEFINE (ly_grob_object, "ly:grob-object",
           2, 0, 0, (SCM grob, SCM sym),
-          "Return the value of a pointer in grob@tie{}@var{g} of property"
+          "Return the value of a pointer in grob @var{grob} of property"
           " @var{sym}.  It returns @code{'()} (end-of-list) if @var{sym}"
-          " is undefined in@tie{}@var{g}.")
+          " is undefined in @var{grob}.")
 {
   Grob *sc = unsmob_grob (grob);
    
@@ -337,7 +337,7 @@ LY_DEFINE (ly_grob_suicide_x, "ly:grob-suicide!",
 
 LY_DEFINE (ly_grob_translate_axis_x, "ly:grob-translate-axis!",
           3, 0, 0, (SCM grob, SCM d, SCM a),
-          "Translate @var{g} on axis@tie{}@var{a} over"
+          "Translate @var{grob} on axis@tie{}@var{a} over"
           " distance@tie{}@var{d}.")
 {
   Grob *me = unsmob_grob (grob);
@@ -352,7 +352,7 @@ LY_DEFINE (ly_grob_translate_axis_x, "ly:grob-translate-axis!",
 
 LY_DEFINE (ly_grob_default_font, "ly:grob-default-font",
           1, 0, 0, (SCM grob),
-          "Return the default font for grob @var{gr}.")
+          "Return the default font for grob @var{grob}.")
 {
   Grob *gr = unsmob_grob (grob);
    
index e8b88af1e99af737ee4213c2b225c9ad34ae26fc..5fc7974ade03405b447c82d6aff8eb89abca04fd 100644 (file)
@@ -23,8 +23,8 @@
 
 LY_DEFINE (ly_note_column_accidentals, "ly:note-column-accidentals",
           1, 0, 0, (SCM note_column),
-          "Return the @code{AccidentalPlacement} grob from @var{note_column}"
-          "if any, or @code{SCM_EOL} otherwise.")
+          "Return the @code{AccidentalPlacement} grob from @var{note-column}"
+          " if any, or @code{SCM_EOL} otherwise.")
 {
   Grob *grob = unsmob_grob (note_column);
   LY_ASSERT_SMOB (Grob, note_column, 1);
@@ -36,8 +36,8 @@ LY_DEFINE (ly_note_column_accidentals, "ly:note-column-accidentals",
 
 LY_DEFINE (ly_note_column_dot_column, "ly:note-column-dot-column",
           1, 0, 0, (SCM note_column),
-          "Return the @code{DotColumn} grob from @var{note_column}"
-          "if any, or @code{SCM_EOL} otherwise.")
+          "Return the @code{DotColumn} grob from @var{note-column}"
+          " if any, or @code{SCM_EOL} otherwise.")
 {
   Grob *grob = unsmob_grob (note_column);
   LY_ASSERT_SMOB (Grob, note_column, 1);
index 670d096158857f60301cab24ca3df4f67f446745..d4eac29d2d31748dfdce67f1cc266b0679dba9a0 100644 (file)
@@ -33,7 +33,7 @@ LY_DEFINE (ly_make_page_permission_marker, "ly:make-page-permission-marker",
 LY_DEFINE (ly_make_page_label_marker, "ly:make-page-label-marker",
           1, 0, 0,
           (SCM label),
-          "Return page marker with label.")
+          "Return page marker with label @var{label}.")
 {
   LY_ASSERT_TYPE (ly_is_symbol, label, 1);
   Page_marker *page_marker = new Page_marker ();
index 730442ef05bf781b130ed7d6b0397f5c16a2ef8f..89666192a30d4a4bdcd75aa1aa990a82a31ef4c1 100644 (file)
@@ -8,7 +8,8 @@
 
 LY_DEFINE (ly_pfb_2_pfa, "ly:pfb->pfa",
           1, 0, 0, (SCM pfb_file_name),
-          "Convert the contents of a PFB file to PFA.")
+          "Convert the contents of a Type@tie{}1 font in PFB format"
+          " to PFA format.")
 {
   LY_ASSERT_TYPE (scm_is_string, pfb_file_name, 1);
 
index 119688e1570712696fc2a9746d0696366104fd96..f54769df4c60410bee29b690e5f20a5d47033c7a 100644 (file)
@@ -36,7 +36,7 @@ LY_DEFINE (ly_prob_set_property_x, "ly:prob-set-property!",
 */
 LY_DEFINE (ly_prob_property_p, "ly:prob-property?",
           2, 1, 0, (SCM obj, SCM sym),
-          "Is boolean prop @var{sym} set?")
+          "Is boolean prop @var{sym} of @var{sym} set?")
 {
   return scm_equal_p (SCM_BOOL_T, ly_prob_property (obj, sym, SCM_BOOL_F));
 }
@@ -103,7 +103,7 @@ LY_DEFINE (ly_prob_mutable_properties, "ly:prob-mutable-properties",
 LY_DEFINE (ly_prob_immutable_properties, "ly:prob-immutable-properties",
           1, 0, 0,
           (SCM prob),
-          "Retrieve an alist of mutable properties.")
+          "Retrieve an alist of immutable properties.")
 {
   LY_ASSERT_SMOB (Prob, prob, 1);
   Prob *ps = unsmob_prob (prob);
index 0fd7be0d6ff7e2aacd3383f8f60f086e033cc161..fe08bef253bd04a87c73bb835e6d8d06a5bc42ec 100644 (file)
@@ -29,7 +29,7 @@
 LY_DEFINE (ly_make_score, "ly:make-score",
           1, 0, 0,
           (SCM music),
-          "Return score with @var{music} encapsulated in @var{score}.")
+          "Return score with @var{music} encapsulated in it.")
 {
   LY_ASSERT_SMOB (Music, music, 1);
 
index ddf39efdcfe9dfdb085e6de4be99fd15d5ca1d35..48d2dab57b39d7da2d466cc45ee85c262cfd43ae 100644 (file)
@@ -104,7 +104,7 @@ LY_DEFINE (ly_simple_closure_p, "ly:simple-closure?",
 LY_DEFINE (ly_make_simple_closure, "ly:make-simple-closure",
          1, 0, 0, (SCM expr),
          "Make a simple closure.  @var{expr} should be form of"
-         " @code{(@var{func} @var{a1} @var{A2} @dots{})}, and will be"
+         " @code{(@var{func} @var{a1} @var{a2} @dots{})}, and will be"
          " invoked as @code{(@var{func} @var{delayed-arg} @var{a1}"
          " @var{a2} @dots{})}.")
 {