Software that makes placemats

Organise events to meet up and drink Port.
PhilW
Dow 1980
Posts: 2690
Joined: 14:22 Wed 15 Dec 2010
Location: Near Cambridge, UK

Re: Software that makes placemats

Post by PhilW » 07:54 Tue 10 Apr 2018

In the latest placemats, why are the "1963" over the shipper different sizes?
jdaw1 wrote:
18:44 Sat 17 Feb 2018
Draft 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.

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

Re: RE: Re: Software that makes placemats

Post by jdaw1 » 09:50 Thu 12 Apr 2018

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.

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

Re: Software that makes placemats

Post by jdaw1 » 22:00 Thu 12 Apr 2018

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?

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

Re: Software that makes placemats

Post by jdaw1 » 12:32 Sun 15 Apr 2018

jdaw1 wrote:
22:00 Thu 12 Apr 2018

Code: Select all

/FontSizesRatioAboveBelowOverMin 999 def
Done.

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

Re: Software that makes placemats

Post by jdaw1 » 22:57 Fri 20 Jul 2018

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

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

Re: Software that makes placemats

Post by PhilW » 08:17 Sat 21 Jul 2018

jdaw1 wrote:
22:57 Fri 20 Jul 2018
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?
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?

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

Re: Software that makes placemats

Post by jdaw1 » 12:26 Sat 21 Jul 2018

PhilW wrote:
08:17 Sat 21 Jul 2018
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?
Because sometimes multiple passes of randomness need to be aligned. E.g., in Titles and Overtitles:

Image

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

Re: Software that makes placemats

Post by PhilW » 14:34 Sat 21 Jul 2018

jdaw1 wrote:
12:26 Sat 21 Jul 2018
PhilW wrote:
08:17 Sat 21 Jul 2018
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?
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.

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

Re: Software that makes placemats

Post by jdaw1 » 20:34 Sat 21 Jul 2018

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 2018
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.
Yes. And my question was whether I should. And the answers seems to be ‘yes’.

Glenn E.
Quinta do Vesuvio 1994
Posts: 3352
Joined: 22:27 Wed 09 Jul 2008
Location: Seattle, WA, USA

Re: Software that makes placemats

Post by Glenn E. » 21:46 Sat 21 Jul 2018

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'.)
Glenn Elliott

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

Re: Software that makes placemats

Post by jdaw1 » 22:48 Sun 22 Jul 2018

Decision made: fixed.

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

Post Reply