On 6/21/07, John Maddock <[EMAIL PROTECTED]> wrote:
> Joel de Guzman wrote:
> >> with no extension on the filename, then quickbook checks for .png
> >> .svg etc and wraps each found in the an appropriate media object?
> >
> > We can if we give images special handling. I'm leaning towards making
> > as much as possible templates, tough, so I'm not sure. Hrm...maybe...
> > images are quite special anyway.
Yes, I think that they deserve to have a good notation. Joel, allowing
options to a construction may pop up in other places in the future.
For example, we will surely want to be able to insert media objects
like video or sounds if we want that quickbook becomes a mainstream
tool. Can templates notation be extended to use optional named
parameters (onp). I am thinking in:
Template definition:
[template tname [a b c]
[onp_1 default_1]
[onp_2 default_2]
This is the template body...
use unamed forced parameters: [a]
use onp parameters: [onp_1] (This prints the value or the default)
[onp_1? if was used do this : if not do this ]
]
IMO this is a good extension and is backward compatible with the
current implementation.
> > But don't we also want to choose
> > the image format depending on target doc format? I.e. png on html,
> > svg on pdf?
mmmm...
> This is going to require some experimenting, but basically we can either:
>
> Omit the file extension and then set the extention using
> graphic.default.extension,
>
> Or, emit all graphics versions in the Docbook XML, set the "Role" attribute
> for each and use preferred.mediaobject.role to select which object ends up
> in the output. I believe this is probably the "right" way to do it IMO.
>
> In an ideal world for HTML output we would embed SVG's and have the .png as
> an alt image, but I don't know if that's possible.
I think that we should go this way. SVG will be supported in browser
in the near future. And pdf woul support pngs in a better way.
Anyway, if we have the templates notation I showed above it will be
easy to provide an alternative like:
[image_set
[pdf pdf_path]
[png png_path]
]
But I really think we should do things with optimism in other areas
(browsers and fo will get better)
Best regards
Matias
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests:
https://lists.sourceforge.net/lists/listinfo/boost-docs