File: html.py

package info (click to toggle)
plastex 3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,132 kB
  • sloc: python: 23,341; xml: 18,076; javascript: 7,755; ansic: 46; makefile: 40; sh: 26
file content (54 lines) | stat: -rw-r--r-- 1,230 bytes parent folder | download | duplicates (2)
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
from plasTeX import Command, IgnoreCommand
from plasTeX.Base.LaTeX.Verbatim import verbatim
from plasTeX.DOM import Text

class htmladdnormallink(Command):
    args = 'self url'
    
class htmladdimg(Command):
    args = 'url'    
    
class rawhtml(verbatim):
    captionable = True
    blockType = False
    def digest(self, tokens):
        verbatim.digest(self, tokens)
        self.str = Text(''.join(self))
        self.str.isMarkup = True
        return []
        
class latexonly(IgnoreCommand):
    args = 'latex:nox'    
    
class htmlonly(Command):
    args = 'self'
    
class latexhtml(Command):
    args = 'latex:nox self'
        
class hyperref(Command):
    args = 'self latexpre:nox latexpost:nox label:idref'    
    
class htmlref(Command):
    args = 'self label:idref'    
    
class externallabels(IgnoreCommand):
    args = 'url labels'
    
class externalref(IgnoreCommand):
    args = 'label'    
    
class segment(IgnoreCommand):
    args = 'file type self'
        
class internal(IgnoreCommand):
    args = '[ type ] prefix'    
    
class startdocument(IgnoreCommand):
    pass

class htmlhead(IgnoreCommand):
    args = 'type self'
    
class htmladdtonavigation(IgnoreCommand):
    args = 'self'