Software that makes placemats

Organise events to meet up and drink Port.
User avatar
jdaw1
Cockburn 1900
Posts: 20892
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Re: Software that makes placemats

Post by jdaw1 » 23:14 Tue 28 Aug 2018

g-man wrote:
01:13 Tue 28 Aug 2018
The vintage stars themselves I find a little too cluttered for the overall appearance that I'm distracted with the fill and not the vintage date itself.
I suggest /ShapesInTitles false def as the perfect solution.

PhilW
Dow 1980
Posts: 2773
Joined: 14:22 Wed 15 Dec 2010
Location: Near Cambridge, UK

Re: Software that makes placemats

Post by PhilW » 09:11 Wed 29 Aug 2018

jdaw1 wrote:
23:14 Tue 28 Aug 2018
g-man wrote:
01:13 Tue 28 Aug 2018
The vintage stars themselves I find a little too cluttered for the overall appearance that I'm distracted with the fill and not the vintage date itself.
I suggest /ShapesInTitles false def as the perfect solution.
Or just using a different shape from the options available; I think gman was saying he didn't like that particular fill, and I'm sure we all have our preferences and dislikes in that regard (and false is already the default for /ShapesInTitles in the current placemat.ps anyway, for anyone wondering).
g-man wrote:
01:13 Tue 28 Aug 2018
Glenn E. wrote:
21:46 Sat 21 Jul 2018
(The overtitles example looks bad to me, and not due to alignment. I would not put the pattern in the overtitle as it makes that word too difficult to read. Especially in the busy parts in 'pe' and 'ia'.)
I agree with this, the pattern in the over label is completely distracting when placed over the vintage stars.
In agreement with the above view, though I realise this is in disagreement with author preference.
Note that there is an equivalent /ShapesInOvertitles parameter, and indeed equivalents for /ShapesInAbovetitles, /ShapesInBelowtitles and /ShapesInPlacenames (noting the latter has missing { } brackets in the definition compared with the peer definitions). These currently all default to be the same as /ShapesInOvertitles but can be changed by the user, so those of us who prefer not to have the pattern in the overtitles can easily change this.

User avatar
jdaw1
Cockburn 1900
Posts: 20892
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Re: Software that makes placemats

Post by jdaw1 » 21:13 Wed 29 Aug 2018

PhilW wrote:
09:11 Wed 29 Aug 2018
Note that there is an equivalent /ShapesInOvertitles parameter, and indeed equivalents for /ShapesInAbovetitles, /ShapesInBelowtitles and /ShapesInPlacenames (noting the latter has missing { } brackets in the definition compared with the peer definitions).
Note ‘latter’ of two; ‘last’ of three or more.

Geek note: /ShapesInPlaceNames ShapesInTitles def works naturally if ShapesInTitles is a Boolean constant. But if ShapesInTitles is code referencing the likes of WithinTitles, that would fail if referenced in ShapesInPlaceNames. The absence of brackets causes it to fail earlier, and more traceably. So the absence of {} was deliberate.

User avatar
jdaw1
Cockburn 1900
Posts: 20892
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Re: Software that makes placemats

Post by jdaw1 » 14:00 Sat 03 Nov 2018

As requested:

Image Image Image

DaveRL
Warre’s Traditional LBV
Posts: 398
Joined: 15:04 Tue 18 Mar 2014
Location: London

Re: Software that makes placemats

Post by DaveRL » 15:11 Sat 03 Nov 2018

Fabulous. Thank you. :D :GoldStar:

User avatar
jdaw1
Cockburn 1900
Posts: 20892
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Re: Software that makes placemats

Post by jdaw1 » 15:45 Sat 03 Nov 2018

Anybody else?

Please specify pattern, the number of columns (so far everybody has five), and the number of rows (so far everybody has one).

From the Manual:
/Alternating
Image

/Sideways
Image

/Upright
Image

User avatar
flash_uk
Dow 1980
Posts: 2900
Joined: 20:02 Thu 13 Feb 2014
Location: London

Re: Software that makes placemats

Post by flash_uk » 21:09 Sat 03 Nov 2018

Yes please, alternating.

User avatar
jdaw1
Cockburn 1900
Posts: 20892
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Re: Software that makes placemats

Post by jdaw1 » 00:57 Sun 04 Nov 2018

From the current code:

Code: Select all

/TastingNotesStarsNameColsRowsArrangement  % (ASCIIfied Name) NumCols NumRows /Alternating|/Sideways|/Upright
[
	(DRT)  5 1 /Upright      (Derek T.)    4 copy pop
	(WPS)  5 1 /Sideways     (Wolfgang S.) 4 copy pop
	(PW)   5 1 /Sideways     (Phil W.)     4 copy pop
	(DJ)   5 1 /Sideways     (Daniel J.)   4 copy pop
	(IDJ)  5 1 /Alternating  (Ian J.)      4 copy pop
	(DRL)  5 1 /Alternating  (Dave L.)     4 copy pop
	(TC)   5 1 /Alternating  (Tony C.)     4 copy pop
	(MPM)  5 1 /Alternating  (Mike M.)     4 copy pop
] def  % /TastingNotesStarsNameColsRowsArrangement

User avatar
jdaw1
Cockburn 1900
Posts: 20892
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Re: Software that makes placemats

Post by jdaw1 » 00:26 Wed 06 Feb 2019

Geeks might be interested in the comp.lang.postscript thread Mathematical functions as a single Bézier cubic, as used in the Spirals feature (which, note to self, I need to document).

User avatar
jdaw1
Cockburn 1900
Posts: 20892
Joined: 15:03 Thu 21 Jun 2007
Location: London
Contact:

Re: Software that makes placemats

Post by jdaw1 » 23:32 Wed 03 Apr 2019

For the few who care, HeapSort has been replaced by ShellSort, with gap sequence 1 2 5 11 23 51 113 247 541 1189 2617 5761 12671 27877 61331 134933 296843 653057 1436731 3160811 6953783 15298321 33656309 74043881 162896543 358372411 788419321 1734522497, each being the nearest to 2.2× previous, subject to being coprime to all previous except 1. (Of course, as the maximum array length in most implementations of PostScript is 65535, usually only the bolded gaps are relevant.)

Code for both, and a speed comparison, is in ShellSort_HeapSort.ps. It seems that ShellSort is better for arrays of length ≤ 216−1, but the extent of the advantage diminishes with length. So it may well be that for arrays of length millions or billions, HeapSort is better. But for arrays as short as PostScript’s longest, ShellSort seems to be faster.

Post Reply