Title: SiSU - Markup
Creator: Ralph Amissah
Rights: Copyright (C) Ralph Amissah 2007, part of SiSU documentation;
License: GPL 3 or later

Subject: ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search
Publisher: SiSU ‹<text:a xlink:type='simple' xlink:href='http://www.jus.uio.no/sisu'>http://www.jus.uio.no/sisu</text:a>› (this copy)
Date created: 2002-08-28
Date issued: 2002-08-28
Date available: 2002-08-28
Date modified: 2011-02-07
Date: 2008-05-22
Sourcefile: sisu_markup.sst
Filetype: SiSU text 2.0
Source digest: SHA256(sisu_markup.sst)= d0fbb19d8cacd7d1919de4be558ec4dae3e0f2fcfe12d63ca148da872c5a66c1
Skin digest: SHA256(skin_sisu_manual.rb)= 689f79b53be3d51460af31dc82d6cbab4a253079db263cd715c8254a6af60eb8
Generated by: Generated by: SiSU 2.8.2 of 2011w10/5 (2011-03-11)
Ruby version: ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
Document (dal) last generated: Sun Mar 20 23:45:57 +0100 2011
SiSU - Markup,
Ralph Amissah
1
SiSU Markup 2 1. Introduction to SiSU Markup1 1. 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. 3 1.1 Summary 4 SiSU source documents are plaintext (UTF-8)2 files 2. files should be prepared using UTF-8 character encoding 5 All paragraphs are separated by an empty line. 6 Markup is comprised of: 7 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) 8 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: 9 heading levels defines document structure 10 text basic attributes, italics, bold etc. 11 grouped text (objects), which are to be treated differently, such as code blocks or poems. 12 footnotes/endnotes 13 linked text and images 14 paragraph actions, such as indent, bulleted, numbered-lists, etc. 15 Some interactive help on markup is available, by typing sisu and selecting markup or sisu --help markup 16 To check the markup in a file: 17 sisu --identify [filename].sst 18 For brief descriptive summary of markup history 19 sisu --query-history 20 or if for a particular version: 21 sisu --query-0.38 22 1.2 Markup Examples 23 1.2.1 Online 24 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/> 25 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/> 26 an alternative presentation of markup syntax: /usr/share/doc/sisu/on_markup.txt.gz 27 1.2.2 Installed 28 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 29 2. Markup of Headers 30 Headers contain either: semantic meta-data about a document, which can be used by any output module of the program, or; processing instructions. 31 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: 32 33   % this would be a comment

2.1 Sample Header 34 This current document is loaded by a master document that has a header similar to this one: 35 36   % SiSU master 2.0

     @title: SiSU
      :subtitle: Manual

     @creator: :author: Amissah, Ralph

     @rights: Copyright (C) Ralph Amissah 2007, part of SiSU documentation, License GPL 3

     @classify:
      :type: information
      :topic_register: SiSU:manual;electronic documents:SiSU:manual
      :subject: ebook, epublishing, electronic book, electronic publishing,
         electronic document, electronic citation, data structure,
          citation systems, search

     % used_by: manual

     @date:
      :published: 2008-05-22
      :created: 2002-08-28
      :issued: 2002-08-28
      :available: 2002-08-28
      :modified: 2010-03-03

     @make:
      :num_top: 1
      :breaks: new=C; break=1
      :skin: skin_sisu_manual
      :bold: /Gnu|Debian|Ruby|SiSU/
      :manpage: name=sisu - documents: markup, structuring, publishing in multiple standard formats, and search;
          synopsis=sisu [-abcDdeFhIiMmNnopqRrSsTtUuVvwXxYyZz0-9] [filename/wildcard ]
          . sisu [-Ddcv] [instruction]
          . sisu [-CcFLSVvW]
          . sisu --v2 [operations]
          . sisu --v3 [operations]

     @links:
      { SiSU Homepage }http://www.sisudoc.org/
      { SiSU Manual }http://www.sisudoc.org/sisu/sisu_manual/
      { Book Samples & Markup Examples }http://www.jus.uio.no/sisu/SiSU/examples.html
      { SiSU Download }http://www.jus.uio.no/sisu/SiSU/download.html
      { SiSU Changelog }http://www.jus.uio.no/sisu/SiSU/changelog.html
      { SiSU Git repo }http://git.sisudoc.org/?p=code/sisu.git;a=summary
      { SiSU List Archives }http://lists.sisudoc.org/pipermail/sisu/
      { SiSU @ Debian }http://packages.qa.debian.org/s/sisu.html
      { SiSU Project @ Debian }http://qa.debian.org/developer.php?login=sisu@lists.sisudoc.org
      { SiSU @ Wikipedia }http://en.wikipedia.org/wiki/SiSU

2.2 Available Headers 37 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 38 @indentifier: information or instructions 39 where the "identifier" is a tag recognised by the program, and the "information" or "instructions" belong to the tag/indentifier specified 40 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. 41 This is a sample header 42 43   % SiSU 2.0 [declared file-type identifier with markup version]

44   @title: [title text] [this header is the only one that is mandatory]
       :subtitle: [subtitle if any]
       :language: English

45   @creator:
      :author: [Lastname, First names]
      :illustrator: [Lastname, First names]
      :translator: [Lastname, First names]
      :prepared_by: [Lastname, First names]

46   @date:
      :published: [year or yyyy-mm-dd]
      :created: [year or yyyy-mm-dd]
      :issued: [year or yyyy-mm-dd]
      :available: [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]

47   @rights:
      :copyright: Copyright (C) [Year and Holder]
      :license: [Use License granted]
      :text: [Year and Holder]
      :translation: [Name, Year]
      :illustrations: [Name, Year]

48   @classify:
      :topic_register: SiSU:markup sample:book;book:novel:fantasy
      :type:
      :subject:
      :description:
      :keywords:
      :abstract:
      :isbn: [ISBN]
      :loc: [Library of Congress classification]
      :dewey: [Dewey classification
      :pg: [Project Gutenberg text number]

49   @links: { SiSU }http://www.sisudoc.org
       { FSF }http://www.fsf.org

50   @make:
      :skin: skin_name [skins change default settings related to the appearance of documents generated]
      :num_top: 1
      :headings: [text to match for each level
         (e.g. PART; Chapter; Section; Article; or another: none; BOOK|FIRST|SECOND; none; CHAPTER;)
      :breaks: new=:C; break=1
      :promo: sisu, ruby, sisu_search_libre, open_society
      :bold: [regular expression of words/phrases to be made bold]
      :italics: [regular expression of words/phrases to italicise]

51   @original:
      :language: [language]

52   @notes:
      :comment:
      :prefix: [prefix is placed just after table of contents]

3. Markup of Substantive Text 53 3.1 Heading Levels 54 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) 55 :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 56 :B~ [heading text] Second level heading [this is a heading level divider] 57 :C~ [heading text] Third level heading [this is a heading level divider] 58 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 59 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. 60 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 61 62   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)

3.2 Font Attributes 63 markup example: 64 65   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}#

resulting output: 66 normal text, emphasis, bold text, italics, underscore, citation, superscript, subscript, inserted text, strikethrough, monospace 67 normal text 68 emphasis [note: can be configured to be represented by bold, italics or underscore] 69 bold text 70 italics 71 underscore 72 citation 73 superscript 74 subscript 75 inserted text 76 strikethrough 77 monospace 78 3.3 Indentation and bullets 79 markup example: 80 81   ordinary paragraph

     _1 indent paragraph one step

     _2 indent paragraph two steps

     _9 indent paragraph nine steps

resulting output: 82 ordinary paragraph 83 indent paragraph one step 84 indent paragraph two steps 85 indent paragraph nine steps 86 markup example: 87 88   _* bullet text

     _1* bullet text, first indent

     _2* bullet text, two step indent

resulting output: 89 bullet text 90 bullet text, first indent 91 bullet text, two step indent 92 Numbered List (not to be confused with headings/titles, (document structure)) 93 markup example: 94 95   # numbered list                numbered list 1., 2., 3, etc.

     _# numbered list numbered list indented a., b., c., d., etc.

3.4 Footnotes / Endnotes 96 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 97 markup example: 98 99   ~{ a footnote or endnote }~

resulting output: 100 3 3. a footnote or endnote 101 markup example: 102 103   normal text~{ self contained endnote marker & endnote in one }~ continues

resulting output: 104 normal text4 continues 4. self contained endnote marker & endnote in one 105 markup example: 106 107   normal text ~{* unnumbered asterisk footnote/endnote, insert multiple asterisks if required }~ continues

     normal text ~{** another unnumbered asterisk footnote/endnote }~ continues

resulting output: 108 normal text * continues * unnumbered asterisk footnote/endnote, insert multiple asterisks if required 109 normal text ** continues ** another unnumbered asterisk footnote/endnote 110 markup example: 111 112   normal text ~[* editors notes, numbered asterisk footnote/endnote series ]~ continues

     normal text ~[+ editors notes, numbered asterisk footnote/endnote series ]~ continues

resulting output: 113 normal text *1 continues *1 editors notes, numbered asterisk footnote/endnote series 114 normal text +1 continues +1 editors notes, numbered asterisk footnote/endnote series 115 Alternative endnote pair notation for footnotes/endnotes: 116 117   % note the endnote marker "~^"

     normal text~^ continues

     ^~ endnote text following the paragraph in which the marker occurs

the standard and pair notation cannot be mixed in the same document 118 3.5 Links 119 3.5.1 Naked URLs within text, dealing with urls 120 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). 121 markup example: 122 123   normal text http://www.sisudoc.org/ continues

resulting output: 124 normal text <http://www.sisudoc.org/> continues 125 An escaped url without decoration 126 markup example: 127 128   normal text _http://www.sisudoc.org/ continues

     deb http://www.jus.uio.no/sisu/archive unstable main non-free

resulting output: 129 normal text <_http://www.sisudoc.org/> continues 130 deb <_http://www.jus.uio.no/sisu/archive> unstable main non-free 131 where a code block is used there is neither decoration nor hyperlinking, code blocks are discussed later in this document 132 resulting output: 133 134   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

3.5.2 Linking Text 135 To link text or an image to a url the markup is as follows 136 markup example: 137 138   about { SiSU }http://url.org markup

resulting output: 139 about SiSU markup 140 A shortcut notation is available so the url link may also be provided automatically as a footnote 141 markup example: 142 143   about {~^ SiSU }http://url.org markup

resulting output: 144 about SiSU 5 markup 5. <http://www.sisudoc.org/> 145 Internal document links to a tagged location, including an ocn 146 markup example: 147 148   about { text links }#link_text

resulting output: 149 about text links 150 Shared document collection link 151 markup example: 152 153   about { SiSU book markup examples }:SiSU/examples.html

resulting output: 154 about SiSU book markup examples 155 3.5.3 Linking Images 156 markup example: 157 158   { tux.png 64x80 }image

     % various url linked images

     {tux.png 64x80 "a better way" }http://www.sisudoc.org/

     {GnuDebianLinuxRubyBetterWay.png 100x101 "Way Better - with Gnu/Linux, Debian and Ruby" }http://www.sisudoc.org/

     {~^ ruby_logo.png "Ruby" }http://www.ruby-lang.org/en/

resulting output: 159 [tux.png] 160 [tux.png] "Gnu/Linux - a better way" 161 [GnuDebianLinuxRubyBetterWay.png] "Way Better - with Gnu/Linux, Debian and Ruby" 162 [ruby_logo.png] "Ruby" 6 6. <http://www.ruby-lang.org/en/> 163 linked url footnote shortcut 164 165   {~^ [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

166   text marker

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. 167 3.6 Grouped Text 168 3.6.1 Tables 169 Tables may be prepared in two either of two forms 170 markup example: 171 172   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

resulting output: 173 174
This is a tablethis would become column two of row onecolumn three of row one is here
And here begins another rowcolumn two of row twocolumn 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 175 markup example:7 7. Table from the Wealth of Networks by Yochai Benkler
<http://www.jus.uio.no/sisu/the_wealth_of_networks.yochai_benkler>
176
177   !_ 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.

resulting output: 178 Table 3.1: Contributors to Wikipedia, January 2001 - June 2005 179 180
Jan. 2001Jan. 2002Jan. 2003Jan. 2004July 2004June 2006
Contributors*104722,1889,65325,01148,721
Active contributors**92128463,2288,44216,945
Very active contributors***0311906921,6393,016
No. of English language articles2516,000101,000190,000320,000630,000
No. of articles, all languages2519,000138,000490,000862,0001,600,000
* Contributed at least ten times; ** at least 5 times in last month; *** more than 100 times in last month. 181 3.6.2 Poem 182 basic markup: 183 184   poem{

       Your poem here

     }poem

     Each verse in a poem is given an object number.

markup example: 185 186   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

resulting output: 187 188                     `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."'
3.6.3 Group 189 basic markup: 190 191   group{

       Your grouped text here

     }group

     A group is treated as an object and given a single object number.

markup example: 192 193   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."
                    "I'll be
                      judge, I'll
                        be jury,"
                              Said
                         cunning
                           old Fury:
                          "I'll
                           try the
                              whole
                               cause,
                                  and
                             condemn
                            you
                           to
                            death."'

     }group

resulting output: 194 195                     `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."'
3.6.4 Code 196 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. 197 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] 198 use of code tags instead of poem compared, resulting output: 199 200                       `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."'

From SiSU 2.7.7 on you can number codeblocks by placing a hash after the opening code tag code{# as demonstrated here: 201 202 1  ┆                      `Fury said to a
2  ┆                     mouse, That he
3  ┆                   met in the
4  ┆                 house,
5  ┆              "Let us
6  ┆                both go to
7  ┆                  law:  I will
8  ┆                    prosecute
9  ┆                      YOU.  --Come,
10 ┆                         I'll take no
11 ┆                          denial; We
12 ┆                       must have a
13 ┆                   trial:  For
14 ┆                really this
15 ┆             morning I've
16 ┆            nothing
17 ┆           to do."
18 ┆             Said the
19 ┆               mouse to the
20 ┆                 cur, "Such
21 ┆                   a trial,
22 ┆                     dear Sir,
23 ┆                           With
24 ┆                       no jury
25 ┆                    or judge,
26 ┆                  would be
27 ┆                wasting
28 ┆               our
29 ┆                breath."
30 ┆                 "I'll be
31 ┆                   judge, I'll
32 ┆                     be jury,"
33 ┆                           Said
34 ┆                      cunning
35 ┆                        old Fury:
36 ┆                       "I'll
37 ┆                        try the
38 ┆                           whole
39 ┆                            cause,
40 ┆                               and
41 ┆                          condemn
42 ┆                         you
43 ┆                        to
44 ┆                         death."'
3.7 Book index 203 To make an index append to paragraph the book index term relates to it, using an equal sign and curly braces. 204 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. 205 206     Paragraph containing main term and sub-term.
       ={Main term:sub-term}

The index syntax starts on a new line, but there should not be an empty line between paragraph and index markup. 207 The structure of the resulting index would be: 208 209     Main term, 1
         sub-term, 1

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. 210 211     Paragraph containing main term, second term and sub-term.
       ={first term; second term: sub-term}

The structure of the resulting index would be: 212 213     First term, 1,
       Second term, 1,
         sub-term, 1

If multiple sub-terms appear under one paragraph, they are separated under the main term heading from each other by a pipe symbol. 214 215     Paragraph containing main term, second term and sub-term.
       ={Main term:sub-term+1|second sub-term

       A paragraph that continues discussion of the first sub-term

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: 216 217     Main term, 1,
         sub-term, 1-3,
         second sub-term, 1,

4. Composite documents markup 218 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 219 basic markup for importing a document into a master document 220 221   _<_< filename1.sst

     _<_< filename2.ssi

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. Alternative markup for importation of documents under consideration, and occasionally supported have been. 222 223   _<_< filename.ssi

     _<_<{filename.ssi}

     % using textlink alternatives

     _<_< |filename.ssi|@|^|

Markup Syntax History 224 5. Notes related to Files-types and Markup Syntax 225 2.0 introduced new headers and is therefore incompatible with 1.0 though otherwise the same with the addition of a couple of tags (i.e. a superset) 226 0.38 is substantially current for version 1.0 227 depreciated 0.16 supported, though file names were changed at 0.37 228 sisu --query=[sisu version [0.38] or 'history] 229 provides a short history of changes to SiSU markup 230 SiSU 2.0 (2010-03-06:09/6) same as 1.0, apart from the changing of headers and the addition of a monospace tag related headers now grouped, e.g. 231 232   @title:
      :subtitle:

     @creator:
      :author:
      :translator:
      :illustrator:

     @rights:
      :text:
      :illustrations:

see document markup samples, and sisu --help headers 233 the monospace tag takes the form of a hash '#' 234 235   #{ this enclosed text would be monospaced }#

1.0 (2009-12-19:50/6) same as 0.69 236 0.69 (2008-09-16:37/2) (same as 1.0) and as previous (0.57) with the addition of book index tags 237 238   /^={.+?}$/

e.g. appended to a paragraph, on a new-line (without a blank line in between) logical structure produced assuming this is the first text "object" 239 240    ={GNU/Linux community distribution:Debian+2|Fedora|Gentoo;Free Software Foundation+5}

241   Free Software Foundation, 1-6
     GNU/Linux community distribution, 1
         Debian, 1-3
         Fedora, 1
         Gentoo,

0.66 (2008-02-24:07/7) same as previous, adds semantic tags, [experimental and not-used] 242 243   /[:;]{.+?}[:;][a-z+]/

0.57 (2007w34/4) SiSU 0.57 is the same as 0.42 with the introduction of some a shortcut to use the headers @title and @creator in the first heading [expanded using the contents of the headers @title: and @author:] 244 245   :A~ @title by @author

0.52 (2007w14/6) declared document type identifier at start of text/document: 246 SiSU 0.52 247 or, backward compatible using the comment marker: 248 % SiSU 0.38 249 variations include 'SiSU (text|master|insert) [version]' and 'sisu-[version]' 250 0.51 (2007w13/6) skins changed (simplified), markup unchanged 251 0.42 (2006w27/4) * (asterisk) type endnotes, used e.g. in relation to author 252 SiSU 0.42 is the same as 0.38 with the introduction of some additional endnote types, 253 Introduces some variations on endnotes, in particular the use of the asterisk 254 255   ~{* for example for describing an author }~ and ~{** for describing a second author }~

* for example for describing an author 256 ** for describing a second author 257 and 258 259   ~[* my note ]~ or ~[+ another note ]~

which numerically increments an asterisk and plus respectively 260 *1 my note +1 another note 261 0.38 (2006w15/7) introduced new/alternative notation for headers, e.g. @title: (instead of 0~title), and accompanying document structure markup, :A,:B,:C,1,2,3 (maps to previous 1,2,3,4,5,6) 262 SiSU 0.38 introduced alternative experimental header and heading/structure markers, 263 264   @headername: and headers :A~ :B~ :C~ 1~ 2~ 3~

as the equivalent of: 265 266   0~headername and headers 1~ 2~ 3~ 4~ 5~ 6~

The internal document markup of SiSU 0.16 remains valid and standard Though note that SiSU 0.37 introduced a new file naming convention 267 SiSU has in effect two sets of levels to be considered, using 0.38 notation A-C headings/levels, pre-ordinary paragraphs /pre-substantive text, and 1-3 headings/levels, levels which are followed by ordinary text. This may be conceptualised as levels A,B,C, 1,2,3, and using such letter number notation, in effect: A must exist, optional B and C may follow in sequence (not strict) 1 must exist, optional 2 and 3 may follow in sequence i.e. there are two independent heading level sequences A,B,C and 1,2,3 (using the 0.16 standard notation 1,2,3 and 4,5,6) on the positive side: the 0.38 A,B,C,1,2,3 alternative makes explicit an aspect of structuring documents in SiSU that is not otherwise obvious to the newcomer (though it appears more complicated, is more in your face and likely to be understood fairly quickly); the substantive text follows levels 1,2,3 and it is 'nice' to do most work in those levels 268 0.37 (2006w09/7) introduced new file naming convention, .sst (text), .ssm (master), .ssi (insert), markup syntax unchanged 269 SiSU 0.37 introduced new file naming convention, using the file extensions .sst .ssm and .ssi to replace .s1 .s2 .s3 .r1 .r2 .r3 and .si 270 this is captured by the following file 'rename' instruction: 271 272   rename 's/\.s[123]$/\.sst/' *.s{1,2,3}
     rename 's/\.r[123]$/\.ssm/' *.r{1,2,3}
     rename 's/\.si$/\.ssi/' *.si

The internal document markup remains unchanged, from SiSU 0.16 273 0.35 (2005w52/3) sisupod, zipped content file introduced 274 0.23 (2005w36/2) utf-8 for markup file 275 0.22 (2005w35/3) image dimensions may be omitted if rmagick is available to be relied upon 276 0.20.4 (2005w33/4) header 0~links 277 0.16 (2005w25/2) substantial changes introduced to make markup cleaner, header 0~title type, and headings [1-6]~ introduced, also percentage sign (%) at start of a text line as comment marker 278 SiSU 0.16 (0.15 development branch) introduced the use of 279 the header 0~ and headings/structure 1~ 2~ 3~ 4~ 5~ 6~ 280 in place of the 0.1 header, heading/structure notation 281 SiSU 0.1 headers and headings structure represented by header 0{~ and headings/structure 1{ 2{ 3{ 4{~ 5{ 6{ 282 Endnotes 283 Endnotes 284 Metadata SiSU Metadata, document information Manifest SiSU Manifest, alternative outputs etc.