Generated text that is created in various components of a book
is the short form for "generated text"
. It refers to text that is
automatically inserted by stylesheets when you produce any ebook format with typesetting
software. Gentext covers text such as:
- prefixes of book components (e.g. "Part", "Chapter")
- prefixes for the titles of graphics and tables (e.g. "Figure", "Table")
- description of book authors and contributors on the title page and imprint page (e.g.
- titles for the table of contents and list of titles (e.g. "Contents", "List of
- punctuation (e.g. quotation marks)
- navigation text for web pages (e.g. "Next", "Previous").
Using gentext in various places throughout a book can save time in writing and editing,
because a user only needs to set the prefix text once in the gentext stylesheet, and that text
is automatically applied in the correct places throughout an ebook.
The stylesheet c5-gentextcommon.xsl
is where you set the gentext that applies to PDF,
EPUB and web pages. Features are grouped under the main sections of gentext for:
- book component titles in body text
- book component titles in book, part and chapter TOCs
- contributors on the title page and imprint page
- table of contents (TOC) and list of titles (LOT)
- web page navigation text (e.g. "Prev", "Next")
- quotation marks (single or double)
- punctuation for book component titles in running headers and footers
- punctuation for section titles in running headers and footers.
XML markup to edit
There is no specific XML markup to edit for gentext.
Stylesheet settings to edit
To change how gentext appears in ebooks, you must type the required text at each feature in
the stylesheet c5-gentextcommon.xsl. The required text is located inside the
quotation marks after the text attribute.
For example, the feature c5-35 has gentext for the title of a bibliography
<l:gentext key="bibliography" text="Bibliography"/>
If you want the title of that book component to be called "References"
you need to type that as the value of the text
<l:gentext key="bibliography" text="References"/>
Note: The value of the key attribute in all gentext features matches up with coding in
the stylesheets, so you must never change the key value.
The relevant Stylesheet Guide page to
set up chapter title pages is gentextcommon.svg.