XLAYOUTOPTS_LAYER= -e'=5AN' -E'*~=5rsm' -e'p~=5r' -e'*~=9C' -e'*=*l' \
$(LAYOUTOPTS_PS)
+PLANUI_PSDPI= 72
+
LAYOUTOPTS_SEGS= '-e*=*rm' -Lsubseglwm=80 -Lsubseglwe=150 -Lsubseglwq=50
LAYERS_LS= 0 4 10 26 30
CPROGS= subseg2display compose-segenco
+CPPFLAGS += -DPLANUI_PSDPI=$(PLANUI_PSDPI)
+
default: $(CPROGS) for-test-ui layers extras
all: default lpages
for-pic: ours+pindata.asm
%.segenco.ppm: %.segenco.ps Makefile
gs -dNOPAUSE -dBATCH -dSAFER -q \
- -sDEVICE=ppmraw -r72 -g595x842 \
+ -sDEVICE=ppmraw -r$(PLANUI_PSDPI) -g595x842 \
-sOutputFile=$@.new $< && mv -f $@.new $@
ours.graph.c: extractgraph ours.dgram-bot.p0.segenco.ps
gdb -x x.gdb
ui-plan-%.ppm: ours.dgram-%.pa.segenco.ppm Makefile
- pnmcrop <$< >$@.1.new
+ pnmcrop -verbose 2>&1 <$< >$@.1.new | tee ui-plan-$*.crop-info
pnmflip <$@.1.new -ccw >$@.2.new
pnmpad <$@.2.new -white -l5 -r5 -t5 -b5 $o
+ui-plan-%.crop-info: ui-plan-%.ppm
+ @:
+
subseg2display.o compose-segenco.o: segcmap.h
clean:
output(segment->segname);
if (segment->n_movfeats>1) {
if (!segment->starfeature) {
- fprintf(stderr,"printforforsafety before movfeatsplitedges!\n");
+ fprintf(stderr,"printforshellscript before movfeatsplitedges!\n");
exit(8);
}
weight= 1;
output("ident $Revision$\n");
}
+static void printforui(void) {
+ Node *node;
+ EdgeEnd *edgeend;
+ int side;
+
+ FOR_ALL_NODES(node) {
+ FOR_NODE_EDGEENDS(side,edgeend, node) {
+ if (!edgeend->edge->subseg->movfeat) continue;
+ output("layout-subseg-end %s %s %d %f %f\n",
+ edgeend->edge->subseg->segment->segname,
+ edgeend->edge->subseg->movfeat,
+ edgeend->edge->movpos,
+ node->x * 72.0 / PLANUI_PSDPI,
+ node->y * 72.0 / PLANUI_PSDPI);
+ }
+ }
+}
+
/*---------- main program ----------*/
typedef struct {
OI(printforforsafety)
OI(printforshellscript)
OI(printforlayoutsegjoins)
+ OI(printforui)
OI(consistency)
OI(movfeatsplitedges)
OI(movfeatrmstubs)