You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jeremias Maerki <de...@jeremias-maerki.ch> on 2005/10/24 16:10:46 UTC
Simplifying the configuration file
I'm currently documenting the new configuration layout. I must say it
feels a little awkward right now. Does anybody mind if I simplify it a
little in the following way?
Old:
<fop version="1.0">
<base url="./"/>
<!-- pixel to millimeter to specify dpi, 72dpi -->
<pixelToMillimeter value="0.35277777777777777778"/>
<pagesettings>
<!-- default page-height and page-width, in case
value is specified as auto -->
<pageHeight value="11in"/>
<pageWidth value="8.26in"/>
</pagesettings>
New:
<fop version="1.0">
<!-- Base URL for resolving relative URLs -->
<base>./</base>
<!-- Internal resolution in dpi (dots per pixel), default: 72dpi -->
<resolution>72</resolution>
<!-- default page-height and page-width, in case
value is specified as auto -->
<default-page-settings height="11in" width="8.26in"/>
I think no mortal prefers pixelToMillimeter over a resolution value in
dpi. The value can easily converted to pixelToMillimeter internally.
Jeremias Maerki
Re: Simplifying the configuration file
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I thought about base-url, too, but given that you can also just specify
a directory (which is no URL), I like the generic name better. So I left
it as is ATM, but if you guys think base-url is better, no problem. Just
change it.
On 24.10.2005 21:35:28 Simon Pepping wrote:
> It is a matter of taste if one uses <base url="./"/> or
> <base>./</base>. Either is OK with me, but I do not like seeing it
> going backward and forward. Anyway, I suggest
> <base-url>./</base-url>.
>
> Giving the resolution in dpi is much better.
>
> Simon
>
> On Mon, Oct 24, 2005 at 04:10:46PM +0200, Jeremias Maerki wrote:
> > I'm currently documenting the new configuration layout. I must say it
> > feels a little awkward right now. Does anybody mind if I simplify it a
> > little in the following way?
> >
> > Old:
> > <fop version="1.0">
> >
> > <base url="./"/>
> > <!-- pixel to millimeter to specify dpi, 72dpi -->
> > <pixelToMillimeter value="0.35277777777777777778"/>
> > <pagesettings>
> > <!-- default page-height and page-width, in case
> > value is specified as auto -->
> > <pageHeight value="11in"/>
> > <pageWidth value="8.26in"/>
> > </pagesettings>
> >
> > New:
> > <fop version="1.0">
> >
> > <!-- Base URL for resolving relative URLs -->
> > <base>./</base>
> > <!-- Internal resolution in dpi (dots per pixel), default: 72dpi -->
> > <resolution>72</resolution>
> > <!-- default page-height and page-width, in case
> > value is specified as auto -->
> > <default-page-settings height="11in" width="8.26in"/>
> >
> >
> > I think no mortal prefers pixelToMillimeter over a resolution value in
> > dpi. The value can easily converted to pixelToMillimeter internally.
> >
> > Jeremias Maerki
> >
>
> --
> Simon Pepping
> home page: http://www.leverkruid.nl
Jeremias Maerki
Re: Simplifying the configuration file
Posted by Simon Pepping <sp...@leverkruid.nl>.
It is a matter of taste if one uses <base url="./"/> or
<base>./</base>. Either is OK with me, but I do not like seeing it
going backward and forward. Anyway, I suggest
<base-url>./</base-url>.
Giving the resolution in dpi is much better.
Simon
On Mon, Oct 24, 2005 at 04:10:46PM +0200, Jeremias Maerki wrote:
> I'm currently documenting the new configuration layout. I must say it
> feels a little awkward right now. Does anybody mind if I simplify it a
> little in the following way?
>
> Old:
> <fop version="1.0">
>
> <base url="./"/>
> <!-- pixel to millimeter to specify dpi, 72dpi -->
> <pixelToMillimeter value="0.35277777777777777778"/>
> <pagesettings>
> <!-- default page-height and page-width, in case
> value is specified as auto -->
> <pageHeight value="11in"/>
> <pageWidth value="8.26in"/>
> </pagesettings>
>
> New:
> <fop version="1.0">
>
> <!-- Base URL for resolving relative URLs -->
> <base>./</base>
> <!-- Internal resolution in dpi (dots per pixel), default: 72dpi -->
> <resolution>72</resolution>
> <!-- default page-height and page-width, in case
> value is specified as auto -->
> <default-page-settings height="11in" width="8.26in"/>
>
>
> I think no mortal prefers pixelToMillimeter over a resolution value in
> dpi. The value can easily converted to pixelToMillimeter internally.
>
> Jeremias Maerki
>
--
Simon Pepping
home page: http://www.leverkruid.nl
Re: Simplifying the configuration file
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Oct 24, 2005, at 16:10, Jeremias Maerki wrote:
> I'm currently documenting the new configuration layout. I must say it
> feels a little awkward right now. Does anybody mind if I simplify it a
> little in the following way?
Not at all. +1
Cheers,
Andreas
Re: Simplifying the configuration file
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 24.10.2005 18:33:25 The Web Maestro wrote:
> (although I believe dpi is really 'dots per inch' instead of dots per
> pixel)
Of course. :-) Thx.
Change committed: http://svn.apache.org/viewcvs?rev=328145&view=rev
Jeremias Maerki
Re: Simplifying the configuration file
Posted by The Web Maestro <th...@gmail.com>.
Looks like welcome changes to me!
(although I believe dpi is really 'dots per inch' instead of dots per
pixel)
+1
On Oct 24, 2005, at 7:10 AM, Jeremias Maerki wrote:
> I'm currently documenting the new configuration layout. I must say it
> feels a little awkward right now. Does anybody mind if I simplify it a
> little in the following way?
>
> Old:
> <fop version="1.0">
>
> <base url="./"/>
> <!-- pixel to millimeter to specify dpi, 72dpi -->
> <pixelToMillimeter value="0.35277777777777777778"/>
> <pagesettings>
> <!-- default page-height and page-width, in case
> value is specified as auto -->
> <pageHeight value="11in"/>
> <pageWidth value="8.26in"/>
> </pagesettings>
>
> New:
> <fop version="1.0">
>
> <!-- Base URL for resolving relative URLs -->
> <base>./</base>
> <!-- Internal resolution in dpi (dots per pixel), default: 72dpi -->
> <resolution>72</resolution>
> <!-- default page-height and page-width, in case
> value is specified as auto -->
> <default-page-settings height="11in" width="8.26in"/>
>
>
> I think no mortal prefers pixelToMillimeter over a resolution value in
> dpi. The value can easily converted to pixelToMillimeter internally.
>
> Jeremias Maerki
>
>
Regards,
Web Maestro Clay
--
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet