aboutsummaryrefslogtreecommitdiffhomepage
path: root/data/doc/sisu/html/sisu.1.html
blob: 4922bab1873d8ca4bd344d7d3270ab871ea65801 (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
           <!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->

<html>
<head>
<title>"sisu"("1") manual page</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a><p>

<h2><a name='sect0' href='#toc0'>Name</a></h2>
<b>SiSU</b> - Structured information, Serialized Units - a document
publishing system 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
<b>sisu</b> <b>[</b> <i>-AabcDdEeFHhIMmNnopqrRSstUuVvwXxYyZz0-9</i>
<b>] [</b> <i>filename/</i> wildcard <b>]</b> <p>
<b>sisu</b> <b>[</b> <i>-Ddcv</i> <b>] [</b> <i>instruction</i> <b>]</b> <p>
<b>sisu</b> <b>[</b> <i>-CcFLSVvW</i>
<b>]</b> <p>
Note: commands should be issued from within the directory that contains
the marked up files, cd to markup directory.  
<h2><a name='sect2' href='#toc2'>Description</a></h2>
<b>SiSU</b> SiSU is a
document publishing system, that from a simple single marked-up document,
produces multiple of output formats including: plaintext, html, LaTeX,
pdf, xhtml, XML, info, and SQL (PostgreSQL and SQLite), which share numbered
text objects ("object citation numbering") and the same document structure
information. For more see: <i>&lt;<a href='http://www.jus.uio.no/sisu'>http://www.jus.uio.no/sisu</a>
&gt;</i> <p>
 
<h2><a name='sect3' href='#toc3'>Summary of man page</a></h2>

<dl>

<dt>This
man page covers a number of subjects in brief, including: document processing
command flags; document markup (basic markup and headers); configuration
files; directory structure; skins; document naming; interactive help and
other information. </dt>
<dd> </dd>
</dl>

<h2><a name='sect4' href='#toc4'>Document Processing Command Flags</a></h2>

<dl>

<dt><b>-A</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces <i>plaintext</i> with  <i>dos</i> linefeeds and without markup, (object numbers
are omitted), has footnotes at end of each paragraph that contains them
[ <i>-a</i> for equivalent Unix (linefeed) output file] [see <i>-E</i> for endnotes]. </dd>

<dt><b>-a</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces <i>plaintext</i> with  <i>Unix</i> linefeeds and without markup, (object numbers
are omitted), has footnotes at end of each paragraph that contains them
[ <i>-A</i> for equivalent dos (linefeed) output file] [see <i>-e</i> for endnotes]. </dd>

<dt><b>-b</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces  <i>xhtml/XML</i> output for browser viewing (sax parsing). </dd>

<dt><b>-C</b><i>&nbsp;[--init=site]</i>
</dt>
<dd><i>configure/initialise</i> shared output directory files initialize shared output
directory (config files such as css and dtd files are not updated if they
already exist unless modifier is used). <b>-C</b><i>&nbsp;--init=site</i> <i>configure/initialise</i>
site more extensive than <i>-C</i> on its own, shared output directory files/force
update, existing shared output config files such as css and dtd files are
updated if this modifier is used.  </dd>

<dt><b>-c</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>screen  <i>toggle</i> ansi
screen colour on or off depending on default set (unless -c flag is used:
if sisurc colour default is set to &rsquo;true&rsquo;, output to screen will be with
colour, if sisurc colour default is set to &rsquo;false&rsquo; or is undefined screen
output will be without colour). </dd>

<dt><b>-D</b><i>&nbsp;[instruction]</i><b>&nbsp;[filename]</b> </dt>
<dd>database postgresql
( <i>--pgsql</i>  may be used instead) possible instructions, include: <i>--createdb;</i>
<i>--create;</i> <i>--dropall;</i> <i>--import</i> &nbsp;[filename]; <i>--update</i> &nbsp;[filename]; <i>--remove</i> &nbsp;[filename];
see database section below. </dd>

<dt><b>-d</b><i>&nbsp;[--db-[database</i><b>&nbsp;type</b><i>&nbsp;(sqlite|pg)]]</i><b>&nbsp;--[instruction]</b><i>&nbsp;[filename]</i>
</dt>
<dd>database type default set to sqlite, (for which <i>--sqlite</i>  may be used instead)
or to specify another database <i>--db-[pgsql,</i> sqlite] (however see -D) possible
instructions include: <i>--createdb;</i> <i>--create;</i> <i>--dropall;</i> <i>--import</i> &nbsp;[filename]; <i>--update</i>
&nbsp;[filename]; <i>--remove</i> &nbsp;[filename]; see database section below. </dd>

<dt><b>-E</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces  <i>plaintext</i> with  <i>dos</i> linefeeds, and without markup, endnotes follow
the main text (in  <i>-a</i> endnotes follow the paragraphs that contain them).
There are no object numbers [see  <i>-e</i> for Unix (linefeed) output file] [see
<i>-A</i> for footnotes]. </dd>

<dt><b>-e</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>produces  <i>plaintext</i> with  <i>Unix</i> linefeeds,
and without markup, endnotes follow the main text. Object numbers are omitted.
[ <i>-E</i> for equivalent dos (linefeed) output file] [ <i>-a</i> for footnotes]. </dd>

<dt><b>-F</b><i>&nbsp;[--webserv=webrick]</i>
</dt>
<dd>generate examples of (naive) <i>cgi</i> search form for  <i>sqlite</i> and  <i>pgsql</i> depends
on your already having used sisu to populate an sqlite and/or pgsql database,
(the sqlite version scans the output directories for existing sisu_sqlite
databases, so it is first necessary to create them, before generating the
search form) see  <i>-d</i>  <i>-D</i>  and the  <i>database</i> section below. If the optional
parameter <i>--webserv=webrick</i> is passed, the cgi examples created will be set
up to use the default port set for use by the webrick server, (otherwise
the port is left blank and the system setting used, usually 80). The samples
are dumped in the present work directory which must be writable, (with
screen instructions given that they be copied to the  <i>cgi-bin</i> directory).
<i>-Fv</i>  (in addition to the above) provides some information on setting up
<i>hyperestraier</i> for sisu    </dd>

<dt>   <b>-H</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>produces  <i>html</i> without
link suffixes (.html .pdf etc.) ("Hide"). Requires an appropriately configured
web server. [behaviour switched after 0.35 see -h]. </dd>

<dt><b>-h</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>produces
 <i>html</i> (with hardlinks i.e. with name suffixes in links/local urls). html,
with internal document links that include the document suffix, i.e. whether
it is .html or .pdf (required for browsing directly off a file system, and
works with most web servers). [behaviour switched after 0.35 see -H]. </dd>

<dt><b>-I</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces  <i>texinfo</i> file. </dd>

<dt><b>-L</b> </dt>
<dd>prints license information. </dd>

<dt><b>-M</b><i>&nbsp;[filename/wildcard/url]</i>
</dt>
<dd><i>maintenance</i> mode files created for processing preserved and their locations
indicated. (also see -V) </dd>

<dt><b>-m</b><i>&nbsp;[filename/wildcard/url]</i> </dt>
<dd>assumed for most other
flags, creates new meta-markup file, (the <i>metaverse</i> ) that is used in all
subsequent processing of other output. This step is assumed for most processing
flags. To skip it see <i>-n</i> </dd>

<dt><b>-N</b><i>&nbsp;[filename/wildcard/url]</i> </dt>
<dd>document <i>digest</i> or <i>document</i>
content certificate ( <i>DCC</i> ) as <i>md5</i> digest tree of the document: the digest
for the document, and digests for each object contained within the document
(together with information on software versions that produced it)  (digest.txt).
<i>-NV</i> for verbose digest output to screen. </dd>

<dt><b>-n</b><i>&nbsp;[filename/wildcard/url]</i> </dt>
<dd>skip meta-markup
(building of "metaverse"), this skips the equivalent of  <i>-m</i> which is otherwise
assumed by most processing flags. </dd>

<dt><b>-o</b><i>&nbsp;[filename/wildcard/url]</i> </dt>
<dd>output basic
document in <i>opendocument</i> file format (opendocument.odt). </dd>

<dt><b>-p</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces  <i>LaTeX</i> pdf (portrait.pdf &amp; landscape.pdf). Default paper size is set
in config file, or document header, or provided with additional command
line parameter, e.g. <i>--papersize-a4</i> preset sizes include: &rsquo;A4&rsquo;, U.S. &rsquo;letter&rsquo; and
&rsquo;legal&rsquo; and book sizes &rsquo;A5&rsquo; and &rsquo;B5&rsquo; (system defaults to A4). </dd>

<dt><b>-q</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd><i>quiet</i> less output to screen. </dd>

<dt><b>-R</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd><i>copies</i> sisu output files
to  <i>remote</i> host using rsync. This requires that sisurc.yml has been provided
with information on hostname and username, and that you have your "keys"
and ssh agent in place. Note the behavior of rsync different if -R is used
with other flags from if used alone. Alone the rsync --delete parameter is
sent, useful for cleaning the remote directory (when -R is used together
with other flags, it is not). Also see <i>-r</i> </dd>

<dt><b>-r</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd><i>copies</i> sisu
output files to  <i>remote</i> host using scp. This requires that sisurc.yml has
been provided with information on hostname and username, and that you have
your "keys" and ssh agent in place. Also see <i>-R</i> </dd>

<dt><b>-S</b> </dt>
<dd>produces a <i>sisupod</i> a zipped
sisu directory of markup files including  <i>sisu</i> markup source files and
the directories local  <i>configuration</i> file, <i>images</i> and <i>skins.</i> <b>Note:</b> this
only includes the configuration files or skins contained in  <i>./_sisu</i> not
those in <i>~/.sisu</i> <i>-S</i> &nbsp;[filename/wildcard] option. <b>Note:</b> (this option is tested
only with zsh). </dd>

<dt><b>-S</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>produces a zipped file of the prepared
document specified along with associated images, by default named <i>sisupod.zip</i>
they may alternatively be named with the filename extension  <i>.ssp</i> This provides
a quick way of gathering the relevant parts of a sisu document which can
then for example be emailed. A sisupod includes  <i>sisu</i> markup source file,
 (along with associated documents if a master file, or available in multilingual
versions),  together with related <i>images</i> and <i>skin.</i> SiSU commands can be
run directly against a sisupod contained in a local directory, or provided
as a url on a remote site. As there is a security issue with skins provided
by other users, they are not applied unless the flag --trust or --trusted is
added to the command instruction, it is recommended that file that are
not your own are treated as untrusted. The directory structure of the unzipped
file is understood by sisu, and sisu commands can be run within it. <b>Note:</b>
if you wish to send multiple files, it quickly becomes more space efficient
to zip the sisu markup directory, rather than the individual files for
sending). See the  <i>-S</i> option without [filename/wildcard]. </dd>

<dt><b>-s</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>copies sisu markup file to output directory. </dd>

<dt><b>-t</b><i>&nbsp;[filename/wildcard</i><b>&nbsp;(*.termsheet.rb)]</b>
</dt>
<dd>standard form document builder, preprocessing feature </dd>

<dt><b>-U</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>prints  <i>url</i> output list/map for the available processing flags options
and resulting files that could be requested, (can be used to get a list
of processing options in relation to a file, together with information
on the output that would be produced),  <i>-u</i>  provides  <i>url</i> output mapping
for those flags requested for processing. The default assumes sisu_webrick
is running and provides webrick url mappings where appropriate, but these
can be switched to file system paths in sisurc.yml </dd>

<dt><b>-u</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>provides  <i>url</i> mapping of output files for the flags requested for processing,
also see  <i>-U</i> </dd>

<dt><b>-V</b> </dt>
<dd>on its own, provides SiSU  <i>version</i> and <i>environment</i> information
(sisu --help env) </dd>

<dt><b>-V</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>even more  <i>verbose</i> than the  <i>-v</i> flag.
(also see -M) </dd>

<dt><b>-v</b> </dt>
<dd>on its own, provides SiSU  <i>version</i> information </dd>

<dt><b>-v</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>provides  <i>verbose</i> output of what is being built, where it is being built
(and error messages if any), as with  <i>-u</i> flag provides a url mapping of
files created for each of the processing flag requests. See also <b>-V</b> </dd>

<dt><b>-W</b> </dt>
<dd>starts
ruby&rsquo;s  <i>webrick</i> webserver points at sisu output directories, the default
port is set to 8081 and can be changed in the resource configuration files.
[tip: the webrick server requires link suffixes, so html output should
be created using the  <i>-h</i>  option rather than  <i>-H</i> ; also, note  <i>-F</i> webrick
].     </dd>

<dt><b>-w</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>produces  <i>concordance</i> (wordmap) a rudimentary
index of all the words in a document. </dd>

<dt><b>-X</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>produces  <i>XML</i>
output with deep document structure, in the nature of dom. </dd>

<dt><b>-x</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces <i>XML</i> output shallow structure (sax parsing). </dd>

<dt><b>-Y</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces a short sitemap entry for the document, based on html output and
the sisu_manifest. <i>--sitemaps</i> generates/updates the sitemap index of existing
sitemaps. (Experimental, [g,y,m announcement this week]) </dd>

<dt><b>-y</b><i>&nbsp;[filename/wildcard]</i>
</dt>
<dd>produces an html summary of output generated (hyperlinked to content) and
document specific metadata (sisu_manifest.html). This step is assumed for
most processing flags. </dd>

<dt><b>-Z</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>Zap, if used with other processing
flags  <i>deletes</i> output files of the type about to be processed, prior to
processing.  If -Z is used as the lone processing related flag (or in conjunction
with a combination of -[mMvVq]), will remove the related document output
directory.  </dd>

<dt><b>-z</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>produces <i>php</i> (zend) [this feature is disabled
for the time being]  </dd>
</dl>

<h2><a name='sect5' href='#toc5'>modifiers</a></h2>

<dl>

<dt><b>--no-ocn</b> </dt>
<dd>[with -h -H or -p] switches off object
citation numbering. Produce output without identifying numbers in margins
of html or LaTeX/pdf output. </dd>

<dt><b>--no-annotate</b> </dt>
<dd>strips output text of editor endnotes~[*
square brackets ]~ denoted by asterisk or dagger/plus sign </dd>

<dt><b>--no-asterisk</b> </dt>
<dd>strips
output text of editor endnotes~[* square brackets ]~ denoted by asterisk
sign </dd>

<dt><b>--no-dagger</b> </dt>
<dd>strips output text of editor endnotes~[+ square brackets
]~ denoted by dagger/plus sign        </dd>
</dl>

<h2><a name='sect6' href='#toc6'>databases</a></h2>

<dl>

<dt>dbi - database interface
</dt>
<dd><b>-D</b> or <b>--pgsql</b> set for  <i>postgresql</i>  <b>-d</b> or <b>--sqlite</b> default set for  <i>sqlite</i> -d is
modifiable with --db=[database &nbsp;type &nbsp;(pgsql &nbsp;or &nbsp;sqlite)] </dd>

<dt><b>-Dv --createall</b> </dt>
<dd>initial
step, creates required relations (tables, indexes) in existing postgresql
database (a database should be created manually and given the same name
as working directory, as requested) (rb.dbi) [ <i>-dv</i> --createall sqlite equivalent]
it may be necessary to run sisu <i>-Dv</i> --createdb initially </dd>

<dt>NOTE: at the present
time for postgresql it may be necessary to manually create the database.
The command would be </dt>
<dd><i>&rsquo;createdb</i> [database name]&rsquo; where database name would
be SiSU_[present working directory name (without path)]. Please use only
alphanumerics and underscores. </dd>

<dt><b>-Dv --import </b> </dt>
<dd><i>[filename/wildcard]</i> imports data
specified to postgresql db (rb.dbi) [ <i>-dv</i> --import sqlite equivalent] </dd>

<dt><b>-Dv --update
</b> </dt>
<dd><i>[filename/wildcard]</i> updates/imports specified data to postgresql db (rb.dbi)
[ <i>-dv</i> --update sqlite equivalent] </dd>

<dt><b>-D --remove</b> </dt>
<dd><i>[filename/wildcard]</i> removes specified
data to postgresql db (rb.dbi) [ <i>-d</i> --remove sqlite equivalent]  </dd>

<dt><b>-D --dropall</b>
</dt>
<dd>kills data" and drops (postgresql or sqlite) db, tables &amp; indexes [ <i>-d</i> --dropall
sqlite equivalent]  </dd>

<dt>The v in e.g. -Dv is for verbose output. </dt>
<dd></dd>
</dl>
</blockquote>
 
<h2><a name='sect7' href='#toc7'>Shortcuts, Shorthand
for multiple flags</a></h2>

<dl>

<dt><b>--update</b><i>&nbsp;[filename/wildcard]</i> </dt>
<dd>Checks existing file output
and runs the flags required to update this output. This means that if only
html and pdf output was requested on previous runs, only the -hp files will
be applied, and only these will be generated this time, together with the
summary. This can be very convenient, if you offer different outputs of
different files, and just want to do the same again. </dd>

<dt>-0 to -5 [filename or
wildcard]     </dt>
<dd>Default shorthand mappings (note that the defaults can be
changed/configured in the sisurc.yml file): </dd>
</dl>
<p>
<i>-0</i> -mNhwpAobxXyYv  [this is the
default action run when no options are give, i.e. on &rsquo;sisu [filename]&rsquo;] <p>
<i>-1</i> -mNHwpy
<p>
<i>-2</i> -mNHwpaoy <p>
<i>-3</i> -mNhwpAobxXyY <p>
<i>-4</i> -mNhwpAobxXDyY &nbsp;--import <p>
<i>-5</i> -mNhwpAobxXDyY &nbsp;--update
<p>
add  <i>-v</i> for verbose mode and <i>-c</i> for color, e.g. <i>sisu</i> -2vc [filename or wildcard]
<p>
consider  <i>-u</i> for appended url info or  <i>-v</i> for verbose output  
<h2><a name='sect8' href='#toc8'>Document Markup</a></h2>
<b>SiSU
Markup</b> an incomplete summary.  <p>
<b>Note:</b> files should be marked up for SiSU
using  <i>UTF-8</i> encoding. <p>
Some interactive help on markup is available, by typing
 <i>sisu</i> and selecting  <i>markup</i> or <i>sisu</i> --help markup 
<dl>

<dt>Sample markup files can
be used as examples: </dt>
<dd><i>&lt;<a href='http://www.jus.uio.no/sisu/sample'>http://www.jus.uio.no/sisu/sample</a>
&gt;</i> </dd>

<dt>actual marked up plaintext
files ready for use: </dt>
<dd><i>&lt;<a href='http://www.jus.uio.no/sisu/sample/markup'>http://www.jus.uio.no/sisu/sample/markup</a>
&gt;</i> </dd>

<dt>as html with
syntax highlighting for viewing: </dt>
<dd><i>&lt;<a href='http://www.jus.uio.no/sisu/sample/syntax'>http://www.jus.uio.no/sisu/sample/syntax</a>
&gt;</i>
</dd>

<dt>an alternative presentation of markup syntax: </dt>
<dd><i>&lt;<a href='http://www.jus.uio.no/sisu/sample/on_markup.txt'>http://www.jus.uio.no/sisu/sample/on_markup.txt</a>
&gt;</i>
 </dd>
</dl>

<h2><a name='sect9' href='#toc9'>Basic Markup</a></h2>
Data text markup (alternative to available html subset)  <p>
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.  <i>:A~</i> usually the title  <i>:A~?</i> conditional level 1 heading
(used where a stand-alone document may be imported into another) <p>
<i>1~filename</i>
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) <p>
<i>!{</i> emphasis <i>}!</i> <p>
<i>*{</i> bold text <i>}*</i>
<p>
<i>_{</i> underscore <i>}_</i> <p>
<i>/{</i> italics <i>}/</i> <p>
<i>&rsquo;"{</i> citation <i>}"</i> <p>
<i>^{</i> superscript <i>}^</i> <p>
<i>,{</i> subscript
<i>},</i> <p>
<i>+{</i> inserted text <i>}+</i> <p>
<i>-{</i> strikethrough <i>}-</i>  
<h2><a name='sect10' href='#toc10'>Footnotes/Endnotes</a></h2>
<p>
<i>~{</i> a footnote
or endnote <i>}~</i> <p>
footnote/endnote <i>~{</i> self contained endnote marker &amp; endnote
in one <i>}~</i> <p>
<i>~{*</i> unnumbered asterisk footnote/endnote, insert multiple asterisks
if required <i>}~</i> <p>
<i>~[*</i> editors notes, numbered asterisk footnote/endnote series
<i>]~</i> (+ the plus sign may be used as well) <p>
alternative endnote pair notation:
<p>
<i>~^</i> endnote marker <p>
<i>^~</i> endnote text following the paragraph in which the marker
occurs  
<h2><a name='sect11' href='#toc11'>Line Operations (marker placed at start of line)</a></h2>
<p>
<i>!_</i> bold line <p>
<i>_1</i>
indent paragraph one level <p>
<i>_2</i> indent paragraph two steps <p>
<i>_*</i> bullet paragraph
<p>
<i>#</i> number paragraph          (see headers for numbering document headings)
<p>
<i>_#</i> number paragraph level 2  (see headers for numbering document headings)
 
<h2><a name='sect12' href='#toc12'>Links</a></h2>
<p>
<i>{</i> link name <i>}<a href='http://url.org'>http://url.org</i></a>
 <p>
<i>{</i> image.png <i>}<a href='http://url.org'>http://url.org</i></a>
 <p>
<i>{</i> image.png <i>}image</i>
<p>
<i>{</i> tux.png 64x80 <i>}image</i> <p>
NOTE: (a) png and jpg support only (no gif) (b) width
x height, not required if imagemagick is installed, (where provided, dimensions
may be smaller than the actual image), [images should be no larger than
width: 480 and height: 640] <p>
the shortcut: <p>
<i>{~^</i> [text to link] <i>}<a href='http://url.org'>http://url.org</i></a>

<p>
is equivalent to:  <p>
<i>{</i> [text to link] <i>}<a href='http://url.org'>http://url.org</i></a>
 <i>~{</i> <a href='http://url.org'>http://url.org</a>
 <i>}~</i>
<p>
(which produces hyper-linked text within a document/paragraph, with an endnote
providing the url for the text location used in the hyperlink) <p>
url example:
<p>
<i>{</i> SiSU Geek Writer <i>}<a href='http://www.jus.uio.no/sisu/'>http://www.jus.uio.no/sisu/</i></a>
 <p>
linked image: <p>
<i>{</i> tux.png 64x80
"a better way" <i>}<a href='http://www.jus.uio.no/sisu/'>http://www.jus.uio.no/sisu/</i></a>
 image example with all options
<p>
note width x height <p>
the shortcut: <p>
<i>{</i> [text to link] <i>[3sS]}markup_source_filename.sst</i>
<p>
if a server host name has been provided/configured, will provide a list
of available output types that would be generated using the shortcut command
and the markup file provided, i.e. output generated using the command (as
configured): "sisu -3sS markup_source_filename.sst", using server host, directory
stub, filename to compose the link.  
<h2><a name='sect13' href='#toc13'>Adding a fixed names in html</a></h2>
<p>
<i>*~[name]</i>
manual location marker/tagging at present only in html to produce &lt;a name="[name]"&gt;&lt;/a&gt;
(use sparingly) <blockquote>note at a heading level the same is automatically achieved
by providing names to headings 5 and 6 i.e. 5~[name] and 6~[name] or in the
case of auto-heading numbering, without further intervention. </blockquote>
 
<h2><a name='sect14' href='#toc14'>Escape object
citation numbering</a></h2>
<p>
(place marker at end of paragraph) <p>
<i>~#</i> unnumbered paragraph
<p>
<i>-#</i> unnumbered paragraph, delete when not required (place marker at end of
paragraph) [used in dummy headings, eg. for segmented html] <p>
It is convenient
to mention here that the  <i>-0</i> flag generates html and latex/pdf output without
visible object character numbers. <p>
<i>sisu</i> -0 [filename.sst]  
<h2><a name='sect15' href='#toc15'>Page breaks (LaTeX/pdf)</a></h2>
<p>
page
breaks are introduced to pdfs either as header instructions, indicating
that pages should break at given levels, and mentioned in the header section,
or manually, using the following notation <p>
<i>&lt;:pb&gt;</i> page break, which breaks
a page, starting a new page in single column text and a new column in double
column text <p>
<i>&lt;:pn&gt;</i> page new, which starts a new page, in both single and double
column text (leaving an empty column in double column text if necessary).
 
<h2><a name='sect16' href='#toc16'>Comment line</a></h2>
<p>
<i>%</i> ignored by sisu in processing if placed at beginning of
line <p>
<i>%%</i> ignored by sisu in processing if placed at beginning of line, used
for folding by vim folds  
<h2><a name='sect17' href='#toc17'>Special characters</a></h2>
special characters can be escaped
with a backslash  <i>{</i> } &lt; &gt; are contextual special characters, (in combination
with other characters). <i>~</i> - _ / % ^ and occasionally <i>!</i> # + , are special characters
in particular circumstances, see the syntax chart. [note that SiSU is not
optimised for technical writing]  
<h2><a name='sect18' href='#toc18'>Tables</a></h2>
<p>
<i>table{</i> [number of columns] [column
width %];[column width %] 
<p>   [table content, line breaks are important
see example below]<br>
 
<p> <i>}table</i> 
<p>   sample table:<br>
 
<p> <i>table{~h</i> c3; 26; 32; 32; 
<p>   This is a table, column1<br>
   this would become row one of column two<br>
   column three of row one is here<br>
 
<p>   column one row 2<br>
   column two of row two<br>
   column three of row two, and so on<br>
 
<p>   column one row three<br>
   and so on<br>
   here<br>
   <br>
 <i>}table</i> 
<p> whole table gets an object citation number 
<p>  
<h2><a name='sect19' href='#toc19'>Other Grouped or
Pre-formatted Text</a></h2>
<i>poem{</i> 
<p>   [Text here]<br>
 
<p>   [Text here]<br>
 
<p> <i>}poem</i> 
<p> each verse is given an object citation number 
<p>   ----<br>
 
<p> <i>group{</i> 
<p>   [Text here]<br>
 
<p> <i>}group</i> 
<p> whole group gets an object citation number 
<p>   ----<br>
 
<p> <i>code{</i> 
<p>   [Text here]<br>
 
<p> <i>}code</i> 
<p> whole group gets an object citation number 
<p>  
<h2><a name='sect20' href='#toc20'>Composite Documents</a></h2>
<p>
It
is possible to build a document by requiring other documents. The documents
required may 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 mainly from other documents), by convention it should be named with
the suffix <i>.ssm</i> (master) 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 <i>.sst</i> regular markup
file, or <i>.ssi</i> (insert/information) <i>.sst</i> A secondary file of the composite
document is built prior to processing with the same prefix and the suffix
 <i>._sst</i> and <i>._sst</i> There are a number of alternative syntaxes for requiring
external documents in order to permit use of ascii hypertext linking available
in the vim editor. They are as follows: 
<p> 
<dl>

<dt>basic markup for importing a document
</dt>
<dd>
<p> <i>r{</i> filename <i>}</i> 
<p> <i>{</i> filename.si <i>}require</i> 
<p> <i>&lt;&lt;</i> { filename.si <i>}</i> #for vim folds 
<p>
</dd>

<dt>importing a document with textlink syntax </dt>
<dd>
<p> <i>|filename.si|@|^|require</i> 
<p> <i>&lt;&lt;</i> |filename.si|@|^|

<p>#for vim folds 
<p> </dd>

<dt>importing a document with thlnk syntax </dt>
<dd>
<p> <i>&lt;url:filename.si&gt;require</i>

<p> <i>&lt;&lt;</i> &lt;url:filename.si&gt; #for vim folds 
<p> </dd>

<dt>remote documents may be called with the
thlnk syntax (or regular sisu syntax), e.g. </dt>
<dd>
<p> <i>&lt;&lt;</i> &lt;url:<a href='http://www.url.com/filename.si'>http://www.url.com/filename.si</a>
&gt;

<p>  </dd>
</dl>

<h2><a name='sect21' href='#toc21'>Document Headers</a></h2>
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.  
<p> All
header instructions may take either form: <i>@headername:</i> [introduced in 0.38]

<p>or <i>0~headername</i> All Dublin Core meta tags are available 
<p> <i>@indentifier:</i>
information or instructions [introduced in 0.38] 
<p> or 
<p> <i>0~indentifier</i> information
or instructions, old equivalent, depreciated 
<p> where the "identifier" is
a tag recognised by the program, and the "information" or "instructions"
belong to the tag/indentifier specified. 
<p> Note: a header where used should
only be used once; all headers apart from @title: (0~title) are optional;
the @structure: (0~toc) header is used to describe document structure,
and can be useful to know. 
<p> @structure: PART; CHAPTER; SECTION; ARTICLE;
none; none; 
<p> structure can be defined by a match words or regular expression
(the regular expression is assumed to start at the beginning of a line
of text i.e. ^) 
<p>   For help see one of the following (and markup samples):<br>
 
<p>   *  interactive help - type &rsquo;sisu --help headers&rsquo;<br>
 
<p>   *  marked up text samples<br>
 
<p>   *  the SiSU_Markup.txt file provided with the program<br>
 
<p>   *  an outline of headers is provided below --&gt;<br>
  
<h2><a name='sect22' href='#toc22'>Outline of header options</a></h2>
<i>%</i> SiSU 0.38 [declared file-type identifier with
markup version] 
<p> <i>@title:</i> My Title - This is now the Title of the Document

<p>and used as such 
<p> <i>@subtitle:</i> The Subtitle if any 
<p> <i>@creator:</i> [or ~author]

<p>Ralph Amissah 
<p> <i>@subject:</i> (whatever your subject) 
<p> <i>@description:</i> 
<p> <i>@publisher:</i>

<p> <i>@contributor:</i> 
<p> <i>@translator:</i> [or ~translated_by] 
<p> <i>@illustrator:</i> [or ~illustrated_by]

<p> <i>@prepared_by:</i> [or ~digitized_by] 
<p> <i>@date:</i> 2000-08-27 [ also @date.created:
@date.issued: @date.available: @date.valid: @date.modified: ] 
<p> <i>@type:</i> article

<p> <i>@format:</i> 
<p> <i>@identifier:</i> 
<p> <i>@source:</i> 
<p> <i>@language:</i>  [or @language.document:]
language in which current version of document is published. Some country
settings result in processing adjustments, e.g. in LaTeX hyphenation, some
country codes are recognized, but the language name in Engish is preferred.
English 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, ee - Estonian, hu - Hungarian, pl
- Polish, ro - Romanian, ru - Russian, gl - Greek, uk - Ukranian, tr - Turkish,
si - Slovene, sk - Slovak, hr - Croatian, cs - Czech, bg - Bulgarian ) [however,
encodings are not available for all of the languages listed.] 
<p> <i>@language.original:</i>

<p>original language in which the work was published 
<p> <i>@papersize:</i> (A4|US_letter|book_B5|book_A5|US_legal)

<p> <i>@relation:</i> 
<p> <i>@coverage:</i> 
<p> <i>@rights:</i> copyright, all rights reserved, public
domain, copyleft, creative commons variant, etc. 
<p> <i>@owner:</i> 
<p> <i>@keywords:</i> text
document generation processing management LaTeX pdf structured XML citation
[your keywords here, used for example by rss feeds, and in sql sear ches]

<p> <i>@abstract:</i> [paper abstract, placed after table of contents] 
<p> <i>@comment:</i>
[...] 
<p> <i>@catalogue:</i> loc=[Library of Congress classification]; dewey=[Dewey
classification]; isbn=[ISBN]; pg=[Project Gutenberg text number] 
<p> <i>@classify_loc:</i>

<p>Library of Congress classification 
<p> <i>@classify_dewey:</i> Dewey classification

<p> <i>@classify_isbn:</i> ISBN 
<p> <i>@classify_pg:</i> Project Gutenberg text number 
<p> <i>@prefix_a:</i>
[prefix is placed just before table of contents - not implemented] 
<p> <i>@prefix_b:</i>
or @prefix: [prefix is placed just after table of contents] 
<p> <i>@rcs:</i> $Id$
[or  <i>@cvs:</i> 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 ] 
<p> <i>@structure:</i> PART; CHAPTER; SECTION; ARTICLE; none; none;
optional, where document structure can be defined by a match words 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 ta g, and may be used to supplement
the instructions provided in this header tag if provided (@structure: is
a synonym for @toc:) 
<p> <i>@markup:</i> information on the markup used, e.g. <i>new=1,2,3;</i>
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.
<i>num_top=4</i> [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] <i>num_extract</i> [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] 
<p> <i>@bold:</i> [regular expression of words/phrases to be made bold]

<p> <i>@italics:</i> [regular expression of words/phrases to italicise]  <br>
 <i>@vocabulary:</i> name of taxonomy/vocabulary/wordlist to use against document

<p> <i>@skin:</i> skin_doc_[name_of_desired_document_skin] 
<p> <i>@links:</i> { SiSU }<a href='http://www.jus.uio.no/sisu/'>http://www.jus.uio.no/sisu/</a>

{ FSF }<a href='http://www.fsf.org'>http://www.fsf.org</a>
 
<p> <i>@promo:</i> 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]

<p> <i>:A~</i> 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
 
<p> <i>:B~</i> Second level heading [this is a heading level divider] 
<p> <i>:C~</i> Third
level heading [this is a heading level divider] 
<p> <i>1~</i> 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

<p>form 1~my_filename_for_this_segment 
<p> <i>2~</i> 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. 
<p> <i>3~</i> 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 
<p> NOTE: headers and heading
levels used in the description provided refer to 0.38 markup (a conversion
script provided in sisu-examples, modify.rb makes conversion between 0.37
and 0.38 markup simple) 
<p> For some help on document structure try 
<p> <i>sisu</i> --help

<p>headings 
<p> and view sample markup documents provided 
<p>   
<p>  
<h2><a name='sect23' href='#toc23'>Configuration
Files</a></h2>
<p>
Some configuration is required for SiSU, specifying in which directory
processing should be done, and where the generated output should be placed.
<p>
SiSU resource configuration is determined by looking at the following files
if they exist: <p>
<i>./_sisu/sisurc.yml</i> <p>
<i>~/.sisu/sisurc.yml</i> <p>
<i>/etc/sisu/sisurc.yml</i> <p>
In
the absence of instructions in any of these it falls back to the internal
program defaults. <p>
Configuration determines the output and processing directories
and the database access details. <p>
A sample sisurc.yml may be found in /etc/sisu/sisurc.yml

<p>  
<h2><a name='sect24' href='#toc24'>More HELP on Markup and headers</a></h2>
type:     sisu ~<br>
     sisu --help<br>
 
<p>   markup help is available on:<br>
     document wide instructions: headers (document structure)<br>
     general text markup: headings; endnotes; tables<br>
 
<p> A markup table and sample marked-up files (also in html with syntax highlighting)
are available at: 
<p> <i>&lt;<a href='http://www.jus.uio.no/sisu/sample'>http://www.jus.uio.no/sisu/sample</a>
&gt;</i> 
<p>  
<h2><a name='sect25' href='#toc25'>DIRECTORY STRUCTURE
&amp; Document Output</a></h2>

<dl>

<dt>SiSU determines output directories by looking at the resource
configuration files, and in their absence the programs internal defaults.
</dt>
<dd> </dd>
</dl>

<h2><a name='sect26' href='#toc26'>Default Directories</a></h2>

<dl>

<dt>In the absence of other specifications in </dt>
<dd><i>~/.sisu/sisurc.yml</i>
in <i>/etc/sisu/sisurc.yml</i> SiSU writes to the following directories, processing
files are placed in sub-directories within <i>./_sisu/processing</i> and if that
is not writable to <i>/tmp/sisu_processing</i> </dd>
</dl>
<p>
Output is written to sub-directories
within <i>/var/www/</i> if it exists and is writable, and otherwise to <i>~/sisu_output</i>
 
<h2><a name='sect27' href='#toc27'>Markup Document Directories and File Mapping</a></h2>

<dl>

<dt>Ideally documents should be
placed as collections sub-directories of their own, with a common denominator,
such as subject or author. </dt>
<dd></dd>

<dt>The last part of a directory path is used to
create a sub-directory into which generated documents are placed, in (sub-sub)directories
of their own. </dt>
<dd></dd>

<dt>the document </dt>
<dd></dd>
</dl>
<p>
<blockquote><i>~/ebook/free_culture.sst</i> </blockquote>

<dl>

<dt>would map to  </dt>
<dd></dd>
</dl>
<p>
<blockquote><i>~[configured</i>
output path]/ebook/free_culture </blockquote>

<dl>

<dt>within which would be placed all html,
XML, pdf output, typically under the names: </dt>
<dd></dd>
</dl>
<p>
<blockquote><i>index.html</i> index for segmented
text <p>
<i>doc.html</i> full length scrollable document <p>
<i>toc.html</i> index for segmented
text <p>
html segments, as many as there may be... 
<dl>

<dt><i>portrait.pdf</i> </dt>
<dd></dd>
</dl>
<p>
<i>landscape.pdf</i> <p>
<i>sax.xml</i>
XML shallow structure, sax type parsing <p>
<i>dom.xml</i> XML deeper structure, dom
type parsing <p>
<i>scroll.xhtml</i> xhtml <p>
<i>plain.txt</i> plain text  </blockquote>

<h2><a name='sect28' href='#toc28'>Multi-language Document
File Naming and Directory Mapping</a></h2>

<dl>

<dt>If the same document exists in different
language versions, and it is desired that the published language versions
should reside in the same output directory, the following filenaming convention
should be observed, using Spannish as the sample language code (es) [it
is very likley the use of country codes as language codes will be changed
or extended in future] [filename]~[language code].sst </dt>
<dd></dd>

<dt>filename~es.sst </dt>
<dd></dd>

<dt>within
sisurc.yml under the heading default the setting of language file: at 1,
2 or 3 determines the output filenaming convention used, as follows: </dt>
<dd></dd>

<dt>(1)
[output directory path]/filename/es.index.html </dt>
<dd></dd>

<dt>(2) [output directory path]/filename/index.es.html
</dt>
<dd></dd>

<dt>(3) [output directory path]/filename/index.html.es (which Apache for example
can be configured to use to automatically serve each users preference)
</dt>
<dd></dd>

<dt>filename~fr.sst </dt>
<dd></dd>

<dt>filename~de.sst </dt>
<dd></dd>

<dt>etc. would be placed in the same directory
using the same convention as indeed would: </dt>
<dd></dd>

<dt>filename.sst </dt>
<dd></dd>

<dt>using the default
convention mapping convention. </dt>
<dd></dd>

<dt>Selecting this form of filename will overide
other language settings including the language header within a document.
</dt>
<dd> </dd>
</dl>

<h2><a name='sect29' href='#toc29'>Markup Document Directories and Database Mapping</a></h2>
<p>
Similarly there is a mapping
to the database into which documents are placed. <p>
The last part of a directory
path is used to create a sub-directory into which generated documents are
placed, in a database of the same name, unless overridden. <p>
Documents within
the directory  <i>~/ebook</i>  <p>
<blockquote><i>~/ebook/free_culture.sst</i> </blockquote>
<p>
would be placed in tables
within the database <p>
<blockquote><i>SiSU_ebook</i> </blockquote>
 
<h2><a name='sect30' href='#toc30'>SKINS - document, directory and site skins</a></h2>
<p>
Skins
modify the default appearance of document output on a document, directory,
or site wide basis. Skins are looked for in the following locations: <p>
<i>./_sisu/skin</i>
<p>
<i>~/.sisu/skin</i> <p>
<i>/etc/sisu/skin</i> <p>
Within the skin directory are the following
the default sub-directories for document skins: <p>
<i>./skin/doc</i> <p>
<i>./skin/dir</i> <p>
<i>./skin/site</i>
<p>
Documents take on a document skin, if the header of the document specifies
a skin to be used. <p>
A directory may be mapped on to a particular skin, so
all documents within that directory take on a particular appearance. If
a skin exists in the skin/dir with the same name as the document directory,
it will automatically be used for each of the documents in that directory,
(except where a document specifies the use of another skin, in the skin/doc
directory). when  end <p>
A personal habit is to place all skins within the
doc directory, and symbolic links as needed from the site, or dir directories
as required. <p>
A site skin, modifies the program default skin. <p>
Sample skins
may be found in /etc/sisu/skin/doc and /usr/share/doc/sisu/sisu_markup_samples/dfsg/_sisu/skin/doc
(or equivalent directory) <p>
Samples of list.yml and promo.yml may be found
in /usr/share/doc/sisu/sisu_markup_samples/dfsg/_sisu/skin/yml (or equivalent
directory)  
<h2><a name='sect31' href='#toc31'>Document Naming Convention</a></h2>
<p>
SiSU documents are named with the
suffix  <i>ss</i>  followed by a third distinguishing letter, usually t for ordinary
text files. <p>
<i>.sst</i> is used by regular documents, and for most purposes is all
you need to be aware of <p>
<i>.ssm</i> suffix indicates a master or composite document,
i.e. a document which requests other documents, which may have the file extension
.sst or .ssi. See section on Composite Documents for information on how these
are prepared. <p>
<i>.ssi</i> indicates some prepared sisu markup information that is
to be requested within master or composite document(s) and is not to be
processed as a stand-alone document. <p>
<i>._sst</i> and <i>.-sst</i> suffix are reserved for
SiSU processing, and indicate a secondary file. Such secondary files are
created when a composite file is constructed, and when a url is provided,
it is saved locally for processing, as a secondary processing file. Secondary
files may be clobbered by SiSU at will, and are not a way of storing information.

<p> <i>.sxs.xml</i> simple xml sax, sisu markup representation 
<p> <i>.sxd.xml</i> simple xml dom,

<p>sisu markup representation 
<p> <i>.sxn.xml</i> simple xml node, sisu markup representation

<p> <i>.sxs.xml.sst</i> or <i>.sxd.xml.sst</i> or <i>.sxn.xml.sst</i> auto-converted from a simple xml markup
representation (sxs, sxd, sxn)  
<h2><a name='sect32' href='#toc32'>Remote Operations</a></h2>
<p>
These may be of three
basic types. <p>
Instruction that processed files are to be copied to a remote
server, using the -r or -R flag as part of the processing instruction. This
requires previous setting up/configuration of the method to be used (eg
scp assumed for -r and rsync for -R) and url to which these files are to
be sent. * <p>
The downloading of a remote file for processing using SiSU locally,
which is achieved in one of two ways: <p>
A processing instruction may include
the url to the a remote file that is to be processed - this will be downloaded
and given a temporary file .t extension, and will be processed using SiSU
locally. <p>
A file may request the inclusion of a remote document within it,
see comments on "Composite Documents" for the request syntax. <p>
Finally SiSU
may be run on a remote server, which you download marked up files to for
processing. This is not really a function of the operation of SiSU, just
an available possibility given that not much bandwidth is required. <p>
* with
regard to remote files processed locally, the -r option, a limitation is
that it is up to the user to ensure that the remote file does not have
an identical filename to another, e.g. local file, that is to be processed
in the same directory. So far this has not been found to happen in practice...
Alternative solutions are under consideration, but it is desired that filenames
be human assigned, and meaningful, so hash keys of contents for filenames
are not amongst the options considered.  
<h2><a name='sect33' href='#toc33'>Note</a></h2>
<p>
For basic use only a fraction
of the information provided here is required. There may be a bit of an information
management problem in determining what though. For the markup of a book
see the samples provided in  <i>&lt;<a href='http://www.jus.uio.no/sisu/sample'>http://www.jus.uio.no/sisu/sample</a>
&gt;</i> and referred
to in the text <i>&lt;<a href='http://www.jus.uio.no/sisu/SiSU'>http://www.jus.uio.no/sisu/SiSU</a>
&gt;</i> The flags to generate html
and pdf for use locally would be sisu -mHp [name of file to be processed]
This does assume an ok install and setup of SiSU and the associated software
it uses. 
<p>  
<h2><a name='sect34' href='#toc34'>Processing Examples</a></h2>
<p>
To initialise a new directory <b>sisu</b> <i>-C</i> <p>
Note:
this create a corresponding output subdirectory and this copies css stylesheet
files and basic image files to the output directory. The output directory
is created in the output path/directory as a subdirectory with its name
corresponding to that of the directory you are currently initialising. <p>
generate
the metafile used in subsequent processing only (note changes made to the
markup file will not appear in subsequently generated text unless this
flag is used: <b>sisu</b> <i>-m</i> [filename or wildcard] <p>
to create html and pdf output,
with verbose output of samplefile1.sst and samplefile2.sst <b>sisu</b> <i>-mhpv</i> samplefile1.sst
samplefile2.sst <blockquote>Note:  <i>-m</i> does initial processing, and  <i>-H</i> omits filename
suffixes and requires a properly configured web server. <i>-h</i> is used to include
filename suffixes for file system viewing </blockquote>
<p>
generate html, a word map and
pdf with verbose output for all marked up documents in a directory: <b>sisu</b>
<i>-mhwpv</i> * <p>
generate html, word map, pdf, plaintext, xhtml, xml sax and xml
dom versions with verbose output for all marked up documents in a directory:
<b>sisu</b> <i>-mhwpabxXv</i> * <p>
to create html, pdf, xml, plaintext and a concordance
file (wordmap) as output, with verbose output of all marked up files in
a directory <b>sisu</b> <i>-mhpxXawv</i> *.{r,s}? <p>
generate html, word map and pdf and place
on remote server with verbose output 2 named example files in a directory
(assumes has been set up, and first time must be run without other flags
ie sisu  <i>-mrv</i> [filenames/wildcard]): <b>sisu</b> <i>-mhwprv</i> example_file.sst other_example_file.sst
<p>
to process a remote sisu marked up file (html,pdf,concordance), provide
the url(s) (works for text only files, will be downloaded and processed
locally): <b>sisu</b> <i>-mhwpv</i> <a href='http://www.jus.uio.no/sisu/sample/markup/gpl2.fsf.sst'>http://www.jus.uio.no/sisu/sample/markup/gpl2.fsf.sst</a>
 http://www.jus.uio.no/sisu/sample/markup/autonomy_markup0.sst
<p>
one file is local the other remote process (html,pdf,concordance,plaintext
and place on pre-set remote destination): <b>sisu</b> <i>-mhwparv</i> gpl2.fsf.sst <a href='http://www.jus.uio.no/sisu/sample/markup/autonomy_markup0.sst'>http://www.jus.uio.no/sisu/sample/markup/autonomy_markup0.sst</a>

<p>
initialize database, create relations (first manually create database with
same name as working directory): <b>sisu</b> <i>-Dv</i> createall <p>
it may be necessary
to first run <b>sisu</b> <i>-Dv</i> createdb <p>
import all marked up files first time into
a database: <b>sisu</b> <i>-Dv</i> import * <p>
<i>-c</i> toggles color  
<h2><a name='sect35' href='#toc35'>Interactive Help Options</a></h2>
<p>
SiSU
has an interactive help, which is accessed by typing just "sisu" at the
command line, or as described below: <b>sisu</b> commands, document preparation,
customisation, installation etc.  <br>
<pre>try:
sisu --help  
  sisu help
    help             sisu --help
    commands         sisu --help commands
    environment      sisu --help env
  ------------------------------------------
  Using SiSU
    commands:        sisu --help commands
  ------------------------------------------
  Preparing Documents for SiSU
    markup:          sisu --help markup     (an incomplete overview)
    headers:         sisu --help headers    (document-wide instructions, meta-data)
    structure        sisu --help structure  (document structure, headings,
tables of contents)
    endnotes:        sisu --help endnotes
    tables:          sisu --help tables
    an example 0.37: sisu --help example37
    an example 0.38: sisu --help example38
  ------------------------------------------
    search           sisu --help search
  ------------------------------------------
    customise:       sisu --help customise
  ------------------------------------------
  SiSU&rsquo;s License
    license:         sisu --help license
  sisu interactive help topics include:
        keywords include: list, commands, shortcuts, markup, syntax, headers,
        headings, endnotes, tables, example, customise, skin, environment,
        directories, path, language, db, install, setup, configure,
        external_programs, dublincore, termsheet, search, features,
        external_programs, license, exit
</pre>
<p> 
<h2><a name='sect36' href='#toc36'>SiSU VERSION CONVERSION</a></h2>
<p>
<i>sisu</i> --to-current [filename/wildcard] converts from
0.37 markup to current markup (0.38) 
<p> <i>sisu</i> --to-38 [filename/wildcard] converts

<p>from 0.37 markup to 0.38 
<p> <i>sisu</i> --to-37 [filename/wildcard] converts from 0.38

<p>markup to 0.37 
<p> <i>sisu</i> --convert-36to37 [filename/wildcard] re-names file from

<p>pre-0.36 convention to 0.37 
<p> <i>sisu</i> --convert-footnotes [filename/wildcard] converts

<p>footnotes to preferred embedded footnote markup style 
<p> <i>sisu</i> --convert-footnotes-force
[filename/wildcard] converts footnotes to preferred embedded footnote markup
style, even if there is a mismatch of footnote numbers. WARNING: there is
a problem with the source document and it is necessary to manually check
where each footnotes actually should be. 
<p> convert from sst to simple xml
representations (sax, dom and node): 
<p> <i>sisu</i> --to-sax [filename/wildcard] or
<i>sisu</i> --to-sxs [filename/wildcard] 
<p> <i>sisu</i> --to-dom [filename/wildcard] or <i>sisu</i>
--to-sxd [filename/wildcard] 
<p> <i>sisu</i> --to-node [filename/wildcard] or <i>sisu</i> --to-sxn
[filename/wildcard] 
<p> convert to sst from simple xml representations (sax,
dom and node): 
<p> <i>sisu</i> --from-xml2sst [filename/wildcard [.sxs.xml,.sxd.xml,sxn.xml]]

<p> or the same: 
<p> <i>sisu</i> --from-sxml [filename/wildcard [.sxs.xml,.sxd.xml,sxn.xml]]

<p> <i>sisu</i> --from-kdi [kdissert filename] attempts to convert a kdissert file (.kdi)

<p>to sisu markup 
<p> <i>sisu</i> --identify [filename/wildcard]  attempts to identify

<p>the markup version of the file 
<p> <i>sisu</i> --query=[version number] and <i>sisu</i> --query=history

<p>provides a brief summary of changes to SiSU markup 
<p> 
<h2><a name='sect37' href='#toc37'>Sample Markup Documents</a></h2>
<p>

<p>
Sample markup documents are provided in sisu-examples and are available
online. 
<p>  
<h2><a name='sect38' href='#toc38'>Home Page</a></h2>
<p>
<i>&lt;<a href='http://www.jus.uio.no/sisu'>http://www.jus.uio.no/sisu</a>
&gt;</i> 
<p> 
<h2><a name='sect39' href='#toc39'>Author</a></h2>
Ralph Amissah <i>&lt;ralph@amissah.com&gt;</i>
or <i>&lt;ralph.amissah@gmail.com&gt;</i> 
<p> 
<h2><a name='sect40' href='#toc40'>See Also</a></h2>
<a href='http:~/bin/man2html?sisu:8'><b>sisu(8)</a>
,</b> <a href='http:~/bin/man2html?sisu_webrick:1'><b>sisu_webrick(1)</a>
,</b> <a href='http:~/bin/man2html?sisu_termsheet:1'><b>sisu_termsheet(1)</a>
,</b>
<a href='http:~/bin/man2html?sisu_pdf:1'><b>sisu_pdf(1)</b></a>
 <a href='http:~/bin/man2html?sisu_sqlite:1'><b>sisu_sqlite(1)</b></a>
 <a href='http:~/bin/man2html?sisu_postgresql:1'><b>sisu_postgresql(1)</b></a>
 <a href='http:~/bin/man2html?sisu_vim:7'><b>sisu_vim(7)</b></a>
 <p>

<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Summary of man page</a></li>
<li><a name='toc4' href='#sect4'>Document Processing Command Flags</a></li>
<li><a name='toc5' href='#sect5'>modifiers</a></li>
<li><a name='toc6' href='#sect6'>databases</a></li>
<li><a name='toc7' href='#sect7'>Shortcuts, Shorthand for multiple flags</a></li>
<li><a name='toc8' href='#sect8'>Document Markup</a></li>
<li><a name='toc9' href='#sect9'>Basic Markup</a></li>
<li><a name='toc10' href='#sect10'>Footnotes/Endnotes</a></li>
<li><a name='toc11' href='#sect11'>Line Operations (marker placed at start of line)</a></li>
<li><a name='toc12' href='#sect12'>Links</a></li>
<li><a name='toc13' href='#sect13'>Adding a fixed names in html</a></li>
<li><a name='toc14' href='#sect14'>Escape object citation numbering</a></li>
<li><a name='toc15' href='#sect15'>Page breaks (LaTeX/pdf)</a></li>
<li><a name='toc16' href='#sect16'>Comment line</a></li>
<li><a name='toc17' href='#sect17'>Special characters</a></li>
<li><a name='toc18' href='#sect18'>Tables</a></li>
<li><a name='toc19' href='#sect19'>Other Grouped or Pre-formatted Text</a></li>
<li><a name='toc20' href='#sect20'>Composite Documents</a></li>
<li><a name='toc21' href='#sect21'>Document Headers</a></li>
<li><a name='toc22' href='#sect22'>Outline of header options</a></li>
<li><a name='toc23' href='#sect23'>Configuration Files</a></li>
<li><a name='toc24' href='#sect24'>More HELP on Markup and headers</a></li>
<li><a name='toc25' href='#sect25'>DIRECTORY STRUCTURE & Document Output</a></li>
<li><a name='toc26' href='#sect26'>Default Directories</a></li>
<li><a name='toc27' href='#sect27'>Markup Document Directories and File Mapping</a></li>
<li><a name='toc28' href='#sect28'>Multi-language Document File Naming and Directory Mapping</a></li>
<li><a name='toc29' href='#sect29'>Markup Document Directories and Database Mapping</a></li>
<li><a name='toc30' href='#sect30'>SKINS - document, directory and site skins</a></li>
<li><a name='toc31' href='#sect31'>Document Naming Convention</a></li>
<li><a name='toc32' href='#sect32'>Remote Operations</a></li>
<li><a name='toc33' href='#sect33'>Note</a></li>
<li><a name='toc34' href='#sect34'>Processing Examples</a></li>
<li><a name='toc35' href='#sect35'>Interactive Help Options</a></li>
<li><a name='toc36' href='#sect36'>SiSU VERSION CONVERSION</a></li>
<li><a name='toc37' href='#sect37'>Sample Markup Documents</a></li>
<li><a name='toc38' href='#sect38'>Home Page</a></li>
<li><a name='toc39' href='#sect39'>Author</a></li>
<li><a name='toc40' href='#sect40'>See Also</a></li>
</ul>
</body>
</html>