[GRASS-dev] A0-A10 paper size calculations

Hi,

I notice in ps/ps.map/paper.h that A0 is slightly different than other
published values. Actually other values found on the 'net are all over
the place.

In an effort to "do it right" I've recalculated them as follows, from the
fundamental A0=1m^2; W:H = 1:sqrt(2) definition:

size|width_mm|height_mm|width_inch|height_inch
A0|840.90|1189.21|33.106|46.819
A1|594.60|840.90|23.410|33.106
A2|420.45|594.60|16.553|23.410
A3|297.30|420.45|11.705|16.553
A4|210.22|297.30|8.277|11.705
A5|148.65|210.22|5.852|8.277
A6|105.11|148.65|4.138|5.852
A7|74.33|105.11|2.926|4.138
A8|52.56|74.33|2.069|2.926
A9|37.16|52.56|1.463|2.069
A10|26.28|37.16|1.035|1.463

the Matlab (should work in GNU Octave) script to do that is attached.

I notice these still don't line up exactly with the more trusted values I
can find. Usually the error is minor rounding in the wrong direction on
the least significant digit, or truncation. I assume cascading rounding
or conversion errors are generally to blame. (width becomes length from
the previous size, etc)

I'm not too concerned if ps.map paper sizes end up being off < 1/72"
(1pt), but as there is so much noise out there on this I though it
would be nice to use trusted values.

Before I commit the above values, does anyone see a problem in my script
or know if the sizes are actually defined by ISO as "rounded" values in
some unit, versus the mathematical approach that I've taken?

any requests on what sizes we should include? currently for ISO sizes we
only define A0-A4.

link of interest: http://www.paperonweb.com/size.htm

regards,
Hamish

(attachments)

iso_sizes.m (1.48 KB)

On 02/07/08 09:07, Hamish wrote:

Hi,

I notice in ps/ps.map/paper.h that A0 is slightly different than other
published values. Actually other values found on the 'net are all over
the place.

In an effort to "do it right" I've recalculated them as follows, from the
fundamental A0=1m^2; W:H = 1:sqrt(2) definition:

size|width_mm|height_mm|width_inch|height_inch
A0|840.90|1189.21|33.106|46.819
A1|594.60|840.90|23.410|33.106
A2|420.45|594.60|16.553|23.410
A3|297.30|420.45|11.705|16.553
A4|210.22|297.30|8.277|11.705
A5|148.65|210.22|5.852|8.277
A6|105.11|148.65|4.138|5.852
A7|74.33|105.11|2.926|4.138
A8|52.56|74.33|2.069|2.926
A9|37.16|52.56|1.463|2.069
A10|26.28|37.16|1.035|1.463

the Matlab (should work in GNU Octave) script to do that is attached.

I notice these still don't line up exactly with the more trusted values I
can find. Usually the error is minor rounding in the wrong direction on
the least significant digit, or truncation. I assume cascading rounding
or conversion errors are generally to blame. (width becomes length from
the previous size, etc)

I'm not too concerned if ps.map paper sizes end up being off < 1/72"
(1pt), but as there is so much noise out there on this I though it
would be nice to use trusted values.

Before I commit the above values, does anyone see a problem in my script
or know if the sizes are actually defined by ISO as "rounded" values in
some unit, versus the mathematical approach that I've taken?

any requests on what sizes we should include? currently for ISO sizes we
only define A0-A4.

I've never seen these sizes with decimals (my usual sources: [1],[2]), so I actually think that they are defined rounded to mm.

And quite honestly, I don't think that submillimetric measurements are really of any importance...

[1] http://www.cl.cam.ac.uk/~mgk25/iso-paper.html
[2] http://www.edsebooks.com/paper/papersize.html

Moritz

On 02.07.2008 10:46, Moritz Lennert wrote:

On 02/07/08 09:07, Hamish wrote:

Before I commit the above values, does anyone see a problem in my script
or know if the sizes are actually defined by ISO as "rounded" values in
some unit, versus the mathematical approach that I've taken?

any requests on what sizes we should include? currently for ISO sizes we
only define A0-A4.

I've never seen these sizes with decimals (my usual sources: [1],[2]), so I actually think that they are defined rounded to mm.

And quite honestly, I don't think that submillimetric measurements are really of any importance...

[1] http://www.cl.cam.ac.uk/~mgk25/iso-paper.html
[2] http://www.edsebooks.com/paper/papersize.html

I agree. I think that ISO 216 rounds them to the nearest mm. I've also never seen the sizes with decimals. I haven't read the ISO paper, but it is available for purchase.

A mandatory wikipedia reference (yes I realize wikipedia is very unreliable blabla...) which also references Moritz' first source :wink:

http://en.wikipedia.org/wiki/ISO_216

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

On Wed, 2 Jul 2008, Moritz Lennert wrote:

On 02/07/08 09:07, Hamish wrote:

[...]

any requests on what sizes we should include? currently for ISO sizes we
only define A0-A4.

I've never seen these sizes with decimals (my usual sources: [1],[2]), so I actually think that they are defined rounded to mm.

From reference [1]:

"The actual millimeter dimensions in the standard have been calculated by progressively rounding down any division-by-two result, as the small program iso-paper.c demonstrates. This guarantees that two A(n+1) pages together are never larger than an An page."

And the results of compiling and running iso-paper.c are:
(looks like a nice complete set of sizes to include!)

4A0 = 1682 mm x 2378 mm
2A0 = 1189 mm x 1682 mm
  A0 = 841 mm x 1189 mm
  A1 = 594 mm x 841 mm
  A2 = 420 mm x 594 mm
  A3 = 297 mm x 420 mm
  A4 = 210 mm x 297 mm
  A5 = 148 mm x 210 mm
  A6 = 105 mm x 148 mm
  A7 = 74 mm x 105 mm
  A8 = 52 mm x 74 mm
  A9 = 37 mm x 52 mm
A10 = 26 mm x 37 mm

  B0 = 1000 mm x 1414 mm
  B1 = 707 mm x 1000 mm
  B2 = 500 mm x 707 mm
  B3 = 353 mm x 500 mm
  B4 = 250 mm x 353 mm
  B5 = 176 mm x 250 mm
  B6 = 125 mm x 176 mm
  B7 = 88 mm x 125 mm
  B8 = 62 mm x 88 mm
  B9 = 44 mm x 62 mm
B10 = 31 mm x 44 mm

  C0 = 917 mm x 1297 mm
  C1 = 648 mm x 917 mm
  C2 = 458 mm x 648 mm
  C3 = 324 mm x 458 mm
  C4 = 229 mm x 324 mm
  C5 = 162 mm x 229 mm
  C6 = 114 mm x 162 mm
  C7 = 81 mm x 114 mm
  C8 = 57 mm x 81 mm
  C9 = 40 mm x 57 mm
C10 = 28 mm x 40 mm

2008/7/2 Hamish <hamish_b@yahoo.com>:

Hi,

I notice in ps/ps.map/paper.h that A0 is slightly different than other
published values. Actually other values found on the 'net are all over
the place.

[...]

any requests on what sizes we should include? currently for ISO sizes we
only define A0-A4.

hi hamish,

yes, i think it should be available as many paper sizes as possible.
since printers and papers come with many non-ISO sizes and world has
not been isostandarized yet (both: fortunately and unfortunately)

i would like to have: B series, C series, North American paper sizes,
ANSI paper sizes, Architectural sizes, etc,

almost all sizes available in my most loved unreliable source [0].

marco

[0]: http://en.wikipedia.org/wiki/Paper_size