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
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
|
# coding: utf-8
=begin
* Name: SiSU
* Description: a framework for document structuring, publishing and search
* Author: Ralph Amissah
* Copyright: (C) 1997 - 2011, Ralph Amissah, All Rights Reserved.
* License: GPL 3 or later:
SiSU, a framework for document structuring, publishing and search
Copyright (C) Ralph Amissah
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
If you have Internet connection, the latest version of the GPL should be
available at these locations:
<http://www.fsf.org/licensing/licenses/gpl.html>
<http://www.gnu.org/licenses/gpl.html>
<http://www.sisudoc.org/sisu/gpl.fsf/toc.html>
<http://www.sisudoc.org/sisu/gpl.fsf/doc.html>
<http://www.sisudoc.org/sisu/gpl.fsf/plain.txt>
* SiSU uses:
* Standard SiSU markup syntax,
* Standard SiSU meta-markup syntax, and the
* Standard SiSU object citation numbering and system
* Hompages:
<http://www.jus.uio.no/sisu>
<http://www.sisudoc.org>
* Download:
<http://www.sisudoc.org/sisu/SiSU/download.html>
* Ralph Amissah
<ralph@amissah.com>
<ralph.amissah@gmail.com>
** Description: Default values (reset by skins)
=end
$latex_run=nil
module SiSU_Viz
require 'uri'
require "#{SiSU_lib}/sysenv" # sysenv.rb
include SiSU_Env
require "#{SiSU_lib}/css" # css.rb
include SiSU_Style
class Skin
def initialize
@fonts='verdana, arial, georgia, tahoma, sans-serif, helvetica, times, roman' # 'verdana, arial, georgia, tahoma, sans-serif, helvetica, "times new roman", times, roman'
@dir=SiSU_Env::Info_env.new
@date=SiSU_Env::Info_date.new #{@date.year}
@v=SiSU_Env::Info_version.instance.get_version
end
#% glyph
def glyph_bullet # •
'• ' # [• flagged]
end
#% html
def html_hardspace
' '
end
#% php
def php_persist
end
#% javascript #kxjs knxjs
def js_home
end
def js_infobox
end
def js_knxjs
end
def js_head
end
def js_top
end
def js_sisu
end
def js_home
end
def js_sponsor
end
def js_books
end
def js_journals
end
def js_conferences
end
def js_services
end
def js_catalogue
end
def js_doc
end
def js_toc
end
def js_seg
end
def js_mail
end
def js_manifest
end
def js_status
end
def js_next
end
def js_prev
end
def js_plaintext
end
def js_portrait
end
def js_landscape
end
def js_pdf
end
def js_epub
end
def js_odf
end
def js_concordance
end
def js_instruments
end
def js_external
end
def js_gopher
end
def js_ftp
end
def js_law
end
def js_disclaimer
end
def semantic_tags
def default
{
:pub => 'publication',
:conv => 'convention',
:vol => 'volume',
:pg => 'page',
:cty => 'city',
:org => 'organization',
:uni => 'university',
:dept => 'department',
:fac => 'faculty',
:inst => 'institute',
:co => 'company',
:com => 'company',
:conv => 'convention',
:dt => 'date',
:y => 'year',
:m => 'month',
:d => 'day',
:ti => 'title',
:au => 'author',
:ed => 'editor', #editor?
:v => 'version', #edition
:n => 'name',
:fn => 'firstname',
:mn => 'middlename',
:ln => 'lastname',
:in => 'initials',
:qt => 'quote',
:ct => 'cite',
:ref => 'reference',
:ab => 'abreviation',
:def => 'define',
:desc => 'description',
:trans => 'translate',
}
end
self
end
#% decorate
def decorate_italics
'title|article|book|journal'
end
def decorate_bold
end
def decorate_uppercase
'surname'
end
#% semantic
def sem_title #dc 1
'title'
end
def sem_article
'article'
end
def sem_book
'book'
end
def sem_journal
'journal'
end
def sem_fullname # (contains: firstname, surname) #issues arise as contains surname etc.
'fullname'
end
def sem_first
'first'
end
def sem_surname
'surname'
end
def sem_middle
'middle'
end
def sem_creator #dc 2 #==fullname (contains: firstname, surname)
'creator'
end
def sem_author #==fullname (contains: firstname, surname)
'author'
end
def sem_editor #==fullname (contains: firstname, surname)
'editor'
end
def sem_illustrator #==fullname (contains: firstname, surname)
'illustrator'
end
def sem_translator #==fullname (contains: firstname, surname)
'translator'
end
def sem_isbn # 10 or 13
'isbn'
end
def sem_isbn_10
'isbn10'
end
def sem_isbn_13
'isbn13'
end
def sem_loc # library of congress
'loc'
end
def sem_dewey
'dewey'
end
def sem_pg # project gutenberg number
'pg'
end
def sem_subject #dc 3
'subject'
end
def sem_date #dc 7
'date'
end
def sem_date_created
'date_created'
end
def sem_date_issued
'date_issued'
end
def sem_date_available
'date_available'
end
def sem_date_valid
'date_valid'
end
def sem_date_modified
'date_modified'
end
def sem_type #dc 8
'type'
end
def sem_description #dc 4
'description'
end
def sem_publisher #dc 5
'publisher'
end
def sem_contributor #dc 6
'contributor'
end
def sem_format #dc 9
'format'
end
def sem_identifier #dc 10
'identifier'
end
def sem_source #dc 11
'source'
end
def sem_language #dc 12
'language'
end
def sem_relation #dc 13
'source'
end
def sem_coverage #dc 14
'coverage'
end
def sem_rights #dc 15
'rights'
end
def sem_copyright
'copyright'
end
def sem_license
'license'
end
def sem_prepared_by
'prepared_by'
end
def sem_digitized_by
'digitized_by'
end
def sem_keywords
'keywords'
end
def sem_comments
'comments'
end
def sem_abstract
'abstract'
end
#% path
def path_stylesheet_home
%{ <link rel="stylesheet" href="./#{@dir.path.style}/homepage.css" type="text/css" />}
end
#% text #changed from txt to avoid naming conflicts #FOLLOW
def txt_generator
%{ <meta name="generator" content="#{@v[:project]} #{@v[:version]} of #{@v[:date_stamp]} (#{@v[:date]}) (n*x and Ruby!)" />
<link rel="generator" href="http://www.sisudoc.org/" />}
end
def txt_generator_comment
%{ <!- #{@v[:project]} #{@v[:version]} of #{@v[:date_stamp]} (#{@v[:date]}) (n*x and Ruby!)" http://www.sisudoc.org/ ->}
end
def txt_hp
' SiSU'
end
def txt_hp_alias
'SiSU'
end
def txt_home
'SiSU'
end
def txt_signature # used in latex/pdf footer
'SiSU'
end
#% url
def url_urify(uri)
URI.parse(uri)
end
def url_sisu
'http://www.sisudoc.org/'
end
def url_sisudoc
'http://www.sisudoc.org'
end
def url_footer_signature
'http://www.sisudoc.org/'
end
def url_root
'/sisu' #watch
end
def url_root_http
'http://www.sisudoc.org/' #watch
end
def url_home
'http://www.sisudoc.org/' # used in pdf header
end
def url_site #used as stub... where there are subdirectories and is different from home
url_home
#'http://www.sisudoc.org/' # used in pdf header
end
def url_txt
'www.sisudoc.org/'
end
def url_path_image_base #used for html image display
"#{Xx[:html_relative2]}_sisu/image"
end
def url_path_image #used for html image display
"#{Xx[:html_relative2]}_sisu/image"
end
def url_path_image_sys #used for html image display
"#{Xx[:html_relative2]}_sisu/image_sys"
end
def url_path_image_epub
'./image'
end
def url_path_ebook_dir
'./ebook'
end
def url_path_ebook_images
'.'
end
def url_promo
''
end
def url_promo_home
''
end
def url_decoration
def tex_open #'{\UseTextSymbol{OML}{<}}'
Dx[:url_o]
end
def tex_close #'{\UseTextSymbol{OML}{>}}'
Dx[:url_c]
end
def xml_open #'<'
Dx[:url_o]
end
def xml_close #'>'
Dx[:url_c]
end
def txt_open
'<'
end
def txt_close
'>'
end
self
end
def rel_decoration
def tex_open #'{\UseTextSymbol{OML}{<}}'
Dx[:rel_o]
end
def tex_close #'{\UseTextSymbol{OML}{>}}'
Dx[:rel_c]
end
def xml_open #'<'
Dx[:rel_o]
end
def xml_close #'>'
Dx[:rel_c]
end
def txt_open
'<'
end
def txt_close
'>'
end
self
end
#% color
def color_shadow
'"4"'
end
def color_body
%{<body bgcolor="#ffffff" text="#000000" link="#003090" lang="en" xml:lang="en">}
end
def color_white
'"#ffffff"'
end
def color_black
'#000000'
end
def color_shadow #hmmm
'"4"'
end
def color_blue_dark
'#000099'
end
def color_blue
'blue'
end
def color_blue_base
'#b9d4dd'
end
def color_blue_ink
'#003399'
end
def color_blue_tinge
'#e3ecef'
end
def color_blue_grey
'#8faebf'
end
def color_blue_murky
'#437389'
end
def color_beige
'#f1e8de'
end
def color_subtleglow
'#dddccc'
end
def color_glow
'#fff0c3'
end
def color_rose
'#ffdec9'
end
def color_turquoise
'#1c869b'
end
def color_grey_pale
'#eeeeee'
end
def color_grey_medium
'#cccccc'
end
def color_grey
'#999999'
end
def color_yellow_light
'#fff3b6'
end
def color_yellow
'#ffde14'
end
def color_yellow_dark
'#ffcc00'
end
def color_green_light
'#b7d398' # #e2efd5 #b7d398 #b1c999 # '#aed19e'
end
def color_green
'#0a8400'
end
def color_green_dark
'#086800'
end
def color_ruby
'#a00000'
end
def color_maroon
'#800000'
end
def color_paper
%{"#{color_white}"}
end
def color_band1
%{"#{color_white}"}
end
def color_band2
%{"#{color_white}"}
end
def color_body
%{\n<body bgcolor="#ffffff" text="#000000" link="#003090" lang="en" xml:lang="en">\n}
end
def color_font_face #was font WATCH
"#{color_black}"
end
def color_surround
%{"#{color_white}"}
end
def color_band
%{"#{color_white}"}
end
def color_table1
'ffffcc'
end
def color_table2
'c0d0f0'
end
def color_band1
'"#ffffff"'
end
def color_band2
'"#ffffff"'
end
#% icon
def icon_ico
'rb7.ico'
end
def icon_sisu
'sisu.png'
end
def icon_manifest
'b_info.png'
end
def icon_doc
'b_doc.png'
end
def icon_toc
'b_toc.png'
end
def icon_wmp
'b_wmp.png'
end
def icon_odf
'b_odf.png'
end
def icon_epub
'b_epub.png'
end
def icon_pdf
'b_pdf.png'
end
def icon_pdf_portrait
'b_pdf.png'
end
def icon_pdf_landscape
'b_pdf.png'
end
def icon_status
'b_status.png'
end
def icon_external
'b_ext.png'
end
def icon_external_toc
'b_ext_toc.png'
end
def icon_seg_toc
'b_bluebell.png'
end
def icon_crosslink_toc
'b_amber.png'
end
def icon_mail
'b_mail.png'
end
def icon_para
'b_para.png'
end
def icon_pdf
'b_pdf.png'
end
def icon_ftp
'b_ftp.png'
end
def icon_gopher
'b_gopher.png'
end
def icon_choice
'b_choice.png'
end
def icon_new
'b_new.png'
end
def icon_book
'b_amber.png'
# b_book.png
end
def icon_dot_clear
'dot_clear.png'
end
def icon_dot_white
'dot_white.png'
end
def icon_dot
icon_dot_white
end
def icon_amber
'b_amber.png'
end
def icon_rose
'b_rose.png'
end
def icon_bluebell
'b_bluebell.png'
end
def icon_home_button
'sisu.png'
end
def icon_home_banner
'sisu.png'
end
def icon_site
'b_home.png'
end
def icon_bluedot
'blueband.png'
end
def icon_next
'arrow_next_red.png'
end
def icon_previous
'arrow_prev_red.png'
end
def icon_up
'arrow_up_red.png'
end
#% font
def font_fonts
@fonts
end
def font_face
%{face="#{font_fonts}"}
end
def font_lmtoc_face
%{face="#{font_fonts}"}
end
def font_ebook_face
%{face="#{font_fonts}"}
end
def font_face_lmtoc
%{face="#{font_fonts}"}
end
def font_color
'color="#000000"'
end
def font_size
'size="4"'
end
def font_size_txt
'size="4"'
end
def font_size_txt_00
'size="3"'
end
def font_size_endnote
'size="3"'
end
def font_small
'size="3"'
end
def font_tiny
'size="2"'
end
#% markup
def markup_italics_list #regular expression of words to be italised
end
def markup_bold_list #regular expression of words to be made bold
'SiSU'
end
def markup_make_italic
if defined? italics_list \
and italics_list
make={}
if italics_list
r=italics_list.dup
x=case r
when /\/i$/; 'i'
else ''
end
r.gsub!(/^\/(.+?)\/i?/,'\1')
r.gsub!(/\(/,'(?:') # avoid need to escape use of brackets within regex provided
m='\b(' + r + ')\b'
make[:str]
make[:regx]=if x =~/i/; /#{m}/i
else /#{m}/
end
else nil
end
end
end
def markup_make_bold
if defined? bold_list \
and not bold_list.empty?
make={}
if bold_list
r=bold_list.dup
x=case r
when /\/i$/; 'i'
else ''
end
r.gsub!(/^\/(.+?)\/i?/,'\1')
r.gsub!(/\(/,'(?:') # avoid need to escape use of brackets within regex provided
m='\b(' + r + ')\b'
make[:str]
make[:regx]=if x =~/i/; /#{m}/i
else /#{m}/
end
else nil
end
make
end
end
#% paragraph
def paragraph_txt
%{<p class="normal">}
end
def paragraph_txt_00
%{<p class="justify">}
end
def paragraph_font_citation
%{<font #{font_size_txt} #{font_face}>}
end
def paragraph_endnote
%{<p class="endnote">}
end
def paragraph_table
%{<p align="left"><font #{font_small} #{font_color} #{font_face}>}
end
def paragraph_table_xml
end
def paragraph_tiny
%{<p class="tiny">}
end
def paragraph_small
%{<p class="small">} # keep but not used?
end
def paragraph_font_tiny
%{<font #{font_tiny} #{font_face}>}
end
def paragraph_font_small
%{<font #{font_small} #{font_face}>}
end
def paragraph_heading_1
%{<h1>}
end
def paragraph_heading_1_center
%{<h1 class="center">}
end
#% table
def table_close
'</td></tr>
</table>'
end
def table_close_centered_table
end
def table_align_A
end
def table_align_B
end
def table_align_C
end
def table_width_1
'"100%"'
end
def table_width_2
'"99%"'
end
def table_width_3
'"94%"'
end
def table_width_4
'"90%"'
end
def table_width_txt
'"94%"'
end
def table_width_txt_avgo
'"100%"'
end
def table_width_txt_r
'"96%"'
end
def table_cellpad_small_paper_margins
'"6"'
end
def table_cellpad_paper_margins
'"36"'
end
def table_cellpad_A
'"0"'
end
def table_cellpad_B
'"20"'
end
def table_cellpad_shadow
'"4"'
end
def table_cellpad_band
'"16"'
end
def table_cellpad_box
'"20"'
end
def table_table_align_A
'<center>'
end
def table_table_align_B
'<center>'
end
def table_table_align_C
' '
end
#% table_do
def table_do_table_paper
%{#{table_align_C} <table summary="table paper" width=#{table_width_2} border="0" cellpadding=#{table_cellpad_paper_margins} bgcolor=#{color_paper} align="Justify"><tr><td>\n<font color="#000000"><p />\n}
end
def table_do_table_surround
%{<table summary="table surround" width="100%" border="0" cellpadding="0" bgcolor="#ffffff" align="center"><tr><td>\n}
end
#% indent
def indent_level_0
'"1%"'
end
def indent_level_1
'"4%"'
end
def indent_level_2
'"6%"'
end
def indent_level_3
'"8%"'
end
def indent_level_4
'"10%"'
end
#% margin
def margin_num
'</p> </td><td width="4%" align="right" valign="top">'
end
def margin_numless
'</td><td width="4%" align="right" valign="top">'
end
def margin_num_css
'</td>
<td width="2%" align="right" valign="top"> '
end
def margin_num_header
'</td>
<td width="4%" align="right" valign="top">'
end
def margin_txt_00_1
%{<table summary="" width=#{table_width_txt} border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td width=#{indent_level_1} align="right">
</td>
<td valign="top" align="left" width=#{indent_level_1_c2w100}>}
end
def margin_txt_w1
%{<table summary="" width=#{table_width_txt_r} border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td width="6%" align="right"> </td>
<td width="90%" valign="top" align="justify">}
end
def margin_txt_w2
%{<table summary="" width=#{table_width_txt_r} border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td width="10%" align="right"> </td>
<td width="86%" valign="top" align="justify">}
end
def margin_txt_0
%{<table summary="" width=#{table_width_txt} border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td width=#{indent_level_0} align="right">
</td><td valign="top" align="justify">}
end
def margin_txt_1
%{<table summary="" width=#{table_width_txt} border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td width=#{indent_level_1} align="right"></td><td valign="top" align="justify">}
end
def margin_txt_2
%{<table summary="" width=#{table_width_txt} border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td width=#{indent_level_2} align="right">
</td>
<td valign="top" align="justify">}
end
def margin_txt_3
%{<table summary="" width=#{table_width_txt} border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td width=#{indent_level_3} align="right">
</td>
<td valign="top" align="justify">}
end
def margin_css #unused, check
'<table summary="normal text css" width="100%" border="0" bgcolor="white" cellpadding="2" align="center">
<tr><td valign="top" align="justify"> '
end
#% png
def png_ico
%{ <link rel="shortcut icon" href="../_sisu/image/#{icon_ico}" />}
end
def png_sisu #check url path
%{ <a href="#{@url.sisu}">
<img border="0" width="160" height="60" src="#{url_path_image}/#{icon_sisu}" alt="SiSU" />
</a>}
end
def png_hp
dir=SiSU_Env::Info_env.new #(@fns)
%{ <a href="#{url.site}">
<img border="0" width="160" height="60" src="#{@dir.url.images_local}/#{icon_home_banner}" alt="#{txt_home}" />
</a>}
end
def png_site
%{<img src="#{url_path_image}/#{icon_site}" alt="@" border="0" />}
end
def png_homepage
png_site
end
def png_nav
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_bluebell}" alt="Contents" />}
end
def png_manifest
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_manifest}" alt="Document Manifest" />}
end
def png_doc
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_doc}" alt="Full Text" />}
end
def png_toc
%{<img border="0" height="18" width="15" src="#{url_path_image_sys}/#{icon_toc}" alt="TOC linked" />}
end
def png_odf
%{<img border="0" height="18" width="18" src="#{url_path_image_sys}/#{icon_odf}" alt="ODF/ODT" />}
end
def png_epub
%{<img border="0" height="18" width="15" src="#{url_path_image_sys}/#{icon_epub}" alt="EPUB" />}
end
def png_pdf
%{<img border="0" height="18" width="15" src="#{url_path_image_sys}/#{icon_pdf}" alt="PDF" />}
end
def png_pdf_portrait
%{<img border="0" height="18" width="15" src="#{url_path_image_sys}/#{icon_pdf}" alt="PDF portrait" />}
end
def png_pdf_landscape
%{<img border="0" height="15" width="18" src="#{url_path_image_sys}/#{icon_pdf}" alt="PDF landscape" />}
end
def png_wmp
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_wmp}" alt="Concordance" />}
end
def png_para
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_para}" alt="Segment" />}
end
def png_status
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_status}" alt="Membership status" />}
end
def png_mark
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_rose}" alt="*" />}
end
def png_doc_tiny
%{<img border="0" height="8" width="8" src="#{url_path_image_sys}/#{icon_doc}" alt="Doc" />}
end
def png_toc_tiny
%{<img border="0" height="8" width="8" src="#{url_path_image_sys}/#{icon_toc}" alt="TOC" />}
end
def png_status_tiny
%{<img border="0" height="8" width="8" src="#{url_path_image_sys}/#{icon_status}" alt="Status, Member States" />}
end
def png_ftp
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_ftp}" alt="FTP" />}
end
def png_gopher
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_gopher}" alt="Gopher" />}
end
def png_crosslink
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_crosslink_toc}" alt="lateral hop" />}
end
def png_crosslink_ext
%{<img border="0" height="15" width="15" src="#{url_path_image_sys}/#{icon_external_toc}" alt="lateral hop" />}
end
def png_home
dir=SiSU_Env::Info_env.new #(@fns)
%{<img border="0" src="#{dir.url.images_local}/#{icon_home_button}" alt="#{txt_home} -->" />}
end
def png_home_button
#dir=SiSU_Env::Info_env.new #(@fns)
%{<img border="0" src="#{url_path_image_base}/#{icon_home_button}" alt="#{txt_home} -->" />}
end
def png_book
%{<img border="2" height="15" width="15" src="#{url_path_image_sys}/#{icon_book}" alt="Cameron May Books" />}
end
#% png_nav
def png_nav_home
end
def png_nav_toc
%{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon_up}" alt="TOC" />}
end
def png_nav_doc
end
def png_nav_previous
%{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon_previous}" alt="<< previous" />}
end
def png_nav_next
%{<img border="0" width="22" height="22" src="#{url_path_image_sys}/#{icon_next}" alt="next >>" />}
end
def png_nav_pre
png_nav_previous
end
def png_nav_nxt
png_nav_next
end
def epub_png_nav_previous
%{<img border="0" width="22" height="22" src="#{url_path_image_epub}/#{icon_previous}" alt="<< previous" />}
end
def epub_png_nav_next
%{<img border="0" width="22" height="22" src="#{url_path_image_epub}/#{icon_next}" alt="next >>" />}
end
def epub_png_nav_up
%{<img border="0" width="22" height="22" src="#{url_path_image_epub}/#{icon_up}" alt="^up ^" />}
end
def epub_png_nav_pre
epub_png_nav_previous
end
def epub_png_nav_nxt
epub_png_nav_next
end
def epub_png_nav_toc
epub_png_nav_up
end
def png_nav_pdf
%{<img border="0" height="18" width="15" src="#{url_path_image_sys}/#{icon_pdf}" alt="PDF" />}
end
def png_nav_pdf_portrait
%{<img border="0" width="15" height="18" src="#{url_path_image_sys}/#{icon_pdf}" alt="pdf portrait" />}
end
def png_nav_pdf_landscape
%{<img border="0" width="18" height="15" src="#{url_path_image_sys}/#{icon_pdf}" alt="pdf landscape" />}
end
def png_nav_dot_toc
%{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon_dot}" alt="^" />}
end
def png_nav_dot_previous
%{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon_dot}" alt="<" />}
end
def png_nav_dot_next
%{<img border="0" width="100%" height="20" src="#{url_path_image_sys}/#{icon_dot}" alt=">" />}
end
def png_nav_dot_pre
png_nav_dot_previous
end
def png_nav_dot_nxt
png_nav_dot_next
end
#% nav_txt
def nav_txt_home
%{ <font face="#{font_fonts}" size="2">
#{png_site}
</font> }
end
def nav_txt_home_button
%{ <font face="#{font_fonts}" size="2">
#{png_home_button}
</font> }
end
def nav_txt_homepage
%{ <font face="#{font_fonts}" size="2">
home
</font> }
end
def nav_txt_toc_link
%{ <font face="#{font_fonts}" size="2">
toc
</font> }
end
def nav_txt_toc_link_verbose
%{ <font face="#{font_fonts}" size="2">
#{png_toc} segments' toc
</font> }
end
def nav_txt_doc_link
%{ <font face="#{font_fonts}" size="2">
scroll
</font> }
end
def nav_txt_manifest
#{png_manifest} document manifest
%{ <font face="#{font_fonts}" size="2">
[ document manifest ]
</font> }
end
def nav_txt_concordance
%{ <font face="#{font_fonts}" size="2">
A-Z
</font> }
end
def nav_txt_previous
' <font face="" size="2">
<b><<</b> Previous
</font>
Full Text '
end
def nav_txt_next
%{ <font face="#{font_fonts}" size="2">
Next <b>>></b>
</font> }
end
def nav_txt_plaintext
%{ <font face="#{font_fonts}" size="2">
txt
</font> }
end
def nav_txt_odf
%{ <font face="#{font_fonts}" size="2">
odt
</font> }
end
def nav_txt_pdfs
%{ <font face="#{font_fonts}" size="2">
pdfs
</font> }
end
def nav_txt_epub
%{ <font face="#{font_fonts}" size="2">
epub
</font> }
end
def nav_txt_pdf_portrait
%{ <font face="#{font_fonts}" size="2">
pdf
</font> }
end
def nav_txt_pdf_landscape
%{ <font face="#{font_fonts}" size="2">
pdf
</font> }
end
#% banner
def banner_home
%{ <center>
<a href="#{url_site}/" target="_top" #{js_home}>
#{png_site}
</a>
<br />
<font size="2" color="#444444">
an
<br />
( international | transnational )
<br />
commercial law & e-commerce
<br />
infrastructure monitor</font></center>}
end
def banner_home_guide
%{ <br />
<a href="#{url_site}/" target="_top" #{js_home}>
#{png_doc} LM toc
</a>
<a href="../treaties.and.organisations/lm.chronological" target="_top" #{js_instruments}>
#{png_doc} LM 20**
</a>
<br />}
end
def banner_home_button_only
%{<a href="#{url_site}/" #{js_home}>
#{png_home_button}
</a>}
end
def banner_home_button #yellow_dark now white
%{<table summary="home button" width="100%" border="0" cellpadding="3" bgcolor= "#ffffff" align="center">
<tr><td align="left" valign="middle" bgcolor="#{color_white}" width="10%">
<a href="#{url_site}/" #{js_home}>
#{png_home_button}
</a>
</td>
<td width="90%">
#{table_close}}
end
def banner_home_and_index_buttons #yellow_dark now white
%{<table summary="home and index buttons" bgcolor=#{color_band1}>
<tr><td width="20%">
<table summary="home button" width="100%" border="0" cellpadding="3" align="center">
<tr><td align="center" valign="middle" bgcolor="#{color_white}">
<a href="#{url_site}/" target="_top" #{js_home}>
#{png_home}
</a>
</td></tr>
</table>
</td>
<td width="60%">
<table summary="other contents buttons" border="0" cellpadding="3" cellspacing="0">
<tr><td align="center" bgcolor=#{color_band2}>
<font face="arial" size="2">
<a href="toc" target="_top" #{js_toc}>
This text's sub-
<br />
Table of Contents
</a>
</font>
</td></tr>
</table>
</td>
<td width="20%">
#{table_close}}
end
def banner_url_txt_sisu
%{<a href="#{url_sisu}/sisu" target="_top" #{js_home}>SiSU</a>}
end
def banner_band #yellow_dark now white
%{<table summary="home button" width="100%" border="0" cellpadding="3" bgcolor= "#ffffff" align="center">
<tr><td align="left" valign="middle" bgcolor="#{color_white}">
<a href="#{url_site}/" target="_top" #{js_home}>
#{png_home}
</a>
</td>
<td width="90%">
#{table_close}}
end
def banner_credit_band
%{<table summary="credits table yellow" width="80%" border="1" cellpadding="0" bgcolor="#{color_yellow_dark}" align="center">
<tr><td align="center">
<table summary="salmon" width="100%" border="0" cellpadding="0" bgcolor="#ffdec9">
<tr><td align="center">
<table summary="credits white background" width="100%" border="0" cellpadding="6" bgcolor="#ffffff">
<tr><td align="center">}
end
def banner_instrument_cover_band_scr
'<table summary="scroll instrument cover band" width="100%" border="0" cellpadding="8" bgcolor="#ffffff" align="center">
<tr><td align="center">'
end
def banner_instrument_cover_band_seg
'<table summary="segment instrument cover band, title, author, location" width="100%" border="0" cellpadding="8" bgcolor="#ffffff" align="center">
<tr><td align="center">'
end
#% widget
def widget_promo # Array used to build promo from list.yml and promo.yml
# ['sisu_icon','sisu','sisu_search_libre','open_society','fsf','ruby']
end
def widget_browsers
<<WOK
<tr align="center"><td align="center">
<table summary="browser suggestions" bgcolor="#ffffff" cellpadding="4" border="0">
<tr><td>
<p>
<font color="#666666" size="2">
If you have problems viewing pages on this site please update your browser:
</font>
</p>
#{table_close}
<table summary="browser suggestions" bgcolor="#ffffff" cellpadding="4" border="0">
<tr><td>
<p>
<font color="#666666" size="1">
<a href="http://www.gnome.org/projects/epiphany/" target="external">
Epiphany
</a>
<sup>®</sup> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://galeon.sourceforge.net/" target="external">
Galeon
</a>
<sup>®</sup> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://www.microsoft.com/windows/ie/default.asp" target="external">
I-Explorer
</a>
<sup>®</sup> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://kazehakase.sourceforge.jp/" target="external">
Kazehakase</a>
<sup>®</sup> |</font></p></td>
<td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://www.konqueror.org/" target="external">
Konqueror</a>
<sup>®</sup> |</font></p></td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://www.mozilla.org/" target="external">
Mozilla
</a>
<a href="http://www.mozilla.org/products/firefox/" target="external">
<b>Firefox</b>
</a>
<sup>®</sup> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://home.netscape.com/comprod/mirror/client_download.html" target="external">
Netscape
</a>
<sup>®</sup> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://www.opera.com/" target="external">
Opera
</a>
<sup>®</sup> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://www.apple.com/safari/" target="external">
Safari
</a>
<sup>®</sup>
</font>
</p>
#{table_close}
<table summary="lightweight browser and text browser suggestions" bgcolor="#ffffff" cellpadding="4" border="0">
<tr><td>
<p>
<font color="#666666" size="1">
for console/text viewing:
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://elinks.or.cz/" target="external">
<b>elinks</b>
</a> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://atrey.karlin.mff.cuni.cz/~clock/twibright/links" target="external">
<b>links2</b>
</a> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://w3m.sourceforge.net/" target="external">
<b>w3m</b>
</a>
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
for lightweight gui (X) viewing try:
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://www.dillo.org/" target="external">
Dillo
</a>
|
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://www.gnome.org/projects/epiphany/" target="external">
Epiphany
</a>
<sup>®</sup> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://galeon.sourceforge.net/" target="external">
Galeon
</a> |
</font>
</p>
</td>
<td>
<p>
<font color="#666666" size="1">
<a href="http://atrey.karlin.mff.cuni.cz/~clock/twibright/links" target="external">
<b>links2 -g</b>
</a>
</font>
</p>
#{table_close}
</td></tr>
WOK
end
def widgets_open
<<WOK
<table summary="SiSU summary" bgcolor="#ffffff" cellpadding="4" border="0">
WOK
end
def widget_pdfviewers
<<WOK
<tr align="center"><td align="center">
<!-- pdf viewer suggestions -->
<tr><td>
<p class="center">
<font color="#666666" size="1">
& for
<a href="http://www.adobe.com/products/acrobat/adobepdf.html" target="external">
pdf
</a>
viewings of this site we recommend stand alone viewers
<br />
(rather than web browser plugins):
</font>
</p>
</td></tr>
<tr align="center"><td align="center">
<p class="center">
<font color="#666666" size="1">
<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="external">
Acrobat Reader
</a>
<sup>®</sup>
|
</font>
</p>
</td>
<td>
<p class="center">
<font color="#666666" size="1">
<a href="http://www.gnome.org/projects/evince/" target="external">
<b>Evince</b>
</a>
<sup>®</sup>
</font>
</p>
</td>
<td>
<p class="center"><font color="#666666" size="1">
<a href="http://www.cs.wisc.edu/~ghost/gv/" target="external">
GhostView<sup>®</sup> </a>,
<a href="http://wwwthep.physik.uni-mainz.de/~plass/gv/" target="external">
GV<sup>®</sup>
</a>
&
<a href="http://www.cs.wisc.edu/~ghost/gsview/" target="external">
GSview<sup>®</sup>
</a>
|
</font>
</p>
</td>
<td>
<p class="center">
<font color="#666666" size="1">
<a href="http://www.foolabs.com/xpdf/" target="external">
Xpdf
</a>
<sup>®</sup>
</font>
</p>
</td></tr>
WOK
end
def widget_sisu_text
<<WOK
<p class="tiny"><font color="#666666" size="2">
Output generated by
<a href="#{url_sisu}" #{js_sisu}>
#{@v[:project]}
</a>
#{@v[:version]} #{@v[:date]} (#{@v[:date_stamp]})
</font></p>
WOK
end
def widget_sisu
<<WOK
<!-- widget sisu -->
<tr><td valign="top" width="100%">
<!-- SiSU Rights -->
#{widget_sisu_text}
</td></tr>
WOK
end
def widget_sisu_verbose
<<WOK
<!-- widget sisu -->
<tr><td valign="top" width="10%">
<p class="tiny_left"><font color="#666666" size="2">
<a href="#{url_sisu}" #{js_sisu}>
<img border="0" src="../_sisu/image/sisu.png" alt="SiSU" width="120" height="39" />
</a>
</font></p>
</td><td valign="top" width="45%">
<!-- SiSU Rights -->
<p class="tiny_left"><font color="#666666" size="2">
Output generated by
<a href="#{url_sisu}" #{js_sisu}>
#{@v[:project]}
</a>
#{@v[:version]} #{@v[:date]} (#{@v[:date_stamp]})
<br />
<a href="#{url_sisu}" #{js_sisu}>
<b>#{@v[:project]}</b>
</a>
Copyright <sup>©</sup> Ralph Amissah
1997, current #{@date.year_static}.
All Rights Reserved.
<br />
<a href="#{url_sisu}" #{js_sisu}>
#{@v[:project]}
</a>
is software for document structuring, publishing and search,
<br />
<a href="#{url_sisu}" #{js_sisu}>
www.sisudoc.org/
</a>
and
<a href="#{url_sisudoc}" #{js_sisu}>
www.sisudoc.org
</a>
<br />
<i>w3 since October 3 1993</i>
<a href="mailto:ralph@amissah.com" #{js_mail}>
ralph@amissah.com
</a>
</font></p>
</td><td valign="top" width="45%">
<p class="tiny_left"><font color="#666666" size="2">
#{@v[:project]} using:
<br />Standard SiSU markup syntax,
<br />Standard SiSU meta-markup syntax, and the
<br />Standard SiSU <u>object citation numbering</u> and system, (object/text positioning system)
<br />
Copyright <sup>©</sup> Ralph Amissah 1997, current #{@date.year_static}.
All Rights Reserved.
</font></p>
</td></tr>
WOK
end
def widget_way_better
<<WOK
<!-- widget way better -->
<tr><td valign="top" width="10%">
<p class="tiny_left"><font color="#666666" size="2">
<a href="http://www.gnu.org/licenses/gpl.html">
<img border="0" src="../_sisu/image/gplv3_free_software.png" alt="GPLv3" width="127" height="51" />
</a>
</font></p>
</td><td valign="top" width="45%">
<p class="tiny_left"><font color="#666666" size="2">
<a href="#{url_sisu}" #{js_sisu}>
#{@v[:project]}
</a>
is released under
<a href="http://www.gnu.org/licenses/gpl.html">GPLv3</a>
or later,
#{url_decoration.xml_open}<a href="http://www.gnu.org/licenses/gpl.html">http://www.gnu.org/licenses/gpl.html</a>#{url_decoration.xml_close}
</font></p>
</td><td valign="top" width="45%">
<p class="tiny_left"><font color="#666666" size="2">
#{@v[:project]}, developed using
<a href="http://www.ruby-lang.org/en/">
Ruby
</a>
on
<a href="http://www.debian.org/">
Debian/Gnu/Linux
</a>
software infrastructure,
with the usual GPL (or OSS) suspects.
<br />
Better - "performance, reliability, scalability, security & total cost of ownership"
[not to mention flexibility & choice] use of and adherence to open standards (where practical and fair) and it is software libré.
<br />
Get With the Future
<a href="http://www.sisudoc.org/">
Way Better!
</a>
</font></p>
</td></tr>
WOK
end
#% credits
def credits_itl_cover_band
%{<table summary="itl cover band" width="88%" border="0" cellpadding="0" bgcolor="blue">
<tr><td>
<table summary="" width="100%" border="0" cellpadding="8" bgcolor="#000099">
<tr><td>
<table summary="" width="99%" border="1" cellpadding="0" bgcolor="#ffcc00">
<tr><td>
<table summary="" width="100%" border="1" cellpadding="0" bgcolor="#ffffff">
<tr><td align="center">
<font #{font_face}>
<br />
\@
<br />
#{txt_home}
<br />
#{banner_url_txt_sisu}
<br />
</font>
#{table_close*4}}
end
def credits_sisu_manifest
widget_sisu_text
end
def credits_sisu
x=%{<div class="substance">
<table summary="SiSU summary" bgcolor="#ffffff" cellpadding="4" border="0">
<tr><td>
#{widget_sisu}
#{widget_way_better}
</table></div>}
''
end
def credits_splash
end
def credits_sisu_epub
x=%{<div class="substance">
<p class="center"><a href="http://www.openebook.org"><b>EPUB</b></a> generated by <a href="http://www.sisudoc.org"><b>#{@v[:project]}</b></a> v#{@v[:version]}, GPL3</p>
</div>}
''
end
#% bottom
def bottom_surround
%{</td>
<td align="center" valign="bottom">#{table_close}<table summary="" border="0" width="100%" valign="top">
<tr><td valign="top" width="20%"><table summary="" width="100%" border="0" cellpadding="0" bgcolor="#e3ecef" align="center">
<tr><td valign="top">
#{table_close}
</td>
<td align="center" valign="top">
#{banner_band}
#{table_close}
<table summary="" border="0" width="100%" valign="top">
<tr><td valign="top" width="20%">
<table summary="" width="100%" border="0" cellpadding="0" bgcolor="#e3ecef" align="center">
<tr><td valign="top">
#{table_close}
</td>
<td align="center" valign="top">
#{credits_splash}
#{table_close}
</body>
</html>}
end
end
class Home < Skin
def initialize
@v=SiSU_Env::Info_version.instance.get_version
@dir=SiSU_Env::Info_env.new
@date=SiSU_Env::Info_date.new #{@date.year}
end
def redirect
<<WOK
<html><head>
<title>SiSU</title>
<meta http-equiv="refresh" content="0, url=http://www.sisudoc.org/sisu/SiSU/">
</head>
<body>
SiSU informtion provided at <a href="http://www.sisudoc.org/sisu/SiSU/">www.sisudoc.org/sisu/SiSU</a><p />
If your browser supports redirection, you will be escorted there shortly.
</body>
</html>
WOK
end
def homepage
<<WOK
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SiSU information Structuring Universe - Structured
information, Serialized Units - software for electronic texts,
documents, books, digital libraries in plaintext, html, XHTML, XML,
ODF (OpenDocument), EPUB, LaTeX, PDF, SQL (PostgreSQL and SQLite), and
for search</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="dc.title"
content="SiSU information Structuring Universe, Structured information Serialised Units, #{@date.year_static}" />
<meta name="dc.creator" content="Ralph Amissah" />
<meta name="dc.subject" content=
"document structuring, ebook, publishing, PDF, LaTeX, XML, ODF, EPUB, SQL, postgresql, sqlite, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, granular search, digital library" />
<meta name="dc.publisher" content=
"SiSU http://www.sisudoc.org/" />
<meta name="dc.language" content="en" />
<meta name="dc.rights" content="Copyright Ralph Amissah" />
<meta name="generator" content="#{@v[:project]} #{@v[:version]} of #{@v[:date_stamp]} (#{@v[:date]}) (n*x and Ruby!)" />
<link rel="generator" href="http://www.sisudoc.org/sisu/SiSU" />
<link rel="stylesheet" href="./#{@dir.path.style}/html.css" type="text/css" />
<link rel="shortcut icon" href="./_sisu/image/rb7.ico" />
</head>
<body>
<div id="top_band">
<p class="top_band_image">
<a href="http://www.sisudoc.org/sisu/SiSU" target="_top" >
<img border="0" src="./_sisu/image/sisu.png" alt="SiSU >>">
</a>
</p>
<h1 class="top_band">
SiSU information Structuring Universe
</h1>
<h2 class="top_band_tiny">
Structured information, Serialized Units
</h2>
<h2 class="top_band_tiny">
software for electronic texts, document collections, books, digital libraries, and search,
</h2>
<h2 class="top_band_tiny">
with "atomic search" and text positioning system (shared text citation numbering: "<i>ocn</i>")
</h2>
<h2 class="top_band_tiny">
outputs include: plaintext, html, XHTML, XML, ODF (OpenDocument), EPUB, LaTeX, PDF, SQL (PostgreSQL and SQLite)
</h2>
</div>
<div id="top_band_search">
</div>
<div id="column_left">
<p class="bold">
<a href="http://www.sisudoc.org/sisu/SiSU" target="_top" >
SiSU
</a>
</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_manual/" target="_top" >
SiSU Manual
</a>
</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU/1.html#summary" target="_top" >
What does SiSU do? Summary
</a>
</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU/examples.html" target="_top" >
Book Samples and Markup Examples
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_site_metadata/harvest_authors.html" target="_top" >
sorted by Author (sisu metadata)
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_site_metadata/harvest_topics.html" target="_top" >
sorted by Topic (sisu metadata)
</a>
</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU/1.html#ocn" target="_top" >
Object Citation Numbering - <i>ocn</i>
</a>
</p>
<p class="tiny">(a text positioning system)</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU/1.html#search" target="_top" >
Search - "<i>granular</i>"
</a>
<p class="tiny">
Of interest is the ease of streaming documents to a relational database, at an object (roughly paragraph) level and the potential for increased precision in the presentation of matches that results thereby. The ability to serialise html, LaTeX, XML, SQL, (whatever) is also inherent in / incidental to the design. For a description see the
<a href="http://www.sisudoc.org/sisu/sisu_provisional_patent_application_200408" target="_top" >
abandoned U.S. provisional patent application
</a>
</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU/download.html" target="_top" >
<b>Download</b>
</a>
</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU/changelog.html" target="_top" >
Changelog
</a>
</p>
<p class="tiny">
---
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU/license.html" target="_top" >
License
</a>
</p>
<p class="tiny">
Gnu / Linux / Unix
</p>
<p class="tiny">
=============
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_markup/" target="_top" >
sisu markup
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_commands/" target="_top" >
sisu commands
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_manual/" target="_top" >
sisu manual
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/man" target="_top" >
sisu man pages
</a>
</p>
<p class="tiny">
---
</p>
<p class="tiny">
document preparation can be on any platform, in any editor:
(syntax highlight support currently for: vim, kate, write, gedit, diakonos)
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/syntax_highlight" target="_top" >
Syntax highlighting
</a>
</p>
<p class="tiny">
=============
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/SiSU" target="_top" >
* Composite document
</a>
</p>
<p class="tiny">
the composite document is a superset of the following documents:
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_description" target="_top" >
SiSU description
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_examples" target="_top" >
SiSU examples
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_chronology" target="_top" >
SiSU chronology
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_technical_info" target="_top" >
SiSU technical
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_faq" target="_top" >
SiSU FAQ
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_download" target="_top" >
SiSU download
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_changelog" target="_top" >
SiSU changelog
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_license" target="_top" >
SiSU license
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_standard" target="_top" >
SiSU standard
</a>
</p>
<p class="small">
<a href="http://www.sisudoc.org/sisu/sisu_provisional_patent_application_200408" target="_top" >
SiSU abandoned provisional patent
</a>
</p>
<p class="tiny">
Note: the placement of SiSU documents on the Net predate the release of SiSU.
</p>
</div>
<div id="column_center">
<p class="bold">
SiSU Short Description
</p>
<p>
SiSU is a comprehensive future-proofing electronic document management system. Built-in search capabilities allow you to search across multiple documents and highlight matches in an easy-to-follow format. Paragraph numbering system allows you to cite your electronic documents in a consistent manner across multiple file formats. Multiple format outputs allow you to display your documents in plain text, PDF (portrait and horizontal), OpenDocument format, HTML, or e-book reading format (EPUB). Word mapping allows you to easily create word indexes for your documents. Future-proofing flexibility allows you to quickly adapt your documents to newer output formats as needed. All these and many other features are achieved with little or no additional work on your documents - by marking up the documents with a super simplistic markup language, leaving the SiSU engine to handle the heavy-lifting processing.
</p>
<p>
Potential users of SiSU include individual authors who want to publish their books or articles electronically to reach a broad audience, web publishers who want to provide multiple channels of access to their electronic documents, or any organizations which centrally manage a medium or large set of electronic documents, especially governmental organizations which may prefer to keep their documents in easily accessible yet non-proprietary formats.
</p>
<p>
SiSU is an Open Source project initiated and led by Ralph Amissah (<a href="mailto:ralph.amissah@gmail.com">ralph.amissah@gmail.com</a>) and can be contacted via mailing list <a href="http://lists.sisudoc.org/listinfo/sisu">http://lists.sisudoc.org/listinfo/sisu</a> at <a href="mailto:sisu@lists.sisudoc.org">sisu@lists.sisudoc.org</a>. SiSU is licensed under the GNU General Public License.
</p>
<p class="bold">
For less markup than the most elementary HTML you can have more.
</p>
<p><a href="http://www.sisudoc.org/sisu/SiSU" target="_top" ><b>SiSU</b> - Structured information, Serialized Units</a> for electronic documents, is an information structuring, transforming, publishing and search framework with the following features:</p>
<p>
<b>(i)</b> markup syntax:
<b>(a)</b>
simpler than html,
<b>(b)</b>
mnemonic, influenced by mail/messaging/wiki markup practices,
<b>(c)</b> human readable, and easily writable,</p>
<p><b>(ii)</b>
<b>(a)</b>
minimal markup requirement,
<b>(b)</b>
single file marked up for multiple outputs,</p>
<p><b>
notes
</b></p>
<p class="small">
<b>*</b>
documents are prepared in a single UTF-8 file using a minimalistic mnemonic syntax. Typical literature, documents like "War and Peace" require almost no markup, and most of the headers are optional.
</p>
<p class="small">
<b>*</b>
markup is easily readable/parsed by the human eye, (basic markup is simpler and more sparse than the most basic html), [this may also be converted to XML representations of the same input/source document].
</p>
<p class="small">
<b>*</b>
markup defines document structure (this may be done once in a header pattern-match description, or for heading levels individually); basic text attributes (bold, italics, underscore, strike-through etc.) as required; and semantic information related to the document (header information, extended beyond the Dublin core and easily further extended as required); the headers may also contain processing instructions.
</p>
<p><b>(iii)</b>
<b>(a)</b>
multiple outputs primarily industry established and institutionally accepted open standard formats, include amongst others: plaintext (UTF-8); html; (structured) XML; ODF (Open Document text); EPUB; LaTeX; PDF (via LaTeX); SQL type databases (currently PostgreSQL and SQLite). Also produces: concordance files; document content certificates (md5 or sha256 digests of headings, paragraphs, images etc.) and html manifests (and sitemaps of content).
<b>(b)
</b>
takes advantage of the strengths implicit in these very different output types, (e.g. PDFs produced using typesetting of LaTeX, databases populated with documents at an individual object/paragraph level, making possible granular search (and related possibilities))</p>
<p><b>(iv)</b>
outputs share a common numbering system (dubbed "object citation numbering" (ocn)) that is meaningful (to man and machine) across various digital outputs whether paper, screen, or database oriented, (PDF, html, XML, EPUB, sqlite, postgresql), this numbering system can be used to reference content.</p>
<p>
<b>(v)</b>
SQL databases are populated at an object level (roughly headings, paragraphs, verse, tables) and become searchable with that degree of granularity, the output information provides the object/paragraph numbers which are relevant across all generated outputs; it is also possible to look at just the matching paragraphs of the documents in the database; [output indexing also work well with search indexing tools like hyperesteier].</p>
<p>
<b>(vi)</b>
use of semantic meta-tags in headers permit the addition of semantic information on documents, (the available fields are easily extended)</p>
<p>
<b>(vii)</b>
creates organised directory/file structure for (file-system) output, easily mapped with its clearly defined structure, with all text objects numbered, you know in advance where in each document output type, a bit of text will be found (e.g. from an SQL search, you know where to go to find the prepared html output or PDF etc.)... there is more; easy directory management and document associations, the document preparation (sub-)directory may be used to determine output (sub-)directory, the skin used, and the SQL database used,</p>
<p>
<b>(viii)</b>
"Concordance file" wordmap, consisting of all the words in a document and their (text/ object) locations within the text, (and the possibility of adding vocabularies),</p>
<p>
<b>(ix)</b>
document content certification and comparison considerations:
<b>(a)</b>
the document and each object within it stamped with an md5 hash making it possible to easily check or guarantee that the substantive content of a document is unchanged,
<b>(b)</b>
version control, documents integrated with time based source control system, default RCS or CVS with use of $Id$ tag, which SiSU checks
<p>
<b>(x)</b>
SiSU's minimalist markup makes for meaningful "diffing" of the substantive content of markup-files,</p>
<p>
<b>(xi)</b>
easily skinnable, document appearance on a project/site wide, directory wide, or document instance level easily controlled/changed,</p>
<p>
<b>(xii)</b>
in many cases a regular expression may be used (once in the document header) to define all or part of a documents structure obviating or reducing the need to provide structural markup within the document,</p>
<p>
<b>(xiii)</b>
prepared files may be batch process, documents produced are static files so this needs to be done only once but may be repeated for various reasons as desired (updated content, addition of new output formats, updated technology document presentations/representations)</p>
<p>
<b>(xiv)</b>
possible to pre-process, which permits: the easy creation of standard form documents, and templates/term-sheets, or; building of composite documents (master documents) from other sisu marked up documents, or marked up parts, i.e. import documents or parts of text into a main document should this be desired</p>
<p>
there is a considerable degree of future-proofing, output representations are "upgradeable", and new document formats may be added.
</p>
<p>
<b>(xv)</b>
there is a considerable degree of future-proofing, output representations are "upgradeable", and new document formats may be added:
<b>(a)</b>
modular, (thanks in no small part to Ruby) another output format required, write another module....
<b>(b)</b> easy to update output formats (eg html, XHTML, LaTeX/PDF produced can be updated in program and run against whole document set),
<b>(c)</b> easy to add, modify, or have alternative syntax rules for input, should you need to,</p>
<p>
<b>(xvi)</b>
scalability, dependent on your file-system (ext3, Reiserfs, XFS, whatever) and on the relational database used (currently Postgresql and SQLite), and your hardware,</p>
<p>
<b>(xvii)</b>
only marked up files need be backed up, to secure the larger document set produced,</p>
<p>
<b>(xviii)</b>
document management,</p>
<p>
<b>(xix)</b>
Syntax highlighting for SiSU markup is available for a number of text editors.</p>
<p><b>(xx)</b> remote operations:
<b>(a)</b>
run SiSU on a remote server, (having prepared sisu markup documents locally or on that server, i.e. this solution where sisu is installed on the remote server, would work whatever type of machine you chose to prepare your markup documents on),
<b>(b)</b>
generated document outputs may be posted by sisu to remote sites (using rsync/scp)
<b>(c)</b>
document source (plaintext utf-8) if shared on the net may be identified by its url and processed locally to produce the different document outputs.</p>
<p>
<b>(xxi)</b>
document source may be bundled together (automatically) with associated documents (multiple language versions or master document with inclusions) and images and sent as a zip file called a sisupod, if shared on the net these too may be processed locally to produce the desired document outputs, these may be downloaded, shared as email attachments, or processed by running sisu against them, either using a url or the filename.
</p>
<p>
<b>(xxii)</b>
for basic document generation, the only software dependency is Ruby, and a few standard Unix tools (this covers plaintext, html, XML, ODF, EPUB, LaTeX). To use a database you of course need that, and to convert the LaTeX generated to PDF, a LaTeX processor like tetex or texlive.
</p>
<p>
as a developers tool it is flexible and extensible
</p>
<br />
<p class="small">
More information on <a href="http://www.sisudoc.org/sisu/SiSU/"><b>SiSU</b></a> provided at <a href="http://www.sisudoc.org/sisu/SiSU/">www.sisudoc.org/sisu/SiSU</a></p>
</div>
<div id="column_right">
<p class="tiny">
<!-- Search SiSU -->
<a name="search"></a><form method="get" action="http://search.sisudoc.org" target="_top">
<input type="text" name="s1" size="24" maxlength="255" />
<br />
<input type="submit" name="ignore" value="search" />
<input type="hidden" name="db" value="#{Db[:name_prefix]}sisu" />
<input type="hidden" name="a" value="1" />
<input type="radio" name="view" value="index" checked="checked" /> idx
<input type="radio" name="view" value="text" /> txt
<a href="http://search.sisudoc.org" target="_top" >search.sisudoc.org</a>
</form>
<!-- Search SiSU -->
</p>
<p class="tiny">
SiSU ("SiSU information Structuring Universe" or "Structured information, Serialized Units"),<sup>1</sup> is a Unix command line oriented framework for document structuring, publishing and search. Featuring minimalistic markup, multiple standard outputs, a common citation system, and granular search.
</p>
<p class="tiny">
Using markup applied to a document, SiSU can produce plain text, HTML, XHTML, XML, OpenDocument, LaTeX or PDF files, and populate an SQL database with objects<sup>2</sup> (equating generally to paragraph-sized chunks) so searches may be performed and matches returned with that degree of granularity (e.g. your search criteria is met by these documents and at these locations within each document). Document output formats share a common object numbering system for locating content. This is particularly suitable for "published" works (finalized texts as opposed to works that are frequently changed or updated) for which it provides a fixed means of reference of content.
</p>
<p class="small">
How it works
</p>
<p class="tiny">
SiSU markup is fairly minimalistic, it consists of: a (largely optional) document header, made up of information about the document (such as when it was published, who authored it, and granting what rights) and any processing instructions; and markup within text which is related to document structure and typeface. SiSU must be able to discern the structure of a document, (text headings and their levels in relation to each other), either from information provided in the instruction header or from markup within the text (or from a combination of both). Processing is done against an abstraction of the document comprising of information on the document's structure and its objects,<sup>2</sup> which the program serializes (providing the object numbers) and which are assigned hash sum values based on their content. This abstraction of information about document structure, objects, (and hash sums), provides considerable flexibility in representing documents different ways and for different purposes (e.g. search, document layout, publishing, content certification, concordance etc.), and makes it possible to take advantage of some of the strengths of established ways of representing documents, (or indeed to create new ones).</p>
<p class="tiny">
<sup>1.</sup> also chosen for the meaning of the Finnish term "sisu".
</p>
<p class="tiny">
<sup>2</sup> objects include: headings, paragraphs, verse, tables, images, but not footnotes/endnotes which are numbered separately and tied to the object from which they are referenced.</p>
<p class="small">
More information on <a href="http://www.sisudoc.org/sisu/SiSU/"><b>SiSU</b></a> provided at:
<a href="http://www.sisudoc.org/sisu/SiSU/">
www.sisudoc.org/sisu/SiSU
</a>
<p class="tiny">
SiSU was developed in relation to legal documents, and is strong across a wide variety of texts (law, literature...(humanities, law and part of the social sciences)). SiSU handles images but is not suitable for formulae/ statistics, or for technical writing at this time.</p>
<p class="tiny">
SiSU has been developed and has been in use for several years. Requirements to cover a wide range of documents within its use domain have been explored.</p>
<p class="small">
<a href="mailto:ralph@amissah.com">
ralph@amissah.com
</a>
</p>
<p class="small">
<a href="mailto:ralph.amissah@gmail.com">
ralph.amissah@gmail.com
</a>
</p>
<p class="small">
<a href="mailto:sisu@lists.sisudoc.org">
sisu@lists.sisudoc.org.
</a>
</p>
<p class="small">
<a href="http://lists.sisudoc.org/listinfo/sisu">
http://lists.sisudoc.org/listinfo/sisu
</a>
</p>
<p class="small">
#{@date.year_static}
</p>
<p class="tiny">
w3 since October 3 1993
</p>
</div>
</body>
</html>
WOK
end
def home_toc
' '
end
end
class Inserts
end
class TeX < Skin
def initialize(papersize='')
@papersize=papersize
end
def a4
def portrait
def w
160
end
def h
228
end
def img_px
450
end
self
end
def landscape
def w
238
end
def h
160
end
def img_px
300
end
self
end
self
end
def letter
def portrait
def w
166
end
def h
212
end
def img_px
468
end
self
end
def landscape
def w
226
end
def h
166
end
def img_px
290
end
self
end
self
end
def legal
def portrait
def w
168
end
def h
286
end
def img_px
474
end
self
end
def landscape
def w
296
end
def h
166
end
def img_px
420
end
self
end
self
end
def b5
def portrait
def w
140
end
def h
204
end
def img_px
356
end
self
end
def landscape
def w
200
end
def h
130
end
def img_px
260
end
self
end
self
end
def a5
def portrait
def w
112
end
def h
162
end
def img_px
280
end
self
end
def landscape
def w
152
end
def h
100
end
def img_px
190
end
self
end
self
end
def dimensions
d=case @papersize
when /a4/; a4
when /letter/; letter
when /legal/; legal
when /b5/; b5
when /a5/; a5
else a4
end
end
end
end
__END__
|