From: Norman Walsh Date: Tue, 11 Jun 2002 13:14:38 +0000 (+0000) Subject: Made new parameters public X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a5cde6e4e11692cbb0fbf0d78516d835eebc1a7;p=docbook-dsssl Made new parameters public --- diff --git a/xsl/html/graphics.xsl b/xsl/html/graphics.xsl index 0a6e8a162..2896a29ea 100644 --- a/xsl/html/graphics.xsl +++ b/xsl/html/graphics.xsl @@ -24,7 +24,6 @@ ******************************************************************** --> - @@ -70,10 +69,6 @@ - - - - @@ -443,19 +438,26 @@ valign: - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -463,6 +465,13 @@ valign: + + + + + + + @@ -480,7 +489,8 @@ valign: - + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index 16cf34159..bff56ca2f 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -40,11 +40,11 @@ - + @@ -80,8 +80,9 @@ - + + @@ -89,6 +90,8 @@ + + @@ -104,6 +107,7 @@ + @@ -112,11 +116,10 @@ + - - - + @@ -144,13 +147,14 @@ - - + + + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index ea6e69ca5..72adc5235 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -203,7 +203,6 @@ to be incomplete. Don't forget to read the source, too :-) Miscellaneous -&graphic.default.extension; &formal.procedures; &formal.title.placement; &runinhead.default.title.end.punct; @@ -224,6 +223,14 @@ to be incomplete. Don't forget to read the source, too :-) &use.role.as.xrefstyle; +Graphics +&graphic.default.extension; +&nominal.image.width; +&nominal.image.depth; +&use.embed.for.svg; +&make.graphic.viewport; + + Chunking &html.ext; &html.extra.head.links; @@ -351,11 +358,11 @@ around all these parameters. - + @@ -376,8 +383,8 @@ around all these parameters. - + @@ -391,6 +398,7 @@ around all these parameters. + @@ -400,6 +408,8 @@ around all these parameters. + + @@ -415,6 +425,7 @@ around all these parameters. + @@ -423,11 +434,10 @@ around all these parameters. + - - - + @@ -455,13 +465,14 @@ around all these parameters. - + - + + diff --git a/xsl/params/make.graphic.viewport.xml b/xsl/params/make.graphic.viewport.xml new file mode 100644 index 000000000..1d3a25b50 --- /dev/null +++ b/xsl/params/make.graphic.viewport.xml @@ -0,0 +1,30 @@ + + +make.graphic.viewport +boolean + + +make.graphic.viewport +Use tables in HTML to make viewports for graphics + + + + + + + + +Description + +The HTML img element only supports the notion +of content-area scaling; it doesn't support the distinction between a +content-area and a viewport-area, so we have to make some compromises. + +If make.graphic.viewport is non-zero, a table +will be used to frame the image. This creates an effective viewport-area. + + +Tables and alignment don't work together, so this parameter is ignored +if alignment is specified on an image. + + diff --git a/xsl/params/nominal.image.depth.xml b/xsl/params/nominal.image.depth.xml new file mode 100644 index 000000000..ac4935b00 --- /dev/null +++ b/xsl/params/nominal.image.depth.xml @@ -0,0 +1,22 @@ + + +nominal.image.depth +length + + +nominal.image.depth +Nominal image depth + + + + + + + + +Description + +See nominal.image.width. + + + diff --git a/xsl/params/nominal.image.width.xml b/xsl/params/nominal.image.width.xml new file mode 100644 index 000000000..f630af9c0 --- /dev/null +++ b/xsl/params/nominal.image.width.xml @@ -0,0 +1,38 @@ + + +nominal.image.width +length + + +nominal.image.width +The nominal image width + + + + + + + + +Description + +Graphic widths expressed as a percentage are problematic. In the +following discussion, we speak of width and contentwidth, but +the same issues apply to depth and contentdepth. + +A width of 50% means "half of the available space for the image." +That's fine. But note that in HTML, this is a dynamic property and +the image size will vary if the browser window is resized. + +A contentwidth of 50% means "half of the actual image width". +But what does that mean if the stylesheets cannot assess the image's +actual size? Treating this as a width of 50% is one possibility, but +it produces behavior (dynamic scaling) that seems entirely out of +character with the meaning. + +Instead, the stylesheets define a +nominal.image.width and convert percentages to +actual values based on that nominal size. + + + diff --git a/xsl/params/use.embed.for.svg.xml b/xsl/params/use.embed.for.svg.xml new file mode 100644 index 000000000..766d41464 --- /dev/null +++ b/xsl/params/use.embed.for.svg.xml @@ -0,0 +1,28 @@ + + +use.embed.for.svg +boolean + + +use.embed.for.svg +Use HTML embed for SVG? + + + + + + + + +Description + +If non-zero, an embed element will be created for +SVG figures. An object is always created, +this parameter merely controls whether or not an additional embed +is generated inside the object. + +On the plus side, this may be more portable among browsers and plug-ins. +On the minus side, it isn't valid HTML. + + +