]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.21
authorfred <fred>
Tue, 24 Dec 1996 01:08:07 +0000 (01:08 +0000)
committerfred <fred>
Tue, 24 Dec 1996 01:08:07 +0000 (01:08 +0000)
src/lookup.cc

index d7a3f721e965db80cf7985a4c06a0bb79cb4e2e0..9c8def52cf56f40947bb830b135f0aaa5d337472 100644 (file)
@@ -33,11 +33,13 @@ 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);
+    a.add(text);
+    Symbol tsym =  (*symtables_)("style")->lookup(style);
+    a[0] = substitute_args(tsym.tex,a);
 
+    Symbol s = (*symtables_)("align")->lookup(dir);
     s.tex = substitute_args(s.tex,a);
+    s.dim.y = tsym.dim.y;
     return s;
 }
 
@@ -84,6 +86,12 @@ Lookup::bar(String s)
     return (*symtables_)("bars")->lookup(s);
 }
 
+Symbol
+Lookup::script(String s)
+{
+    return (*symtables_)("scripts")->lookup(s);
+}
+
 Symbol
 Lookup::clef(String s)
 {