Skip to content

Commit aa290f3

Browse files
committed
Tweak error messages
1 parent f600f34 commit aa290f3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/render.ps.src

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -707,11 +707,11 @@ begin
707707
/max exch def /min exch def /dim exch def
708708
min -1 ne dim min lt and {
709709
/bwipp.renderXdimTooSmall
710-
[ (Effective X-dimension ) dim 20 string cvs (mm is below xmin ) min 20 string cvs (mm) ]
710+
[ (Effective X-dimension ) dim 20 string cvs (mm is below the minimum ) min 20 string cvs (mm for the ast) ]
711711
} {
712712
max -1 ne dim max gt and {
713713
/bwipp.renderXdimTooLarge
714-
[ (Effective X-dimension ) dim 20 string cvs (mm is above xmax ) max 20 string cvs (mm) ]
714+
[ (Effective X-dimension ) dim 20 string cvs (mm is above the maximum ) max 20 string cvs (mm for the ast) ]
715715
} {
716716
null null % Sentinel: ok
717717
} ifelse
@@ -734,19 +734,19 @@ begin
734734
currentdict /width known { width 0 ne } { false } ifelse
735735
or {
736736
bestfit { /bestfit false def /physspec false def } {
737-
/bwipp.renderPhysspecDimOverride (physspec is incompatible with user-supplied height or width) //raiseerror exec
737+
/bwipp.renderPhysspecDimOverride (width and height options are not compatible with physspec; use xdim and hdim to directly specify physical dimensions) //raiseerror exec
738738
} ifelse
739739
} if
740740
} if
741741
} if
742742
physspec {
743743
mag 1.0 ne xdim -1 ne currentdict /hdim known { hdim -1 ne } { false } ifelse or and {
744-
/bwipp.renderMagExclusive (mag is mutually exclusive with xdim and hdim) //raiseerror exec
744+
/bwipp.renderMagExclusive (use either mag \(to scale nominal dimensions\) or explicit xdim/hdim options, not both) //raiseerror exec
745745
} if
746746
xdim -1 eq {
747747
xnom -1 eq {
748748
bestfit { /physspec false def } {
749-
/bwipp.renderNeedXnom (physspec requires xnom or xdim to be defined) //raiseerror exec
749+
/bwipp.renderNeedXnom (physspec requires a nominal X-dimension to be defined for the application or for xdim to be supplied) //raiseerror exec
750750
} ifelse
751751
} if
752752
physspec { /xdim xnom mag mul def } if
@@ -772,7 +772,7 @@ begin
772772
/render.resolve_height {
773773
hnom -1 ne physspec propspec height -1.0 eq and or and {
774774
xnom -1 eq {
775-
/bwipp.renderHnomNeedXnom (hnom requires xnom to be defined) //raiseerror exec
775+
/bwipp.renderHnomNeedXnom (Proportional bar height derivation requires a nominal X-dimension to be defined for the application or for xdim to be supplied) //raiseerror exec
776776
} if
777777
hnom xnom div modunit mul
778778
physspec not { round } if % Pixel-lock derived height
@@ -883,9 +883,9 @@ begin
883883
eff1 dist eff2 dist lt { /snapped snap1 def } if
884884
} {
885885
/bwipp.renderGridfitXdimOutOfSpec
886-
[ (No gridfit possible for X-dimension between xmin=)
887-
xmin 20 string cvs (mm and xmax=)
888-
xmax 20 string cvs (mm at )
886+
[ (No X-dimension within the permissible range )
887+
xmin 20 string cvs ( to )
888+
xmax 20 string cvs (mm produces a fixed pixel grid at )
889889
griddpi cvi 20 string cvs ( DPI)
890890
] dup 0 exch {length add} forall string
891891
exch 0 exch { dup length 2 index add 3 index 4 2 roll putinterval } forall pop

0 commit comments

Comments
 (0)