Interscript uses a different markup model to HTML. While interscript uses begin and end methods like many HTML tags, HTML paragraph elements are not indicated by such methods. Instead, text written in many places is implicitly a paragraph element, and interscript must detect these places and insert an appropriate start tag. Similarly, interscript paragraphs are separated by @p() commands, and terminated by some other block level construction like a heading or table.
On the other hand, not all text lines are paragraph content, for example list body content.
1: #line 21 "html_weaver.ipk" 2: from interscript.weavers.base import weaver_base 3: import string 4: try: 5: import interscript.core.iscrcopt 6: cvt_code = interscript.core.iscrcopt.cvt_code 7: cvt_text = interscript.core.iscrcopt.cvt_text 8: #print 'Using iscrcopt' 9: except: 10: #print 'iscrcopt NOT AVAILABLE' 11: def cvt_code(line): 12: l = '' 13: for ch in line: 14: if ch in '<>': 15: l = l + {'<':'<','>':'>'}[ch] 16: else: 17: l = l + ch 18: return l 19: 20: def cvt_text(line): 21: l = '' 22: for ch in line: 23: if ch in '<>&': 24: l = l + {'<':'<','>':'>','&':'&'}[ch] 25: else: 26: l = l + ch 27: return l 28: 29: class html_weaver(weaver_base): 30:
6.4.5.1. Initialisation
6.4.5.2. Termination
6.4.5.3. Body Output and Mode Control
6.4.5.4. Headings
6.4.5.5. Lists
6.4.5.6. Code Output
6.4.5.7. Citations
6.4.5.8. Paragraphs
6.4.5.9. Fonts
6.4.5.10. Identifier Cross Reference Table
6.4.5.11. Class Reference Table
6.4.5.12. Table of Contents
6.4.5.13. Code File List
6.4.5.14. Code File Status
6.4.5.15. Input File List
6.4.5.16. Include List
6.4.5.17. Tables
6.4.5.18. HTML Header
6.4.5.19. Interscript Style Sheet