|Subject:||Re: Understanding the eps bounding box (rounding)|
|Date:||Fri, 2 Mar 2018 09:59:32 +0100|
|User-agent:||Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0|
Am 02.03.2018 um 09:16 schrieb Andrew Bernard:
OK, thank you. Although I was aware of that issue it seems I'll have to review the calculations.
So what you're saying is that when the EPS bounding box says "80" this means "80 times 1/72 inch", right?
According to https://tex.stackexchange.com/questions/8260/what-are-the-various-units-ex-em-in-pt-bp-dd-pc-expressed-in-mm#8337
- 1pt in LaTeX is 1/72.26999 inches.
- 1pb is 1/72.00082 inches. ("bp" refers to Big Points)
According to http://lilypond.org/doc/v2.19/Documentation/notation/distances-and-measurements
a LilyPond \pt is 1/72.27 inch, so obviously the LaTeX variant.
So obviously I do have to perform some transformations since my current assumption (the units in the bbox are equivalent to pt) produces slight offsets. But still I have to afterwards deal with the (annoying) issue that the bounding box is truncated to integers.
Does anyone know at which stage this bounding box is calculated for the first time? And if there's any possibility to access that information from within LilyPond to write out a special logfile?
This would be very interesting for another reason: I would actually like to determint the amount of protrusion *to the right* too, and that is not possible for ragged systems.
The lower left corner is relative to the beginning of the staff symbol, so I will always know how much space is used to the left of that. But I can only infer the *right* protrusion from the difference between the upper right corner of the bounding box and the line width (which I know). When the system is justified this gives correct results but not when the system is ragged.
But maybe that's a separate question.
|[Prev in Thread]||Current Thread||[Next in Thread]|