aboutsummaryrefslogtreecommitdiffhomepage
path: root/man/man1/sisu_markup.1
blob: 474c67d8c1b5cf5c96ebe25368f557ebca371031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
.TH "sisu_markup" "1" "2007-09-16" "0.58.3" "SiSU"
.SH
SISU \- MARKUP \ [0.58],
RALPH AMISSAH
.BR

.SH
SISU MARKUP
.BR

.SH
1. INTRODUCTION TO SISU MARKUP[^1]
.BR

.SH
1.1 SUMMARY

.BR
.B SiSU
source documents are plaintext (UTF\-8)[^2] files

.BR
All paragraphs are separated by an empty line.

.BR
Markup is comprised of:

.BR
* 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)

.BR
* 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:

.BR
  * heading levels defines document structure

.BR
  * text basic attributes, italics, bold etc.

.BR
  * grouped text (objects), which are to be treated differently, such as code
  blocks or poems.

.BR
  * footnotes/endnotes

.BR
  * linked text and images

.BR
  * paragraph actions, such as indent, bulleted, numbered\-lists, etc.

.BR
Some interactive help on markup is available, by typing sisu and selecting
markup or sisu \-\-help markup

.SH
1.2 MARKUP EXAMPLES

.SH
1.2.1 ONLINE

.BR
Online markup examples are available together with the respective outputs
produced from <http://www.jus.uio.no/sisu/SiSU/2.html> or from
<http://www.jus.uio.no/sisu/sisu_examples/>

.BR
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/>

.BR
Some example marked up files are available as html with syntax highlighting for
viewing: <http://www.jus.uio.no/sisu/sample/syntax>

.BR
an alternative presentation of markup syntax:
<http://www.jus.uio.no/sisu/sample/on_markup.txt>

.SH
1.2.2 INSTALLED

.BR
With
.B SiSU
installed sample skins may be found in:
/usr/share/doc/sisu/sisu_markup_samples/dfsg (or equivalent directory) and if
sisu\-markup\-samples is installed also under:
/usr/share/doc/sisu/sisu_markup_samples/non\-free

.SH
2. MARKUP OF HEADERS
.BR

.BR
Headers consist of semantic meta\-data about a document, which can be used by
any output module of the program; and may in addition include extra processing
instructions.

.BR
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:


.nf
  % this would be a comment
.fi

.SH
2.1 SAMPLE HEADER

.BR
This current document has a header similar to this one (without the comments):


.nf
  % SiSU 0.57
  @title: SiSU
  @subtitle: Markup \ [0.58]
  @creator: Ralph Amissah
  @rights: Copyright (C) Ralph Amissah 2007, part of SiSU documentation, License GPL 3
  @type: information
  @subject: ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search
  @date.created: 2002\-08\-28
  @date.issued: 2002\-08\-28
  @date.available: 2002\-08\-28
  @date.modified: 2007\-09\-16
  @date: 2007\-09\-16
  @level: new=C; break=1; num_top=1
  % comment: in this @level header num_top=1 starts automatic heading numbering at heading level 1 (numbering continues 3 levels down); the new and break instructions are used by the LaTeX/pdf and odf output to determine where to put page breaks (that are not used by html output or say sql database population).
  @skin: skin_sisu_manual
  % skins modify the appearance of a document and are placed in a sub\-directory under ./_sisu/skin ~/.sisu/skin or /etc/sisu/skin. A skin may affect single documents that request them, all documents in a directory, or be site\-wide. (A document is affected by a single skin)
  @bold: /Gnu|Debian|Ruby|SiSU/
  @links: { SiSU Manual }http://www.jus.uio.no/sisu/sisu_manual/
  { Book Samples and Markup Examples }http://www.jus.uio.no/sisu/SiSU/2.html
  { SiSU @ Wikipedia }http://en.wikipedia.org/wiki/SiSU
  { SiSU @ Freshmeat }http://freshmeat.net/projects/sisu/
  { SiSU @ Ruby Application Archive }http://raa.ruby\-lang.org/project/sisu/
  { SiSU @ Debian }http://packages.qa.debian.org/s/sisu.html
  { SiSU Download }http://www.jus.uio.no/sisu/SiSU/download.html
  { SiSU Changelog }http://www.jus.uio.no/sisu/SiSU/changelog.html
.fi

.SH
2.2 AVAILABLE HEADERS

.BR
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 either the
form @headername: or 0~headername. All Dublin Core meta tags are available

.BR
.B @indentifier:
information or instructions

.BR
where the \"identifier\" is a tag recognised by the program, and the
\"information\" or \"instructions\" belong to the tag/indentifier specified

.BR
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.

.BR
This is a sample header

.BR
.B % SiSU 0.38
\ [declared \ file\-type \ identifier \ with \ markup \ version]

.BR
.B @title:
\ [title \ text] This is the title of the document and used as such, this
header is the only one that is
.I mandatory

.BR
.B @subtitle:
The Subtitle if any

.BR
.B @creator:
\ [or \ @author:] Name of Author

.BR
.B @subject:
(whatever your subject)

.BR
.B @description:

.BR
.B @publisher:

.BR
.B @contributor:

.BR
.B @translator:
\ [or \ @translated_by:]

.BR
.B @illustrator:
\ [or \ @illustrated_by:]

.BR
.B @prepared_by:
\ [or \ @digitized_by:]

.BR
.B @date: 2000\-08\-27
\ [ \ also \ @date.created: \ @date.issued: \ @date.available: \ @date.valid:
\ @date.modified: \ ]

.BR
.B @type: article

.BR
.B @format:

.BR
.B @identifier:

.BR
.B @source:

.BR
.B @language:
\ [or \ @language.document:] \ [country \ code \ for \ language \ if \
available, \ or \ language, \ English, \ en \ is \ the \ default \ setting] (en
\- English, fr \- French, de \- German, it \- Italian, es \- Spanish, pt \-
Portuguese, sv \- Swedish, da \- Danish, fi \- Finnish, no \- Norwegian, is \-
Icelandic, nl \- Dutch, et \- Estonian, hu \- Hungarian, pl \- Polish, ro \-
Romanian, ru \- Russian, el \- Greek, uk \- Ukranian, tr \- Turkish, sk \-
Slovak, sl \- Slovenian, hr \- Croatian, cs \- Czech, bg \- Bul garian ) \
[however, \ encodings \ are \ not \ available \ for \ all \ of \ the \
languages \ listed.]

.BR
[@language.original: \ original \ language \ in \ which \ the \ work \ was \
published]

.BR
.B @papersize:
(A4|US_letter|book_B5|book_A5|US_legal)

.BR
.B @relation:

.BR
.B @coverage:

.BR
.B @rights:
Copyright (c) Name of Right Holder, all rights reserved, or as granted:
public domain, copyleft, creative commons variant, etc.

.BR
.B @owner:

.BR
.B @keywords:
text document generation processing management latex pdf structured xml
citation \ [your \ keywords \ here, \ used \ for \ example \ by \ rss \ feeds,
\ and \ in \ sql \ searches]

.BR
.B @abstract:
\ [paper \ abstract, \ placed \ after \ table \ of \ contents]

.BR
.B @comment:
\ [...]

.BR
.B @catalogue:
loc=[Library \ of \ Congress \ classification]; dewey=[Dewey \
classification]; isbn=[ISBN]; pg=[Project \ Gutenberg \ text \ number]

.BR
.B @classify_loc:
\ [Library \ of \ Congress \ classification]

.BR
.B @classify_dewey:
\ [Dewey \ classification]

.BR
.B @classify_isbn:
\ [ISBN]

.BR
.B @classify_pg:
\ [Project \ Gutenberg \ text \ number]

.BR
.B @prefix:
\ [prefix \ is \ placed \ just \ after \ table \ of \ contents]

.BR
.B @prefix_a:
\ [prefix \ is \ placed \ just \ before \ table \ of \ contents \ \- \ not \
implemented]

.BR
.B @prefix_b:

.BR
.B @rcs:
$Id: sisu_markup.sst,v 1.2 2007/09/08 17:12:47 ralph Exp $ \ [used \ by \ rcs
\ or \ cvs \ to \ embed \ version \ (revision \ control) \ information \ into \
document, \ rcs \ or \ cvs \ can \ usefully \ provide \ a \ history \ of \
updates \ to \ a \ document \ ]

.BR
.B @structure:
PART; CHAPTER; SECTION; ARTICLE; none; none;
optional, document structure can be defined by words to match or regular
expression (the regular expression is assumed to start at the beginning of a
line of text i.e. ^) default markers :A~ to :C~ and 1~ to 6~ can be used within
text instead, without this header tag, and may be used to supplement the
instructions provided in this header tag if provided (@structure: is a synonym
for @toc:)

.BR
.B @level:
newpage=3; breakpage=4
\ [paragraph \ level, \ used \ by \ latex \ to \ breakpages, \ the \ page \
is \ optional \ eg. \ in \ newpage]

.BR
.B @markup:
information on the markup used, e.g. new=1,2,3; break=4; num_top=4 \ [or \
newpage=1,2,3; \ breakpage=4; \ num_top=4] newpage and breakpage, heading
level, used by LaTeX to breakpages. breakpage: starts on a new page in single
column text and on a new column in double column text; newpage: starts on a new
page for both single and double column texts.
num_top=4 \ [auto\-number \ document, \ starting \ at \ level \ 4. \ the \
default \ is \ to \ provide \ 3 \ levels, \ as \ in \ 1 \ level \ 4, \ 1.1 \
level \ 5, \ 1.1.1 \ level \ 6, \ markup \ to \ be \ merged \ within \ level]
num_extract \ [take \ numbering \ of \ headings \ provided \ (manually \ in \
marked \ up \ source \ document), \ and \ use \ for \ numbering \ of \
segments. \ Available \ where \ a \ clear \ numbering \ structure \ is \
provided \ within \ document, \ without \ the \ repetition \ of \ a \ number \
in \ a \ header.] \ [In \ 0.38 \ notation, \ you \ would \ map \ to \ the \
equivalent \ levels, \ the \ examples \ provided \ would \ map \ to \ the \
following \ new=A,B,C; \ break=1; \ num_top=1 \ \ [or \ newpage=A,B,C; \
breakpage=1; \ num_top=1] see headings]

.BR
.B @bold:
\ [regular \ expression \ of \ words/phrases \ to \ be \ made \ bold]

.BR
.B @italics:
\ [regular \ expression \ of \ words/phrases \ to \ italicise]

.BR
.B @vocabulary:
name of taxonomy/vocabulary/wordlist to use against document

.BR
.B @skin:
skin_doc_[name_of_desired_document_skin]
skins change default settings related to the appearance of documents
generated, such as the urls of the home site, and the icon/logo for the
document or site.

.BR
.B @links:
{
.B SiSU
}http://www.jus.uio.no/sisu/;
{ FSF }http://www.fsf.org

.BR
.B @promo:
sisu, ruby, search_libre_docs, open_society
\ [places \ content \ in \ right \ pane \ in \ html, \ makes \ use \ of \
list.yml \ and \ promo.yml, \ commented \ out \ sample \ in \ document \
sample: \
free_as_in_freedom.richard_stallman_crusade_for_free_software.sam_williams.sst]

.SH
3. MARKUP OF SUBSTANTIVE TEXT
.BR

.SH
3.1 HEADING LEVELS

.BR
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)

.BR
.B :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

.BR
.B :B~ \ [heading \ text]
Second level heading \ [this \ is \ a \ heading \ level \ divider]

.BR
.B :C~ \ [heading \ text]
Third level heading \ [this \ is \ a \ heading \ level \ divider]

.BR
.B 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

.BR
.B 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.

.BR
.B 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


.nf
  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)
.fi

.SH
3.2 FONT ATTRIBUTES

.BR
.B markup example:


.nf
  normal text !{emphasis}! *{bold text}* _{underscore}_ /{italics}/ \"{citation}\" ^{superscript}^ ,{subscript}, +{inserted text}+
  normal text
  !{emphasis}!
  *{bold text}*
  _{underscore}
  /{italics}/
  \"{citation}\"
  ^{superscript}^
  ,{subscript},
  +{inserted text}+
  \-{strikethrough}\-
.fi

.BR
.B resulting output:

.BR
normal text <em>emphasis</em>
.B bold text
.I underscore
.I italics
<cite>citation</cite> ^superscript^ \ [subscript] <ins>inserted text</ins>
<del>strikethrough</del>

.BR
normal text

.BR
<em>emphasis</em>

.BR
.B bold text

.BR
.I underscore

.BR
.I italics

.BR
<cite>citation</cite>

.BR
^superscript^

.BR
[subscript]

.BR
<ins>inserted text</ins>

.BR
<del>strikethrough</del>

.SH
3.3 INDENTATION AND BULLETS

.BR
.B markup example:


.nf
  ordinary paragraph
  _1 indent paragraph one step
  _2 indent paragraph two steps
  _9 indent paragraph nine steps
.fi

.BR
.B resulting output:

.BR
ordinary paragraph

.BR
  indent paragraph one step

.BR
    indent paragraph two steps

.BR
                  indent paragraph nine steps

.BR
.B markup example:


.nf
  * bullet text
  _1* bullet text, first indent
  _2* bullet text, two step indent
.fi

.BR
.B resulting output:

.BR
* bullet text

.BR
  * bullet text, first indent

.BR
    * bullet text, two step indent

.BR
Numbered List (not to be confused with headings/titles, (document structure))

.BR
.B markup example:


.nf
  # numbered list                numbered list 1., 2., 3, etc.
  _# numbered list numbered list indented a., b., c., d., etc.
.fi

.SH
3.4 FOOTNOTES / ENDNOTES

.BR
Footnotes and endnotes not distinguished in markup. They are automatically
numbered. Depending on the output file format (html, odf, pdf etc.), the
document output selected will have either footnotes or endnotes.

.BR
.B markup example:


.nf
  ~{ a footnote or endnote }~
.fi

.BR
.B resulting output:

.BR
[^3]

.BR
.B markup example:


.nf
  normal text~{ self contained endnote marker & endnote in one }~ continues
.fi

.BR
.B resulting output:

.BR
normal text[^4] continues

.BR
.B markup example:


.nf
  normal text ~{* unnumbered asterisk footnote/endnote, insert multiple asterisks if required }~ continues
  normal text ~{** another unnumbered asterisk footnote/endnote }~ continues
.fi

.BR
.B resulting output:

.BR
normal text \ [^*] continues

.BR
normal text \ [^**] continues

.BR
.B markup example:


.nf
  normal text ~[* \ editors \ notes, \ numbered \ asterisk \ footnote/endnote \ series \ ]~ continues
  normal text ~[+ \ editors \ notes, \ numbered \ asterisk \ footnote/endnote \ series \ ]~ continues
.fi

.BR
.B resulting output:

.BR
normal text \ [^*1] continues

.BR
normal text \ [^+1] continues

.BR
.B Alternative endnote pair notation for footnotes/endnotes:


.nf
.nf
  % note the endnote marker \"~^\"
  normal text~^ continues
  ^~ endnote text following the paragraph in which the marker occurs
.fi

.BR
the standard and pair notation cannot be mixed in the same document

.SH
3.5 LINKS

.SH
3.5.1 NAKED URLS WITHIN TEXT, DEALING WITH URLS

.BR
urls are found within text and 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).

.BR
.B markup example:


.nf
  normal text http://www.jus.uio.no/sisu continues
.fi

.BR
.B resulting output:

.BR
normal text <http://www.jus.uio.no/sisu> continues

.BR
An escaped url without decoration

.BR
.B markup example:


.nf
  normal text http://www.jus.uio.no/sisu continues
  deb http://www.jus.uio.no/sisu/archive unstable main non\-free
.fi

.BR
.B resulting output:

.BR
normal text http://www.jus.uio.no/sisu continues

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

.BR
where a code block is used there is neither decoration nor hyperlinking, code
blocks are discussed later in this document

.BR
.B resulting output:


.nf
  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
.fi

.BR
To link text or an image to a url the markup is as follows

.BR
.B markup example:


.nf
  about { SiSU }http://url.org markup
.fi

.SH
3.5.2 LINKING TEXT

.BR
.B resulting output:

.BR
about SiSU <http://www.jus.uio.no/sisu/> markup

.BR
A shortcut notation is available so the url link may also be provided
automatically as a footnote

.BR
.B markup example:


.nf
  about {~^ SiSU }http://url.org markup
.fi

.BR
.B resulting output:

.BR
about SiSU <http://www.jus.uio.no/sisu/> \ [^5] markup

.SH
3.5.3 LINKING IMAGES

.BR
.B markup example:


.nf
      [ tux.png ]
  % various url linked images
      [ tux.png ]
      [ GnuDebianLinuxRubyBetterWay.png ]
  {~^ ruby_logo.png \"Ruby\" }http://www.ruby\-lang.org/en/
.fi

.BR
.B resulting output:

.BR
[ tux.png ]

.BR
tux.png 64x80 \"Gnu/Linux \- a better way\" <http://www.jus.uio.no/sisu/>

.BR
[ \ ruby_logo \ (png \ missing) \ ] \ [^6]

.BR
GnuDebianLinuxRubyBetterWay.png 100x101 \"Way Better \- with Gnu/Linux, Debian
and Ruby\" <http://www.jus.uio.no/sisu/>

.BR
.B linked url footnote shortcut


.nf
  {~^ \ [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
.fi


.nf
  text marker *~name
.fi

.BR
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.

.SH
3.6 GROUPED TEXT

.SH
3.6.1 TABLES

.BR
Tables may be prepared in two either of two forms

.BR
.B markup example:


.nf
  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
.fi

.BR
.B resulting output:

 \ [table \ omitted, \ see \ other \ document \ formats]

.BR
a second form may be easier to work with in cases where there is not much
information in each column

.BR
.B markup example:
[^7]


.nf
  !_ 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.
.fi

.BR
.B resulting output:

.BR
.B Table 3.1: Contributors to Wikipedia, January 2001 \- June 2005

 \ [table \ omitted, \ see \ other \ document \ formats]

.BR
* Contributed at least ten times; ** at least 5 times in last month; *** more
than 100 times in last month.

.SH
3.6.2 POEM

.BR
.B basic markup:


.nf
  poem{
    Your poem here
  }poem
  Each verse in a poem is given a separate object number.
.fi

.BR
.B markup example:


.nf
  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
.fi

.BR
.B resulting output:


                    \'Fury said to a
.P
                   mouse, That he
.P
                 met in the
.P
               house,
.P
            \"Let us
.P
              both go to
.P
                law:  I will
.P
                  prosecute
.P
                    YOU.  \-\-Come,
.P
                       I\'ll take no
.P
                        denial; We
.P
                     must have a
.P
                 trial:  For
.P
              really this
.P
           morning I\'ve
.P
          nothing
.P
         to do.\"
.P
           Said the
.P
             mouse to the
.P
               cur, \"Such
.P
                 a trial,
.P
                   dear Sir,
.P
                         With
.P
                     no jury
.P
                  or judge,
.P
                would be
.P
              wasting
.P
             our
.P
              breath.\"
.P
               \"I\'ll be
.P
                 judge, I\'ll
.P
                   be jury,\"
.P
                         Said
.P
                    cunning
.P
                      old Fury:
.P
                     \"I\'ll
.P
                      try the
.P
                         whole
.P
                          cause,
.P
                             and
.P
                        condemn
.P
                       you
.P
                      to
.P
                       death.\"\'
.P

.SH
3.6.3 GROUP

.BR
.B basic markup:


.nf
  group{
    Your grouped text here
  }group
  A group is treated as an object and given a single object number.
.fi

.BR
.B markup example:


.nf
  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
.fi

.BR
.B resulting output:


                    \'Fury said to a
.P
                   mouse, That he
.P
                 met in the
.P
               house,
.P
            \"Let us
.P
              both go to
.P
                law:  I will
.P
                  prosecute
.P
                    YOU.  \-\-Come,
.P
                       I\'ll take no
.P
                        denial; We
.P
                     must have a
.P
                 trial:  For
.P
              really this
.P
           morning I\'ve
.P
          nothing
.P
         to do.\"
.P
           Said the
.P
             mouse to the
.P
               cur, \"Such
.P
                 a trial,
.P
                   dear Sir,
.P
                         With
.P
                     no jury
.P
                  or judge,
.P
                would be
.P
              wasting
.P
             our
.P
              breath.\"
.P
               \"I\'ll be
.P
                 judge, I\'ll
.P
                   be jury,\"
.P
                         Said
.P
                    cunning
.P
                      old Fury:
.P
                     \"I\'ll
.P
                      try the
.P
                         whole
.P
                          cause,
.P
                             and
.P
                        condemn
.P
                       you
.P
                      to
.P
                       death.\"\'
.P

.SH
3.6.4 CODE

.BR
Code tags are used to escape regular sisu markup, and have been used
extensively within this document to provide examples of
.B 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.

.BR
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]

.BR
.B use of code tags instead of poem compared, resulting output:


.nf
                      \'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.\"\'
.fi

.SH
4. COMPOSITE DOCUMENTS MARKUP
.BR

.BR
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
.B .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
.B .sst
regular markup file, or
.B .ssi
(insert/information) A secondary file of the composite document is built
prior to processing with the same prefix and the suffix
.B ._sst

.BR
basic markup for importing a document into a master document


.nf
  << |filename1.sst|@|^|
  << |filename2.ssi|@|^|
.fi

.BR
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.


.nf
  r{filename}
  {filename.ssi}require
  << {filename.ssi}
  % using textlink alternatives
  |filename.ssi|@|^|require
  << |filename.ssi|@|^|
  % using thlnk alternatives
  <url:filename.ssi>require
  << <url:filename.ssi>
.fi

.SH
MARKUP SYNTAX HISTORY
.BR

.SH
5. NOTES RELATED TO FILES\-TYPES AND MARKUP SYNTAX
.BR

.BR
0.38 is substantially current, depreciated 0.16 supported, though file names
were changed at 0.37

.BR
.B 0.52
(2007w14/6) declared document type identifier at start of text/document:

.BR
  .B SiSU
0.52

.BR
or, backward compatible using the comment marker:

.BR
  %
.B SiSU
0.38

.BR
variations include \'
.B SiSU
(text|master|insert) \ [version]\' and \'sisu\-[version]\'

.BR
.B 0.51
(2007w13/6) skins changed (simplified), markup unchanged

.BR
.B 0.42
(2006w27/4) * (asterisk) type endnotes, used e.g. in relation to author

.BR
.B 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)

.BR
.B 0.37
(2006w09/7) introduced new file naming convention, .sst (text), .ssm
(master), .ssi (insert), markup syntax unchanged

.BR
.B 0.35
(2005w52/3) sisupod, zipped content file introduced

.BR
.B 0.23
(2005w36/2) utf\-8 for markup file

.BR
.B 0.22
(2005w35/3) image dimensions may be omitted if rmagick is available to be
relied upon

.BR
.B 0.20.4
(2005w33/4) header 0~links

.BR
.B 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

.SH
DOCUMENT INFORMATION (METADATA)
.BR

.SH
METADATA
.BR

.BR
Document Manifest @
<http://www.jus.uio.no/sisu/sisu_manual/sisu_markup/sisu_manifest.html>

.BR
.B Dublin Core
(DC)

.BR
.I DC tags included with this document are provided here.

.BR
DC Title:
.I SiSU \- Markup \ [0.58]

.BR
DC Creator:
.I Ralph Amissah

.BR
DC Rights:
.I Copyright (C) Ralph Amissah 2007, part of SiSU documentation, License GPL
3

.BR
DC Type:
.I information

.BR
DC Date created:
.I 2002\-08\-28

.BR
DC Date issued:
.I 2002\-08\-28

.BR
DC Date available:
.I 2002\-08\-28

.BR
DC Date modified:
.I 2007\-09\-16

.BR
DC Date:
.I 2007\-09\-16

.BR
.B Version Information

.BR
Sourcefile:
.I sisu_markup.sst

.BR
Filetype:
.I SiSU text 0.58

.BR
Sourcefile Digest, MD5(sisu_markup.sst)=
.I 643738c4b96d001d107e3ea72ba17a97

.BR
Skin_Digest:
MD5(/home/ralph/grotto/theatre/dbld/sisu\-dev/sisu/data/doc/sisu/sisu_markup_samples/sisu_manual/_sisu/skin/doc/skin_sisu_manual.rb)=
.I 20fc43cf3eb6590bc3399a1aef65c5a9

.BR
.B Generated

.BR
Document (metaverse) last generated:
.I Sun Sep 23 01:13:59 +0100 2007

.BR
Generated by:
.I SiSU
.I 0.58.3
of 2007w36/4 (2007\-09\-06)

.BR
Ruby version:
.I ruby 1.8.6 (2007\-06\-07 patchlevel 36) \ [i486\-linux]

.TP
.BI 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.
.TP
.BI 2.
files should be prepared using UTF-8 character encoding
.TP
.BI 3.
a footnote or endnote
.TP
.BI 4.
self contained endnote marker & endnote in one
.TP
.BI *.
unnumbered asterisk footnote/endnote, insert multiple asterisks if required
.TP
.BI **.
another unnumbered asterisk footnote/endnote
.TP
.BI *1.
editors notes, numbered asterisk footnote/endnote series
.TP
.BI +1.
editors notes, numbered asterisk footnote/endnote series
.TP
.BI 5.
<http://www.jus.uio.no/sisu/>
.TP
.BI 6.
<http://www.ruby-lang.org/en/>
.TP
.BI 7.
Table from the Wealth of Networks by Yochai Benkler
 <http://www.jus.uio.no/sisu/the_wealth_of_networks.yochai_benkler>

.TP
Other versions of this document:
.TP
manifest: <http://www.jus.uio.no/sisu/sisu_markup/sisu_manifest.html>
.TP
html: <http://www.jus.uio.no/sisu/sisu_markup/toc.html>
.TP
pdf: <http://www.jus.uio.no/sisu/sisu_markup/portrait.pdf>
.TP
pdf: <http://www.jus.uio.no/sisu/sisu_markup/landscape.pdf>
." .TP
." manpage: http://www.jus.uio.no/sisu/sisu_markup/sisu_markup.1
.TP
at: <http://www.jus.uio.no/sisu>
.TP
.TP
* Generated by: SiSU 0.58.3 of 2007w36/4 (2007-09-06)
.TP
* Ruby version: ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
.TP
* Last Generated on: Sun Sep 23 01:14:06 +0100 2007
.TP
* SiSU http://www.jus.uio.no/sisu