M4INCS= parts.i4
+LAYOUT= ./layout -R270
+
E_TRACK= ArsCLMNo
LAYOUTOPTS_ALL= -ep=*Cm
LAYOUTOPTS= -E=*$(E_TRACK) $(LAYOUTOPTS_ALL)
m4 -s $< $o
%-a.ps: %.d4 layout
- ./layout <$< $(LAYOUTOPTS) '-E*lD' $o
+ $(LAYOUT) <$< $(LAYOUTOPTS) '-E*lD' $o
%-al.ps: %.d4 layout
- ./layout <$< $(LAYOUTOPTS) '-e*C' '-ep=rm' $o
+ $(LAYOUT) <$< $(LAYOUTOPTS) '-e*C' '-ep=rm' $o
%-ap.ps: %.d4 layout
- ./layout -S1.0 <$< $(LAYOUTOPTS) '-e*A' '-ep=rm' $o
+ $(LAYOUT) -S1.0 <$< $(LAYOUTOPTS) '-e*A' '-ep=rm' $o
%.segcmapreq: %.run-layout
./$< $(LAYOUTOPTS_SEGS) -GR $o
# layers, should put them all in same segenco specially for extractgraph
ours-l%.ps: ours.d4 layout
- ./layout <$< -l$* $(LAYOUTOPTS) $(XLAYOUTOPTS_LAYER) $o
+ $(LAYOUT) <$< -l$* $(LAYOUTOPTS) $(XLAYOUTOPTS_LAYER) $o
ours-s%.ps: layout ours.redacted.segjoins ours.d4
- ./layout -l$* -e'*=*rldm' -E'=5QE' -e'segjoin=5M' \
+ $(LAYOUT) -l$* -e'*=*rldm' -E'=5QE' -e'segjoin=5M' \
-e'l=*C' \
$(filter-out layout, $^) $o
ours-m%.ps: ours.d4 layout
- ./layout <$< -l$* -E'=*aRsclDmno' \
+ $(LAYOUT) <$< -l$* -E'=*aRsclDmno' \
-E'=5RNLDA' -E'*~=5rCdsml' $(LAYOUTOPTS_PS) $o
ours-e%.ps: ours.d4 layout
- ./layout <$< -l$* -E'=*aRsclMno' \
+ $(LAYOUT) <$< -l$* -E'=*aRsclMno' \
-e'=5RN' -E'*~=5rsm' -e'p~=5r' -e'*=*l' \
-e'[sp]=*rm' $o
ours-p%.ps: ours.d4 layout
- ./layout <$< -l$$(printf %s "$*" | sed -e 's/-/ -P/') \
+ $(LAYOUT) <$< -l$$(printf %s "$*" | sed -e 's/-/ -P/') \
$(LAYOUTOPTS_PHYS) $(XLAYOUTOPTS_LAYER) $o
test-p%.ps: test.d4 layout
- ./layout <$< -l$$(printf %s "$*" | sed -e 's/-/ -P/') \
+ $(LAYOUT) <$< -l$$(printf %s "$*" | sed -e 's/-/ -P/') \
$(LAYOUTOPTS_PHYS) $(XLAYOUTOPTS_LAYER) $o
parts.ps: showlib.d4 layout
- ./layout <$< $(LAYOUTOPTS_ALL) $o
+ $(LAYOUT) <$< $(LAYOUTOPTS_ALL) $o
# test case
t.ppm: ours.dgram-bot.pa.segenco.ppm x.gdb subseg2display
our $subsegmovfeatpos='f';
our $subsegcmapangscale;
-our $ps_page_shift= 615;
+our $ps_page_shift_short= 615;
+our $ps_page_shift_long= 765;
+
our $ps_page_xmul= 765.354;
our $ps_page_ymul= 538.583;
our @ident_strings= ();
our %subsegcmap;
our %segcmap;
+our $shiftrotate= "";
our $drawers= 'arqscldmnoge';
our %chdraw_emap= qw(A ARScgd
$psu_subseglw{$1}= $2*0.1;
} elsif (s/^GR//) { $subsegcmapreq=1; }
elsif (s/^GP(\d+|f)$//) { $subsegmovfeatpos=$1; }
- elsif (s/^GL(.*)$//) {
+ elsif (s/^R(0|90|180|270)$//) {
+ my $ang= $1;
+ $shiftrotate .= " ".
+ ($ang==90 || $ang==180 ? $ps_page_shift_short : 0)." ".
+ ($ang>=180 ? $ps_page_shift_long : 0)." ".
+ " translate $ang rotate\n";
+ } elsif (s/^GL(.*)$//) {
my ($sscmfn) = $1;
my ($sscmf, $datum, $csss, $angbits);
local ($_);
o("%!\n".
" /lf /Courier-New findfont $lmu_marktpt scalefont def\n".
" /sf /Courier-Bold findfont $lmu_segtpt scalefont def\n".
- " $ps_page_shift 0 translate 90 rotate\n".
+ "$shiftrotate".
" gsave\n");
if ($page_x || $page_y) {