-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathglobals.py
44 lines (30 loc) · 1.01 KB
/
globals.py
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
"""
globals.py
"""
import re
from processingOptions import ProcessingOptions
global processingOptions
processingOptions = ProcessingOptions()
global spanClassRegex
spanClassRegex = re.compile("<span( )*class=")
global spanStyleRegex
spanStyleRegex = re.compile("<span( )*style=")
global href_runs
href_runs = {}
######################################################################################
# #
# Prime for style. metadata #
# #
######################################################################################
# Background colour class correspondence
global bgcolors
bgcolors = {}
# Foreground colour class correspondence
global fgcolors
fgcolors = {}
# Emphases class correspondence
global emphases
emphases = {}
# Font size class correspondence
global fontsizes
fontsizes = {}