evolve-hub/fallback evolve-hub

evolve-hub/xpl/fallback.xpl

Import URI: http://transpect.io/evolve-hub/xpl/fallback.xpl

Here all modes shall be explained.

Variables
,
functions
and dependent modes are tagged like this.

hub:dissolve-sidebars-without-purpose
hub:preprocess-hierarchy
hub:hierarchy
hub:tabular-float-caption-arrangements
Optional mode for preprocessing single-row, two-column informaltables where a float is in one cell and the caption is in another cell. Also: single-column, two-row arrangement.
Pulls the caption out of the table. Should run before hub:table-captions and hub:figure:captions. (Also before their preprocessing modes.)
hub:join-tables_LATER
submode/later
hub:join-tables
hub:simplify-complex-float-sidebars
Resolve IDML-specific float anchorings
hub:resolve-sidebar-floats
Resolve IDML-specific float anchorings
After identifying tables and figures, they may be moved out of their sidebars and the sidebars are dissolved.
hub:collect-continued-floats
Compares caption numbers of float objects and collects title and mediaobject into a figure or table element
todo: implementation for tables (no data to test with, yet)
hub:sort-figure-captions
If every figure caption is followed by a mediaobject, it may be assumed that the captions are consistently above the figures. In order to make hub:figure-captions work properly, the captions are pulled down, below each mediaobject.
hub:sort-table-captions
If every informaltable is followed by a caption, it may be assumed that the captions are consistently below the tables. In order to make hub:table-captions work properly, the captions are pulled up, above each table.
hub:join-phrases
hub:join-phrases-unwrap
submode
hub:phrase-signature
submode
hub:evolve-textreference-to-link
hub:figure-captions (figure-captions)
hub:figure-captions-preprocess-merge (figure-captions)
hub:join-links
hub:toc2
hub:toc2-pagenum
hub:special-paras
hub:special-phrases
hub:blockquotes
hub:split-at-tab
hub:postprocess-hierarchy
hub:upward-project-tab
submode
hub:right-tab-to-tables
Optional mode that creates two-columns informaltables with the role hub:right-tab of adjacent paras with right tabs. There is no preferred point in the pipeline when this mode should run. Maybe run it before lists. Requires that hub:split-at-tab has run before.
You can set a regex variable
hub:post-identifier-regex
to override the table creation and create an identifier instead. In this case it will be labeled as phrase @role = 'hub:post-identifier'.
hub:repair-hierarchy
hub:group-environments
hub:identifiers
hub:indexterms (relocate-indexterms)
hub:insert-caption-num-to-text-separator
hub:fix-floats-strip-num
hub:table-captions (table-captions)
hub:table-captions-preprocess-merge (table-captions)
hub:table-merge (table-merge)
hub:twipsify-lengths
hub:twipsify-lengths hub:expand-css-properties
hub:no-floats
hub:clean-hub
hub:tabs-to-indent (lists-by-indent)
Converts tabs and negative indents/left margins to attributes: @indent and @margin-left.
hub:handle-indent (lists-by-indent)
Creates ordered lists from paras whose @indent and @margin-left attributes match the list criteria and who have got an hub:identifier created in the mode hub:identifier.
You can overwrite the variable
hub:list-by-indent-exception-role-regex
to name paragraph style names that are excluded from the list generation.
With the xs:boolean function
hub:condition-that-stops-indenting-apart-from-role-regex
you can exlude further paras from this process. E.g. paras with tables inside, empty paras or using only list paras by list style.
hub:prepare-lists (lists-by-indent)
Pulls sub list items into preceding list item.
Detects consecutive list paras and sort them into preceding listitem
hub:lists (lists-by-indent)
Creates ordered, itemized or variable lists from the temporarily created orderd lists in hub:handle-indent.
There are several variables that can be overridden to specify lists of marks that are used to determine whether something is an itemized or ordered list. For example
hub:itemizedlist-mark-chars-regex
or
hub:orderedlist-mark-chars-regex
Indentations that are not recognized as lists are converted to blockquote with role hub:lists
hub:postprocess-lists (lists-by-indent)
Sets back some variable lists to ordered/itemized lists or even paras.
hub:ids
hub:aux
hub:aux-identifier
submode
hub:cross-link
hub:cross-link-resolve
hub:reorder-marginal-notes
hub:split-at-br
Split-at-br-elements
[Paras and simparas] with a descendant br are split at br and are transformed to a verse-group. The sequences between the br elements are put into a verse-line element.
The function
hub:specify-split-at-br-elements
can constrain the
Split-at-br-elements
in your adaptions.
The srcpath of the parent element is duplicated.
Also elements without br elements and whose parent is not one of annotation', 'entry', 'blockquote', 'figure', 'footnote', 'listitem' or 'table' are turned to a verse-group/verse-line when their ancestor is a poem. To determine the poem or other wanted context you should use the mode after hub:postprocess-hierarchy and override the function
hub:specify-split-at-br-context
determine which elements are handled.
hub:upward-project-br
submode
hub:apres-split-at-br
submode
hub:repair-float-ids

Input Ports

NameDocumentationConnections

source

parameters

stylesheet

Output Ports

NameDocumentationConnections

result

Options

NameDocumentationDefault

debug

'no'

debug-dir-uri

Subpipeline

StepInputsOutputsOptions

tr:xslt-mode d111e428

parameters

source parameters on evolve-hub

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/00'

mode = 'hub:split-at-tab'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e441

parameters

result on d111e428

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/01'

mode = 'hub:dissolve-sidebars-without-purpose'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e453

parameters

result on d111e441

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/02'

mode = 'hub:preprocess-hierarchy'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e465

parameters

result on d111e453

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/03'

mode = 'hub:hierarchy'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e477

parameters

result on d111e465

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/04'

mode = 'hub:postprocess-hierarchy'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e489

parameters

result on d111e477

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/12'

mode = 'hub:figure-captions'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e501

parameters

result on d111e489

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/13'

mode = 'hub:table-captions'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e513

parameters

result on d111e501

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/40'

mode = 'hub:repair-hierarchy'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e525

parameters

result on d111e513

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/41'

mode = 'hub:join-phrases'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e537

parameters

result on d111e525

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/42'

mode = 'hub:twipsify-lengths'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e549

parameters

result on d111e537

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/44'

mode = 'hub:identifiers'

debug = $debug

debug-dir-uri = $debug-dir-uri

hub:evolve-hub_lists-by-indent d111e561

parameters

result on d111e549

stylesheet

stylesheet on evolve-hub

result

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e571

parameters

result on d111e561

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/60'

mode = 'hub:ids'

debug = $debug

debug-dir-uri = $debug-dir-uri

tr:xslt-mode d111e583

parameters

result on d111e571

stylesheet

stylesheet on evolve-hub

models

p:empty

result

msg = 'yes'

hub-version = '1.1'

prefix = 'evolve-hub/90'

mode = 'hub:clean-hub'

debug = $debug

debug-dir-uri = $debug-dir-uri