]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.4
authorfred <fred>
Fri, 18 Oct 1996 21:19:23 +0000 (21:19 +0000)
committerfred <fred>
Fri, 18 Oct 1996 21:19:23 +0000 (21:19 +0000)
tex.hh

diff --git a/tex.hh b/tex.hh
index fd4a0b6ddfa5d84b3e71204eeabd4314fdc92f1e..2f60630fd597760965e02386dceed1aafea7f60a 100644 (file)
--- a/tex.hh
+++ b/tex.hh
@@ -4,28 +4,14 @@
 #include "string.hh"
 #include "boxes.hh"
 
-/// anything which can be output
-struct Output {
-    virtual String TeXstring() const=0;
-    /** generate a TeX string, which typesets the symbol. Vertical
-     base position is the "origin" of the staff
-    */
-    virtual Box extent() const=0;
-};
+String
+substitute_args(String source, svec<String> args);
 /**
-  any output should (at least) be outputtable for TeX, and have a
-  dimension
-*/
-
-
-/// an idea
-struct Text_gob : Output {
-    String text;
-    // fonts, sizes, etc?
-    virtual String TeXstring() const;
-    virtual Box extent() const;
-};
+  this structure provides a simple macro mechanism:
 
+  if source == "tex%bla%", then
+  eval({"X","Y"})  == "texXblaY"
+  */
 
 /// #h# is in points
 String vstrut(Real h);