blob: 014e4e3487d1d5ff7e5905bc491c95004432f064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import collections
def paragraph(style_id=None, numbering=None):
return ParagraphMatcher(style_id, numbering)
ParagraphMatcher = collections.namedtuple("ParagraphMatcher", ["style_id", "numbering"])
ParagraphMatcher.element_type = "paragraph"
def run(style_id=None):
return RunMatcher(style_id)
RunMatcher = collections.namedtuple("RunMatcher", ["style_id"])
RunMatcher.element_type = "run"
|