+2005-05-05 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * Documentation/user/programming-interface.itely (How markups work
+ internally ): remove \encoding reference.
+
2005-05-04 Mats Bengtsson <mabe@drongo.s3.kth.se>
* scripts/convert-ly.py: Attempt to do a smarter update of
The
@end ifhtml
@emph{@ref{Basic notation}}
-@ifteml
+@ifhtml
chapter
@end ifhtml
discusses topics grouped by notation construct. This section gives
The
@end ifhtml
@emph{@ref{Instrument-specific notation}}
-@ifteml
+@ifhtml
chapter
@end ifhtml
discusses topics grouped by notation construct. This section gives
The
@end ifhtml
@emph{@ref{Advanced notation}}
-@ifteml
+@ifhtml
chapter
@end ifhtml
discusses topics grouped by notation construct. This section gives
function. The markup expression is stored as
@example
-(list raise-markup 0.5 (list simple-markup 'latin1 "foo"))
+(list raise-markup 0.5 (list simple-markup "foo"))
@end example
-@noindent
-In this case, @code{latin1} is the input encoding, which is set with
-the @code{\encoding} command.
-
When the markup is converted to printable objects (Stencils), the
@code{raise-markup} function is called as
@var{the "foo" markup})
@end example
-The @code{raise-markup} first creates the stencil for the @code{foo}
-string, and then it raises that Stencil by 0.5 staff space. This is a
-rather simple example; more complex examples are in the rest of this
-section, and in @file{scm/@/define@/-markup@/-commands@/.scm}.
+The @code{raise-markup} function first creates the stencil for the
+@code{foo} string, and then it raises that Stencil by 0.5 staff space.
+This is a rather simple example; more complex examples are in the rest
+of this section, and in @file{scm/@/define@/-markup@/-commands@/.scm}.
@node Markup command definition
@subsection Markup command definition
--- /dev/null
+/*
+ context-handle.hh -- declare Context_handle
+
+ source file of the GNU LilyPond music typesetter
+
+ (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+*/
+
+#ifndef INTERPRETATION_CONTEXT_HANDLE_HH
+#define INTERPRETATION_CONTEXT_HANDLE_HH
+#include "lily-proto.hh"
+
+/*
+ Rename me to Context_handle.
+*/
+
+class Context_handle
+{
+public:
+ ~Context_handle ();
+ Context_handle ();
+
+ void set_context (Context *);
+ bool try_music (Music *);
+ void operator = (Context_handle const &);
+ Context_handle (Context_handle const &);
+ Context *get_outlet () const;
+
+ int get_count () const;
+private:
+ Context *outlet_;
+ void down ();
+ void up (Context *);
+};
+
+#endif /* INTERPRETATION_CONTEXT_HANDLE_HH */
+
Note_head::get_balltype (Grob *me)
{
SCM s = me->get_property ("duration-log");
- return scm_is_number (s) ? min ((int) scm_to_int (s), (int) 2) : 0;
+ return scm_is_number (s) ? min (scm_to_int (s), 2) : 0;
}
ADD_INTERFACE (Note_head, "note-head-interface",
PangoFontDescription *description,
Real output_scale)
{
+ (void) fontmap;
physical_font_tab_ = scm_c_make_hash_table (11);
PangoDirection pango_dir = (dir == RIGHT)
? PANGO_DIRECTION_LTR
*/
String name = filename;
- int idx = String (filename).index (".otf")
- >? String (filename).index (".cff");
+ int idx = max (String (filename).index (".otf"),
+ String (filename).index (".cff"));
name = name.left_string (idx);