Page 45 of 51

Re: Software that makes placemats

Posted: 07:54 Tue 10 Apr 2018
by PhilW
In the latest placemats, why are the "1963" over the shipper different sizes?
jdaw1 wrote: 18:44 Sat 17 Feb 2018Draft of the placemats.
Image Image
In the above, the 1963 over Ck and Mz are clearly smaller than those over G and D; perhaps some form of proportion since the Mz and Ck are in a smaller font than G and D (being maximised to fit within circles), but it would look better if all the 1963s were the same size font. I don't know how the font size decision for the over-print of the year was determined (I haven't looked, to be fair); perhaps some additional form of control might already provide the capability to enforce a common font size for the 1963s since they are all the same and in the same size area, but if not then perhaps it might be a worthwhile addition.

Re: RE: Re: Software that makes placemats

Posted: 09:50 Thu 12 Apr 2018
by jdaw1
PhilW wrote:In the above, the 1963 over Ck and Mz are clearly smaller than those over G and D; perhaps some form of proportion since the Mz and Ck are in a smaller font than G and D (being maximised to fit within circles), but it would look better if all the 1963s were the same size font. I don't know how the font size decision for the over-print of the year was determined (I haven't looked, to be fair); perhaps some additional form of control might already provide the capability to enforce a common font size for the 1963s since they are all the same and in the same size area, but if not then perhaps it might be a worthwhile addition.
It was wrong. I will investigate whether it was a user error or a programmer failure (same person; different roles) and suggest a plan, or just effect it.

Re: Software that makes placemats

Posted: 22:00 Thu 12 Apr 2018
by jdaw1
Instead of

Code: Select all

/OvertitleMaxFontSizeProportionTitles 0.125 def
it would have been better to do

Code: Select all

/OvertitleMaxFontSizeProportionTitles 0.166666666 def
/FontSizesRatioAboveBelowOverMin 999 def
So it could be a user error.

But I think a change of default for FontSizesRatioAboveBelowOverMin would be advisable, from

Code: Select all

/FontSizesRatioAboveBelowOverMin 2 sqrt sqrt def
to

Code: Select all

/FontSizesRatioAboveBelowOverMin 999 def
So it could be a programmer error.

A reminder: if font sizes are closer in ratio than FontSizesRatioAboveBelowOverMin (or, mutatis mutandis, FontSizesRatioTitlesMin, then they are set to be the same. It is, in ratio terms, the minimum difference in font size. These two parameters prevent there being many font sizes that differ only slightly.

Objections?

Re: Software that makes placemats

Posted: 12:32 Sun 15 Apr 2018
by jdaw1
jdaw1 wrote: 22:00 Thu 12 Apr 2018

Code: Select all

/FontSizesRatioAboveBelowOverMin 999 def
Done.

Re: Software that makes placemats

Posted: 22:57 Fri 20 Jul 2018
by jdaw1
Advice wanted on a technical problem, relating to the seed for PostScript’s random numbers, the seed being set with srand.

To fix some bugs and refactor code, each circle’s painting is surrounded by a rrandsrand pair, to put in the stack the current seed, and then to reset the random-number seed to that.

Discussion is happening about a forthcoming Cockburn vertical. The current draft of the placemats has the 1947 and 1967 as:

Image   Image

Observe that the layout of the stars look very similar, with a slight offset. (The eye might start at the top-right of the ‘7’s.) Indeed, relative to the centre of the circle, the stars are identically positioned. Is this:
• Perfection?
• Tolerable?
• Erroneous?

(I admit to dislike—hence this question.)

(Typo fixed.)

Re: Software that makes placemats

Posted: 08:17 Sat 21 Jul 2018
by PhilW
jdaw1 wrote: 22:57 Fri 20 Jul 2018Observe that the layout of the stars look very similar, with a slight offset. (The eye might start at the top-right of the ‘7’s.) Indeed, relative to the centre of the circle, the stars are identically positioned. Is this:
• Perfection?
• Tolerable?
• Erroneous?
Tolerable, though less than ideal. Why do you keep get/setting the seed, rather than simply setting it at the start of the script (presumably to a fixed value for determinism) and then just using rand throughout thereafter?

Re: Software that makes placemats

Posted: 12:26 Sat 21 Jul 2018
by jdaw1
PhilW wrote: 08:17 Sat 21 Jul 2018Why do you keep get/setting the seed, rather than simply setting it at the start of the script (presumably to a fixed value for determinism) and then just using rand throughout thereafter?
Because sometimes multiple passes of randomness need to be aligned. E.g., in Titles and Overtitles:

Image

Re: Software that makes placemats

Posted: 14:34 Sat 21 Jul 2018
by PhilW
jdaw1 wrote: 12:26 Sat 21 Jul 2018
PhilW wrote: 08:17 Sat 21 Jul 2018Why do you keep get/setting the seed, rather than simply setting it at the start of the script (presumably to a fixed value for determinism) and then just using rand throughout thereafter?
Because sometimes multiple passes of randomness need to be aligned.
"need"? no. "want"? perhaps - I would likely have compromised this one, and not chosen alignment for this, unless it turned out to look poor. With your chosen method you still should only need to cache and reseed while drawing the multiple aspects of a single circle, then continue (though this would place restrictions on the order in which you need to draw elements, or increase the seed cache-ing to one per circle, and then restore to subsequent afterwards, which might be the better route, depending on the currently implemented order of drawing of elements.

Re: Software that makes placemats

Posted: 20:34 Sat 21 Jul 2018
by jdaw1
PhilW wrote: 14:34 Sat 21 Jul 2018"need"? no. "want"? perhaps - I would likely have compromised this one, and not chosen alignment for this, unless it turned out to look poor.
Disagree: this is a need.


PhilW wrote: 14:34 Sat 21 Jul 2018With your chosen method you still should only need to cache and reseed while drawing the multiple aspects of a single circle, then continue (though this would place restrictions on the order in which you need to draw elements, or increase the seed cache-ing to one per circle, and then restore to subsequent afterwards, which might be the better route, depending on the currently implemented order of drawing of elements.
Yes. And my question was whether I should. And the answers seems to be ‘yes’.

Re: Software that makes placemats

Posted: 21:46 Sat 21 Jul 2018
by Glenn E.
I actually noticed the non-randomness of the 47 and 67 with merely a glance before reading the rest of the original post.

That said, I don't see it as a problem.

(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'.)

Re: Software that makes placemats

Posted: 22:48 Sun 22 Jul 2018
by jdaw1
Decision made: fixed.

That the fix has shortened the code by ten lines increases the likelihood that it was the right thing to do.

Re: Software that makes placemats

Posted: 00:41 Sun 26 Aug 2018
by flash_uk
Julian - Thomas V over on FTLOP has posted that the ps to pdf converter seems to no longer function with a placemat .ps file. Any ideas what's happened? I suspect the converter is doing something different and doesn't like something in the .ps file. The converter at www.ps2pdf.com also seems to have stopped giving a log which is a bit unhelpful for figuring out the issue.

Re: Software that makes placemats

Posted: 11:07 Sun 26 Aug 2018
by jdaw1
Link to Thomas V’s comment. I’ve asked the PS➝PDF folks for help.

Re: Software that makes placemats

Posted: 16:38 Mon 27 Aug 2018
by jdaw1
Mike Hugo wrote:I've sold the ps2pdf.com domain and it is now being run by someone else.

I continue to keep the old service as ps2pdf.org.

I'm not even sure how your email made it to me as the new owner should be receiving email for the dot com domain but perhaps has not updated something.

When I take the document and convert it at ps2pdf.org it does produce a document.
This document also causes my security wrapper to generate a pile of output as this file includes a bunch of code in it that causes the converter to block certain transactions that the file is trying to do. It still creates a final pdf .

Feel free to link to the ps2pdf.org site.
Posted with permission.

Re: Software that makes placemats

Posted: 22:43 Mon 27 Aug 2018
by flash_uk
Many thanks Julian.

Re: Software that makes placemats

Posted: 01:13 Tue 28 Aug 2018
by g-man
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.

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.

Re: Software that makes placemats

Posted: 23:14 Tue 28 Aug 2018
by jdaw1
g-man wrote: 01:13 Tue 28 Aug 2018The 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.

Re: Software that makes placemats

Posted: 09:11 Wed 29 Aug 2018
by PhilW
jdaw1 wrote: 23:14 Tue 28 Aug 2018
g-man wrote: 01:13 Tue 28 Aug 2018The 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.

Re: Software that makes placemats

Posted: 21:13 Wed 29 Aug 2018
by jdaw1
PhilW wrote: 09:11 Wed 29 Aug 2018Note 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.

Re: Software that makes placemats

Posted: 14:00 Sat 03 Nov 2018
by jdaw1
As requested:

Image Image Image

Re: Software that makes placemats

Posted: 15:11 Sat 03 Nov 2018
by DaveRL
Fabulous. Thank you. :D :GoldStar:

Re: Software that makes placemats

Posted: 15:45 Sat 03 Nov 2018
by jdaw1
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

Re: Software that makes placemats

Posted: 21:09 Sat 03 Nov 2018
by flash_uk
Yes please, alternating.

Re: Software that makes placemats

Posted: 00:57 Sun 04 Nov 2018
by jdaw1
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

Re: Software that makes placemats

Posted: 00:26 Wed 06 Feb 2019
by jdaw1
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).