]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.20
authorfred <fred>
Sun, 22 Dec 1996 20:44:37 +0000 (20:44 +0000)
committerfred <fred>
Sun, 22 Dec 1996 20:44:37 +0000 (20:44 +0000)
hdr/lookup.hh
src/lookup.cc

index ecb55bd03c126bb30cfbdb2a7404faf38001c0f9..5f3a3e786054eb11cc54f21d6d604d706bfed006 100644 (file)
@@ -42,7 +42,8 @@ struct Lookup {
     Symbol half_slur(int dy, Real &dx, int dir, int xpart);
     Symbol half_slur_middlepart(Real &dx, int dir);
     Symbol big_slur(int dy, Real &dx, int dir);
-    
+    Symbol text(String style, String text, int align = 1);
+
 
 
     Lookup();
index baa037b9709a456aebd7733fe1fde78da86cf51b..d7a3f721e965db80cf7985a4c06a0bb79cb4e2e0 100644 (file)
@@ -28,6 +28,19 @@ Lookup::add(String s, Symtable*p)
     symtables_->add(s, p);
 }
 
+Symbol
+Lookup::text( String style, String text , int dir)
+{
+    svec<String> a;
+    a.add((*symtables_)("style")->lookup(style).tex);
+    Symbol s = (*symtables_)("align")->lookup(dir);
+    a[0] =  substitute_args( text,a);
+
+    s.tex = substitute_args(s.tex,a);
+    return s;
+}
+
 /****************/
 
 Real