aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-05-27 23:35:01 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:06:37 -0400
commit3e3a1a76ce4d0abe75277afb2937539fc0e9a4e6 (patch)
treef9dd8d19293c86d194b6a1e840f144e1819fb82c
parentreview, reduce use of auto (diff)
remove ./data for now, else relatively minor
-rw-r--r--data/COPYRIGHT1
-rw-r--r--data/pod/sisu-manual-0.3.3_/conf/sisu_document_make12
-rw-r--r--data/pod/sisu-manual-0.3.3_/media/text/en/sisu_markup.sst1961
-rw-r--r--data/pod/sisu-manual-0.4.0_/conf/sisu_document_make12
-rw-r--r--data/pod/sisu-manual-0.4.0_/media/text/en/sisu_markup.sst1961
-rw-r--r--org/default_misc.org1
-rw-r--r--org/default_paths.org29
-rw-r--r--org/doc_reform.org2
-rw-r--r--org/meta_abstraction.org518
-rw-r--r--org/meta_conf_make_meta.org182
-rwxr-xr-xsrc/doc_reform/doc_reform.d2
-rw-r--r--src/doc_reform/meta/conf_make_meta_json.d14
-rw-r--r--src/doc_reform/meta/conf_make_meta_structs.d168
-rw-r--r--src/doc_reform/meta/defaults.d1
-rw-r--r--src/doc_reform/meta/metadoc_from_src.d516
-rw-r--r--src/doc_reform/output/defaults.d1
-rw-r--r--src/doc_reform/source/paths_source.d29
17 files changed, 754 insertions, 4656 deletions
diff --git a/data/COPYRIGHT b/data/COPYRIGHT
deleted file mode 100644
index 8b13789..0000000
--- a/data/COPYRIGHT
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/data/pod/sisu-manual-0.3.3_/conf/sisu_document_make b/data/pod/sisu-manual-0.3.3_/conf/sisu_document_make
deleted file mode 100644
index 1e75412..0000000
--- a/data/pod/sisu-manual-0.3.3_/conf/sisu_document_make
+++ /dev/null
@@ -1,12 +0,0 @@
-[make]
-breaks = "break=1"
-home_button_text = "{doc-reform}http://doc-reform.org; {sources / git}http://git.sisudoc.org/; {SiSU}http://sisudoc.org"
-
-# footer = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-# home_button_text = "{sisu.png }http://sisudoc.org"
-
-links = [
- "{doc-reform}http://doc-reform.org",
- "{sources / git}http://git.sisudoc.org/",
- "{SiSU}http://sisudoc.org"
-]
diff --git a/data/pod/sisu-manual-0.3.3_/media/text/en/sisu_markup.sst b/data/pod/sisu-manual-0.3.3_/media/text/en/sisu_markup.sst
deleted file mode 100644
index f98ace8..0000000
--- a/data/pod/sisu-manual-0.3.3_/media/text/en/sisu_markup.sst
+++ /dev/null
@@ -1,1961 +0,0 @@
-# SiSU 8.0
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-
-[creator]
-author = "Amissah, Ralph"
-
-[date]
-created = "2002-08-28"
-issued = "2002-08-28"
-available = "2002-08-28"
-published = "2008-05-22"
-modified = "2012-10-03"
-
-[rights]
-copyright = "Copyright (C) Ralph Amissah 2007"
-license = "GPL 3 (part of SiSU documentation)"
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-
-[make]
-auto_num_top_at_level = "1"
-substitute = [
- [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-]
-#substitute = [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-bold = "Debian|SiSU"
-italics = "Linux|GPL|LaTeX|SQL"
-breaks = "new=:B; break=1"
-home_button_text = [
- "{doc-reform}http://doc-reform.org",
- "{sources / git}http://git.sisudoc.org/",
- "{SiSU}http://sisudoc.org"
-]
-footer = [
- "{SiSU}http://sisudoc.org",
- "{git}http://git.sisudoc.org"
-]
-
-# home_button_text = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-# footer = "{SiSU}http://sisudoc.org; {git}http://git.sisudoc.org"
-# substitute = "/[$]{2}[{]sisudoc[}]/,'www.sisudoc.org'"
-# substitute = "/${sisudoc}/,'www.sisudoc.org'"
-# home_button_image = "{won_benkler.png }http://cyber.law.harvard.edu/wealth_of_networks/Main_Page"
-
-:A~ @title @creator
-
-:B~ SiSU Markup
-={ SiSU markup:test }
-
-1~markup Introduction to SiSU Markup~{ From sometime after SiSU 0.58 it should be possible to describe SiSU markup using SiSU, which though not an original design goal is useful. }~
-
-2~ Summary
-
-SiSU source documents are plaintext (UTF-8)~{ files should be prepared using UTF-8 character encoding }~ files
-={ SiSU markup:description }
-
-All paragraphs are separated by an empty line.
-
-Markup is comprised of: *~markup-summary { * }#internal-links
-
-_* at the top of a document, the document header made up of semantic meta-data about the document and if desired additional processing instructions (such an instruction to automatically number headings from a particular level down)
-
-_* followed by the prepared substantive text of which the most important single characteristic is the markup of different heading levels, which define the primary outline of the document structure. Markup of substantive text includes:
-
-_1* heading levels defines document structure
-
-_1* text basic attributes, italics, bold etc.
-
-_1* grouped text (objects), which are to be treated differently, such as code blocks or poems.
-
-_1* footnotes/endnotes
-
-_1* linked text and images
-
-_1* paragraph actions, such as indent, bulleted, numbered-lists, etc.
-
-2~ Markup Rules, document structure and metadata requirements
-={ SiSU markup:rules and requirements }
-
-minimal content/structure requirement, minimum being:
-
-[metadata]
-
-``` code
-title "SiSU" \
- subtitle="Markup"
-
-creator \
- author="Amissah, Ralph"
-```
-
-[levels]
-
-``` code
-A~ (level A [title])
-
-1~ (at least one level 1 [segment/(chapter)])
-```
-={ output:code markup example;SiSU markup output:code block (tic syntax);code block:tic syntax }
-
-structure rules (document heirarchy, heading levels):
-
-there are two sets of heading levels ABCD (title & parts if any) and 123 (segment & subsegments if any)
-={ SiSU markup:heading levels }
-
-sisu has the fllowing levels:
-
-``` code
-A~ [title]
- required (== 1) followed by B~ or 1~
-B~ [part]
- followed by C~ or 1~
-C~ [subpart]
- followed by D~ or 1~
-D~ [subsubpart]
- followed by 1~
-1~ [segment (chapter)]
- required (>= 1) followed by text or 2~
-text
- followed by more text or 1~, 2~
- or relevant part
-2~ [subsegment]
- followed by text or 3~
-text
- followed by more text or 1~, 2~ or 3~
- or relevant part
-3~ [subsubsegment]
- followed by text
-text
- followed by more text or 1~, 2~ or 3~ or relevant part, see *()
-```
-
-Rules:
-
-``` code
-- level A~ is the title and is mandatory
-- there can only be one level A~
-- heading levels BCD, are optional and there may be several of each
- (where all three are used corresponding to e.g. Book Part Section)
- - sublevels that are used must follow each other sequentially
- (alphabetically),
-- heading levels A~ B~ C~ D~ are followed by other heading levels rather
- than substantive text
- which may be the subsequent sequential (alphabetic) heading part level
- or a heading (segment) level 1~
-- there must be at least one heading (segment) level 1~
- (the level on which the text is segmented, in a book would correspond
- to the Chapter level)
-- additional heading levels 1~ 2~ 3~ are optional and there may be several
- of each
-- heading levels 1~ 2~ 3~ are followed by text (which may be followed by
- the same heading level)
- and/or the next lower numeric heading level (followed by text)
- or indeed return to the relevant part level
- (as a corollary to the rules above substantive text/ content
- must be preceded by a level 1~ (2~ or 3~) heading)
-```
-
-2~ Markup Examples
-={ SiSU markup:locating examples }
-
-3~ Online
-={ SiSU markup:examples online }
-
-Online markup examples are available together with the respective outputs produced from http://www.jus.uio.no/sisu/SiSU/examples.html or from http://www.jus.uio.no/sisu/sisu_examples/
-
-There is of course this document, which provides a cursory overview of sisu markup and the respective output produced: http://www.jus.uio.no/sisu/sisu_markup/
-
-an alternative presentation of markup syntax: /usr/share/doc/sisu/on_markup.txt.gz
-
-3~ Installed
-={ SiSU markup:examples installed }
-
-With SiSU installed sample skins may be found in: /usr/share/doc/sisu/markup-samples (or equivalent directory) and if sisu-markup-samples is installed also under: /usr/share/doc/sisu/markup-samples-non-free
-
-1~headers Markup of Headers
-={ SiSU markup:headers}
-
-Headers contain either: semantic meta-data about a document, which can be used by any output module of the program, or; processing instructions.
-
-Note: the first line of a document may include information on the markup version used in the form of a comment. Comments are a percentage mark at the start of a paragraph (and as the first character in a line of text) followed by a space and the comment:
-
-code{
-
-% this would be a comment
-
-}code
-={ output:code markup example;SiSU markup output:code block (curly brace syntax);code block:curly brace syntax }
-
-2~ Sample Header
-={ SiSU markup:sample header}
-
-This current document is loaded by a master document that has a header similar to this one:
-
-``` code
-# SiSU 8.0
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-
-[creator]
-author = "Amissah, Ralph"
-
-[date]
-created = "2002-08-28"
-issued = "2002-08-28"
-available = "2002-08-28"
-published = "2008-05-22"
-modified = "2012-10-03"
-
-[rights]
-copyright = "Copyright (C) Ralph Amissah 2007"
-license = "GPL 3 (part of SiSU documentation)"
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-```
-
-Looking back a bit:
-
-code{
-
-# SiSU master 8.0
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-
-[creator]
-author = "Amissah, Ralph"
-
-[date]
-created = "2002-08-28"
-issued = "2002-08-28"
-available = "2002-08-28"
-published = "2008-05-22"
-modified = "2012-10-03"
-
-[rights]
-copyright = "Copyright (C) Ralph Amissah 2007"
-license = "GPL 3 (part of SiSU documentation)"
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-
-[make]
-auto_num_top_at_level = "1"
-substitute = [
- [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-]
-bold = "Debian|SiSU"
-italics = "Linux|GPL|LaTeX|SQL"
-breaks = "new=:B; break=1"
-home_button_text = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-footer = "{SiSU}http://sisudoc.org; {git}http://git.sisudoc.org"
-
-}code
-
-2~ Available Headers
-={ SiSU markup:headers available }
-
-Header tags appear at the beginning of a document and provide meta information on the document (such as the Dublin Core), or information as to how the document as a whole is to be processed. All header instructions take the form @headername: or on the next line and indented by once space :subheadername: All Dublin Core meta tags are available
-
-!_ @identifier:
-information or instructions
-
-where the "identifier" is a tag recognised by the program, and the "information" or "instructions" belong to the tag/identifier specified
-
-Note: a header where used should only be used once; all headers apart from @title: are optional; the @structure: header is used to describe document structure, and can be useful to know.
-
-This is a sample header
-
-% (Dublin Core in fuschia, other information headers in cyan, markup instructions in red):
-
-code{
-
-# SiSU 8.0
-
-}code
-
-code{
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-language = "English"
-
-}code
-
-code{
-
-[creator]
-author = [Lastname, First names]
-illustrator = [Lastname, First names]
-translator = [Lastname, First names]
-prepared_by = [Lastname, First names]
-
-}code
-
-code{
-
-[date]
-created = [year or yyyy-mm-dd]
-issued = [year or yyyy-mm-dd]
-available = [year or yyyy-mm-dd]
-published = [year or yyyy-mm-dd]
-modified = [year or yyyy-mm-dd]
-valid = [year or yyyy-mm-dd]
-added_to_site = [year or yyyy-mm-dd]
-translated = [year or yyyy-mm-dd]
-
-}code
-
-code{
-
-[rights]
-copyright = "Copyright (C) [Year and Holder]"
-license = "[Use License granted]"
-text = "[Name, Year]"
-translation = "[Name, Year]"
-illustrations = "[Name, Year]"
-
-# check rest
-
-}code
-
-code{
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-keywords = "list"
-loc = "[Library of Congress classification]"
-dewey = "[Dewey classification]"
-
-}code
-
-code{
-
-[identify]
-isbn = "[ISBN]"
-oclc = ""
-
-}code
-
-
-code{
-
-links = [
- "{SiSU }http://www.sisudoc.org",
- "{ FSF }http://www.fsf.org",
-]
-
-}code
-
-code{
-
-[make]
-auto_num_top_at_level = "1"
-substitute = [
- [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-]
-bold = "Debian|SiSU" # [regular expression of words/phrases to be made bold]
-italics = "Linux|GPL|LaTeX|SQL" # [regular expression of words/phrases to italicise]
-breaks = "new=:B; break=1"
-home_button_text = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-footer = "{SiSU}http://sisudoc.org; {git}http://git.sisudoc.org"
-headings = text to match for each level
- (e.g. PART; Chapter; Section; Article; or another: none; BOOK|FIRST|SECOND; none; CHAPTER;)
-
-}code
-
-% [original]
-% language = [language]
-
-% [notes]
-% comment:
-% prefix: [prefix is placed just after table of contents]
-
-% header ends here, NB only @title: is mandatory [this would be a comment]
-% NOTE: headings/levels below refer to 0.38 expermental markup (a conversion script provided in sisu-examples, modify.rb makes conversion between 0.37 and 0.38 markup simple)
-
-1~ Markup of Substantive Text
-={ SiSU markup:substantive text }
-
-2~heading_levels Heading Levels
-={ SiSU markup:heading levels }
-
-Heading levels are :A~ ,:B~ ,:C~ ,1~ ,2~ ,3~ ... :A - :C being part / section headings, followed by other heading levels, and 1 -6 being headings followed by substantive text or sub-headings. :A~ usually the title :A~? conditional level 1 heading (used where a stand-alone document may be imported into another)
-
-!_ :A~ [heading text]
-Top level heading [this usually has similar content to the title @title: ]
-NOTE: the heading levels described here are in 0.38 notation, see heading
-
-!_ :B~ [heading text]
-Second level heading [this is a heading level divider]
-
-!_ :C~ [heading text]
-Third level heading [this is a heading level divider]
-
-!_ 1~ [heading text]
-Top level heading preceding substantive text of document or sub-heading 2, the heading level that would normally be marked 1. or 2. or 3. etc. in a document, and the level on which sisu by default would break html output into named segments, names are provided automatically if none are given (a number), otherwise takes the form 1~my_filename_for_this_segment
-
-!_ 2~ [heading text]
-Second level heading preceding substantive text of document or sub-heading 3 , the heading level that would normally be marked 1.1 or 1.2 or 1.3 or 2.1 etc. in a document.
-
-!_ 3~ [heading text]
-Third level heading preceding substantive text of document, that would normally be marked 1.1.1 or 1.1.2 or 1.2.1 or 2.1.1 etc. in a document
-
-code{
-
-1~filename level 1 heading,
-
-% the primary division such as Chapter that is followed by substantive text, and may be further subdivided (this is the level on which by default html segments are made)
-
-}code
-
-2~ Font Attributes
-={ SiSU markup:font attributes }
-
-!_ markup example:
-
-code{
-
-normal text, *{emphasis}*, !{bold text}!, /{italics}/, _{underscore}_, "{citation}",
-^{superscript}^, ,{subscript},, +{inserted text}+, -{strikethrough}-, #{monospace}#
-
-normal text
-
-*{emphasis}* [note: can be configured to be represented by bold, italics or underscore]
-
-!{bold text}!
-
-/{italics}/
-
-_{underscore}_
-
-"{citation}"
-
-^{superscript}^
-
-,{subscript},
-
-+{inserted text}+
-
--{strikethrough}-
-
-#{monospace}#
-
-}code
-
-!_ resulting output:
-
-normal text, *{emphasis}*, !{bold text}!, /{italics}/, _{underscore}_, "{citation}",
-^{superscript}^, ,{subscript},, +{inserted text}+, -{strikethrough}-, #{monospace}#
-
-normal text
-
-*{emphasis}* [note: can be configured to be represented by bold, italics or underscore]
-
-!{bold text}!
-
-/{italics}/
-
-_{underscore}_
-
-"{citation}"
-
-^{superscript}^
-
-,{subscript},
-
-+{inserted text}+
-
--{strikethrough}-
-
-#{monospace}#
-
-2~ Indentation and bullets
-={ SiSU markup:indentation and bullets }
-
-!_ markup example:
-={ SiSU markup:indentation }
-
-code{
-
-ordinary paragraph
-
-_1 indent paragraph one step
-
-_2 indent paragraph two steps
-
-_9 indent paragraph nine steps
-
-}code
-
-!_ resulting output:
-
-ordinary paragraph
-
-_1 indent paragraph one step
-
-_2 indent paragraph two steps
-
-_9 indent paragraph nine steps
-
-!_ markup example:
-={ SiSU markup:bullets }
-
-code{
-
-_* bullet text
-
-_1* bullet text, first indent
-
-_2* bullet text, two step indent
-
-}code
-
-!_ resulting output:
-
-_* bullet text
-
-_1* bullet text, first indent
-
-_2* bullet text, two step indent
-
-Numbered List (not to be confused with headings/titles, (document structure))
-
-!_ markup example:
-
-code{
-
-# numbered list numbered list 1., 2., 3, etc.
-
-_# numbered list numbered list indented a., b., c., d., etc.
-
-}code
-
-2~ Hanging Indents
-={ SiSU markup:hanging indents;indented text:hanging }
-
-!_ markup example:
-
-code{
-
-_0_1 first line no indent,
-rest of paragraph indented one step
-
-_1_0 first line indented,
-rest of paragraph no indent
-
-in each case level may be 0-9
-
-}code
-
-!_ resulting output:
-
-_0_1 first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step;
-
-A regular paragraph.
-
-_1_0 first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent
-
-in each case level may be 0-9
-
-_0_1 *{live-build}* A collection of scripts used to build customized Debian Livesystems. /{live-build}/ was formerly known as live-helper, and even earlier known as live-package.
-
-_0_1 *{live-build}* \\
-A collection of scripts used to build customized Debian Livesystems. /{live-build}/ was formerly known as live-helper, and even earlier known as live-package.
-
-2~ Footnotes / Endnotes
-={ SiSU markup:hanging indents;footnotes;endnotes }
-
-Footnotes and endnotes are marked up at the location where they would be indicated within a text. They are automatically numbered. The output type determines whether footnotes or endnotes will be produced
-
-!_ markup example:
-
-code{
-
-~{ a footnote or endnote }~
-
-}code
-
-!_ resulting output:
-
-~{ a footnote or endnote }~
-
-!_ markup example:
-
-code{
-
-normal text~{ self contained endnote marker & endnote in one }~ continues
-
-}code
-
-!_ resulting output:
-
-normal text~{ self contained endnote marker & endnote in one }~ continues
-
-!_ markup example:
-
-code{
-
-normal text ~{* unnumbered asterisk footnote/endnote, insert multiple asterisks if required }~ continues
-
-normal text ~{** another unnumbered asterisk footnote/endnote }~ continues
-
-}code
-
-!_ resulting output:
-
-normal text ~{* unnumbered asterisk footnote/endnote, insert multiple asterisks if required }~ continues
-
-normal text ~{** another unnumbered asterisk footnote/endnote }~ continues
-
-!_ markup example:
-
-code{
-
-normal text ~[* editors notes, numbered asterisk footnote/endnote series ]~ continues
-
-normal text ~[+ editors notes, numbered plus symbol footnote/endnote series ]~ continues
-
-}code
-
-!_ resulting output:
-
-normal text ~[* editors notes, numbered asterisk footnote/endnote series ]~ continues
-
-normal text ~[+ editors notes, numbered plus symbol footnote/endnote series ]~ continues
-
-!_ [discontinued] Alternative binary endnote notation (endnote pair) for footnotes/endnotes:
-
-code{
-
-% note the endnote marker "~^"
-
-normal text~^ continues
-
-^~ endnote text following the paragraph in which the marker occurs
-
-}code
-
-standard (inline) and pair (binary) notation could not be mixed in the same document.
-
-The reason binary notation was provided as an option was for the conversion of documents to sisu markup. Many documents were prepared in such a way that endnotes had been previously marked up in a binary fashion, and this provided a convenient and faster way to make the document conversion, just reflect those markup practices. The reason it has been dropped is it adds a slowing step to something that needs to be done at most once and it prove to be flakey, unnecessarily so even when kept under version control. It is preferable to do a two step conversion of the previously marked up document to sisu: first to the binary/paired footnote markup, then; convert it to the proper form of inline endnote markup with a dedicated helper conversion program, keeping the resulting properly marked up text.
-
-2~ Links
-={ SiSU markup:links (text, images);links:images|text }
-
-3~ Naked URLs within text, dealing with urls
-
-urls found within text are marked up automatically. A url within text is automatically hyperlinked to itself and by default decorated with angled braces, unless they are contained within a code block (in which case they are passed as normal text), or escaped by a preceding underscore (in which case the decoration is omitted).
-
-!_ markup example:
-
-code{
-
-normal text http://www.sisudoc.org/ continues
-
-}code
-
-!_ resulting output:
-
-normal text http://www.sisudoc.org/ continues
-
-An escaped url without decoration
-
-!_ markup example:
-
-code{
-
-normal text _http://www.sisudoc.org/ continues
-
-deb _http://www.jus.uio.no/sisu/archive unstable main non-free
-
-}code
-
-!_ resulting output:
-
-normal text _http://www.sisudoc.org/ continues
-
-deb _http://www.jus.uio.no/sisu/archive unstable main non-free
-
-where a code block is used there is neither decoration nor hyperlinking, code blocks are discussed later in this document
-
-!_ resulting output:
-
-code{
-
-deb http://www.jus.uio.no/sisu/archive unstable main non-free
-deb-src http://www.jus.uio.no/sisu/archive unstable main non-free
-
-}code
-
-3~link_text Linking Text
-={ SiSU markup:links (text);links:text }
-
-To link text or an image to a url the markup is as follows
-
-!_ markup example:
-
-code{
-
-about { SiSU }http://url.org markup
-
-}code
-
-!_ resulting output:
-
-about { SiSU }http://www.sisudoc.org/ markup
-
-A shortcut notation is available so the url link may also be provided automatically as a footnote
-
-!_ markup example:
-
-code{
-
-about {~^ SiSU }http://url.org markup
-
-}code
-
-!_ resulting output:
-
-about {~^ SiSU }http://www.sisudoc.org/ markup
-
-Internal document links to a named (anchor) tagged location, including named headings named inline anchor tags *~an-inline-anchor-tag or an ocn
-the heading:
-
-code{
-
-1~markup Markup
-
-}code
-
-can be linked to as follows:
-
-code{
-
-to find out more see { Markup }#markup
-
-}code
-
-to find out more see { Markup }#markup
-
-an inline anchor tag is made with the following markup *~internal-links
-
-code{
-
-named inline anchor tags *~an-inline-anchor-tag
-
-}code
-
-and linked to the same way
-
-code{
-
-the link { an inline anchor tag }#an-inline-anchor-tag
-
-}code
-
-the link { an inline anchor tag }#an-inline-anchor-tag or to another part of the document: { markup summary }#markup-summary
-
-!_ markup example:
-
-code{
-
-about { text links }#link_text
-
-}code
-
-!_ resulting output:
-
-about { text links }#link_text
-
-Shared document collection link
-
-!_ markup example:
-
-code{
-
-about { SiSU book markup examples }:SiSU/examples.html
-
-}code
-
-!_ resulting output:
-
-about { SiSU book markup examples }:SiSU/examples.html
-
-3~ Linking Images
-={ SiSU markup:links (images);links:images }
-
-!_ markup example:
-
-code{
-
-{ sm_tux.png 64x80 }image
-
-% various url linked images
-
-{sm_tux.png 64x80 "a better way" }http://www.sisudoc.org/
-
-{sm_GnuDebianLinuxRubyBetterWay.png 100x101 "Way Better - with Gnu/Linux, Debian and Ruby" }http://www.sisudoc.org/
-
-{~^ sm_ruby_logo.png "Ruby" }http://www.ruby-lang.org/en/
-
-}code
-
-!_ resulting output:
-
-{ sm_tux.png }image
-
-{ sm_tux.png 64x80 }image
-
-{ sm_tux.png 64x80 "test" }image
-
-{ sm_tux.png }http://www.sisudoc.org/
-
-{ sm_tux.png 64x80 }http://www.sisudoc.org/
-
-{ sm_tux.png 64x80 "Gnu/Linux - a better way" }http://www.sisudoc.org/
-
-{ sm_GnuDebianLinuxRubyBetterWay.png 100x101 "Way Better - with Gnu/Linux, Debian and Ruby" }http://www.sisudoc.org/
-
-{~^ sm_ruby_logo.png "Ruby" }http://www.ruby-lang.org/en/
-
-{ sm_d_image.jpg 82x128 "D for me" }https://github.com/dlang-community/d-mans
-
-{~^ sm_d_strip.png "D, hey no fair" }https://github.com/dlang-community/d-mans
-
-!_ linked url footnote shortcut
-
-code{
-
-{~^ [text to link] }http://url.org
-
-% maps to: { [text to link] }http://url.org ~{ http://url.org }~
-
-% which produces hyper-linked text within a document/paragraph, with an endnote providing the url for the text location used in the hyperlink
-
-}code
-
-code{
-
-text marker *~name
-
-}code
-
-note at a heading level the same is automatically achieved by providing names to headings 1, 2 and 3 i.e. 2~[name] and 3~[name] or in the case of auto-heading numbering, without further intervention.
-
-3~ Link shortcut for multiple versions of a sisu document in the same directory tree
-
-!_ markup example:
-
-code{
-
-!_ /{"Viral Spiral"}/, David Bollier
-
-{ "Viral Spiral", David Bollier [3sS]}viral_spiral.david_bollier.sst
-
-}code
-
-
-!_ /{"Viral Spiral"}/, David Bollier
-
-{ "Viral Spiral", David Bollier [3sS]}viral_spiral.david_bollier.sst
-
-2~ Grouped Text / blocked text
-={ SiSU markup:grouped text;grouped text;blocked text;text blocks }
-
-There are two markup syntaxes for blocked text, using curly braces or using tics
-
-3~ blocked text curly brace syntax
-={ SiSU markup:grouped text;grouped text:curly brace syntax;blocked text:curly brace syntax;text blocks:curly brace syntax }
-
-at the start of a line on its own use name of block type with an opening curly brace, follow with the content of the block, and close with a closing curly brace and the name of the block type, e.g.
-
-``` code
-code{
-
-this is a code block
-
-}code
-```
-
-``` code
-poem{
-
-this here is a poem
-
-}poem
-```
-
-3~ blocked text tic syntax
-={ SiSU markup:grouped text;grouped text:tic syntax;blocked text:tic syntax;text blocks:tic syntax }
-
-code{
-
-``` code
-this is a code block
-```
-
-``` poem
-this here is a poem
-```
-
-}code
-
-start a line with three backtics, a space followed by the name of the name of block type, follow with the content of the block, and close with three back ticks on a line of their own, e.g.
-
-3~ Group
-={ SiSU markup:group text;group text }
-
-The "group" is different from the "block" mark in that "group" does not preserve whitespace, the "block" mark does. The text falling within the block is a single object.
-
-!_ basic markup:
-
-code{
-
-group{
-
- Your grouped text here
-
-}group
-
-A group is treated as an object and given a single object number.
-
-}code
-
-!_ resulting group text output:
-
-group{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."~{ endnote test }~
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole~{ stress test }~
- cause,
- and
- condemn
- you
- to
- death."'
-
-}group
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-!_ resulting group text output:
-
-group{
-
-The Road Not Taken Related Poem Content Details
-
-BY ROBERT FROST
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-
-}group
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-3~ Block
-={ SiSU markup:block text;block text }
-
-The "block" is different from the "group" mark in that the "block" mark (like the "poem" mark) preserves whitespace, the "group" mark does not. The text falling within the "block" is a single object, which is different from the "poem" mark where each identified verse is an object.
-
-!_ basic markup:
-
-code{
-
-block{
-
- Your block text here
-
-}block
-
-A block is treated as an object and given a single object number.
-
-}code
-
-!_ resulting block text output:
-
-block{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."~{ endnote test }~
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole~{ stress test }~
- cause,
- and
- condemn
- you
- to
- death."'
-
-}block
-={ output:block block markup example;SiSU markup output:block block (curly brace syntax) }
-
-block{
-
-The Road Not Taken Related Poem Content Details
-
-BY ROBERT FROST
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-
-}block
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-3~ Poem
-={ SiSU markup:poem;poems }
-
-The "poem" mark like the "block" preserves whitespace. Text followed by two newlines are identified as verse and each verse is an object i.e. a poem may consist of multiple verse each of which is identified as an object, unlike a text "block" which is identified as a single object.
-
-!_ basic markup:
-
-code{
-
-poem{
-
- Your poem here
-
-}poem
-
-Each verse in a poem is given an object number.
-
-}code
-
-!_ curly brace delimiter, resulting group text output:
-
-poem{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole
- cause,
- and
- condemn
- you
- to
- death."'
-}poem
-
-% ={ output:poem markup example;SiSU markup output:poem (curly brace syntax) }
-
-!_ curly brace delimiter, resulting group text output:
-
-poem{
-
-*{The Road Not Taken}*~{ published in 1916 as the first poem in the collection Mountain Interval. }~
-
-by Robert Frost
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-
-}poem
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-!_ tics delimiter, resulting group text output:
-
-``` poem
-!{The Road Not Taken}!~{ published in 1916 as the first poem in the collection Mountain Interval. }~
-
-by Robert Frost
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-```
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-3~ Code
-={ SiSU markup:code block;code block }
-
-"Code" blocks are a single text object, in which the original text is preserved.
-
-Code tags #{ code{ ... }code }# (used as with other group tags described above) are used to escape regular sisu markup, and have been used extensively within this document to provide examples of SiSU markup. You cannot however use code tags to escape code tags. They are however used in the same way as group or poem tags.
-
-A code-block is treated as an object and given a single object number. [an option to number each line of code may be considered at some later time]
-
-!_ use of code tags instead of poem compared, resulting output:
-
-code{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole
- cause,
- and
- condemn
- you
- to
- death."'
-
-}code
-
-From SiSU 2.7.7 on you can number codeblocks by placing a hash after the opening code tag #{ code{# }# as demonstrated here:
-
-code{#
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole
- cause,
- and
- condemn
- you
- to
- death."'
-
-}code
-={ output:code markup example;SiSU markup output:code block (curly brace syntax);code block:curly brace syntax }
-
-3~ Tables
-={ SiSU markup:tables;tables }
-
-Tables may be prepared in two either of two forms
-
-!_ markup example:
-
-code{
-
-table{ c3; 40; 30; 30;
-
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-
-}table
-
-}code
-
-!_ resulting output:
-
-table{ c3; 40; 30; 30;
-
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-
-}table
-
-% ={ output:table markup example;SiSU markup output:table (curly brace syntax) }
-
-Same as a tic table
-
-``` table c3; 40; 30; 30;
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-```
-
-Without instruction
-
-``` table
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-```
-
-a second form may be easier to work with in cases where there is not much information in each column
-
-*{markup example:}*~{ Table from the Wealth of Networks by Yochai Benkler \\ http://www.jus.uio.no/sisu/the_wealth_of_networks.yochai_benkler }~
-
-code{
-
-!_ Table 3.1: Contributors to Wikipedia, January 2001 - June 2005
-
-{table~h 24; 12; 12; 12; 12; 12; 12;}
- |Jan. 2001|Jan. 2002|Jan. 2003|Jan. 2004|July 2004|June 2006
-Contributors* | 10| 472| 2,188| 9,653| 25,011| 48,721
-Active contributors** | 9| 212| 846| 3,228| 8,442| 16,945
-Very active contributors*** | 0| 31| 190| 692| 1,639| 3,016
-No. of English language articles| 25| 16,000| 101,000| 190,000| 320,000| 630,000
-No. of articles, all languages | 25| 19,000| 138,000| 490,000| 862,000|1,600,000
-
-* Contributed at least ten times; ** at least 5 times in last month; *** more than 100 times in last month.
-
-}code
-
-!_ resulting output:
-
-
-!_ Table 3.1: Contributors to Wikipedia, January 2001 - June 2005
-
-{table~h 24; 12; 12; 12; 12; 12; 12;}
- |Jan. 2001|Jan. 2002|Jan. 2003|Jan. 2004|July 2004|June 2006
-Contributors* | 10| 472| 2,188| 9,653| 25,011| 48,721
-Active contributors** | 9| 212| 846| 3,228| 8,442| 16,945
-Very active contributors*** | 0| 31| 190| 692| 1,639| 3,016
-No. of English language articles| 25| 16,000| 101,000| 190,000| 320,000| 630,000
-No. of articles, all languages | 25| 19,000| 138,000| 490,000| 862,000|1,600,000
-
-* Contributed at least ten times; ** at least 5 times in last month; *** more than 100 times in last month.
-
-% code{
-
-% test
-
-% ~#
-
-% % unnumbered paragraph (place marker at end of paragraph)
-
-% -#
-
-% % unnumbered paragraph, delete when not required (place marker at end of paragraph) [used in dummy headings, eg. for segmented html]
-
-% % add a comment to text, that will be removed prior to processing (place marker at beginning of line)
-
-% }code
-
-2~ Additional breaks - linebreaks within objects, column and page-breaks
-={ SiSU markup:breaks (page and line);breaks }
-
-3~ line-breaks
-={ SiSU markup:line break;line break }
-
-To break a line within a "paragraph object", two backslashes \\\\ \\ with a space before and a space or newline after them \\ may be used.
-
-code{
-
-To break a line within a "paragraph object",
-two backslashes \\ with a space before
-and a space or newline after them \\
-may be used.
-
-}code
-
-The html break br enclosed in angle brackets (though undocumented) is available in versions prior to 3.0.13 and 2.9.7 (it remains available for the time being, but is depreciated).
-
-To draw a dividing line dividing paragraphs, see the section on page breaks.
-
-3~ page breaks
-={ SiSU markup:page break;page break }
-
-Page breaks are only relevant and honored in some output formats. A page break or a new page may be inserted manually using the following markup on a line on its own:
-
-page new =\\= breaks the page, starts a new page.
-
-page break -\\- breaks a column, starts a new column, if using columns, else breaks the page, starts a new page.
-
-page break line across page -..- draws a dividing line, dividing paragraphs
-
-page break:
-
-code{
-
--\\-
-
-}code
-
-page (break) new:
-
-code{
-
-=\\=
-
-}code
-
-page (break) line across page (dividing paragraphs):
-
-code{
-
--..-
-
-}code
-
-
-2~ Excluding Object Numbers
-
-Object numbers can be switched off by adding a ~# to the end of a text object.
-
-Sometimes it is wished to switch off object numbers for a larger group of text. In this case it is possible before the group, body of text to be without object numbers on a new line with nothing else on it to open the un-numbered object block with --~# and to close the un-numbered block, and restart object numbering with on a similarly otherwise empty new-line with --+#
-
-code{
-
---~#
-
-un-numbered object block of text contained here
-
-still un-numbered
-
---+#
-
-object numbering returns here and for subsequent text objects
-
-to switch of object numbering for a single objct, to the end of the object add ~# like so:~#
-
-}code
-
-2~ Bibliography / References
-={ SiSU markup:references|bibliography|citations;references }
-
-There are three ways to prepare a bibliography using sisu (which are mutually exclusive): (i) manually preparing and marking up as regular text in sisu a list of references, this is treated as a regular document segment (and placed before endnotes if any); (ii) preparing a bibliography, marking a heading level 1~!biblio (note the exclamation mark) and preparing a bibliography using various metadata tags including for author: title: year: a list of which is provided below, or; (iii) as an assistance in preparing a bibliography, marking a heading level 1~!biblio and tagging citations within footnotes for inclusion, identifying citations and having a parser attempt to extract them and build a bibliography of the citations provided.
-
-For the heading/section sequence: endnotes, bibliography then book index to occur, the name biblio or bibliography must be given to the bibliography section, like so:
-
-code{
-
-1~!biblio
-
-}code
-
-3~ a markup tagged metadata bibliography section
-
-Here instead of writing your full citations directly in footnotes, each time you have new material to cite, you add it to your bibliography section (if it has not been added yet) providing the information you need against an available list of tags (provided below).
-
-The required tags are au: ti: and year: ~{for which you may alternatively use the full form author: title: and year: }~ an short quick example might be as follows:
-
-code{
-
-1~!biblio
-
-au: von Hippel, E.
-ti: Perspective: User Toolkits for Innovation
-lng: (language)
-jo: Journal of Product Innovation Management
-vo: 18
-ed: (editor)
-yr: 2001
-note:
-sn: Hippel, /{User Toolkits}/ (2001)
-id: vHippel_2001
-% form:
-
-au: Benkler, Yochai
-ti: The Wealth of Networks
-st: How Social Production Transforms Markets and Freedom
-lng: (language)
-pb: Harvard University Press
-edn: (edition)
-yr: 2006
-pl: U.S.
-url: http://cyber.law.harvard.edu/wealth_of_networks/Main_Page
-note:
-sn: Benkler, /{Wealth of Networks}/ (2006)
-id: Benkler2006
-
-au: Quixote, Don; Panza, Sancho
-ti: Taming Windmills, Keeping True
-jo: Imaginary Journal
-yr: 1605
-url: https://en.wikipedia.org/wiki/Don_Quixote
-note: made up to provide an example of author markup for an article with two authors
-sn: Quixote & Panza, /{Taming Windmills}/ (1605)
-id: quixote1605
-
-}code
-
-Note that the section name !biblio (or !bibliography) is required for the bibliography to be treated specially as such, and placed after the auto-generated endnote section.
-
-Using this method, work goes into preparing the bibliography, the tags author or editor, year and title are required and will be used to sort the bibliography that is placed under the Bibliography section
-
-The metadata tags may include shortname (sn:) and id, if provided, which are used for substitution within text. Every time the given id is found within the text it will be replaced by the given short title of the work (it is for this reason the short title has sisu markup to italicize the title), it should work with any page numbers to be added, the short title should be one that can easily be used to look up the full description in the bibliography.
-
-code{
-
-The following footnote~{ quixote1605, pp 1000 - 1001, also Benkler2006 p 1. }~
-
-}code
-
-would be presented as:
-
-Quixote and Panza, /{Taming Windmills}/ (1605), pp 1000 - 1001 also, Benkler, /{Wealth of Networks}/, (2006) p 1 or rather~{ Quixote and Panza, /{Taming Windmills}/ (1605), pp 1000 - 1001 also, Benkler, /{Wealth of Networks}/ (2006), p 1 }~
-
-code{
-
-au: author Surname, FirstNames (if multiple semi-colon separator)
- (required unless editor to be used instead)
-ti: title (required)
-st: subtitle
-jo: journal
-vo: volume
-ed: editor (required if author not provided)
-tr: translator
-src: source (generic field where others are not appropriate)
-in: in (like src)
-pl: place/location (state, country)
-pb: publisher
-edn: edition
-yr: year (yyyy or yyyy-mm or yyyy-mm-dd) (required)
-pg: pages
-url: http://url
-note: note
-id: create_short_identifier e.g. authorSurnameYear
- (used in substitutions: when found within text will be
- replaced by the short name provided)
-sn: short name e.g. Author, /{short title}/, Year
- (used in substitutions: when an id is found within text
- the short name will be used to replace it)
-
-}code
-
-3~ Tagging citations for inclusion in the Bibliography
-
-Here whenever you make a citation that you wish be included in the bibliography, you tag the citation as such using special delimiters (which are subsequently removed from the final text produced by sisu)
-
-Here you would write something like the following, either in regular text or a footnote
-
-code{
-
-See .: Quixote, Don; Panza, Sancho /{Taming Windmills, Keeping True}/ (1605) :.
-
-}code
-
-SiSU will parse for a number of patterns within the delimiters to try make out the authors, title, date etc. and from that create a Bibliography. This is more limited than the previously described method of preparing a tagged bibliography, and using an id within text to identify the work, which also lends itself to greater consistency.
-
-2~ Glossary
-={ SiSU markup:glossary|Glossary }
-
-Using the section name 1~!glossary results in the Glossary being treated specially as such, and placed after the auto-generated endnote section (before the bibliography/list of references if there is one).
-
-The Glossary is ordinary text marked up in a manner deemed suitable for that purpose. e.g. with the term in bold, possibly with a hanging indent.
-
-code{
-
-1~!glossary
-
-_0_1 *{GPL}* An abbreviation that stands for "General Purpose License." ...
-
-_0_1 [provide your list of terms and definitions]
-
-}code
-
-In the given example the first line is not indented subsequent lines are by one level, and the term to be defined is in bold text.
-
-2~ Book index
-={ SiSU markup:book index;book index }
-
-To make an index append to paragraph the book index term relates to it, using an equal sign and curly braces.
-
-Currently two levels are provided, a main term and if needed a sub-term. Sub-terms are separated from the main term by a colon.
-
-code{
-
- Paragraph containing main term and sub-term.
- ={Main term:sub-term}
-
-}code
-
-The index syntax starts on a new line, but there should not be an empty line between paragraph and index markup.
-
-The structure of the resulting index would be:
-
-code{
-
- Main term, 1
- sub-term, 1
-
-}code
-
-Several terms may relate to a paragraph, they are separated by a semicolon. If the term refers to more than one paragraph, indicate the number of paragraphs.
-
-code{
-
- Paragraph containing main term, second term and sub-term.
- ={first term; second term: sub-term}
-
-}code
-
-The structure of the resulting index would be:
-
-code{
-
- First term, 1,
- Second term, 1,
- sub-term, 1
-
-}code
-
-If multiple sub-terms appear under one paragraph, they are separated under the main term heading from each other by a pipe symbol.
-
-code{
-
- Paragraph containing main term, second term and sub-term.
- ={Main term:
- sub-term+2|second sub-term;
- Another term
- }
-
- A paragraph that continues discussion of the first sub-term
-
-}code
-
-The plus one in the example provided indicates the first sub-term spans one additional paragraph. The logical structure of the resulting index would be:
-
-code{
-
- Main term, 1,
- sub-term, 1-3,
- second sub-term, 1,
- Another term, 1
-
-}code
-
-1~ Composite documents markup
-={ SiSU markup:composite documents;composite documents }
-
-It is possible to build a document by creating a master document that requires other documents. The documents required may be complete documents that could be generated independently, or they could be markup snippets, prepared so as to be easily available to be placed within another text. If the calling document is a master document (built from other documents), it should be named with the suffix *{.ssm}* Within this document you would provide information on the other documents that should be included within the text. These may be other documents that would be processed in a regular way, or markup bits prepared only for inclusion within a master document *{.sst}* regular markup file, or *{.ssi}* (insert/information) A secondary file of the composite document is built prior to processing with the same prefix and the suffix *{._sst}*
-
-basic markup for importing a document into a master document
-
-code{
-
-<< filename1.sst
-
-<< filename2.ssi
-
-}code
-
-The form described above should be relied on. Within the Vim editor it results in the text thus linked becoming hyperlinked to the document it is calling in which is convenient for editing.
-
-1~ Substitutions
-={ SiSU markup:substitutions;substitutions }
-
-!_ markup example:
-
-code{
-
-The current Debian is ${debian_stable} the next debian will be ${debian_testing}
-
-Configure substitution in _sisu/sisu_document_make
-
-@make:
- :substitute: /${debian_stable}/,'*{Wheezy}*' /${debian_testing}/,'*{Jessie}*'
-
-}code
-
-!_ resulting output:
-
-The current Debian is ${debian_stable} the next debian will be ${debian_testing}
-
-Another test ${sisudoc} ok?
-
-Configure substitution in _sisu/sisu_document_make
-
-1~ Footnote, endnote stress test
-
-Globalisation is to be observed as a trend intrinsic to the world economy.~{ As Maria Cattaui Livanos suggests in /{The global economy - an opportunity to be seized}/ in /{Business World}/ the Electronic magazine of the International Chamber of Commerce (Paris, July 1997) at http://www.iccwbo.org/html/globalec.htm \\ "Globalization is unstoppable. Even though it may be only in its early stages, it is already intrinsic to the world economy. We have to live with it, recognize its advantages and learn to manage it. \\ That imperative applies to governments, who would be unwise to attempt to stem the tide for reasons of political expediency. It also goes for companies of all sizes, who must now compete on global markets and learn to adjust their strategies accordingly, seizing the opportunities that globalization offers."}~ Rudimentary economics explains this runaway process, as being driven by competition within the business community to achieve efficient production, and to reach and extend available markets.~{To remain successful, being in competition, the business community is compelled to take advantage of the opportunities provided by globalisation.}~ Technological advancement particularly in transport and communications has historically played a fundamental role in the furtherance of international commerce, with the Net, technology's latest spatio-temporally transforming offering, linchpin of the "new-economy", extending exponentially the global reach of the business community. The Net covers much of the essence of international commerce providing an instantaneous, low cost, convergent, global and borderless: information centre, marketplace and channel for communications, payments and the delivery of services and intellectual property. The sale of goods, however, involves the separate element of their physical delivery. The Net has raised a plethora of questions and has frequently offered solutions. The increased transparency of borders arising from the Net's ubiquitous nature results in an increased demand for the transparency of operation. As economic activities become increasingly global, to reduce transaction costs, there is a strong incentive for the "law" that provides for them, to do so in a similar dimension. The appeal of transnational legal solutions lies in the potential reduction in complexity, more widely dispersed expertise, and resulting increased transaction efficiency. The Net reflexively offers possibilities for the development of transnational legal solutions, having in a similar vein transformed the possibilities for the promulgation of texts, the sharing of ideas and collaborative ventures. There are however, likely to be tensions within the legal community protecting entrenched practices against that which is new, (both in law and technology) and the business community's goal to reduce transaction costs. This here http://sisudoc.org/now is a test and repeat { does this work? }http://www.sisudoc.com/ok.html
-
-Within commercial law an analysis of law and economics may assist in
-developing a better understanding of the relationship between commercial
-law and the commercial sector it serves.~{ Realists would contend that law
-is contextual and best understood by exploring the interrelationships
-between law and the other social sciences, such as sociology, psychology,
-political science, and economics.}~ "...[T]he importance of the
-interrelations between law and economics can be seen in the twin facts
-that legal change is often a function of economic ideas and conditions,
-which necessitate and/or generate demands for legal change, and that
-economic change is often governed by legal change."~{ Part of a section
-cited in Mercuro and Steven G. Medema, /{Economics and the Law: from
-Posner to Post-Modernism}/ (Princeton, 1997) p. 11, with reference to Karl
-N. Llewellyn The Effect of Legal Institutions upon Economics, American
-Economic Review 15 (December 1925) pp 655-683, Mark M. Litchman Economics,
-the Basis of Law, American Law Review 61 (May-June 1927) pp 357-387, and
-W. S. Holdsworth A Neglected Aspect of the Relations between Economic and
-Legal History, Economic History Review 1 (January 1927-1928) pp 114-123.}~
-In doing so, however, it is important to be aware that there are several
-competing schools of law and economics, with different perspectives,
-levels of abstraction, and analytical consequences of and for the world
-that they model.~{ For a good introduction see Nicholas Mercuro and Steven
-G. Medema, /{Economics and the Law: from Posner to Post-Modernism}/
-(Princeton, 1997). These include: Chicago law and economics (New law and
-economics); New Haven School of law and economics; Public Choice Theory;
-Institutional law and economics; Neoinstitutional law and economics;
-Critical Legal Studies.}~ This sentence trails test endnote.
-
-Difference?~{ puzzle away }~
-
-* !glossary
-
-head
-
-header
-document header, containing document specific (i) metadata information or (ii) make instructions
-
-(document) structure
-relationship between headings and sub-headings, and the objects they contain. Document structure is extracted from heading levels, which are either: explicitly marked up, or; determined from a make regex provided in the document header. Use of document structure allow for the meaningful representation of documents in alternative ways and the use of ocn permits easy reference across different output formats.
-
-heading
-document heading, each heading is marked indicating its level (in relation to other headings), and this is used as basis for determininge document structure. There are 8 levels, which are can be distinguesed as being one of three types: (i) 1 title level (marked up A or numeric 0); (ii) 3 optional document division levels, above text separating headings (marked up B - D, or numeric 1 to 3); (iii) 4 text headings (marked up 1 - 4, or numeric 4 to 7)
-
-levels == heading levels
-document heading level, see heading and structure
-
-marked up headings / mark up level
-
-collapsed headings / collapsed levels
-
-numeric levels
-
-dummy heading
-a markup level 1 / dummy level 4 that does not exist in the original text that is manually inserted to maintain the documents structure rule that text follows a heading of markup level 1 (rather than A to D) (numeric level 4 rather than 0 to 3)
-
-relatives? see ancestors and descendants
-
-document ...
-
-ancestors
-heading levels above the current heading level which it logically falls under and to which it belongs (headings preceding current level under which it occurs)
-
-decendants
-decendant headings are sub-headings beneath the current heading level, heading levels below the current heading level which are derived from it and belong to it (sub-headings contained beneath current level); decendant objects are the range of objects contained by a heading (ocn ranges for each heading in document body)
-
-(document) sections
-a document can be divided into 3 parts: front; body and; back. Front matter includes the table of contents (which is generated from headings) and any parts of the document that are presented before the document body (this might include a copyright notice for example). The document body, the substantive part of the document, all its substantive objects, including: headings, paragraphs, tables, verse etc. This is followed by optional backmatter: endnotes, generated from inline markup; glossary, from section using a subset of regular markup, with an indication that section is to be treated as glossary. Note two things glossary might do that it does not, there is: no automatic (sorting) alphabetisation of listing; no creation of term anchor tags (perhaps it should); bibliography, created from a specially marked up section, with indication that section is to be treated as bibliography; bookindex generated from dedicated markup appended to objects providing index terms and the relevant range; blurb made up of ordinary markup, with indication that section is to be treated as blurb
-
-segment, segmented text
-certain forms of output are conveniently segmented, e.g. epub and segmented html. The document is broken into chunks indicated by markup level 1 heading (numeric level 4 headings) as the significant level at which the document should be segmented, and including all decendant objects of that level. For a longer text/book this will usually the chapter level. (this is significant in e.g. for epub and segmented html, which are broken by segment, usually chosen to be chapter)
-
-scroll
-the document as a "scroll", e.g. as a single text file, or continuous html document
-
-object
-a unit of text. Objects include: headings; paragraphs; code blocks; grouped text; verse of poems; tables. Each substantive object is given an object number, that should make it citable.
-
-ocn (object citation number / citation number)
-numbers assigned sequentially to each substantive object of a document. An ocn has the characteristic of remaining identical across output formats. Translations should be prepared so number remains identical across objects in different languages
-
-citation number (see ocn / object citation number)
-
-document abstraction (== internal representation) intermediate step,
-preprocessing of document, into abstraction / representation that is used by all downstream processing, i.e. for all output formats. This allows normalisation, reducing alternative markup options to common representations, e.g. code blocks (open and close), tables, ways of instructing that text be bold, shortuct way of providing and endnote reference to a link
-
-(document) internal representation (== document abstraction)
-see document abstraction
-
-node representation
-
-attribute (object attributes)
-when the document is abstracted attributes associated with an object, for example for a: paragraph, indent (hang ... check & add), bulleted, for a: code block, the language syntax, whether the block is numbered
-
-inline markup
-when the document is abstracted, markup that remains embedded in the text, such as its font face (bold, italic, emphasis, underscore, strike, superscript, subscript), links, endnotes
-
-sequential all objects backkeeping number?
-
-1~commands Sample Commands
-
-2~ general
-
-~sdp/bin/sdp-ldc -v --epub --html --sqlite-update --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-time ( ~sdp/bin/sdp-ldc -v --epub --html --sqlite-update --output-dir=tmp/program-output data/sisupod/* )
-
-2~ source & sisupod
-
-~sdp/bin/sdp-ldc -v --source --sisupod --output-dir=tmp/program-output data/sisudir/media/text/sisu-manual.sst
-
-~sdp/bin/sdp-ldc -v --source --sisupod --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-~sdp/bin/sdp-ldc -v --source --sisupod --output-dir=tmp/program-output data/sisupod/*
-
-2~ sqlite
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --output-dir=tmp/program-output
-
-~sdp/bin/sdp-ldc -v --sqlite-db-create --output-dir=tmp/program-output
-
-~sdp/bin/sdp-ldc -v --sqlite-db-recreate --output-dir=tmp/program-output
-
-~sdp/bin/sdp-ldc -v --sqlite-db-recreate --sqlite-insert --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-recreate --sqlite-update --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-~sdp/bin/sdp-dmd -v --epub --html --output-dir=tmp/program-output data/sisudir/media/text/sisu_markup.sst
-
-1~!blurb On SiSU
-
-SiSU was started in 1997, open-sourced in 2005.
diff --git a/data/pod/sisu-manual-0.4.0_/conf/sisu_document_make b/data/pod/sisu-manual-0.4.0_/conf/sisu_document_make
deleted file mode 100644
index 1e75412..0000000
--- a/data/pod/sisu-manual-0.4.0_/conf/sisu_document_make
+++ /dev/null
@@ -1,12 +0,0 @@
-[make]
-breaks = "break=1"
-home_button_text = "{doc-reform}http://doc-reform.org; {sources / git}http://git.sisudoc.org/; {SiSU}http://sisudoc.org"
-
-# footer = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-# home_button_text = "{sisu.png }http://sisudoc.org"
-
-links = [
- "{doc-reform}http://doc-reform.org",
- "{sources / git}http://git.sisudoc.org/",
- "{SiSU}http://sisudoc.org"
-]
diff --git a/data/pod/sisu-manual-0.4.0_/media/text/en/sisu_markup.sst b/data/pod/sisu-manual-0.4.0_/media/text/en/sisu_markup.sst
deleted file mode 100644
index 5b7dac3..0000000
--- a/data/pod/sisu-manual-0.4.0_/media/text/en/sisu_markup.sst
+++ /dev/null
@@ -1,1961 +0,0 @@
-# SiSU 8.0
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-
-[creator]
-author = "Amissah, Ralph"
-
-[date]
-created = "2002-08-28"
-issued = "2002-08-28"
-available = "2002-08-28"
-published = "2008-05-22"
-modified = "2012-10-03"
-
-[rights]
-copyright = "Copyright (C) Ralph Amissah 2007"
-license = "GPL 3 (part of SiSU documentation)"
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-
-[make]
-auto_num_top_at_level = "1"
-substitute = [
- [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-]
-#substitute = [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-bold = "Debian|SiSU"
-italics = "Linux|GPL|LaTeX|SQL"
-breaks = "new=:B; break=1"
-home_button_text = [
- "{doc-reform}http://doc-reform.org",
- "{sources / git}http://git.sisudoc.org/",
- "{SiSU}http://sisudoc.org"
-]
-footer = [
- "{SiSU}http://sisudoc.org",
- "{git}http://git.sisudoc.org"
-]
-
-# home_button_text = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-# footer = "{SiSU}http://sisudoc.org; {git}http://git.sisudoc.org"
-# substitute = "/[$]{2}[{]sisudoc[}]/,'www.sisudoc.org'"
-# substitute = "/${sisudoc}/,'www.sisudoc.org'"
-# home_button_image = "{won_benkler.png }http://cyber.law.harvard.edu/wealth_of_networks/Main_Page"
-
-:A~ @title @creator
-
-:B~ SiSU Markup
-={ SiSU markup:test }
-
-1~markup Introduction to SiSU Markup~{ From sometime after SiSU 0.58 it should be possible to describe SiSU markup using SiSU, which though not an original design goal is useful. }~
-
-2~ Summary
-
-SiSU source documents are plaintext (UTF-8)~{ files should be prepared using UTF-8 character encoding }~ files
-={ SiSU markup:description }
-
-All paragraphs are separated by an empty line.
-
-Markup is comprised of: *~markup-summary { * }#internal-links
-
-_* at the top of a document, the document header made up of semantic meta-data about the document and if desired additional processing instructions (such an instruction to automatically number headings from a particular level down)
-
-_* followed by the prepared substantive text of which the most important single characteristic is the markup of different heading levels, which define the primary outline of the document structure. Markup of substantive text includes:
-
-_1* heading levels defines document structure
-
-_1* text basic attributes, italics, bold etc.
-
-_1* grouped text (objects), which are to be treated differently, such as code blocks or poems.
-
-_1* footnotes/endnotes
-
-_1* linked text and images
-
-_1* paragraph actions, such as indent, bulleted, numbered-lists, etc.
-
-2~ Markup Rules, document structure and metadata requirements
-={ SiSU markup:rules and requirements }
-
-minimal content/structure requirement, minimum being:
-
-[metadata]
-
-``` code
-title "SiSU" \
- subtitle="Markup"
-
-creator \
- author="Amissah, Ralph"
-```
-
-[levels]
-
-``` code
-A~ (level A [title])
-
-1~ (at least one level 1 [segment/(chapter)])
-```
-={ output:code markup example;SiSU markup output:code block (tic syntax);code block:tic syntax }
-
-structure rules (document heirarchy, heading levels):
-
-there are two sets of heading levels ABCD (title & parts if any) and 123 (segment & subsegments if any)
-={ SiSU markup:heading levels }
-
-sisu has the fllowing levels:
-
-``` code
-A~ [title]
- required (== 1) followed by B~ or 1~
-B~ [part]
- followed by C~ or 1~
-C~ [subpart]
- followed by D~ or 1~
-D~ [subsubpart]
- followed by 1~
-1~ [segment (chapter)]
- required (>= 1) followed by text or 2~
-text
- followed by more text or 1~, 2~
- or relevant part
-2~ [subsegment]
- followed by text or 3~
-text
- followed by more text or 1~, 2~ or 3~
- or relevant part
-3~ [subsubsegment]
- followed by text
-text
- followed by more text or 1~, 2~ or 3~ or relevant part, see *()
-```
-
-Rules:
-
-``` code
-- level A~ is the title and is mandatory
-- there can only be one level A~
-- heading levels BCD, are optional and there may be several of each
- (where all three are used corresponding to e.g. Book Part Section)
- - sublevels that are used must follow each other sequentially
- (alphabetically),
-- heading levels A~ B~ C~ D~ are followed by other heading levels rather
- than substantive text
- which may be the subsequent sequential (alphabetic) heading part level
- or a heading (segment) level 1~
-- there must be at least one heading (segment) level 1~
- (the level on which the text is segmented, in a book would correspond
- to the Chapter level)
-- additional heading levels 1~ 2~ 3~ are optional and there may be several
- of each
-- heading levels 1~ 2~ 3~ are followed by text (which may be followed by
- the same heading level)
- and/or the next lower numeric heading level (followed by text)
- or indeed return to the relevant part level
- (as a corollary to the rules above substantive text/ content
- must be preceded by a level 1~ (2~ or 3~) heading)
-```
-
-2~ Markup Examples
-={ SiSU markup:locating examples }
-
-3~ Online
-={ SiSU markup:examples online }
-
-Online markup examples are available together with the respective outputs produced from http://www.jus.uio.no/sisu/SiSU/examples.html or from http://www.jus.uio.no/sisu/sisu_examples/
-
-There is of course this document, which provides a cursory overview of sisu markup and the respective output produced: http://www.jus.uio.no/sisu/sisu_markup/
-
-an alternative presentation of markup syntax: /usr/share/doc/sisu/on_markup.txt.gz
-
-3~ Installed
-={ SiSU markup:examples installed }
-
-With SiSU installed sample skins may be found in: /usr/share/doc/sisu/markup-samples (or equivalent directory) and if sisu-markup-samples is installed also under: /usr/share/doc/sisu/markup-samples-non-free
-
-1~headers Markup of Headers
-={ SiSU markup:headers}
-
-Headers contain either: semantic meta-data about a document, which can be used by any output module of the program, or; processing instructions.
-
-Note: the first line of a document may include information on the markup version used in the form of a comment. Comments are a percentage mark at the start of a paragraph (and as the first character in a line of text) followed by a space and the comment:
-
-code{
-
-% this would be a comment
-
-}code
-={ output:code markup example;SiSU markup output:code block (curly brace syntax);code block:curly brace syntax }
-
-2~ Sample Header
-={ SiSU markup:sample header}
-
-This current document is loaded by a master document that has a header similar to this one:
-
-``` code
-# SiSU 8.0
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-
-[creator]
-author = "Amissah, Ralph"
-
-[date]
-created = "2002-08-28"
-issued = "2002-08-28"
-available = "2002-08-28"
-published = "2008-05-22"
-modified = "2012-10-03"
-
-[rights]
-copyright = "Copyright (C) Ralph Amissah 2007"
-license = "GPL 3 (part of SiSU documentation)"
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-```
-
-Looking back a bit:
-
-code{
-
-# SiSU master 8.0
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-
-[creator]
-author = "Amissah, Ralph"
-
-[date]
-created = "2002-08-28"
-issued = "2002-08-28"
-available = "2002-08-28"
-published = "2008-05-22"
-modified = "2012-10-03"
-
-[rights]
-copyright = "Copyright (C) Ralph Amissah 2007"
-license = "GPL 3 (part of SiSU documentation)"
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-
-[make]
-auto_num_top_at_level = "1"
-substitute = [
- [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-]
-bold = "Debian|SiSU"
-italics = "Linux|GPL|LaTeX|SQL"
-breaks = "new=:B; break=1"
-home_button_text = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-footer = "{SiSU}http://sisudoc.org; {git}http://git.sisudoc.org"
-
-}code
-
-2~ Available Headers
-={ SiSU markup:headers available }
-
-Header tags appear at the beginning of a document and provide meta information on the document (such as the Dublin Core), or information as to how the document as a whole is to be processed. All header instructions take the form @headername: or on the next line and indented by once space :subheadername: All Dublin Core meta tags are available
-
-!_ @identifier:
-information or instructions
-
-where the "identifier" is a tag recognised by the program, and the "information" or "instructions" belong to the tag/identifier specified
-
-Note: a header where used should only be used once; all headers apart from @title: are optional; the @structure: header is used to describe document structure, and can be useful to know.
-
-This is a sample header
-
-% (Dublin Core in fuschia, other information headers in cyan, markup instructions in red):
-
-code{
-
-# SiSU 8.0
-
-}code
-
-code{
-
-[title]
-main = "SiSU"
-subtitle = "Markup"
-language = "English"
-
-}code
-
-code{
-
-[creator]
-author = [Lastname, First names]
-illustrator = [Lastname, First names]
-translator = [Lastname, First names]
-prepared_by = [Lastname, First names]
-
-}code
-
-code{
-
-[date]
-created = [year or yyyy-mm-dd]
-issued = [year or yyyy-mm-dd]
-available = [year or yyyy-mm-dd]
-published = [year or yyyy-mm-dd]
-modified = [year or yyyy-mm-dd]
-valid = [year or yyyy-mm-dd]
-added_to_site = [year or yyyy-mm-dd]
-translated = [year or yyyy-mm-dd]
-
-}code
-
-code{
-
-[rights]
-copyright = "Copyright (C) [Year and Holder]"
-license = "[Use License granted]"
-text = "[Name, Year]"
-translation = "[Name, Year]"
-illustrations = "[Name, Year]"
-
-# check rest
-
-}code
-
-code{
-
-[classify]
-topic_register = "electronic documents:SiSU:document:markup;SiSU:document:markup;SiSU:document:markup;SiSU:manual:markup;electronic documents:SiSU:manual:markup"
-subject = "ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search"
-keywords = "list"
-loc = "[Library of Congress classification]"
-dewey = "[Dewey classification]"
-
-}code
-
-code{
-
-[identify]
-isbn = "[ISBN]"
-oclc = ""
-
-}code
-
-
-code{
-
-links = [
- "{SiSU }http://www.sisudoc.org",
- "{ FSF }http://www.fsf.org",
-]
-
-}code
-
-code{
-
-[make]
-auto_num_top_at_level = "1"
-substitute = [
- [ "[$]{2}\\{sisudoc\\}", "www.sisudoc.org" ]
-]
-bold = "Debian|SiSU" # [regular expression of words/phrases to be made bold]
-italics = "Linux|GPL|LaTeX|SQL" # [regular expression of words/phrases to italicise]
-breaks = "new=:B; break=1"
-home_button_text = "{SiSU}http://sisudoc.org; {sources / git}http://git.sisudoc.org/gitweb/"
-footer = "{SiSU}http://sisudoc.org; {git}http://git.sisudoc.org"
-headings = text to match for each level
- (e.g. PART; Chapter; Section; Article; or another: none; BOOK|FIRST|SECOND; none; CHAPTER;)
-
-}code
-
-% [original]
-% language = [language]
-
-% [notes]
-% comment:
-% prefix: [prefix is placed just after table of contents]
-
-% header ends here, NB only @title: is mandatory [this would be a comment]
-% NOTE: headings/levels below refer to 0.38 expermental markup (a conversion script provided in sisu-examples, modify.rb makes conversion between 0.37 and 0.38 markup simple)
-
-1~ Markup of Substantive Text
-={ SiSU markup:substantive text }
-
-2~heading_levels Heading Levels
-={ SiSU markup:heading levels }
-
-Heading levels are :A~ ,:B~ ,:C~ ,1~ ,2~ ,3~ ... :A - :C being part / section headings, followed by other heading levels, and 1 -6 being headings followed by substantive text or sub-headings. :A~ usually the title :A~? conditional level 1 heading (used where a stand-alone document may be imported into another)
-
-!_ :A~ [heading text]
-Top level heading [this usually has similar content to the title @title: ]
-NOTE: the heading levels described here are in 0.38 notation, see heading
-
-!_ :B~ [heading text]
-Second level heading [this is a heading level divider]
-
-!_ :C~ [heading text]
-Third level heading [this is a heading level divider]
-
-!_ 1~ [heading text]
-Top level heading preceding substantive text of document or sub-heading 2, the heading level that would normally be marked 1. or 2. or 3. etc. in a document, and the level on which sisu by default would break html output into named segments, names are provided automatically if none are given (a number), otherwise takes the form 1~my_filename_for_this_segment
-
-!_ 2~ [heading text]
-Second level heading preceding substantive text of document or sub-heading 3 , the heading level that would normally be marked 1.1 or 1.2 or 1.3 or 2.1 etc. in a document.
-
-!_ 3~ [heading text]
-Third level heading preceding substantive text of document, that would normally be marked 1.1.1 or 1.1.2 or 1.2.1 or 2.1.1 etc. in a document
-
-code{
-
-1~filename level 1 heading,
-
-% the primary division such as Chapter that is followed by substantive text, and may be further subdivided (this is the level on which by default html segments are made)
-
-}code
-
-2~ Font Attributes
-={ SiSU markup:font attributes }
-
-!_ markup example:
-
-code{
-
-normal text, *{emphasis}*, !{bold text}!, /{italics}/, _{underscore}_, "{citation}",
-^{superscript}^, ,{subscript},, +{inserted text}+, -{strikethrough}-, #{monospace}#
-
-normal text
-
-*{emphasis}* [note: can be configured to be represented by bold, italics or underscore]
-
-!{bold text}!
-
-/{italics}/
-
-_{underscore}_
-
-"{citation}"
-
-^{superscript}^
-
-,{subscript},
-
-+{inserted text}+
-
--{strikethrough}-
-
-#{monospace}#
-
-}code
-
-!_ resulting output:
-
-normal text, *{emphasis}*, !{bold text}!, /{italics}/, _{underscore}_, "{citation}",
-^{superscript}^, ,{subscript},, +{inserted text}+, -{strikethrough}-, #{monospace}#
-
-normal text
-
-*{emphasis}* [note: can be configured to be represented by bold, italics or underscore]
-
-!{bold text}!
-
-/{italics}/
-
-_{underscore}_
-
-"{citation}"
-
-^{superscript}^
-
-,{subscript},
-
-+{inserted text}+
-
--{strikethrough}-
-
-#{monospace}#
-
-2~ Indentation and bullets
-={ SiSU markup:indentation and bullets }
-
-!_ markup example:
-={ SiSU markup:indentation }
-
-code{
-
-ordinary paragraph
-
-_1 indent paragraph one step
-
-_2 indent paragraph two steps
-
-_9 indent paragraph nine steps
-
-}code
-
-!_ resulting output:
-
-ordinary paragraph
-
-_1 indent paragraph one step
-
-_2 indent paragraph two steps
-
-_9 indent paragraph nine steps
-
-!_ markup example:
-={ SiSU markup:bullets }
-
-code{
-
-_* bullet text
-
-_1* bullet text, first indent
-
-_2* bullet text, two step indent
-
-}code
-
-!_ resulting output:
-
-_* bullet text
-
-_1* bullet text, first indent
-
-_2* bullet text, two step indent
-
-Numbered List (not to be confused with headings/titles, (document structure))
-
-!_ markup example:
-
-code{
-
-# numbered list numbered list 1., 2., 3, etc.
-
-_# numbered list numbered list indented a., b., c., d., etc.
-
-}code
-
-2~ Hanging Indents
-={ SiSU markup:hanging indents;indented text:hanging }
-
-!_ markup example:
-
-code{
-
-_0_1 first line no indent,
-rest of paragraph indented one step
-
-_1_0 first line indented,
-rest of paragraph no indent
-
-in each case level may be 0-9
-
-}code
-
-!_ resulting output:
-
-_0_1 first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step; first line no indent, rest of paragraph indented one step;
-
-A regular paragraph.
-
-_1_0 first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent first line indented, rest of paragraph no indent
-
-in each case level may be 0-9
-
-_0_1 *{live-build}* A collection of scripts used to build customized Debian Livesystems. /{live-build}/ was formerly known as live-helper, and even earlier known as live-package.
-
-_0_1 *{live-build}* \\
-A collection of scripts used to build customized Debian Livesystems. /{live-build}/ was formerly known as live-helper, and even earlier known as live-package.
-
-2~ Footnotes / Endnotes
-={ SiSU markup:hanging indents;footnotes;endnotes }
-
-Footnotes and endnotes are marked up at the location where they would be indicated within a text. They are automatically numbered. The output type determines whether footnotes or endnotes will be produced
-
-!_ markup example:
-
-code{
-
-~{ a footnote or endnote }~
-
-}code
-
-!_ resulting output:
-
-~{ a footnote or endnote }~
-
-!_ markup example:
-
-code{
-
-normal text~{ self contained endnote marker & endnote in one }~ continues
-
-}code
-
-!_ resulting output:
-
-normal text~{ self contained endnote marker & endnote in one }~ continues
-
-!_ markup example:
-
-code{
-
-normal text ~{* unnumbered asterisk footnote/endnote, insert multiple asterisks if required }~ continues
-
-normal text ~{** another unnumbered asterisk footnote/endnote }~ continues
-
-}code
-
-!_ resulting output:
-
-normal text ~{* unnumbered asterisk footnote/endnote, insert multiple asterisks if required }~ continues
-
-normal text ~{** another unnumbered asterisk footnote/endnote }~ continues
-
-!_ markup example:
-
-code{
-
-normal text ~[* editors notes, numbered asterisk footnote/endnote series ]~ continues
-
-normal text ~[+ editors notes, numbered plus symbol footnote/endnote series ]~ continues
-
-}code
-
-!_ resulting output:
-
-normal text ~[* editors notes, numbered asterisk footnote/endnote series ]~ continues
-
-normal text ~[+ editors notes, numbered plus symbol footnote/endnote series ]~ continues
-
-!_ [discontinued] Alternative binary endnote notation (endnote pair) for footnotes/endnotes:
-
-code{
-
-% note the endnote marker "~^"
-
-normal text~^ continues
-
-^~ endnote text following the paragraph in which the marker occurs
-
-}code
-
-standard (inline) and pair (binary) notation could not be mixed in the same document.
-
-The reason binary notation was provided as an option was for the conversion of documents to sisu markup. Many documents were prepared in such a way that endnotes had been previously marked up in a binary fashion, and this provided a convenient and faster way to make the document conversion, just reflect those markup practices. The reason it has been dropped is it adds a slowing step to something that needs to be done at most once and it prove to be flakey, unnecessarily so even when kept under version control. It is preferable to do a two step conversion of the previously marked up document to sisu: first to the binary/paired footnote markup, then; convert it to the proper form of inline endnote markup with a dedicated helper conversion program, keeping the resulting properly marked up text.
-
-2~ Links
-={ SiSU markup:links (text, images);links:images|text }
-
-3~ Naked URLs within text, dealing with urls
-
-urls found within text are marked up automatically. A url within text is automatically hyperlinked to itself and by default decorated with angled braces, unless they are contained within a code block (in which case they are passed as normal text), or escaped by a preceding underscore (in which case the decoration is omitted).
-
-!_ markup example:
-
-code{
-
-normal text http://www.sisudoc.org/ continues
-
-}code
-
-!_ resulting output:
-
-normal text http://www.sisudoc.org/ continues
-
-An escaped url without decoration
-
-!_ markup example:
-
-code{
-
-normal text _http://www.sisudoc.org/ continues
-
-deb _http://www.jus.uio.no/sisu/archive unstable main non-free
-
-}code
-
-!_ resulting output:
-
-normal text _http://www.sisudoc.org/ continues
-
-deb _http://www.jus.uio.no/sisu/archive unstable main non-free
-
-where a code block is used there is neither decoration nor hyperlinking, code blocks are discussed later in this document
-
-!_ resulting output:
-
-code{
-
-deb http://www.jus.uio.no/sisu/archive unstable main non-free
-deb-src http://www.jus.uio.no/sisu/archive unstable main non-free
-
-}code
-
-3~link_text Linking Text
-={ SiSU markup:links (text);links:text }
-
-To link text or an image to a url the markup is as follows
-
-!_ markup example:
-
-code{
-
-about { SiSU }http://url.org markup
-
-}code
-
-!_ resulting output:
-
-about { SiSU }http://www.sisudoc.org/ markup
-
-A shortcut notation is available so the url link may also be provided automatically as a footnote
-
-!_ markup example:
-
-code{
-
-about {~^ SiSU }http://url.org markup
-
-}code
-
-!_ resulting output:
-
-about {~^ SiSU }http://www.sisudoc.org/ markup
-
-Internal document links to a named (anchor) tagged location, including named headings named inline anchor tags *~an-inline-anchor-tag or an ocn
-the heading:
-
-code{
-
-1~markup Markup
-
-}code
-
-can be linked to as follows:
-
-code{
-
-to find out more see { Markup }#markup
-
-}code
-
-to find out more see { Markup }#markup
-
-an inline anchor tag is made with the following markup *~internal-links
-
-code{
-
-named inline anchor tags *~an-inline-anchor-tag
-
-}code
-
-and linked to the same way
-
-code{
-
-the link { an inline anchor tag }#an-inline-anchor-tag
-
-}code
-
-the link { an inline anchor tag }#an-inline-anchor-tag or to another part of the document: { markup summary }#markup-summary
-
-!_ markup example:
-
-code{
-
-about { text links }#link_text
-
-}code
-
-!_ resulting output:
-
-about { text links }#link_text
-
-Shared document collection link
-
-!_ markup example:
-
-code{
-
-about { SiSU book markup examples }:SiSU/examples.html
-
-}code
-
-!_ resulting output:
-
-about { SiSU book markup examples }:SiSU/examples.html
-
-3~ Linking Images
-={ SiSU markup:links (images);links:images }
-
-!_ markup example:
-
-code{
-
-{ sm_tux.png 64x80 }image
-
-% various url linked images
-
-{sm_tux.png 64x80 "a better way" }http://www.sisudoc.org/
-
-{sm_GnuDebianLinuxRubyBetterWay.png 100x101 "Way Better - with Gnu/Linux, Debian and Ruby" }http://www.sisudoc.org/
-
-{~^ sm_ruby_logo.png "Ruby" }http://www.ruby-lang.org/en/
-
-}code
-
-!_ resulting output:
-
-{ sm_tux.png }image
-
-{ sm_tux.png 64x80 }image
-
-{ sm_tux.png 64x80 "test" }image
-
-{ sm_tux.png }http://www.sisudoc.org/
-
-{ sm_tux.png 64x80 }http://www.sisudoc.org/
-
-{ sm_tux.png 64x80 "Gnu/Linux - a better way" }http://www.sisudoc.org/
-
-{ sm_GnuDebianLinuxRubyBetterWay.png 100x101 "Way Better - with Gnu/Linux, Debian and Ruby" }http://www.sisudoc.org/
-
-{~^ sm_ruby_logo.png "Ruby" }http://www.ruby-lang.org/en/
-
-{ sm_d_image.jpg 82x128 "D for me" }https://github.com/dlang-community/d-mans
-
-{~^ sm_d_strip.png "D, hey no fair" }https://github.com/dlang-community/d-mans
-
-!_ linked url footnote shortcut
-
-code{
-
-{~^ [text to link] }http://url.org
-
-% maps to: { [text to link] }http://url.org ~{ http://url.org }~
-
-% which produces hyper-linked text within a document/paragraph, with an endnote providing the url for the text location used in the hyperlink
-
-}code
-
-code{
-
-text marker *~name
-
-}code
-
-note at a heading level the same is automatically achieved by providing names to headings 1, 2 and 3 i.e. 2~[name] and 3~[name] or in the case of auto-heading numbering, without further intervention.
-
-3~ Link shortcut for multiple versions of a sisu document in the same directory tree
-
-!_ markup example:
-
-code{
-
-!_ /{"Viral Spiral"}/, David Bollier
-
-{ "Viral Spiral", David Bollier [3sS]}viral_spiral.david_bollier.sst
-
-}code
-
-
-!_ /{"Viral Spiral"}/, David Bollier
-
-{ "Viral Spiral", David Bollier [3sS]}viral_spiral.david_bollier.sst
-
-2~ Grouped Text / blocked text
-={ SiSU markup:grouped text;grouped text;blocked text;text blocks }
-
-There are two markup syntaxes for blocked text, using curly braces or using tics
-
-3~ blocked text curly brace syntax
-={ SiSU markup:grouped text;grouped text:curly brace syntax;blocked text:curly brace syntax;text blocks:curly brace syntax }
-
-at the start of a line on its own use name of block type with an opening curly brace, follow with the content of the block, and close with a closing curly brace and the name of the block type, e.g.
-
-``` code
-code{
-
-this is a code block
-
-}code
-```
-
-``` code
-poem{
-
-this here is a poem
-
-}poem
-```
-
-3~ blocked text tic syntax
-={ SiSU markup:grouped text;grouped text:tic syntax;blocked text:tic syntax;text blocks:tic syntax }
-
-code{
-
-``` code
-this is a code block
-```
-
-``` poem
-this here is a poem
-```
-
-}code
-
-start a line with three backtics, a space followed by the name of the name of block type, follow with the content of the block, and close with three back ticks on a line of their own, e.g.
-
-3~ Group
-={ SiSU markup:group text;group text }
-
-The "group" is different from the "block" mark in that "group" does not preserve whitespace, the "block" mark does. The text falling within the block is a single object.
-
-!_ basic markup:
-
-code{
-
-group{
-
- Your grouped text here
-
-}group
-
-A group is treated as an object and given a single object number.
-
-}code
-
-!_ resulting group text output:
-
-group{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."~{ endnote test }~
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole~{ stress test }~
- cause,
- and
- condemn
- you
- to
- death."'
-
-}group
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-!_ resulting group text output:
-
-group{
-
-The Road Not Taken Related Poem Content Details
-
-BY ROBERT FROST
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-
-}group
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-3~ Block
-={ SiSU markup:block text;block text }
-
-The "block" is different from the "group" mark in that the "block" mark (like the "poem" mark) preserves whitespace, the "group" mark does not. The text falling within the "block" is a single object, which is different from the "poem" mark where each identified verse is an object.
-
-!_ basic markup:
-
-code{
-
-block{
-
- Your block text here
-
-}block
-
-A block is treated as an object and given a single object number.
-
-}code
-
-!_ resulting block text output:
-
-block{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."~{ endnote test }~
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole~{ stress test }~
- cause,
- and
- condemn
- you
- to
- death."'
-
-}block
-={ output:block block markup example;SiSU markup output:block block (curly brace syntax) }
-
-block{
-
-The Road Not Taken Related Poem Content Details
-
-BY ROBERT FROST
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-
-}block
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-3~ Poem
-={ SiSU markup:poem;poems }
-
-The "poem" mark like the "block" preserves whitespace. Text followed by two newlines are identified as verse and each verse is an object i.e. a poem may consist of multiple verse each of which is identified as an object, unlike a text "block" which is identified as a single object.
-
-!_ basic markup:
-
-code{
-
-poem{
-
- Your poem here
-
-}poem
-
-Each verse in a poem is given an object number.
-
-}code
-
-!_ curly brace delimiter, resulting group text output:
-
-poem{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole
- cause,
- and
- condemn
- you
- to
- death."'
-}poem
-
-% ={ output:poem markup example;SiSU markup output:poem (curly brace syntax) }
-
-!_ curly brace delimiter, resulting group text output:
-
-poem{
-
-*{The Road Not Taken}*~{ published in 1916 as the first poem in the collection Mountain Interval. }~
-
-by Robert Frost
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-
-}poem
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-!_ tics delimiter, resulting group text output:
-
-``` poem
-!{The Road Not Taken}!~{ published in 1916 as the first poem in the collection Mountain Interval. }~
-
-by Robert Frost
-
-Two roads diverged in a yellow wood,
-And sorry I could not travel both
-And be one traveler, long I stood
-And looked down one as far as I could
-To where it bent in the undergrowth;
-
-Then took the other, as just as fair,
-And having perhaps the better claim,
-Because it was grassy and wanted wear;
-Though as for that the passing there
-Had worn them really about the same,
-
-And both that morning equally lay
-In leaves no step had trodden black.
-Oh, I kept the first for another day!
-Yet knowing how way leads on to way,
-I doubted if I should ever come back.
-
-I shall be telling this with a sigh
-Somewhere ages and ages hence:
-Two roads diverged in a wood, and I—
-I took the one less traveled by,
-And that has made all the difference.
-```
-={ output:group block markup example;SiSU markup output:group block (curly brace syntax) }
-
-3~ Code
-={ SiSU markup:code block;code block }
-
-"Code" blocks are a single text object, in which the original text is preserved.
-
-Code tags #{ code{ ... }code }# (used as with other group tags described above) are used to escape regular sisu markup, and have been used extensively within this document to provide examples of SiSU markup. You cannot however use code tags to escape code tags. They are however used in the same way as group or poem tags.
-
-A code-block is treated as an object and given a single object number. [an option to number each line of code may be considered at some later time]
-
-!_ use of code tags instead of poem compared, resulting output:
-
-code{
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole
- cause,
- and
- condemn
- you
- to
- death."'
-
-}code
-
-From SiSU 2.7.7 on you can number codeblocks by placing a hash after the opening code tag #{ code{# }# as demonstrated here:
-
-code(#){
-
- `Fury said to a
- mouse, That he
- met in the
- house,
- "Let us
- both go to
- law: I will
- prosecute
- YOU. --Come,
- I'll take no
- denial; We
- must have a
- trial: For
- really this
- morning I've
- nothing
- to do."
- Said the
- mouse to the
- cur, "Such
- a trial,
- dear Sir,
- With
- no jury
- or judge,
- would be
- wasting
- our
- breath."
- "I'll be
- judge, I'll
- be jury,"
- Said
- cunning
- old Fury:
- "I'll
- try the
- whole
- cause,
- and
- condemn
- you
- to
- death."'
-
-}code
-={ output:code markup example;SiSU markup output:code block (curly brace syntax);code block:curly brace syntax }
-
-3~ Tables
-={ SiSU markup:tables;tables }
-
-Tables may be prepared in two either of two forms
-
-!_ markup example:
-
-code{
-
-table(c3: 40, 30, 30){
-
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-
-}table
-
-}code
-
-!_ resulting output:
-
-table(c3: 40, 30, 30){
-
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-
-}table
-
-% ={ output:table markup example;SiSU markup output:table (curly brace syntax) }
-
-Same as a tic table
-
-``` table(c3: 40, 30, 30)
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-```
-
-Without instruction
-
-``` table
-This is a table
-this would become column two of row one
-column three of row one is here
-
-And here begins another row
-column two of row two
-column three of row two, and so on
-```
-
-a second form may be easier to work with in cases where there is not much information in each column
-
-*{markup example:}*~{ Table from the Wealth of Networks by Yochai Benkler \\ http://www.jus.uio.no/sisu/the_wealth_of_networks.yochai_benkler }~
-
-code{
-
-!_ Table 3.1: Contributors to Wikipedia, January 2001 - June 2005
-
-{table(h; 24, 12, 12, 12, 12, 12, 12)}
- |Jan. 2001|Jan. 2002|Jan. 2003|Jan. 2004|July 2004|June 2006
-Contributors* | 10| 472| 2,188| 9,653| 25,011| 48,721
-Active contributors** | 9| 212| 846| 3,228| 8,442| 16,945
-Very active contributors*** | 0| 31| 190| 692| 1,639| 3,016
-No. of English language articles| 25| 16,000| 101,000| 190,000| 320,000| 630,000
-No. of articles, all languages | 25| 19,000| 138,000| 490,000| 862,000|1,600,000
-
-* Contributed at least ten times; ** at least 5 times in last month; *** more than 100 times in last month.
-
-}code
-
-!_ resulting output:
-
-
-!_ Table 3.1: Contributors to Wikipedia, January 2001 - June 2005
-
-{table(h; 24, 12, 12, 12, 12, 12, 12)}
- |Jan. 2001|Jan. 2002|Jan. 2003|Jan. 2004|July 2004|June 2006
-Contributors* | 10| 472| 2,188| 9,653| 25,011| 48,721
-Active contributors** | 9| 212| 846| 3,228| 8,442| 16,945
-Very active contributors*** | 0| 31| 190| 692| 1,639| 3,016
-No. of English language articles| 25| 16,000| 101,000| 190,000| 320,000| 630,000
-No. of articles, all languages | 25| 19,000| 138,000| 490,000| 862,000|1,600,000
-
-* Contributed at least ten times; ** at least 5 times in last month; *** more than 100 times in last month.
-
-% code{
-
-% test
-
-% ~#
-
-% % unnumbered paragraph (place marker at end of paragraph)
-
-% -#
-
-% % unnumbered paragraph, delete when not required (place marker at end of paragraph) [used in dummy headings, eg. for segmented html]
-
-% % add a comment to text, that will be removed prior to processing (place marker at beginning of line)
-
-% }code
-
-2~ Additional breaks - linebreaks within objects, column and page-breaks
-={ SiSU markup:breaks (page and line);breaks }
-
-3~ line-breaks
-={ SiSU markup:line break;line break }
-
-To break a line within a "paragraph object", two backslashes \\\\ \\ with a space before and a space or newline after them \\ may be used.
-
-code{
-
-To break a line within a "paragraph object",
-two backslashes \\ with a space before
-and a space or newline after them \\
-may be used.
-
-}code
-
-The html break br enclosed in angle brackets (though undocumented) is available in versions prior to 3.0.13 and 2.9.7 (it remains available for the time being, but is depreciated).
-
-To draw a dividing line dividing paragraphs, see the section on page breaks.
-
-3~ page breaks
-={ SiSU markup:page break;page break }
-
-Page breaks are only relevant and honored in some output formats. A page break or a new page may be inserted manually using the following markup on a line on its own:
-
-page new =\\= breaks the page, starts a new page.
-
-page break -\\- breaks a column, starts a new column, if using columns, else breaks the page, starts a new page.
-
-page break line across page -..- draws a dividing line, dividing paragraphs
-
-page break:
-
-code{
-
--\\-
-
-}code
-
-page (break) new:
-
-code{
-
-=\\=
-
-}code
-
-page (break) line across page (dividing paragraphs):
-
-code{
-
--..-
-
-}code
-
-
-2~ Excluding Object Numbers
-
-Object numbers can be switched off by adding a ~# to the end of a text object.
-
-Sometimes it is wished to switch off object numbers for a larger group of text. In this case it is possible before the group, body of text to be without object numbers on a new line with nothing else on it to open the un-numbered object block with --~# and to close the un-numbered block, and restart object numbering with on a similarly otherwise empty new-line with --+#
-
-code{
-
---~#
-
-un-numbered object block of text contained here
-
-still un-numbered
-
---+#
-
-object numbering returns here and for subsequent text objects
-
-to switch of object numbering for a single objct, to the end of the object add ~# like so:~#
-
-}code
-
-2~ Bibliography / References
-={ SiSU markup:references|bibliography|citations;references }
-
-There are three ways to prepare a bibliography using sisu (which are mutually exclusive): (i) manually preparing and marking up as regular text in sisu a list of references, this is treated as a regular document segment (and placed before endnotes if any); (ii) preparing a bibliography, marking a heading level 1~!biblio (note the exclamation mark) and preparing a bibliography using various metadata tags including for author: title: year: a list of which is provided below, or; (iii) as an assistance in preparing a bibliography, marking a heading level 1~!biblio and tagging citations within footnotes for inclusion, identifying citations and having a parser attempt to extract them and build a bibliography of the citations provided.
-
-For the heading/section sequence: endnotes, bibliography then book index to occur, the name biblio or bibliography must be given to the bibliography section, like so:
-
-code{
-
-1~!biblio
-
-}code
-
-3~ a markup tagged metadata bibliography section
-
-Here instead of writing your full citations directly in footnotes, each time you have new material to cite, you add it to your bibliography section (if it has not been added yet) providing the information you need against an available list of tags (provided below).
-
-The required tags are au: ti: and year: ~{for which you may alternatively use the full form author: title: and year: }~ an short quick example might be as follows:
-
-code{
-
-1~!biblio
-
-au: von Hippel, E.
-ti: Perspective: User Toolkits for Innovation
-lng: (language)
-jo: Journal of Product Innovation Management
-vo: 18
-ed: (editor)
-yr: 2001
-note:
-sn: Hippel, /{User Toolkits}/ (2001)
-id: vHippel_2001
-% form:
-
-au: Benkler, Yochai
-ti: The Wealth of Networks
-st: How Social Production Transforms Markets and Freedom
-lng: (language)
-pb: Harvard University Press
-edn: (edition)
-yr: 2006
-pl: U.S.
-url: http://cyber.law.harvard.edu/wealth_of_networks/Main_Page
-note:
-sn: Benkler, /{Wealth of Networks}/ (2006)
-id: Benkler2006
-
-au: Quixote, Don; Panza, Sancho
-ti: Taming Windmills, Keeping True
-jo: Imaginary Journal
-yr: 1605
-url: https://en.wikipedia.org/wiki/Don_Quixote
-note: made up to provide an example of author markup for an article with two authors
-sn: Quixote & Panza, /{Taming Windmills}/ (1605)
-id: quixote1605
-
-}code
-
-Note that the section name !biblio (or !bibliography) is required for the bibliography to be treated specially as such, and placed after the auto-generated endnote section.
-
-Using this method, work goes into preparing the bibliography, the tags author or editor, year and title are required and will be used to sort the bibliography that is placed under the Bibliography section
-
-The metadata tags may include shortname (sn:) and id, if provided, which are used for substitution within text. Every time the given id is found within the text it will be replaced by the given short title of the work (it is for this reason the short title has sisu markup to italicize the title), it should work with any page numbers to be added, the short title should be one that can easily be used to look up the full description in the bibliography.
-
-code{
-
-The following footnote~{ quixote1605, pp 1000 - 1001, also Benkler2006 p 1. }~
-
-}code
-
-would be presented as:
-
-Quixote and Panza, /{Taming Windmills}/ (1605), pp 1000 - 1001 also, Benkler, /{Wealth of Networks}/, (2006) p 1 or rather~{ Quixote and Panza, /{Taming Windmills}/ (1605), pp 1000 - 1001 also, Benkler, /{Wealth of Networks}/ (2006), p 1 }~
-
-code{
-
-au: author Surname, FirstNames (if multiple semi-colon separator)
- (required unless editor to be used instead)
-ti: title (required)
-st: subtitle
-jo: journal
-vo: volume
-ed: editor (required if author not provided)
-tr: translator
-src: source (generic field where others are not appropriate)
-in: in (like src)
-pl: place/location (state, country)
-pb: publisher
-edn: edition
-yr: year (yyyy or yyyy-mm or yyyy-mm-dd) (required)
-pg: pages
-url: http://url
-note: note
-id: create_short_identifier e.g. authorSurnameYear
- (used in substitutions: when found within text will be
- replaced by the short name provided)
-sn: short name e.g. Author, /{short title}/, Year
- (used in substitutions: when an id is found within text
- the short name will be used to replace it)
-
-}code
-
-3~ Tagging citations for inclusion in the Bibliography
-
-Here whenever you make a citation that you wish be included in the bibliography, you tag the citation as such using special delimiters (which are subsequently removed from the final text produced by sisu)
-
-Here you would write something like the following, either in regular text or a footnote
-
-code{
-
-See .: Quixote, Don; Panza, Sancho /{Taming Windmills, Keeping True}/ (1605) :.
-
-}code
-
-SiSU will parse for a number of patterns within the delimiters to try make out the authors, title, date etc. and from that create a Bibliography. This is more limited than the previously described method of preparing a tagged bibliography, and using an id within text to identify the work, which also lends itself to greater consistency.
-
-2~ Glossary
-={ SiSU markup:glossary|Glossary }
-
-Using the section name 1~!glossary results in the Glossary being treated specially as such, and placed after the auto-generated endnote section (before the bibliography/list of references if there is one).
-
-The Glossary is ordinary text marked up in a manner deemed suitable for that purpose. e.g. with the term in bold, possibly with a hanging indent.
-
-code{
-
-1~!glossary
-
-_0_1 *{GPL}* An abbreviation that stands for "General Purpose License." ...
-
-_0_1 [provide your list of terms and definitions]
-
-}code
-
-In the given example the first line is not indented subsequent lines are by one level, and the term to be defined is in bold text.
-
-2~ Book index
-={ SiSU markup:book index;book index }
-
-To make an index append to paragraph the book index term relates to it, using an equal sign and curly braces.
-
-Currently two levels are provided, a main term and if needed a sub-term. Sub-terms are separated from the main term by a colon.
-
-code{
-
- Paragraph containing main term and sub-term.
- ={Main term:sub-term}
-
-}code
-
-The index syntax starts on a new line, but there should not be an empty line between paragraph and index markup.
-
-The structure of the resulting index would be:
-
-code{
-
- Main term, 1
- sub-term, 1
-
-}code
-
-Several terms may relate to a paragraph, they are separated by a semicolon. If the term refers to more than one paragraph, indicate the number of paragraphs.
-
-code{
-
- Paragraph containing main term, second term and sub-term.
- ={first term; second term: sub-term}
-
-}code
-
-The structure of the resulting index would be:
-
-code{
-
- First term, 1,
- Second term, 1,
- sub-term, 1
-
-}code
-
-If multiple sub-terms appear under one paragraph, they are separated under the main term heading from each other by a pipe symbol.
-
-code{
-
- Paragraph containing main term, second term and sub-term.
- ={Main term:
- sub-term+2|second sub-term;
- Another term
- }
-
- A paragraph that continues discussion of the first sub-term
-
-}code
-
-The plus one in the example provided indicates the first sub-term spans one additional paragraph. The logical structure of the resulting index would be:
-
-code{
-
- Main term, 1,
- sub-term, 1-3,
- second sub-term, 1,
- Another term, 1
-
-}code
-
-1~ Composite documents markup
-={ SiSU markup:composite documents;composite documents }
-
-It is possible to build a document by creating a master document that requires other documents. The documents required may be complete documents that could be generated independently, or they could be markup snippets, prepared so as to be easily available to be placed within another text. If the calling document is a master document (built from other documents), it should be named with the suffix *{.ssm}* Within this document you would provide information on the other documents that should be included within the text. These may be other documents that would be processed in a regular way, or markup bits prepared only for inclusion within a master document *{.sst}* regular markup file, or *{.ssi}* (insert/information) A secondary file of the composite document is built prior to processing with the same prefix and the suffix *{._sst}*
-
-basic markup for importing a document into a master document
-
-code{
-
-<< filename1.sst
-
-<< filename2.ssi
-
-}code
-
-The form described above should be relied on. Within the Vim editor it results in the text thus linked becoming hyperlinked to the document it is calling in which is convenient for editing.
-
-1~ Substitutions
-={ SiSU markup:substitutions;substitutions }
-
-!_ markup example:
-
-code{
-
-The current Debian is ${debian_stable} the next debian will be ${debian_testing}
-
-Configure substitution in _sisu/sisu_document_make
-
-@make:
- :substitute: /${debian_stable}/,'*{Wheezy}*' /${debian_testing}/,'*{Jessie}*'
-
-}code
-
-!_ resulting output:
-
-The current Debian is ${debian_stable} the next debian will be ${debian_testing}
-
-Another test ${sisudoc} ok?
-
-Configure substitution in _sisu/sisu_document_make
-
-1~ Footnote, endnote stress test
-
-Globalisation is to be observed as a trend intrinsic to the world economy.~{ As Maria Cattaui Livanos suggests in /{The global economy - an opportunity to be seized}/ in /{Business World}/ the Electronic magazine of the International Chamber of Commerce (Paris, July 1997) at http://www.iccwbo.org/html/globalec.htm \\ "Globalization is unstoppable. Even though it may be only in its early stages, it is already intrinsic to the world economy. We have to live with it, recognize its advantages and learn to manage it. \\ That imperative applies to governments, who would be unwise to attempt to stem the tide for reasons of political expediency. It also goes for companies of all sizes, who must now compete on global markets and learn to adjust their strategies accordingly, seizing the opportunities that globalization offers."}~ Rudimentary economics explains this runaway process, as being driven by competition within the business community to achieve efficient production, and to reach and extend available markets.~{To remain successful, being in competition, the business community is compelled to take advantage of the opportunities provided by globalisation.}~ Technological advancement particularly in transport and communications has historically played a fundamental role in the furtherance of international commerce, with the Net, technology's latest spatio-temporally transforming offering, linchpin of the "new-economy", extending exponentially the global reach of the business community. The Net covers much of the essence of international commerce providing an instantaneous, low cost, convergent, global and borderless: information centre, marketplace and channel for communications, payments and the delivery of services and intellectual property. The sale of goods, however, involves the separate element of their physical delivery. The Net has raised a plethora of questions and has frequently offered solutions. The increased transparency of borders arising from the Net's ubiquitous nature results in an increased demand for the transparency of operation. As economic activities become increasingly global, to reduce transaction costs, there is a strong incentive for the "law" that provides for them, to do so in a similar dimension. The appeal of transnational legal solutions lies in the potential reduction in complexity, more widely dispersed expertise, and resulting increased transaction efficiency. The Net reflexively offers possibilities for the development of transnational legal solutions, having in a similar vein transformed the possibilities for the promulgation of texts, the sharing of ideas and collaborative ventures. There are however, likely to be tensions within the legal community protecting entrenched practices against that which is new, (both in law and technology) and the business community's goal to reduce transaction costs. This here http://sisudoc.org/now is a test and repeat { does this work? }http://www.sisudoc.com/ok.html
-
-Within commercial law an analysis of law and economics may assist in
-developing a better understanding of the relationship between commercial
-law and the commercial sector it serves.~{ Realists would contend that law
-is contextual and best understood by exploring the interrelationships
-between law and the other social sciences, such as sociology, psychology,
-political science, and economics.}~ "...[T]he importance of the
-interrelations between law and economics can be seen in the twin facts
-that legal change is often a function of economic ideas and conditions,
-which necessitate and/or generate demands for legal change, and that
-economic change is often governed by legal change."~{ Part of a section
-cited in Mercuro and Steven G. Medema, /{Economics and the Law: from
-Posner to Post-Modernism}/ (Princeton, 1997) p. 11, with reference to Karl
-N. Llewellyn The Effect of Legal Institutions upon Economics, American
-Economic Review 15 (December 1925) pp 655-683, Mark M. Litchman Economics,
-the Basis of Law, American Law Review 61 (May-June 1927) pp 357-387, and
-W. S. Holdsworth A Neglected Aspect of the Relations between Economic and
-Legal History, Economic History Review 1 (January 1927-1928) pp 114-123.}~
-In doing so, however, it is important to be aware that there are several
-competing schools of law and economics, with different perspectives,
-levels of abstraction, and analytical consequences of and for the world
-that they model.~{ For a good introduction see Nicholas Mercuro and Steven
-G. Medema, /{Economics and the Law: from Posner to Post-Modernism}/
-(Princeton, 1997). These include: Chicago law and economics (New law and
-economics); New Haven School of law and economics; Public Choice Theory;
-Institutional law and economics; Neoinstitutional law and economics;
-Critical Legal Studies.}~ This sentence trails test endnote.
-
-Difference?~{ puzzle away }~
-
-* !glossary
-
-head
-
-header
-document header, containing document specific (i) metadata information or (ii) make instructions
-
-(document) structure
-relationship between headings and sub-headings, and the objects they contain. Document structure is extracted from heading levels, which are either: explicitly marked up, or; determined from a make regex provided in the document header. Use of document structure allow for the meaningful representation of documents in alternative ways and the use of ocn permits easy reference across different output formats.
-
-heading
-document heading, each heading is marked indicating its level (in relation to other headings), and this is used as basis for determininge document structure. There are 8 levels, which are can be distinguesed as being one of three types: (i) 1 title level (marked up A or numeric 0); (ii) 3 optional document division levels, above text separating headings (marked up B - D, or numeric 1 to 3); (iii) 4 text headings (marked up 1 - 4, or numeric 4 to 7)
-
-levels == heading levels
-document heading level, see heading and structure
-
-marked up headings / mark up level
-
-collapsed headings / collapsed levels
-
-numeric levels
-
-dummy heading
-a markup level 1 / dummy level 4 that does not exist in the original text that is manually inserted to maintain the documents structure rule that text follows a heading of markup level 1 (rather than A to D) (numeric level 4 rather than 0 to 3)
-
-relatives? see ancestors and descendants
-
-document ...
-
-ancestors
-heading levels above the current heading level which it logically falls under and to which it belongs (headings preceding current level under which it occurs)
-
-decendants
-decendant headings are sub-headings beneath the current heading level, heading levels below the current heading level which are derived from it and belong to it (sub-headings contained beneath current level); decendant objects are the range of objects contained by a heading (ocn ranges for each heading in document body)
-
-(document) sections
-a document can be divided into 3 parts: front; body and; back. Front matter includes the table of contents (which is generated from headings) and any parts of the document that are presented before the document body (this might include a copyright notice for example). The document body, the substantive part of the document, all its substantive objects, including: headings, paragraphs, tables, verse etc. This is followed by optional backmatter: endnotes, generated from inline markup; glossary, from section using a subset of regular markup, with an indication that section is to be treated as glossary. Note two things glossary might do that it does not, there is: no automatic (sorting) alphabetisation of listing; no creation of term anchor tags (perhaps it should); bibliography, created from a specially marked up section, with indication that section is to be treated as bibliography; bookindex generated from dedicated markup appended to objects providing index terms and the relevant range; blurb made up of ordinary markup, with indication that section is to be treated as blurb
-
-segment, segmented text
-certain forms of output are conveniently segmented, e.g. epub and segmented html. The document is broken into chunks indicated by markup level 1 heading (numeric level 4 headings) as the significant level at which the document should be segmented, and including all decendant objects of that level. For a longer text/book this will usually the chapter level. (this is significant in e.g. for epub and segmented html, which are broken by segment, usually chosen to be chapter)
-
-scroll
-the document as a "scroll", e.g. as a single text file, or continuous html document
-
-object
-a unit of text. Objects include: headings; paragraphs; code blocks; grouped text; verse of poems; tables. Each substantive object is given an object number, that should make it citable.
-
-ocn (object citation number / citation number)
-numbers assigned sequentially to each substantive object of a document. An ocn has the characteristic of remaining identical across output formats. Translations should be prepared so number remains identical across objects in different languages
-
-citation number (see ocn / object citation number)
-
-document abstraction (== internal representation) intermediate step,
-preprocessing of document, into abstraction / representation that is used by all downstream processing, i.e. for all output formats. This allows normalisation, reducing alternative markup options to common representations, e.g. code blocks (open and close), tables, ways of instructing that text be bold, shortuct way of providing and endnote reference to a link
-
-(document) internal representation (== document abstraction)
-see document abstraction
-
-node representation
-
-attribute (object attributes)
-when the document is abstracted attributes associated with an object, for example for a: paragraph, indent (hang ... check & add), bulleted, for a: code block, the language syntax, whether the block is numbered
-
-inline markup
-when the document is abstracted, markup that remains embedded in the text, such as its font face (bold, italic, emphasis, underscore, strike, superscript, subscript), links, endnotes
-
-sequential all objects backkeeping number?
-
-1~commands Sample Commands
-
-2~ general
-
-~sdp/bin/sdp-ldc -v --epub --html --sqlite-update --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-time ( ~sdp/bin/sdp-ldc -v --epub --html --sqlite-update --output-dir=tmp/program-output data/sisupod/* )
-
-2~ source & sisupod
-
-~sdp/bin/sdp-ldc -v --source --sisupod --output-dir=tmp/program-output data/sisudir/media/text/sisu-manual.sst
-
-~sdp/bin/sdp-ldc -v --source --sisupod --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-~sdp/bin/sdp-ldc -v --source --sisupod --output-dir=tmp/program-output data/sisupod/*
-
-2~ sqlite
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --output-dir=tmp/program-output
-
-~sdp/bin/sdp-ldc -v --sqlite-db-create --output-dir=tmp/program-output
-
-~sdp/bin/sdp-ldc -v --sqlite-db-recreate --output-dir=tmp/program-output
-
-~sdp/bin/sdp-ldc -v --sqlite-db-recreate --sqlite-insert --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-recreate --sqlite-update --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/*
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-~sdp/bin/sdp-ldc -v --sqlite-db-drop --sqlite-db-create --sqlite-update --epub --html --output-dir=tmp/program-output data/sisupod/sisu-manual
-
-~sdp/bin/sdp-dmd -v --epub --html --output-dir=tmp/program-output data/sisudir/media/text/sisu_markup.sst
-
-1~!blurb On SiSU
-
-SiSU was started in 1997, open-sourced in 2005.
diff --git a/org/default_misc.org b/org/default_misc.org
index 8c901ca..b55e651 100644
--- a/org/default_misc.org
+++ b/org/default_misc.org
@@ -253,6 +253,7 @@ template InternalMarkup() {
string tc_c = "┚";
string tc_p = "┆";
string img = "☼";
+ string sep = "␣";
string on_o = "「"; auto on_c = "」";
string mk_bullet = "● ";
static string indent_by_spaces_provided(int indent, string _indent_spaces ="░░") {
diff --git a/org/default_paths.org b/org/default_paths.org
index 26e28f5..eeed332 100644
--- a/org/default_paths.org
+++ b/org/default_paths.org
@@ -31,7 +31,9 @@ import std.array,
std.regex,
std.stdio,
std.conv : to;
-import doc_reform.meta.rgx;
+import
+ doc_reform.meta.defaults,
+ doc_reform.meta.rgx;
<<template_paths_src>>
<<template_paths_pod>>
<<template_paths_pod_shallow>>
@@ -113,7 +115,9 @@ pod
#+BEGIN_SRC d
template PathMatters() {
mixin DocReformRgxInit;
- static auto rgx = Rgx();
+ mixin InternalMarkup;
+ static auto rgx = Rgx();
+ static auto mkup = InlineMarkup();
auto PathMatters(O,E)(
O _opt_actions,
E _env,
@@ -206,7 +210,6 @@ template PathMatters() {
string _fns = _fns; // required here by dmd & not by ldc (for D:2078)
auto _opt_actions = _opt_actions;
auto _env = _env;
- string _sep = "␣";
struct SRC_ {
bool is_pod() {
return (_manifest.pod_manifest_path.length > 0) ? true : false;
@@ -240,12 +243,12 @@ template PathMatters() {
string _uid;
if (is_pod && !(pod_name_with_path.empty)) {
if (pod_name_with_path.baseName == filename_base) {
- _uid = filename_base ~ "." ~ filename_extension ~ _sep ~ lng;
+ _uid = filename_base ~ "." ~ filename_extension ~ mkup.sep ~ lng;
} else {
- _uid = pod_name_with_path.baseName ~ _sep ~ filename_base ~ "." ~ filename_extension ~ _sep ~ lng;
+ _uid = pod_name_with_path.baseName ~ mkup.sep ~ filename_base ~ "." ~ filename_extension ~ mkup.sep ~ lng;
}
} else {
- _uid = _sep ~ filename_base ~ "." ~ filename_extension ~ _sep ~ lng;
+ _uid = mkup.sep ~ filename_base ~ "." ~ filename_extension ~ mkup.sep ~ lng;
}
return _uid;
}
@@ -259,18 +262,18 @@ template PathMatters() {
+/
string _fn;
if (pod_name_with_path.baseName == filename_base) {
- _fn = filename_base ~ _sep ~ filename_extension ~ _sep ~ lng;
+ _fn = filename_base ~ mkup.sep ~ filename_extension ~ mkup.sep ~ lng;
} else if (!(pod_name_with_path.empty)) {
- _fn = pod_name_with_path.baseName ~ _sep ~ filename_base ~ _sep ~ filename_extension ~ _sep ~ lng;
+ _fn = pod_name_with_path.baseName ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension ~ mkup.sep ~ lng;
} else {
- _fn = "_" ~ _sep ~ filename_base ~ _sep ~ filename_extension ~ _sep ~ lng;
+ _fn = "_" ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension ~ mkup.sep ~ lng;
}
return _fn;
}
string docname_composite_unique_per_src_pod() {
/+
z pod name if any + src filename (without lng code)
- filename ~ _sep ~ lng
+ filename ~ mkup.sep ~ lng
* unique per src pod
used by
- pod (multilingual collection)
@@ -278,11 +281,11 @@ template PathMatters() {
+/
string _fn;
if (pod_name_with_path.baseName == filename_base) {
- _fn = filename_base ~ _sep ~ filename_extension;
+ _fn = filename_base ~ mkup.sep ~ filename_extension;
} else if (!(pod_name_with_path.empty)) {
- _fn = pod_name_with_path.baseName ~ _sep ~ filename_base ~ _sep ~ filename_extension;
+ _fn = pod_name_with_path.baseName ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension;
} else {
- _fn = "_" ~ _sep ~ filename_base ~ _sep ~ filename_extension;
+ _fn = "_" ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension;
}
return _fn;
}
diff --git a/org/doc_reform.org b/org/doc_reform.org
index d805744..eb47d69 100644
--- a/org/doc_reform.org
+++ b/org/doc_reform.org
@@ -370,7 +370,7 @@ auto helpInfo = getopt(args,
"ocn", "--ocn object cite numbers (default)", &opts["ocn"],
"parallel", "--parallel parallelisation", &opts["parallel"],
"parallel-subprocesses", "--parallel-subprocesses nested parallelisation", &opts["parallel-subprocesses"],
- "quiet", "--quiet output to terminal", &opts["quiet"],
+ "quiet|q", "--quiet output to terminal", &opts["quiet"],
"pod", "--pod doc reform pod source content bundled", &opts["pod"],
"serial", "--serial serial processing", &opts["serial"],
"source", "--source markup source text content", &opts["source"],
diff --git a/org/meta_abstraction.org b/org/meta_abstraction.org
index 35d443f..7059b03 100644
--- a/org/meta_abstraction.org
+++ b/org/meta_abstraction.org
@@ -781,53 +781,57 @@ if there is a glossary section you need to:
line_occur["para"] = State.off;
an_object_key="glossary_nugget"; //
if (line.matchFirst(rgx.heading_glossary)) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "glossary";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Glossary";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_glossary";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "glossary";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- the_glossary_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "glossary";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Glossary";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "glossary";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
- comp_obj_heading_.tags.anchor_tags = ["glossary"];
- the_glossary_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "glossary";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Glossary";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_glossary";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "glossary";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ the_glossary_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "glossary";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Glossary";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "glossary";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
+ comp_obj_heading_.tags.anchor_tags = ["glossary"];
+ the_glossary_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
} else {
an_object = line.flow_para_match_(an_object, an_object_key, indent, bullet, obj_type_status, line_occur);
comp_obj_para = comp_obj_para.init;
@@ -919,53 +923,57 @@ if there is a blurb section you need to:
line_occur["para"] = State.off;
an_object_key="blurb_nugget";
if (line.matchFirst(rgx.heading_blurb)) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "blurb";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Blurb";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_blurb";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "blurb";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- the_blurb_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "blurb";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Blurb";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "blurb";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.tags.anchor_tags = ["blurb"];
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
- the_blurb_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "blurb";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Blurb";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_blurb";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "blurb";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ the_blurb_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "blurb";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Blurb";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "blurb";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.tags.anchor_tags = ["blurb"];
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
+ the_blurb_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
} else if (line.matchFirst(rgx.heading)
&& (opt_action.backmatter && opt_action.section_blurb)) {
comp_obj_heading_ = comp_obj_heading_.init;
@@ -1596,49 +1604,53 @@ auto biblio_ordered
#+name: abs_post
#+BEGIN_SRC d
if (biblio_ordered.length > 0) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bibliography";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Bibliography";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_bibliography";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "bibliography";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- the_bibliography_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bibliography";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Bibliography";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "bibliography";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.tags.anchor_tags = ["bibliography"];
- the_bibliography_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bibliography";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Bibliography";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_bibliography";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "bibliography";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ the_bibliography_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bibliography";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Bibliography";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "bibliography";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.tags.anchor_tags = ["bibliography"];
+ the_bibliography_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
} else {
comp_obj_heading_ = comp_obj_heading_.init;
comp_obj_heading_.metainfo.is_of_part = "empty";
@@ -1709,7 +1721,7 @@ debug(bibliosection) {
***** bibliography components
JSONValue biblio_entry_tags_jsonstr = `{
- "is" : "",
+ "is" : "",
"sortby_deemed_author_year_title" : "",
"deemed_author" : "",
"author_raw" : "",
@@ -3579,20 +3591,20 @@ void flow_txt_block_code()(
#+BEGIN_SRC d
final string biblio_tag_map()(string abr) {
auto btm = [
- "au" : "author_raw",
- "ed" : "editor_raw",
- "ti" : "fulltitle",
- "lng" : "language",
- "jo" : "journal",
- "vol" : "volume",
- "edn" : "edition",
- "yr" : "year",
- "pl" : "place",
- "pb" : "publisher",
- "pub" : "publisher",
- "pg" : "pages",
- "pgs" : "pages",
- "sn" : "short_name"
+ "au" : "author_raw",
+ "ed" : "editor_raw",
+ "ti" : "fulltitle",
+ "lng" : "language",
+ "jo" : "journal",
+ "vol" : "volume",
+ "edn" : "edition",
+ "yr" : "year",
+ "pl" : "place",
+ "pb" : "publisher",
+ "pub" : "publisher",
+ "pg" : "pages",
+ "pgs" : "pages",
+ "sn" : "short_name"
];
return btm[abr];
}
@@ -6483,8 +6495,7 @@ struct BookIndexNuggetHash {
string main_term, sub_term, sub_term_bits;
int object_number_offset, object_number_endpoint;
string[] object_numbers;
- string[][string][string] bi;
- string[][string][string] hash_nugget;
+ string[][string][string] bi_hash_nugget;
string[] bi_main_terms_split_arr;
string[][string][string] bookindex_nugget_hash(N,S)(
string bookindex_section,
@@ -6526,7 +6537,7 @@ struct BookIndexNuggetHash {
main_term = bi_main_term_and_rest[0].strip;
object_numbers ~= obj_cite_digits.object_number.to!string;
}
- bi[main_term]["_a"] ~= object_numbers;
+ bi_hash_nugget[main_term]["_a"] ~= object_numbers;
object_numbers = null;
if (bi_main_term_and_rest.length > 1) {
auto bi_sub_terms_split_arr
@@ -6545,15 +6556,14 @@ struct BookIndexNuggetHash {
object_numbers ~= obj_cite_digits.object_number.to!string;
}
if (!empty(sub_term)) {
- bi[main_term][sub_term] ~= object_numbers;
+ bi_hash_nugget[main_term][sub_term] ~= object_numbers;
}
object_numbers=null;
}
}
}
}
- hash_nugget = bi;
- return hash_nugget;
+ return bi_hash_nugget;
}
invariant() {
}
@@ -6670,53 +6680,57 @@ struct BookIndexReportSection {
&& opt_action.section_bookindex)) {
string bi_tmp;
string[] bi_tmp_tags;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bookindex";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Book Index";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_book_index";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "bookindex";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading.has.inline_links = true;
- bookindex_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bookindex";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Index";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "bookindex";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading.has.inline_links = false;
- comp_obj_heading_.tags.anchor_tags = ["bookindex"];
- bookindex_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bookindex";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Book Index";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_book_index";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "bookindex";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading.has.inline_links = true;
+ bookindex_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bookindex";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Index";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "bookindex";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading.has.inline_links = false;
+ comp_obj_heading_.tags.anchor_tags = ["bookindex"];
+ bookindex_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
import std.array : appender;
auto buffer = appender!(char[])();
string[dchar] transTable = [' ' : "_"];
@@ -6915,51 +6929,55 @@ struct NotesSection {
ObjGenericComposite comp_obj_heading_;
if ((endnotes_["notes"].length > 0)
&& (opt_action.backmatter && opt_action.section_endnotes)) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "endnotes";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Endnotes";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_endnotes";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "endnotes";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- the_endnotes_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "endnotes";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Endnotes";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "endnotes";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.tags.anchor_tags = ["endnotes"];
- the_endnotes_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "endnotes";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Endnotes";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_endnotes";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "endnotes";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ the_endnotes_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "endnotes";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Endnotes";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "endnotes";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.tags.anchor_tags = ["endnotes"];
+ the_endnotes_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
} else {
comp_obj_heading_ = comp_obj_heading_.init;
comp_obj_heading_.metainfo.is_of_part = "empty";
diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org
index a27a18a..853134f 100644
--- a/org/meta_conf_make_meta.org
+++ b/org/meta_conf_make_meta.org
@@ -67,9 +67,9 @@ import
doc_reform.meta.defaults,
doc_reform.meta.rgx;
mixin DocReformRgxInit;
-static auto _rgx = Rgx();
+static auto rgx = Rgx();
mixin InternalMarkup;
-auto _mkup = InlineMarkup();
+auto mkup = InlineMarkup();
#+END_SRC
** struct Generic ConfComposite
@@ -79,43 +79,43 @@ auto _mkup = InlineMarkup();
string url_markup(string line) {
string line_ = line
.replaceAll(
- _rgx.smid_inline_link_markup_regular,
+ rgx.smid_inline_link_markup_regular,
("$1"
- ~ _mkup.lnk_o ~ "$2" ~ _mkup.lnk_c
- ~ _mkup.url_o ~ "$3" ~ _mkup.url_c
+ ~ mkup.lnk_o ~ "$2" ~ mkup.lnk_c
+ ~ mkup.url_o ~ "$3" ~ mkup.url_c
) // ("$1{ $2 }$3$4")
)
.replaceAll(
- _rgx.smid_inline_link_naked_url,
+ rgx.smid_inline_link_naked_url,
("$1"
- ~ _mkup.lnk_o ~ "$2" ~ _mkup.lnk_c
- ~ _mkup.url_o ~ "$2" ~ _mkup.url_c
+ ~ mkup.lnk_o ~ "$2" ~ mkup.lnk_c
+ ~ mkup.url_o ~ "$2" ~ mkup.url_c
) // ("$1{ $2 }$2$3")
)
.replaceAll(
- _rgx.arr_delimiter,
- _mkup.br_line
+ rgx.arr_delimiter,
+ mkup.br_line
);
return line_;
}
struct ConfCompositeMakeStr {
- string bold;
- string breaks;
- string cover_image;
- string css;
- string emphasis;
- string[] footer;
- string[] headings;
- string[] home_button_image;
- string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
+ string bold;
+ string breaks;
+ string cover_image;
+ string css;
+ string emphasis;
+ string[] footer;
+ string[] headings;
+ string[] home_button_image;
+ string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
~ " {www.doc-reform.org}http://www.doc-reform.org;"
~ " {sources / git}https://git.doc-reform.org/software/doc-reform";
- string italics;
- string auto_num_top_at_level;
- int auto_num_top_lv = 9;
- int auto_num_depth = 2;
+ string italics;
+ string auto_num_top_at_level;
+ int auto_num_top_lv = 9;
+ int auto_num_depth = 2;
string[][] substitute;
- string texpdf_font;
+ string texpdf_font;
}
struct confCompositeMakeBuild {
string[] bold(string _mk) {
@@ -189,23 +189,23 @@ struct confCompositeMakeBuild {
#+name: meta_defaults_template_structs
#+BEGIN_SRC d
struct ConfCompositeMakeInit {
- string[] bold;
- string breaks;
- string cover_image;
- string css;
- string[] emphasis;
- string[] footer;
- string[] headings;
- string[] home_button_image;
- string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
+ string[] bold;
+ string breaks;
+ string cover_image;
+ string css;
+ string[] emphasis;
+ string[] footer;
+ string[] headings;
+ string[] home_button_image;
+ string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
~ " {www.doc-reform.org}http://www.doc-reform.org;"
~ " {sources / git}https://git.doc-reform.org/software/doc-reform";
string[] italics;
- string auto_num_top_at_level;
- int auto_num_top_lv = 9;
- int auto_num_depth = 2;
+ string auto_num_top_at_level;
+ int auto_num_top_lv = 9;
+ int auto_num_depth = 2;
string[][] substitute;
- string texpdf_font;
+ string texpdf_font;
}
#+END_SRC
@@ -255,53 +255,53 @@ struct ConfCompositeSiteLocal {
#+name: meta_defaults_template_structs
#+BEGIN_SRC d
struct MetaComposite {
- string classify_dewey;
- string classify_keywords;
- string classify_loc;
- string classify_subject;
- string classify_topic_register;
- string creator_author;
- string creator_author_email;
- string creator_illustrator;
- string creator_translator;
- string date_added_to_site;
- string date_available;
- string date_created;
- string date_issued;
- string date_modified;
- string date_published;
- string date_valid;
- string identifier_isbn;
- string identifier_oclc;
- string identifier_pg;
- string language_document;
- string language_document_char;
- string links;
- string notes_abstract;
- string notes_description;
- string original_language;
- string original_language_char;
- string original_publisher;
- string original_source;
- string original_title;
- string publisher;
- string rights_copyright;
- string rights_copyright_audio;
- string rights_copyright_cover;
- string rights_copyright_illustrations;
- string rights_copyright_photographs;
- string rights_copyright_text;
- string rights_copyright_translation;
- string rights_copyright_video;
- string rights_license;
- string title_edition;
- string title_full;
- string title_language;
- string title_main;
- string title_note;
- string title_short;
- string title_sub;
- string title_subtitle;
+ string classify_dewey;
+ string classify_keywords;
+ string classify_loc;
+ string classify_subject;
+ string classify_topic_register;
+ string creator_author;
+ string creator_author_email;
+ string creator_illustrator;
+ string creator_translator;
+ string date_added_to_site;
+ string date_available;
+ string date_created;
+ string date_issued;
+ string date_modified;
+ string date_published;
+ string date_valid;
+ string identifier_isbn;
+ string identifier_oclc;
+ string identifier_pg;
+ string language_document;
+ string language_document_char;
+ string links;
+ string notes_abstract;
+ string notes_description;
+ string original_language;
+ string original_language_char;
+ string original_publisher;
+ string original_source;
+ string original_title;
+ string publisher;
+ string rights_copyright;
+ string rights_copyright_audio;
+ string rights_copyright_cover;
+ string rights_copyright_illustrations;
+ string rights_copyright_photographs;
+ string rights_copyright_text;
+ string rights_copyright_translation;
+ string rights_copyright_video;
+ string rights_license;
+ string title_edition;
+ string title_full;
+ string title_language;
+ string title_main;
+ string title_note;
+ string title_short;
+ string title_sub;
+ string title_subtitle;
}
#+END_SRC
@@ -446,7 +446,7 @@ static template contentJSONtoDocReformStruct() {
ConfCompositePlus _struct_composite;
auto contentJSONtoDocReformStruct(C,J)(C _struct_composite, J _json, string _identifier) {
mixin DocReformRgxInit;
- static auto _rgx = Rgx();
+ static auto rgx = Rgx();
debug (json) {
writeln(">> --------------------------- >>");
foreach (tag0; _json.object.byKeyValue) {
@@ -503,7 +503,7 @@ if ("make" in _json.object) {
if (_json.object["make"]["footer"].type().to!string == "string") {
char[][] __match_footer_array
= (cast(char[]) _json.object["make"]["footer"].str)
- .split(_rgx.make_heading_delimiter);
+ .split(rgx.make_heading_delimiter);
_struct_composite.make_str.footer = __match_footer_array.to!(string[]);
} else if (_json.object["make"]["footer"].type().to!string == "array") {
string[] _match_footer_array;
@@ -517,7 +517,7 @@ if ("make" in _json.object) {
if (_json.object["make"]["headings"].type().to!string == "string") {
char[][] __match_headings_array
= (cast(char[]) _json.object["make"]["headings"].str)
- .split(_rgx.make_heading_delimiter);
+ .split(rgx.make_heading_delimiter);
_struct_composite.make_str.headings = __match_headings_array.to!(string[]);
} else if (_json.object["make"]["headings"].type().to!string == "array") {
string[] _match_headings_array;
@@ -531,7 +531,7 @@ if ("make" in _json.object) {
if (_json.object["make"]["home_button_image"].type().to!string == "string") {
char[][] __match_home_button_image_array
= (cast(char[]) _json.object["make"]["home_button_image"].str)
- .split(_rgx.make_heading_delimiter);
+ .split(rgx.make_heading_delimiter);
_struct_composite.make_str.home_button_image = __match_home_button_image_array.to!(string[]);
} else if (_json.object["make"]["home_button_image"].type().to!string == "array") {
string[] _match_home_button_image_array;
@@ -643,7 +643,7 @@ if ("webserv" in _json.object) {
&& (_json.object["webserv"]["url_root"].type().to!string == "string")
) {
_struct_composite.conf.webserv_url_doc_root = _json.object["webserv"]["url_root"].str;
- if (auto m = _struct_composite.conf.webserv_url_doc_root.match(_rgx.webserv_url_doc_root)) {
+ if (auto m = _struct_composite.conf.webserv_url_doc_root.match(rgx.webserv_url_doc_root)) {
_struct_composite.conf.webserv_url_domain = m.captures[2].to!string;
_struct_composite.conf.webserv_url_doc_path = m.captures[3].to!string;
}
@@ -981,9 +981,9 @@ if (_struct_composite.meta.creator_author.empty) {
}
string[] authors_arr;
string[] authors_raw_arr
- = _struct_composite.meta.creator_author.split(_rgx.arr_delimiter);
+ = _struct_composite.meta.creator_author.split(rgx.arr_delimiter);
foreach (author_raw; authors_raw_arr) {
- authors_arr ~= author_raw.replace(_rgx.raw_author_munge, "$2 $1");
+ authors_arr ~= author_raw.replace(rgx.raw_author_munge, "$2 $1");
}
_struct_composite.meta.creator_author = join(authors_arr, ", ").chomp.chomp;
}
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d
index 2c63dcb..be475b4 100755
--- a/src/doc_reform/doc_reform.d
+++ b/src/doc_reform/doc_reform.d
@@ -178,7 +178,7 @@ void main(string[] args) {
"ocn", "--ocn object cite numbers (default)", &opts["ocn"],
"parallel", "--parallel parallelisation", &opts["parallel"],
"parallel-subprocesses", "--parallel-subprocesses nested parallelisation", &opts["parallel-subprocesses"],
- "quiet", "--quiet output to terminal", &opts["quiet"],
+ "quiet|q", "--quiet output to terminal", &opts["quiet"],
"pod", "--pod doc reform pod source content bundled", &opts["pod"],
"serial", "--serial serial processing", &opts["serial"],
"source", "--source markup source text content", &opts["source"],
diff --git a/src/doc_reform/meta/conf_make_meta_json.d b/src/doc_reform/meta/conf_make_meta_json.d
index d7ab551..fcd52c1 100644
--- a/src/doc_reform/meta/conf_make_meta_json.d
+++ b/src/doc_reform/meta/conf_make_meta_json.d
@@ -20,7 +20,7 @@ static template contentJSONtoDocReformStruct() {
ConfCompositePlus _struct_composite;
auto contentJSONtoDocReformStruct(C,J)(C _struct_composite, J _json, string _identifier) {
mixin DocReformRgxInit;
- static auto _rgx = Rgx();
+ static auto rgx = Rgx();
debug (json) {
writeln(">> --------------------------- >>");
foreach (tag0; _json.object.byKeyValue) {
@@ -67,7 +67,7 @@ static template contentJSONtoDocReformStruct() {
if (_json.object["make"]["footer"].type().to!string == "string") {
char[][] __match_footer_array
= (cast(char[]) _json.object["make"]["footer"].str)
- .split(_rgx.make_heading_delimiter);
+ .split(rgx.make_heading_delimiter);
_struct_composite.make_str.footer = __match_footer_array.to!(string[]);
} else if (_json.object["make"]["footer"].type().to!string == "array") {
string[] _match_footer_array;
@@ -81,7 +81,7 @@ static template contentJSONtoDocReformStruct() {
if (_json.object["make"]["headings"].type().to!string == "string") {
char[][] __match_headings_array
= (cast(char[]) _json.object["make"]["headings"].str)
- .split(_rgx.make_heading_delimiter);
+ .split(rgx.make_heading_delimiter);
_struct_composite.make_str.headings = __match_headings_array.to!(string[]);
} else if (_json.object["make"]["headings"].type().to!string == "array") {
string[] _match_headings_array;
@@ -95,7 +95,7 @@ static template contentJSONtoDocReformStruct() {
if (_json.object["make"]["home_button_image"].type().to!string == "string") {
char[][] __match_home_button_image_array
= (cast(char[]) _json.object["make"]["home_button_image"].str)
- .split(_rgx.make_heading_delimiter);
+ .split(rgx.make_heading_delimiter);
_struct_composite.make_str.home_button_image = __match_home_button_image_array.to!(string[]);
} else if (_json.object["make"]["home_button_image"].type().to!string == "array") {
string[] _match_home_button_image_array;
@@ -201,7 +201,7 @@ static template contentJSONtoDocReformStruct() {
&& (_json.object["webserv"]["url_root"].type().to!string == "string")
) {
_struct_composite.conf.webserv_url_doc_root = _json.object["webserv"]["url_root"].str;
- if (auto m = _struct_composite.conf.webserv_url_doc_root.match(_rgx.webserv_url_doc_root)) {
+ if (auto m = _struct_composite.conf.webserv_url_doc_root.match(rgx.webserv_url_doc_root)) {
_struct_composite.conf.webserv_url_domain = m.captures[2].to!string;
_struct_composite.conf.webserv_url_doc_path = m.captures[3].to!string;
}
@@ -533,9 +533,9 @@ static template contentJSONtoDocReformStruct() {
}
string[] authors_arr;
string[] authors_raw_arr
- = _struct_composite.meta.creator_author.split(_rgx.arr_delimiter);
+ = _struct_composite.meta.creator_author.split(rgx.arr_delimiter);
foreach (author_raw; authors_raw_arr) {
- authors_arr ~= author_raw.replace(_rgx.raw_author_munge, "$2 $1");
+ authors_arr ~= author_raw.replace(rgx.raw_author_munge, "$2 $1");
}
_struct_composite.meta.creator_author = join(authors_arr, ", ").chomp.chomp;
}
diff --git a/src/doc_reform/meta/conf_make_meta_structs.d b/src/doc_reform/meta/conf_make_meta_structs.d
index e214565..874e509 100644
--- a/src/doc_reform/meta/conf_make_meta_structs.d
+++ b/src/doc_reform/meta/conf_make_meta_structs.d
@@ -13,49 +13,49 @@ import
doc_reform.meta.defaults,
doc_reform.meta.rgx;
mixin DocReformRgxInit;
-static auto _rgx = Rgx();
+static auto rgx = Rgx();
mixin InternalMarkup;
-auto _mkup = InlineMarkup();
+auto mkup = InlineMarkup();
string url_markup(string line) {
string line_ = line
.replaceAll(
- _rgx.smid_inline_link_markup_regular,
+ rgx.smid_inline_link_markup_regular,
("$1"
- ~ _mkup.lnk_o ~ "$2" ~ _mkup.lnk_c
- ~ _mkup.url_o ~ "$3" ~ _mkup.url_c
+ ~ mkup.lnk_o ~ "$2" ~ mkup.lnk_c
+ ~ mkup.url_o ~ "$3" ~ mkup.url_c
) // ("$1{ $2 }$3$4")
)
.replaceAll(
- _rgx.smid_inline_link_naked_url,
+ rgx.smid_inline_link_naked_url,
("$1"
- ~ _mkup.lnk_o ~ "$2" ~ _mkup.lnk_c
- ~ _mkup.url_o ~ "$2" ~ _mkup.url_c
+ ~ mkup.lnk_o ~ "$2" ~ mkup.lnk_c
+ ~ mkup.url_o ~ "$2" ~ mkup.url_c
) // ("$1{ $2 }$2$3")
)
.replaceAll(
- _rgx.arr_delimiter,
- _mkup.br_line
+ rgx.arr_delimiter,
+ mkup.br_line
);
return line_;
}
struct ConfCompositeMakeStr {
- string bold;
- string breaks;
- string cover_image;
- string css;
- string emphasis;
- string[] footer;
- string[] headings;
- string[] home_button_image;
- string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
+ string bold;
+ string breaks;
+ string cover_image;
+ string css;
+ string emphasis;
+ string[] footer;
+ string[] headings;
+ string[] home_button_image;
+ string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
~ " {www.doc-reform.org}http://www.doc-reform.org;"
~ " {sources / git}https://git.doc-reform.org/software/doc-reform";
- string italics;
- string auto_num_top_at_level;
- int auto_num_top_lv = 9;
- int auto_num_depth = 2;
+ string italics;
+ string auto_num_top_at_level;
+ int auto_num_top_lv = 9;
+ int auto_num_depth = 2;
string[][] substitute;
- string texpdf_font;
+ string texpdf_font;
}
struct confCompositeMakeBuild {
string[] bold(string _mk) {
@@ -122,23 +122,23 @@ struct confCompositeMakeBuild {
}
}
struct ConfCompositeMakeInit {
- string[] bold;
- string breaks;
- string cover_image;
- string css;
- string[] emphasis;
- string[] footer;
- string[] headings;
- string[] home_button_image;
- string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
+ string[] bold;
+ string breaks;
+ string cover_image;
+ string css;
+ string[] emphasis;
+ string[] footer;
+ string[] headings;
+ string[] home_button_image;
+ string home_button_text = "{Doc Reform}http://www.doc-reform.org;"
~ " {www.doc-reform.org}http://www.doc-reform.org;"
~ " {sources / git}https://git.doc-reform.org/software/doc-reform";
string[] italics;
- string auto_num_top_at_level;
- int auto_num_top_lv = 9;
- int auto_num_depth = 2;
+ string auto_num_top_at_level;
+ int auto_num_top_lv = 9;
+ int auto_num_depth = 2;
string[][] substitute;
- string texpdf_font;
+ string texpdf_font;
}
struct ConfCompositeSiteLocal {
string webserv_url_doc_root;
@@ -176,53 +176,53 @@ struct ConfCompositeSiteLocal {
string search_title;
}
struct MetaComposite {
- string classify_dewey;
- string classify_keywords;
- string classify_loc;
- string classify_subject;
- string classify_topic_register;
- string creator_author;
- string creator_author_email;
- string creator_illustrator;
- string creator_translator;
- string date_added_to_site;
- string date_available;
- string date_created;
- string date_issued;
- string date_modified;
- string date_published;
- string date_valid;
- string identifier_isbn;
- string identifier_oclc;
- string identifier_pg;
- string language_document;
- string language_document_char;
- string links;
- string notes_abstract;
- string notes_description;
- string original_language;
- string original_language_char;
- string original_publisher;
- string original_source;
- string original_title;
- string publisher;
- string rights_copyright;
- string rights_copyright_audio;
- string rights_copyright_cover;
- string rights_copyright_illustrations;
- string rights_copyright_photographs;
- string rights_copyright_text;
- string rights_copyright_translation;
- string rights_copyright_video;
- string rights_license;
- string title_edition;
- string title_full;
- string title_language;
- string title_main;
- string title_note;
- string title_short;
- string title_sub;
- string title_subtitle;
+ string classify_dewey;
+ string classify_keywords;
+ string classify_loc;
+ string classify_subject;
+ string classify_topic_register;
+ string creator_author;
+ string creator_author_email;
+ string creator_illustrator;
+ string creator_translator;
+ string date_added_to_site;
+ string date_available;
+ string date_created;
+ string date_issued;
+ string date_modified;
+ string date_published;
+ string date_valid;
+ string identifier_isbn;
+ string identifier_oclc;
+ string identifier_pg;
+ string language_document;
+ string language_document_char;
+ string links;
+ string notes_abstract;
+ string notes_description;
+ string original_language;
+ string original_language_char;
+ string original_publisher;
+ string original_source;
+ string original_title;
+ string publisher;
+ string rights_copyright;
+ string rights_copyright_audio;
+ string rights_copyright_cover;
+ string rights_copyright_illustrations;
+ string rights_copyright_photographs;
+ string rights_copyright_text;
+ string rights_copyright_translation;
+ string rights_copyright_video;
+ string rights_license;
+ string title_edition;
+ string title_full;
+ string title_language;
+ string title_main;
+ string title_note;
+ string title_short;
+ string title_sub;
+ string title_subtitle;
}
struct ConfComposite {
MetaComposite meta;
diff --git a/src/doc_reform/meta/defaults.d b/src/doc_reform/meta/defaults.d
index 3df8816..fc5e5d1 100644
--- a/src/doc_reform/meta/defaults.d
+++ b/src/doc_reform/meta/defaults.d
@@ -155,6 +155,7 @@ template InternalMarkup() {
string tc_c = "┚";
string tc_p = "┆";
string img = "☼";
+ string sep = "␣";
string on_o = "「"; auto on_c = "」";
string mk_bullet = "● ";
static string indent_by_spaces_provided(int indent, string _indent_spaces ="░░") {
diff --git a/src/doc_reform/meta/metadoc_from_src.d b/src/doc_reform/meta/metadoc_from_src.d
index 6b6714d..ac2f80a 100644
--- a/src/doc_reform/meta/metadoc_from_src.d
+++ b/src/doc_reform/meta/metadoc_from_src.d
@@ -557,53 +557,57 @@ template DocReformDocAbstraction() {
line_occur["para"] = State.off;
an_object_key="glossary_nugget"; //
if (line.matchFirst(rgx.heading_glossary)) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "glossary";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Glossary";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_glossary";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "glossary";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- the_glossary_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "glossary";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Glossary";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "glossary";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
- comp_obj_heading_.tags.anchor_tags = ["glossary"];
- the_glossary_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "glossary";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Glossary";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_glossary";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "glossary";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ the_glossary_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "glossary";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Glossary";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "glossary";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
+ comp_obj_heading_.tags.anchor_tags = ["glossary"];
+ the_glossary_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
} else {
an_object = line.flow_para_match_(an_object, an_object_key, indent, bullet, obj_type_status, line_occur);
comp_obj_para = comp_obj_para.init;
@@ -682,53 +686,57 @@ template DocReformDocAbstraction() {
line_occur["para"] = State.off;
an_object_key="blurb_nugget";
if (line.matchFirst(rgx.heading_blurb)) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "blurb";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Blurb";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_blurb";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "blurb";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
- the_blurb_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "blurb";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Blurb";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "blurb";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.tags.anchor_tags = ["blurb"];
- comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
- comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
- the_blurb_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "blurb";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Blurb";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_blurb";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "blurb";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 0, 0, 0, 0, 0, 0];
+ the_blurb_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "blurb";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Blurb";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "blurb";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.tags.anchor_tags = ["blurb"];
+ comp_obj_heading_.metainfo.dom_structure_markedup_tags_status = [ 1, 1, 0, 0, 1, 0, 0, 0];
+ comp_obj_heading_.metainfo.dom_structure_collapsed_tags_status = [ 1, 1, 1, 0, 0, 0, 0, 0];
+ the_blurb_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
} else if (line.matchFirst(rgx.heading)
&& (opt_action.backmatter && opt_action.section_blurb)) {
comp_obj_heading_ = comp_obj_heading_.init;
@@ -1217,49 +1225,53 @@ template DocReformDocAbstraction() {
auto biblio_ordered
= biblio.flow_bibliography_(biblio_unsorted_incomplete, bib_arr_json);
if (biblio_ordered.length > 0) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bibliography";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Bibliography";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_bibliography";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "bibliography";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- the_bibliography_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bibliography";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Bibliography";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "bibliography";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.tags.anchor_tags = ["bibliography"];
- the_bibliography_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bibliography";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Bibliography";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_bibliography";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "bibliography";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ the_bibliography_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bibliography";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Bibliography";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "bibliography";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.tags.anchor_tags = ["bibliography"];
+ the_bibliography_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ }
} else {
comp_obj_heading_ = comp_obj_heading_.init;
comp_obj_heading_.metainfo.is_of_part = "empty";
@@ -3165,20 +3177,20 @@ template DocReformDocAbstraction() {
}
final string biblio_tag_map()(string abr) {
auto btm = [
- "au" : "author_raw",
- "ed" : "editor_raw",
- "ti" : "fulltitle",
- "lng" : "language",
- "jo" : "journal",
- "vol" : "volume",
- "edn" : "edition",
- "yr" : "year",
- "pl" : "place",
- "pb" : "publisher",
- "pub" : "publisher",
- "pg" : "pages",
- "pgs" : "pages",
- "sn" : "short_name"
+ "au" : "author_raw",
+ "ed" : "editor_raw",
+ "ti" : "fulltitle",
+ "lng" : "language",
+ "jo" : "journal",
+ "vol" : "volume",
+ "edn" : "edition",
+ "yr" : "year",
+ "pl" : "place",
+ "pb" : "publisher",
+ "pub" : "publisher",
+ "pg" : "pages",
+ "pgs" : "pages",
+ "sn" : "short_name"
];
return btm[abr];
}
@@ -5167,8 +5179,7 @@ template DocReformDocAbstraction() {
string main_term, sub_term, sub_term_bits;
int object_number_offset, object_number_endpoint;
string[] object_numbers;
- string[][string][string] bi;
- string[][string][string] hash_nugget;
+ string[][string][string] bi_hash_nugget;
string[] bi_main_terms_split_arr;
string[][string][string] bookindex_nugget_hash(N,S)(
string bookindex_section,
@@ -5210,7 +5221,7 @@ template DocReformDocAbstraction() {
main_term = bi_main_term_and_rest[0].strip;
object_numbers ~= obj_cite_digits.object_number.to!string;
}
- bi[main_term]["_a"] ~= object_numbers;
+ bi_hash_nugget[main_term]["_a"] ~= object_numbers;
object_numbers = null;
if (bi_main_term_and_rest.length > 1) {
auto bi_sub_terms_split_arr
@@ -5229,15 +5240,14 @@ template DocReformDocAbstraction() {
object_numbers ~= obj_cite_digits.object_number.to!string;
}
if (!empty(sub_term)) {
- bi[main_term][sub_term] ~= object_numbers;
+ bi_hash_nugget[main_term][sub_term] ~= object_numbers;
}
object_numbers=null;
}
}
}
}
- hash_nugget = bi;
- return hash_nugget;
+ return bi_hash_nugget;
}
invariant() {
}
@@ -5329,53 +5339,57 @@ template DocReformDocAbstraction() {
&& opt_action.section_bookindex)) {
string bi_tmp;
string[] bi_tmp_tags;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bookindex";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Book Index";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_book_index";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "bookindex";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading.has.inline_links = true;
- bookindex_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "bookindex";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Index";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "bookindex";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading.has.inline_links = false;
- comp_obj_heading_.tags.anchor_tags = ["bookindex"];
- bookindex_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bookindex";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Book Index";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_book_index";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "bookindex";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading.has.inline_links = true;
+ bookindex_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "bookindex";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Index";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "bookindex";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading.has.inline_links = false;
+ comp_obj_heading_.tags.anchor_tags = ["bookindex"];
+ bookindex_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
import std.array : appender;
auto buffer = appender!(char[])();
string[dchar] transTable = [' ' : "_"];
@@ -5545,51 +5559,55 @@ template DocReformDocAbstraction() {
ObjGenericComposite comp_obj_heading_;
if ((endnotes_["notes"].length > 0)
&& (opt_action.backmatter && opt_action.section_endnotes)) {
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "endnotes";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Endnotes";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = false;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_endnotes";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = "endnotes";
- comp_obj_heading_.metainfo.heading_lev_markup = 1;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- the_endnotes_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
- comp_obj_heading_ = comp_obj_heading_.init;
- comp_obj_heading_.metainfo.is_of_part = "backmatter";
- comp_obj_heading_.metainfo.is_of_section = "endnotes";
- comp_obj_heading_.metainfo.is_of_type = "para";
- comp_obj_heading_.metainfo.is_a = "heading";
- comp_obj_heading_.text = "Endnotes";
- comp_obj_heading_.metainfo.ocn = 0;
- comp_obj_heading_.metainfo.identifier = "";
- comp_obj_heading_.metainfo.dummy_heading = true;
- comp_obj_heading_.metainfo.object_number_off = true;
- comp_obj_heading_.metainfo.object_number_type = 0;
- comp_obj_heading_.tags.segment_anchor_tag_epub = "endnotes";
- comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
- comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
- comp_obj_heading_.metainfo.heading_lev_markup = 4;
- comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
- comp_obj_heading_.metainfo.parent_ocn = 1;
- comp_obj_heading_.metainfo.parent_lev_markup = 0;
- comp_obj_heading_.tags.anchor_tags = ["endnotes"];
- the_endnotes_section ~= comp_obj_heading_;
- tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
- tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
- ++mkn;
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "endnotes";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Endnotes";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = false;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "_part_endnotes";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = "endnotes";
+ comp_obj_heading_.metainfo.heading_lev_markup = 1;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 1;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ the_endnotes_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
+ {
+ comp_obj_heading_ = comp_obj_heading_.init;
+ comp_obj_heading_.metainfo.is_of_part = "backmatter";
+ comp_obj_heading_.metainfo.is_of_section = "endnotes";
+ comp_obj_heading_.metainfo.is_of_type = "para";
+ comp_obj_heading_.metainfo.is_a = "heading";
+ comp_obj_heading_.text = "Endnotes";
+ comp_obj_heading_.metainfo.ocn = 0;
+ comp_obj_heading_.metainfo.identifier = "";
+ comp_obj_heading_.metainfo.dummy_heading = true;
+ comp_obj_heading_.metainfo.object_number_off = true;
+ comp_obj_heading_.metainfo.object_number_type = 0;
+ comp_obj_heading_.tags.segment_anchor_tag_epub = "endnotes";
+ comp_obj_heading_.tags.anchor_tag_html = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ comp_obj_heading_.tags.in_segment_html = comp_obj_heading_.tags.anchor_tag_html;
+ comp_obj_heading_.metainfo.heading_lev_markup = 4;
+ comp_obj_heading_.metainfo.heading_lev_collapsed = 2;
+ comp_obj_heading_.metainfo.parent_ocn = 1;
+ comp_obj_heading_.metainfo.parent_lev_markup = 0;
+ comp_obj_heading_.tags.anchor_tags = ["endnotes"];
+ the_endnotes_section ~= comp_obj_heading_;
+ tag_assoc[comp_obj_heading_.tags.anchor_tag_html]["seg_lv4"] = comp_obj_heading_.tags.in_segment_html;
+ tag_assoc[comp_obj_heading_.tags.segment_anchor_tag_epub]["seg_lv1_to_4"] = comp_obj_heading_.tags.segment_anchor_tag_epub;
+ ++mkn;
+ }
} else {
comp_obj_heading_ = comp_obj_heading_.init;
comp_obj_heading_.metainfo.is_of_part = "empty";
diff --git a/src/doc_reform/output/defaults.d b/src/doc_reform/output/defaults.d
index ef0083a..1db06e0 100644
--- a/src/doc_reform/output/defaults.d
+++ b/src/doc_reform/output/defaults.d
@@ -34,6 +34,7 @@ template InternalMarkup() {
string tc_c = "┚";
string tc_p = "┆";
string img = "☼";
+ string sep = "␣";
string on_o = "「"; auto on_c = "」";
string mk_bullet = "● ";
static string indent_by_spaces_provided(int indent, string _indent_spaces ="░░") {
diff --git a/src/doc_reform/source/paths_source.d b/src/doc_reform/source/paths_source.d
index 4b4abf7..6efca00 100644
--- a/src/doc_reform/source/paths_source.d
+++ b/src/doc_reform/source/paths_source.d
@@ -10,7 +10,9 @@ import std.array,
std.regex,
std.stdio,
std.conv : to;
-import doc_reform.meta.rgx;
+import
+ doc_reform.meta.defaults,
+ doc_reform.meta.rgx;
template PodManifest() {
mixin DocReformRgxInit;
static auto rgx = Rgx();
@@ -60,7 +62,9 @@ template PodManifest() {
}
template PathMatters() {
mixin DocReformRgxInit;
- static auto rgx = Rgx();
+ mixin InternalMarkup;
+ static auto rgx = Rgx();
+ static auto mkup = InlineMarkup();
auto PathMatters(O,E)(
O _opt_actions,
E _env,
@@ -153,7 +157,6 @@ template PathMatters() {
string _fns = _fns; // required here by dmd & not by ldc (for D:2078)
auto _opt_actions = _opt_actions;
auto _env = _env;
- string _sep = "␣";
struct SRC_ {
bool is_pod() {
return (_manifest.pod_manifest_path.length > 0) ? true : false;
@@ -187,12 +190,12 @@ template PathMatters() {
string _uid;
if (is_pod && !(pod_name_with_path.empty)) {
if (pod_name_with_path.baseName == filename_base) {
- _uid = filename_base ~ "." ~ filename_extension ~ _sep ~ lng;
+ _uid = filename_base ~ "." ~ filename_extension ~ mkup.sep ~ lng;
} else {
- _uid = pod_name_with_path.baseName ~ _sep ~ filename_base ~ "." ~ filename_extension ~ _sep ~ lng;
+ _uid = pod_name_with_path.baseName ~ mkup.sep ~ filename_base ~ "." ~ filename_extension ~ mkup.sep ~ lng;
}
} else {
- _uid = _sep ~ filename_base ~ "." ~ filename_extension ~ _sep ~ lng;
+ _uid = mkup.sep ~ filename_base ~ "." ~ filename_extension ~ mkup.sep ~ lng;
}
return _uid;
}
@@ -206,18 +209,18 @@ template PathMatters() {
+/
string _fn;
if (pod_name_with_path.baseName == filename_base) {
- _fn = filename_base ~ _sep ~ filename_extension ~ _sep ~ lng;
+ _fn = filename_base ~ mkup.sep ~ filename_extension ~ mkup.sep ~ lng;
} else if (!(pod_name_with_path.empty)) {
- _fn = pod_name_with_path.baseName ~ _sep ~ filename_base ~ _sep ~ filename_extension ~ _sep ~ lng;
+ _fn = pod_name_with_path.baseName ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension ~ mkup.sep ~ lng;
} else {
- _fn = "_" ~ _sep ~ filename_base ~ _sep ~ filename_extension ~ _sep ~ lng;
+ _fn = "_" ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension ~ mkup.sep ~ lng;
}
return _fn;
}
string docname_composite_unique_per_src_pod() {
/+
z pod name if any + src filename (without lng code)
- filename ~ _sep ~ lng
+ filename ~ mkup.sep ~ lng
* unique per src pod
used by
- pod (multilingual collection)
@@ -225,11 +228,11 @@ template PathMatters() {
+/
string _fn;
if (pod_name_with_path.baseName == filename_base) {
- _fn = filename_base ~ _sep ~ filename_extension;
+ _fn = filename_base ~ mkup.sep ~ filename_extension;
} else if (!(pod_name_with_path.empty)) {
- _fn = pod_name_with_path.baseName ~ _sep ~ filename_base ~ _sep ~ filename_extension;
+ _fn = pod_name_with_path.baseName ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension;
} else {
- _fn = "_" ~ _sep ~ filename_base ~ _sep ~ filename_extension;
+ _fn = "_" ~ mkup.sep ~ filename_base ~ mkup.sep ~ filename_extension;
}
return _fn;
}