./layout -S1.0 <$< $(LAYOUTOPTS) '-e*A' '-ep=rm' $o
ours-g%.ps: ours.d4 ours-g%.segcmap layout
- ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GRours-g$*.segcmap $o
+ ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GLours-g$*.segcmap $o
ours-g%.segcmap: ours-g%.segcmapreq segcmapassign
./segcmapassign <$< $o
ours-g%.segcmapreq: ours.d4 layout
- ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GL $o
+ ./layout <$< -l$* $(LAYOUTOPTS_SEGS) -GR $o
ours-l%.ps: ours.d4 layout
./layout <$< -l$* $(LAYOUTOPTS) $(XLAYOUTOPTS_LAYER) $o
#!/usr/bin/perl -w
use POSIX;
+use IO::Handle;
+use IO::File;
+
use strict;
no strict 'subs';
elsif (s/^l(\d+|\*)//) { $output_layer=$1; }
elsif (s/^S([0-9.]+)$//) { $scale= $1 * 1.0; }
elsif (s/^P(\d+)x(\d+)$//) { $page_x= $1; $page_y= $2; }
- elsif (s/^GL//) { $subsegcmapreq=1; }
- elsif (s/^GR(.*)$//) {
+ elsif (s/^GR//) { $subsegcmapreq=1; }
+ elsif (s/^GL(.*)$//) {
my ($sscmfn) = $1;
my ($sscmf);
local ($_);
$sscmf= new IO::File $sscmfn, 'r'
or die "$sscmfn: cannot open: $!\n";
- while (<$sscmf>) {
- m,^\s*(\w+/(?:[a-z]+\d+))\s+(\S.*\S)\s*$,
+ for (;;) {
+ $!=0; $_= <$sscmf>; die $! unless defined $_;
+ last if m/^E/;
+ next unless m/^C/;
+ m,^C\s+(\w*/(?:[A-Za-z_]+\d+)?)\s+(\S.*\S)\s*$,
or die "$sscmfn:$.: syntax error in subseg cmap\n";
$subsegcmap{$1}= $2;
}
($seg,$movfeat,$movconf)=($1,$2,$3);
if (!length $seg) {
printf("C /%s%s 0 0\n",
- $seg, $movfeat, $movconf)
+ $movfeat, $movconf)
or die $!;
next;
}