extern int exit_status_i_;
extern bool experimental_features_global_b;
extern bool postscript_global_b;
+extern bool embedded_mf_global_b;
extern String default_outname_base_global;
extern String default_outname_suffix_global;
bool no_paper_global_b = false;
bool no_timestamps_global_b = false;
+bool embedded_mf_global_b = false;
bool experimental_features_global_b = false;
bool postscript_global_b = true;
int exit_status_i_;
#ifdef STRING_UTILS_INLINED
"STRING_UTILS_INLINED "
#endif
- "datadir= " DIR_DATADIR
+ "datadir= " DIR_DATADIR
"\n";
mf += "}\n";
Atom s;
- s.tex_ = ps + mf;
+ s.tex_ = ps;
+ if (embedded_mf_global_b)
+ s.tex_ += mf;
return s;
}
#include "debug.hh"
#include "paper-def.hh"
#include "string-convert.hh"
-
+#include "main.hh"
static char
direction_char (Direction y_sign)
mf += "}\n";
Atom s;
- s.tex_ = ps + mf;
+ s.tex_ = ps;
+ if (embedded_mf_global_b)
+ s.tex_ += mf;
return s;
}
s.dim_[Y_AXIS] = Interval (0 <? dy_f, 0 >? dy_f);
return s;
}
+
+Atom
+Lookup::control_slur (Array<Offset> controls, Real dx, Real dy) const
+{
+ assert (postscript_global_b);
+ assert (controls.size () == 8);
+
+ String ps = "\\embeddedps{\n";
+
+ for (int i = 1; i < 4; i++)
+ ps += String_convert::double_str (controls[i].x ()) + " "
+ + String_convert::double_str (controls[i].y ()) + " ";
+
+ for (int i = 5; i < 8; i++)
+// ps += String_convert::double_str (controls[i].x () + controls[0].x () - controls[3].x ()) + " "
+// + String_convert::double_str (controls[i].y () - controls[0].y () + controls[3].y ()) + " ";
+ ps += String_convert::double_str (controls[i].x () - dx) + " "
+ + String_convert::double_str (controls[i].y () - dy) + " ";
+
+ ps += " draw_control_slur}";
+
+ Atom s;
+ s.tex_ = ps;
+
+ s.dim_[X_AXIS] = Interval (0, dx);
+ s.dim_[Y_AXIS] = Interval (0 <? dy, 0 >? dy);
+ return s;
+}
+
--- /dev/null
+# mf/Makefile
+
+# subdir level:
+#
+depth = ..
+#
+#
+include ./$(depth)/make/Include.make
+#
+
+# list of distribution files:
+#
+TEXFILES = $(wildcard *.tex)
+MFFILES = $(wildcard *.mf)
+EXTRA_DISTFILES = TODO README $(MFFILES)
+#
+lyout = $(depth)/init
+texout = $(depth)/tex
+
+FONT_FILES = $(wildcard *[0-9].mf)
+FET_FILES = $(wildcard feta[0-9]*.mf)
+
+LYTABLES = $(addprefix $(lyout)/, $(FET_FILES:.mf=.ly))
+LOGFILES = $(addprefix $(outdir)/, $(FET_FILES:.mf=.log))
+TEXTABLES = $(addprefix $(texout)/, $(FET_FILES:.mf=.tex))
+#
+
+default: $(LYTABLES) $(TEXTABLES) $(LOGFILES)
+
+localclean:
+ rm -f $(LYTABLES) $(TEXTABLES)
+
+$(outdir)/%.dvi: %.mf
+ mf $<
+ gftodvi $(basename $<)
+ mv $(basename $<).dvi $(outdir)
+ rm $(basename $<).*gf
+
+$(outdir)/%.log: %.mf
+ mf $<
+ mv $(@F) $@
+ rm $(basename $< ).*gf
+
+$(lyout)/%.ly $(texout)/%.tex $(outdir)/%.dep: $(outdir)/%.log
+ $(PYTHON) $(depth)/bin/mf-to-table.py --outdir=$(outdir) --dep $(outdir)/$(<F:.log=.dep) --ly $(lyout)/$(<F:.log=.ly) --tex $(texout)/$(<F:.log=.tex) $<
+
+
+INSTALLATION_DIR=$(MFDIR)/public/lilypond
+INSTALLATION_FILES=$(MFFILES)
+
+include $(depth)/make/Installfiles.make