Skip to content

Commit cf748d2

Browse files
committed
Basic renmaximatrix test
1 parent e68d262 commit cf748d2

File tree

3 files changed

+54
-1
lines changed

3 files changed

+54
-1
lines changed

src/renmaximatrix.ps.src

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ begin
5858
/borderwidth 0.25 def
5959

6060
{def} forall
61-
opt currentdict /opt undef //processoptions exec pop
61+
opt currentdict /opt undef //processoptions exec /options exch def
6262

6363
/uk.co.terryburton.bwipp.global_ctx dup where {
6464
exch get /ctx exch def
@@ -67,6 +67,8 @@ begin
6767
bordercolor (unset) eq { ctx /default_bordercolor 2 copy known {get /bordercolor exch def} {pop pop} ifelse } if
6868
} { pop } ifelse
6969

70+
options /debughexagons known { /bwipp.debughexagons pixs //raiseerror exec } if
71+
7072
gsave
7173

7274
currentpoint translate
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
% Barcode Writer in Pure PostScript
2+
% https://bwipp.terryburton.co.uk
3+
%
4+
% Copyright (c) 2004-2025 Terry Burton
5+
6+
% vim: set ts=4 sw=4 et :
7+
8+
/renmaximatrix dup /uk.co.terryburton.bwipp findresource cvx def
9+
10+
%
11+
% Somewhat pointless echo example for now, just for some coverage
12+
%
13+
{
14+
0 0 moveto
15+
<<
16+
/ren /renmaximatrix
17+
/pixs [
18+
469 347 672 702 283 313 312 610 379 409 704 619 518 675 310 289 349 516 471 470 549 548 579 578 608 649 648 678 708 669 668
19+
338 381 410 441 561 560 590 621 620 547 546 576 607 606 396 427 290 321 320 351 350 651 681 1 0 31 61 60 3 33 63 5 35 64 7 6
20+
37 67 66 9 39 10 41 40 71 13 12 15 14 74 16 47 46 76 19 18 49 78 21 20 50 81 23 22 82 24 55 85 27 26 117 116 115 114 113 112
21+
111 110 140 109 108 139 168 107 106 136 166 105 104 164 102 133 132 162 100 130 160 98 96 157 156 125 124 155 92 123 122 152
22+
91 90 181 180 210 241 182 213 185 184 214 245 187 186 246 189 188 190 221 220 250 193 192 252 195 194 224 254 197 196 227 256
23+
198 229 228 258 201 200 260 203 202 263 205 204 265 264 207 206 236 297 296 326 356 295 294 324 355 293 292 322 353 352 276
24+
307 306 336 275 274 334 273 303 302 333 332 271 270 330 360 391 390 420 362 393 392 422 364 395 424 382 413 412 442 385 384
25+
414 445 387 386 447 446 477 476 506 475 532 485 484 452 481 600 543 574 562 623 564 595 594 624 566 687 716 654 684 652 682
26+
636 697 696 695 632 662 692 630 691 750 781 780 753 724 755 754 784 726 788 730 761 760 790 733 732 763 762 793 764 737 796
27+
739 798 741 771 770 773 772 803 802 745 744 774 747 746 777 807 837 836 866 897 835 865 895 832 863 862 893 891 829 828 888
28+
827 826 887 825 855 884 823 853 852 883 820 850 880 819 818 848 878 847 875 874 843 873 810 841 840 870 901 905 904 935 934
29+
907 906 937 967 966 938 968 910 971 913 942 973 972 915 914 947 949 948 978 921 950 981 923 922 952 983 925 955 985 984 926
30+
957 986 58 89 118 149 148 238 269 329 358 389 388 418 449 448 478 508 538 568 778 809 868 958 988 28 29 280 281 311 457 488
31+
500 530 670 700 677 707
32+
]
33+
/opt << /debughexagons true >>
34+
>> renmaximatrix
35+
} [
36+
469 347 672 702 283 313 312 610 379 409 704 619 518 675 310 289 349 516 471 470 549 548 579 578 608 649 648 678 708 669 668
37+
338 381 410 441 561 560 590 621 620 547 546 576 607 606 396 427 290 321 320 351 350 651 681 1 0 31 61 60 3 33 63 5 35 64 7 6
38+
37 67 66 9 39 10 41 40 71 13 12 15 14 74 16 47 46 76 19 18 49 78 21 20 50 81 23 22 82 24 55 85 27 26 117 116 115 114 113 112
39+
111 110 140 109 108 139 168 107 106 136 166 105 104 164 102 133 132 162 100 130 160 98 96 157 156 125 124 155 92 123 122 152
40+
91 90 181 180 210 241 182 213 185 184 214 245 187 186 246 189 188 190 221 220 250 193 192 252 195 194 224 254 197 196 227 256
41+
198 229 228 258 201 200 260 203 202 263 205 204 265 264 207 206 236 297 296 326 356 295 294 324 355 293 292 322 353 352 276
42+
307 306 336 275 274 334 273 303 302 333 332 271 270 330 360 391 390 420 362 393 392 422 364 395 424 382 413 412 442 385 384
43+
414 445 387 386 447 446 477 476 506 475 532 485 484 452 481 600 543 574 562 623 564 595 594 624 566 687 716 654 684 652 682
44+
636 697 696 695 632 662 692 630 691 750 781 780 753 724 755 754 784 726 788 730 761 760 790 733 732 763 762 793 764 737 796
45+
739 798 741 771 770 773 772 803 802 745 744 774 747 746 777 807 837 836 866 897 835 865 895 832 863 862 893 891 829 828 888
46+
827 826 887 825 855 884 823 853 852 883 820 850 880 819 818 848 878 847 875 874 843 873 810 841 840 870 901 905 904 935 934
47+
907 906 937 967 966 938 968 910 971 913 942 973 972 915 914 947 949 948 978 921 950 981 923 922 952 983 925 955 985 984 926
48+
957 986 58 89 118 149 148 238 269 329 358 389 388 418 449 448 478 508 538 568 778 809 868 958 988 28 29 280 281 311 457 488
49+
500 530 670 700 677 707
50+
] debugIsEqual
51+

tests/ps_tests/test.ps

52 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)