ZedAI RNIB DTDs Leaflet elements

From zedwiki

Jump to: navigation, search

Leaflet

Explanation of Text Elements

Version 1.15

leaflet
This contains the whole document. The opening tag is required at the start of the document, and the closing tag at the end of the document. leaflet consists of the following elements: ver, comment, bannerlogo, title information (titleinf), extraneous matter (extraneous), contents, followed by paragraphs (p, p2, p3), lists, points, tables, boxes, sections, ending with end matter. All of these items apart from ver and titleinf are optional.

ver
This element states the version of the system used to create and process the document. Such information is required for archiving purposes, but is not part of the original document, and is not usually output.

comment ?
This is an optional comment which may be placed at the beginning of a document, for example it could be a note the author may make to him or herself. It is not usually output.

bannerlogo ?
This is an optional element which may occur before titleinf, indicating the presence of a banner logo to be used in the outputs where appropriate. (E.g. it may be the RNIB print logo and/or the RNIB audio logo.) It has a required attribute, type, which may have the values "RNIB" or "other". There are also optional attributes: imgsrc, for the filename of the graphic file, and sndsrc, for the filename of the audio file. If "RNIB" is chosen as the value of type, imgsrc and sndsrc can be omitted, as default values are then inserted if empty.

titleinf
This is title information at the beginning of the document. It can contain the title, one or more subtitles, an author, one or more subauthors, and other publication information (titledet). All these elements, apart from title, are optional.

title
This is the title of the document, and is the first item in titleinf.

subtitle ?
This is a subtitle of the document, and may occur after the title in titleinf. This is optional, and more than one is permissible.

author ?
This is the author of the leaflet given at the front of the document. It may be the name of an organisation, etc., rather than a person. It may occur after the title or subtitle in titleinf.

subauthor ?
This is additional author information for the document. For example, it may be a second author, or details about the author. It may occur after the author in titleinf, and more than one is permissible.

titledet ?
This is information about the publication, such as the publisher's address, appearing at the beginning of the leaflet. It occurs in titleinf, and can contain one or more paragraphs (p).

extraneous ?
This is a extraneous matter occurring at the beginning before the main body of the leaflet. It can occur after the titleinf element, and before the contents. It can contain a head, paragraphs (p), lists, etc., and sections (extrsection).

extrsection
This is a section within extraneous matter at the front of the leaflet. It may start with a head, followed by paragraphs, lists, etc.

contents ?
This is the original leaflet's contents, and contains the heading (head), followed by the various levels of entries (entry1-entry6).

entry1
This is a main entry in the contents. It consists of the section name (secname) and the page number (pageno).

entry2-entry6
These are lower level entries in the contents. They have the same structure as entry1.

secname
This is the name of an section or subsection, and appears in its entry (entry1-entry6) in the contents.

pageno
This is the starting page number of a section or subsection, and appears after the section name (secname) in its entry in the contents.

p
This is a paragraph.

p2
This is a subparagraph, i.e. a paragraph which is subordinate to a main paragraph tagged p. This tag should be used when the subordination is explicitly indicated, e.g. by indentation. A p2 paragraph is not inserted within a main paragraph, but follows it.

p3
This is a sub-subparagraph, i.e. a paragraph which is subordinate to a subparagraph tagged p2. This tag should be used when the subordination is explicitly indicated, e.g. by indentation. A p3 paragraph is not inserted within a main paragraph or a subparagraph, but follows it.

list
This is a list, and contains one or more list items (litem), or subordinate lists. A list can appear between paragraphs, but not within paragraphs. This tag should be used for lists which are normally specially displayed, e.g. on separate lines in print, but not for listed items occurring in the normal run of a sentence, such as "he saw: dogs, cats, geese". list can have a type attribute with value "plain". (When this is set the print output will not have bullets on the list items.)

litem
This is an item within a list, and contains text (but not paragraphs).

points
This is a series of points and contains one or more point elements. Point elements are of a similar nature to items in a list (litem), but have a higher status in relation to the surrounding text. They may be regarded as alternative format paragraphs, typically represented in print as hanging paragraphs.

point
This is an item within points, and contains text (but not paragraphs).

box
This is a boxed section of text, and can occur between paragraphs, etc. It can begin with a heading (head), followed by paragraphs.

address
This is a postal address, and contains one or more address lines (addline). It can appear between paragraphs, etc., but not within a paragraph. This tag should be used for addresses which may be specially displayed, e.g. on separate lines in print, but not for addresses occurring in the normal run of a sentence, such as "write to: Mr Smith, 66 Park Road, Pinner".

addline
This is a line of an address. It may contain the addressee's name or title, an element of the postal address, or a phone number, etc.

table
This is a table. It may occur between paragraphs, but not within a paragraph. It may contain a head, paragraphs, and one or more bodies of tabulated matter (tablebody).

tablebody
This is a body of tabulated matter in a table, and occurs within a table. It may contain the element colheads which contains any column headings, and one or more rows.

colheads ?
This is the first item in the main body of a table (tablebody) and contains the column headings (chead). It will be absent if there are no column headings.

chead
This is a column heading to a table, and occurs within the colheads element.

row
This is a row in the main body of a table (tablebody). Note that a row containing column headings is tagged as colheads, not row. A row may contain a row heading (rowhead) as the first item, followed by one or more data items (di) which contain the data in the table.

rowhead ?
This is a heading to a row in a table, and may be absent.

di
This is a data item (e.g. a number) in the main body of a table. It occurs within a row.

figure
This is an illustration, and can occur between paragraphs, etc. It can contain a head, a caption, then either a graphic or a visual description (vdes).

caption
This is a caption to an illustration, and can occur in a figure element, after the head.

graphic
This element is used for an actual picture, and can occur within a figure, between paragraphs, or within a paragraph. It contains an image box (imgbox) which holds the picture, followed by a visual description (vdes).

imgbox
This element, "image box", contains a picture image (image). It occurs in a graphic element. imgbox has a position attribute which can be set to "centre" when it is required that the image is centred on a separate line, rather than appearing within a line of text.

image
This is a picture image, and occurs in a image box (imgbox). It has a source attribute which states the filename of the picture (e.g. source="c:\docs\house.bmp"), and a width attribute which sets the size of the picture.

vdes
This is a visual object description, i.e. usually a description of an image. It is used to give a description which will appear as a substitute for the image itself in media other than print. It can occur after an image box (imgbox) in a graphic (where it is used to describe that image); or directly in a figure where no actual graphic is present but a description only is required; or within a paragraph, again to add such a description without a graphic.

vdesp
This is similar to vdes as used without an actual image, except that it constitutes a whole paragraph. It can occur between normal paragraphs

section
This is a section within the document. It may contain a heading (head), followed by paragraphs, lists, points, tables, boxes, figureand graphics. It may also contain subsections (subsect1).

subsect1
This is a subsection within a section, and has the same structure as a section, except that a subsection within it is tagged as subsect2.

subsect2-subsect5
These are further levels of subsection within a section.

head
This is a heading, and may appear within a section or subsection (subsect1-subsect5), a table, or a box. A head may only be included in the document inside one of these items. Note that the heading for the document as a whole has a separate tag: title.

i
This is italics.

b
This is bold.

u
This is underlined.

sup
This is a superscript.

sub
This is a subscript.

acronym
Acronym. Use this for acronyms like BBC and RNIB, am and pm, but not abbreviations which are parts of words, such as Mr, Rd, St. Do not use for unit abbreviations. A plural "s" should be left outside the closing tag.

braille
This is braille to be displayed, e.g. black dot braille in a print document.

computer
Computer text. Use this for computer filenames and the like.

email
E-mail address.

web
Internet web address.

stext
This is special text which can be marked with the attribute say to control the synthetic speech pronunciation. The values of the attribute can be "number" to obtain the correct pronunciation of decimal numbers, or "spell-out" which will force the text to be read out character by character. This element only needs to be used in exceptional cases; items such as acronyms, phone numbers, email and web addresses, etc., are dealt with automatically by other means in the output process.

end
This is information at the end of the document, e.g. the publisher's address or a copyright notice, etc.. It can contain paragraphs (p).

[SJP]

5/4/05

Personal tools