MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / make_labels

Function make_labels

tests/test_pagelabels.py:17–25  ·  view source on GitHub ↗

Return page label range rules. - Rule 1: labels like "A-n", page 0 is first and has "A-1". - Rule 2: labels as capital Roman numbers, page 4 is first and has "I".

()

Source from the content-addressed store, hash-verified

15
16
17def make_labels():
18 """Return page label range rules.
19 - Rule 1: labels like "A-n", page 0 is first and has "A-1".
20 - Rule 2: labels as capital Roman numbers, page 4 is first and has "I".
21 """
22 return [
23 {"startpage": 0, "prefix": "A-", "style": "D", "firstpagenum": 1},
24 {"startpage": 4, "prefix": "", "style": "R", "firstpagenum": 1},
25 ]
26
27
28def test_setlabels():

Callers 1

test_setlabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…