From 5e1f23d4285564258ab8c9c43ec2c7b33853d528 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Tue, 19 May 2009 13:47:26 -0500 Subject: [mallard] Finishing block_figure and block_desc --- doc/mallard/C/mal_block.xml | 1 - doc/mallard/C/mal_block_desc.xml | 78 ++++++++++++++++++++++++++++++++------ doc/mallard/C/mal_block_figure.xml | 74 +++++++++++++++++++++++++++++++++--- 3 files changed, 135 insertions(+), 18 deletions(-) diff --git a/doc/mallard/C/mal_block.xml b/doc/mallard/C/mal_block.xml index 9078302..32c2865 100644 --- a/doc/mallard/C/mal_block.xml +++ b/doc/mallard/C/mal_block.xml @@ -146,7 +146,6 @@ mal_block_list = (
- Other Block Elements diff --git a/doc/mallard/C/mal_block_desc.xml b/doc/mallard/C/mal_block_desc.xml index dca52d9..789e206 100644 --- a/doc/mallard/C/mal_block_desc.xml +++ b/doc/mallard/C/mal_block_desc.xml @@ -3,7 +3,11 @@ id="mal_block_desc"> - + + + + + Shaun McCance @@ -16,7 +20,7 @@ - FIXME + Provide a caption for a formal block element. Block Descriptions @@ -36,17 +40,45 @@ The description provided by desc is formatted as a caption for the formal element.

+ +
+ Notes + +

The desc element can contain a mixture of text and + any general inline elements.

+ +

The desc element can occur in the formal block elements + figure, + listing, and + synopsis.

+ +

The style attribute takes a space-separated list of + style hints. Processing tools should adjust their behavior according to + those style hints they understand.

+ +

The desc element can have attributes from external + namespaces. See for more information + on external-namespace attributes.

+ +

The desc element can also be used in an informational + context. See for more information.

+
+
+ + +
Examples -

Use desc to provide a caption for a figure:

+

Use desc to provide a caption for a + figure:

- Drake, the Mallard mascot + ]]>
@@ -55,7 +87,33 @@ for the formal element.

-

More exaples of figures can be found on the page .

+

Use desc to provide a caption for a + listing:

+ + + + A first Mallard page + + +]]]>]> +]]> + + A first Mallard page + + +]]> + + + +

More exaples can be found on the pages , + , and .

@@ -65,14 +123,12 @@ for the formal element.

Processing Expectations

The exact display of a description will depend on how the enclosing formal - element is displayed. A description is a block of text that should be displayed + element is displayed. A description is a block of text that is displayed directly above or below the normal contents of the enclosing element.

-

Display tools should attempt to display the description in a way that makes it - clear that it belongs to the enclosing formal element. For example, if a display - tool draws a frame around an enclosing figure, it may choose to place the description - inside that frame. If the formal element is indented from its enclosing block, the - description should also be at the same indentation level.

+

A description should be displayed in a way that makes its role clearn and + which clearly distinguishes it from the normal block content of the enclosing + element.

diff --git a/doc/mallard/C/mal_block_figure.xml b/doc/mallard/C/mal_block_figure.xml index 2920eb0..a9ad7f1 100644 --- a/doc/mallard/C/mal_block_figure.xml +++ b/doc/mallard/C/mal_block_figure.xml @@ -3,7 +3,23 @@ id="mal_block_figure"> - + + + + + + + Shaun McCance + shaunm@gnome.org + + + 2008-2009 + Shaun McCance + + + + + Provide a title or caption for a multimedia object. Figures @@ -19,11 +35,11 @@ mal_block_figure = element figure { } - - Shaun McCance -

Add explanation, examples, processing expectations

-

A way to float right, a'la wikipedia?

-
+

Use the figure element to provide a title or caption for a +multimedia object or other block object. +To provide a title for the contents of a file, such as a +code block, use the +listing element instead.

@@ -50,4 +66,50 @@ mal_block_figure = element figure {
+ +
+ Examples + +

Use figure to provide a title and caption for an image:

+ + + + Drake + Drake is the Mallard mascot. + + +]]> +
+ Drake + Drake is the Mallard mascot. + +
+
+
+ + + + +
+ Processing Expectations + +

Figures are displayed as block elements, with each of their child elements + being interpreted as block elements. When present, the title and description + should be displayed in a way that makes their respective roles clear.

+
+ + + + +
+ Comparison to Other Formats + +

The figure is similar to the + figure + element in DocBook. DocBook only provides a title for figures, whereas + Mallard distinguishes between a title and a caption.

+
+ + -- cgit v1.2.1