Commits

Peter Hosey  committed ea5e7f5

Changed how the layout icons are generated—they now use a single .ps file in common that holds the logic—and added two new ones, tight-horizontal and tight-vertical.

For example, on a dodecacore Mac:

- Horizontal is 12x1.
- Vertical is 1x12.
- Tight horizontal is 4x3.
- Tight vertical is 3x4.

  • Participants
  • Parent commits 48fe548
  • Branches modernization

Comments (0)

Files changed (11)

File horizontal.eps

 %!PS-Adobe-3.0 EPSF-3.0
-%%BoundingBox: 0 0 20 20
+%%BoundingBox: 0 0 21 21
 
-2.5 7.5 translate
+2.5 8.5 translate
 
-0 0 moveto
-4 0 rlineto
-0 4 rlineto
--4 0 rlineto
-closepath
+(squares.ps) run
 
-4 0 moveto
-4 0 rlineto
-0 4 rlineto
--4 0 rlineto
-
-8 0 moveto
-4 0 rlineto
-0 4 rlineto
--4 0 rlineto
-
-12 0 moveto
-4 0 rlineto
-0 4 rlineto
--4 0 rlineto
+4 1 draw_rect_of_squares
 
 gsave
 1 setgray

File horizontal.pdf

 %âăĎÓ
 2 0 obj
 <<
-/Length 197
+/Length 108
 >>
 stream
 1 g
 0 J 0 j 1 w 10 M []0 d
 /GS1 gs
 1 i 
-2.5 7.5 4 4 re
-6.5 7.5 m
-10.5 7.5 l
-10.5 11.5 l
-6.5 11.5 l
-10.5 7.5 m
-14.5 7.5 l
-14.5 11.5 l
-10.5 11.5 l
-14.5 7.5 m
-18.5 7.5 l
-18.5 11.5 l
-14.5 11.5 l
+2.5 8.5 4 4 re
+6.5 8.5 4 4 re
+10.5 8.5 4 4 re
+14.5 8.5 4 4 re
 B
 endstream
 endobj
 /Type /Pages
 /Kids [1 0 R]
 /Count 1
-/MediaBox [0 0 20 20]
+/MediaBox [0 0 21 21]
 >>
 endobj
 8 0 obj
 <<
-/CreationDate (D:20060630171923-07'00')
-/ModDate (D:20060630171923-07'00')
+/CreationDate (D:20120719164914-07'00')
+/ModDate (D:20120719164914-07'00')
 /Producer (Apple pstopdf)
 >>
 endobj
 xref
 0 10
 0000000000 65535 f 
-0000000470 00000 n 
+0000000381 00000 n 
 0000000016 00000 n 
-0000000264 00000 n 
-0000000330 00000 n 
-0000000615 00000 n 
-0000000550 00000 n 
-0000000577 00000 n 
-0000000694 00000 n 
-0000000816 00000 n 
+0000000175 00000 n 
+0000000241 00000 n 
+0000000526 00000 n 
+0000000461 00000 n 
+0000000488 00000 n 
+0000000605 00000 n 
+0000000727 00000 n 
 trailer
 <<
 /Size 10
 /Root 9 0 R
 /Info 8 0 R
-/ID [<9fa795f84a87d5a87975900e06eb6003><9fa795f84a87d5a87975900e06eb6003>]
+/ID [<47b7784962963b5b2d1d2390072b3b78><47b7784962963b5b2d1d2390072b3b78>]
 >>
 startxref
-883
+794
 %%EOF

File rectangular.eps

 %!PS-Adobe-3.0 EPSF-3.0
-%%BoundingBox: 0 0 20 20
+%%BoundingBox: 0 0 21 21
 
-6.5 5.5 translate
+4.5 4.5 translate
 
-0 0 moveto
-8 0 rlineto
-0 8 rlineto
--8 0 rlineto
-closepath
+(squares.ps) run
+
+3 3 draw_rect_of_squares
 
 gsave
 1 setgray
 fill
 grestore
-
-4 0 moveto
-0 8 rlineto
-
-0 4 moveto
-8 0 rlineto
-
-0 setgray
 stroke
 
 showpage

File rectangular.pdf

 %âăĎÓ
 2 0 obj
 <<
-/Length 124
+/Length 187
 >>
 stream
 1 g
-/GS1 gs
-6.5 13.5 8 -8 re
-f
 0 G
 0 J 0 j 1 w 10 M []0 d
+/GS1 gs
 1 i 
-6.5 5.5 8 8 re
-10.5 5.5 m
-10.5 13.5 l
-6.5 9.5 m
-14.5 9.5 l
-S
+4.5 4.5 4 4 re
+4.5 8.5 4 4 re
+4.5 12.5 4 4 re
+8.5 4.5 4 4 re
+8.5 8.5 4 4 re
+8.5 12.5 4 4 re
+12.5 4.5 4 4 re
+12.5 8.5 4 4 re
+12.5 12.5 4 4 re
+B
 endstream
 endobj
 3 0 obj
 /Type /Pages
 /Kids [1 0 R]
 /Count 1
-/MediaBox [0 0 20 20]
+/MediaBox [0 0 21 21]
 >>
 endobj
 8 0 obj
 <<
-/CreationDate (D:20060630165903-07'00')
-/ModDate (D:20060630165903-07'00')
+/CreationDate (D:20120719165430-07'00')
+/ModDate (D:20120719165430-07'00')
 /Producer (Apple pstopdf)
 >>
 endobj
 xref
 0 10
 0000000000 65535 f 
-0000000397 00000 n 
+0000000460 00000 n 
 0000000016 00000 n 
-0000000191 00000 n 
-0000000257 00000 n 
-0000000542 00000 n 
-0000000477 00000 n 
-0000000504 00000 n 
-0000000621 00000 n 
-0000000743 00000 n 
+0000000254 00000 n 
+0000000320 00000 n 
+0000000605 00000 n 
+0000000540 00000 n 
+0000000567 00000 n 
+0000000684 00000 n 
+0000000806 00000 n 
 trailer
 <<
 /Size 10
 /Root 9 0 R
 /Info 8 0 R
-/ID [<ce9472767c36747d46ba7baad5bce3da><ce9472767c36747d46ba7baad5bce3da>]
+/ID [<eba060933747bcb940af96075dc4079c><eba060933747bcb940af96075dc4079c>]
 >>
 startxref
-810
+873
 %%EOF
+/square_width 4 def
+/square_height square_width def
+
+/draw_one_square {
+	2 dict begin
+		/y exch def
+		/x exch def
+		x y moveto
+		square_width 0 rlineto
+		0 square_height rlineto
+		square_width neg 0 rlineto
+		closepath
+	end
+} def
+
+/draw_rect_of_squares {
+	2 dict begin
+		/num_sq_tall exch 1 sub def
+		/num_sq_wide exch 1 sub def
+
+		0 1 num_sq_wide {
+			square_width mul
+			0 1 num_sq_tall {
+				% Pop the loop index, which we don't need here.
+				pop
+				% Duplicate the horizontal offset.
+				dup
+			} for
+			0 1 num_sq_tall {
+				square_height mul
+				draw_one_square
+			} for
+		} for
+	end
+} def

File tighthorizontal.eps

+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 0 0 21 21
+
+4.5 6.5 translate
+
+(squares.ps) run
+
+3 2 draw_rect_of_squares
+
+gsave
+1 setgray
+fill
+grestore
+stroke
+
+showpage

File tighthorizontal.pdf

+%PDF-1.3
+%âăĎÓ
+2 0 obj
+<<
+/Length 141
+>>
+stream
+1 g
+0 G
+0 J 0 j 1 w 10 M []0 d
+/GS1 gs
+1 i 
+4.5 6.5 4 4 re
+4.5 10.5 4 4 re
+8.5 6.5 4 4 re
+8.5 10.5 4 4 re
+12.5 6.5 4 4 re
+12.5 10.5 4 4 re
+B
+endstream
+endobj
+3 0 obj
+<<
+/ProcSet [/PDF ]
+/ExtGState <<
+/GS1 4 0 R
+>>
+>>
+endobj
+4 0 obj
+<<
+/Type /ExtGState
+/SA false
+/SM 0.02
+/OP false
+/op false
+/OPM 1
+/BG2 /Default
+/UCR2 /Default
+/HT /Default
+/TR2 /Default
+>>
+endobj
+1 0 obj
+<<
+/Type /Page
+/Parent 5 0 R
+/Resources 3 0 R
+/Contents 2 0 R
+>>
+endobj
+6 0 obj
+<<
+/S /D
+>>
+endobj
+7 0 obj
+<<
+/Nums [0 6 0 R ]
+>>
+endobj
+5 0 obj
+<<
+/Type /Pages
+/Kids [1 0 R]
+/Count 1
+/MediaBox [0 0 21 21]
+>>
+endobj
+8 0 obj
+<<
+/CreationDate (D:20120719165008-07'00')
+/ModDate (D:20120719165008-07'00')
+/Producer (Apple pstopdf)
+>>
+endobj
+9 0 obj
+<<
+/Type /Catalog
+/Pages 5 0 R
+/PageLabels 7 0 R
+>>
+endobj
+xref
+0 10
+0000000000 65535 f 
+0000000414 00000 n 
+0000000016 00000 n 
+0000000208 00000 n 
+0000000274 00000 n 
+0000000559 00000 n 
+0000000494 00000 n 
+0000000521 00000 n 
+0000000638 00000 n 
+0000000760 00000 n 
+trailer
+<<
+/Size 10
+/Root 9 0 R
+/Info 8 0 R
+/ID [<81b14549ea3d02a09428231daad6a67d><81b14549ea3d02a09428231daad6a67d>]
+>>
+startxref
+827
+%%EOF

File tightvertical.eps

+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 0 0 21 21
+
+6.5 4.5 translate
+
+(squares.ps) run
+
+2 3 draw_rect_of_squares
+
+gsave
+1 setgray
+fill
+grestore
+stroke
+
+showpage

File tightvertical.pdf

+%PDF-1.3
+%âăĎÓ
+2 0 obj
+<<
+/Length 141
+>>
+stream
+1 g
+0 G
+0 J 0 j 1 w 10 M []0 d
+/GS1 gs
+1 i 
+6.5 4.5 4 4 re
+6.5 8.5 4 4 re
+6.5 12.5 4 4 re
+10.5 4.5 4 4 re
+10.5 8.5 4 4 re
+10.5 12.5 4 4 re
+B
+endstream
+endobj
+3 0 obj
+<<
+/ProcSet [/PDF ]
+/ExtGState <<
+/GS1 4 0 R
+>>
+>>
+endobj
+4 0 obj
+<<
+/Type /ExtGState
+/SA false
+/SM 0.02
+/OP false
+/op false
+/OPM 1
+/BG2 /Default
+/UCR2 /Default
+/HT /Default
+/TR2 /Default
+>>
+endobj
+1 0 obj
+<<
+/Type /Page
+/Parent 5 0 R
+/Resources 3 0 R
+/Contents 2 0 R
+>>
+endobj
+6 0 obj
+<<
+/S /D
+>>
+endobj
+7 0 obj
+<<
+/Nums [0 6 0 R ]
+>>
+endobj
+5 0 obj
+<<
+/Type /Pages
+/Kids [1 0 R]
+/Count 1
+/MediaBox [0 0 21 21]
+>>
+endobj
+8 0 obj
+<<
+/CreationDate (D:20120719165050-07'00')
+/ModDate (D:20120719165050-07'00')
+/Producer (Apple pstopdf)
+>>
+endobj
+9 0 obj
+<<
+/Type /Catalog
+/Pages 5 0 R
+/PageLabels 7 0 R
+>>
+endobj
+xref
+0 10
+0000000000 65535 f 
+0000000414 00000 n 
+0000000016 00000 n 
+0000000208 00000 n 
+0000000274 00000 n 
+0000000559 00000 n 
+0000000494 00000 n 
+0000000521 00000 n 
+0000000638 00000 n 
+0000000760 00000 n 
+trailer
+<<
+/Size 10
+/Root 9 0 R
+/Info 8 0 R
+/ID [<badbe46e2cf5ebc388330058ddda06bd><badbe46e2cf5ebc388330058ddda06bd>]
+>>
+startxref
+827
+%%EOF

File vertical.eps

 %!PS-Adobe-3.0 EPSF-3.0
-%%BoundingBox: 0 0 20 20
+%%BoundingBox: 0 0 21 21
 
-7.5 1.5 translate
+8.5 2.5 translate
 
-0 0 moveto
-4 0 rlineto
-0 4 rlineto
--4 0 rlineto
-closepath
+(squares.ps) run
 
-4 4 moveto
-0 4 rlineto
--4 0 rlineto
-0 -4 rlineto
-
-4 8 moveto
-0 4 rlineto
--4 0 rlineto
-0 -4 rlineto
-
-4 12 moveto
-0 4 rlineto
--4 0 rlineto
-0 -4 rlineto
+1 4 draw_rect_of_squares
 
 gsave
 1 setgray

File vertical.pdf

 %âăĎÓ
 2 0 obj
 <<
-/Length 193
+/Length 108
 >>
 stream
 1 g
 0 J 0 j 1 w 10 M []0 d
 /GS1 gs
 1 i 
-7.5 1.5 4 4 re
-11.5 5.5 m
-11.5 9.5 l
-7.5 9.5 l
-7.5 5.5 l
-11.5 9.5 m
-11.5 13.5 l
-7.5 13.5 l
-7.5 9.5 l
-11.5 13.5 m
-11.5 17.5 l
-7.5 17.5 l
-7.5 13.5 l
+8.5 2.5 4 4 re
+8.5 6.5 4 4 re
+8.5 10.5 4 4 re
+8.5 14.5 4 4 re
 B
 endstream
 endobj
 /Type /Pages
 /Kids [1 0 R]
 /Count 1
-/MediaBox [0 0 20 20]
+/MediaBox [0 0 21 21]
 >>
 endobj
 8 0 obj
 <<
-/CreationDate (D:20060623162711-07'00')
-/ModDate (D:20060623162711-07'00')
+/CreationDate (D:20120719165129-07'00')
+/ModDate (D:20120719165129-07'00')
 /Producer (Apple pstopdf)
 >>
 endobj
 xref
 0 10
 0000000000 65535 f 
-0000000466 00000 n 
+0000000381 00000 n 
 0000000016 00000 n 
-0000000260 00000 n 
-0000000326 00000 n 
-0000000611 00000 n 
-0000000546 00000 n 
-0000000573 00000 n 
-0000000690 00000 n 
-0000000812 00000 n 
+0000000175 00000 n 
+0000000241 00000 n 
+0000000526 00000 n 
+0000000461 00000 n 
+0000000488 00000 n 
+0000000605 00000 n 
+0000000727 00000 n 
 trailer
 <<
 /Size 10
 /Root 9 0 R
 /Info 8 0 R
-/ID [<ed01c4b416a287da5fcc0821c1f7299a><ed01c4b416a287da5fcc0821c1f7299a>]
+/ID [<dbc50c67e46eea0fdef3320633661d36><dbc50c67e46eea0fdef3320633661d36>]
 >>
 startxref
-879
+794
 %%EOF