cryptnox-sdk-arduino 1.0.0
Arduino library for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
patch_latex Namespace Reference

Functions

 _to_ascii (match)

Variables

 path = sys.argv[1]
int title = sys.argv[2] if len(sys.argv) > 2 else None
 url
 write_to
 encoding
 s = _f.read()
 sty = os.path.join(os.path.dirname(path), "doxygen.sty")
 d = _f.read()
 idx = os.path.join(os.path.dirname(path), "index.tex")
 i = _f.read()
 keep
 tex
 body = _f.read()
str marker = "\\begin{document}"
 split = body.find(marker)
int head = -1 else ""
int tail = -1 else body
int fixed = head + re.sub(r"[^\x00-\x7F]", _to_ascii, tail)

Detailed Description

Post-process Doxygen's refman.tex before pdflatex, to match the Cryptnox PDF style.

Usage: python3 docs/patch_latex.py docs/latex/refman.tex ["Friendly Title"]

Function Documentation

◆ _to_ascii()

patch_latex._to_ascii ( match)
protected

Definition at line 176 of file patch_latex.py.

Variable Documentation

◆ body

patch_latex.body = _f.read()

Definition at line 195 of file patch_latex.py.

◆ d

patch_latex.d = _f.read()

Definition at line 138 of file patch_latex.py.

◆ encoding

patch_latex.encoding

Definition at line 26 of file patch_latex.py.

◆ fixed

int patch_latex.fixed = head + re.sub(r"[^\x00-\x7F]", _to_ascii, tail)

Definition at line 204 of file patch_latex.py.

◆ head

int patch_latex.head = -1 else ""

Definition at line 202 of file patch_latex.py.

◆ i

patch_latex.i = _f.read()

Definition at line 149 of file patch_latex.py.

◆ idx

patch_latex.idx = os.path.join(os.path.dirname(path), "index.tex")

Definition at line 146 of file patch_latex.py.

◆ keep

patch_latex.keep
Initial value:
1= frozenset({
2 0x00A0, 0x00B2, 0x00B3, 0x00D7, # nbsp, superscript 2/3, multiplication
3 0x2013, 0x2014, 0x2026, # en/em dash, ellipsis
4 0x2018, 0x2019, 0x201C, 0x201D, # curly quotes
5 0x2190, 0x2192, 0x2194, # left/right/both arrows
6 0x2264, 0x2265, # <= and >= (declared in the preamble)
7})

Definition at line 167 of file patch_latex.py.

◆ marker

str patch_latex.marker = "\\begin{document}"

Definition at line 200 of file patch_latex.py.

◆ path

patch_latex.path = sys.argv[1]

Definition at line 9 of file patch_latex.py.

◆ s

patch_latex.s = _f.read()

Definition at line 27 of file patch_latex.py.

◆ split

patch_latex.split = body.find(marker)

Definition at line 201 of file patch_latex.py.

◆ sty

patch_latex.sty = os.path.join(os.path.dirname(path), "doxygen.sty")

Definition at line 135 of file patch_latex.py.

◆ tail

int patch_latex.tail = -1 else body

Definition at line 203 of file patch_latex.py.

◆ tex

patch_latex.tex

Definition at line 194 of file patch_latex.py.

◆ title

int patch_latex.title = sys.argv[2] if len(sys.argv) > 2 else None

Definition at line 10 of file patch_latex.py.

◆ url

patch_latex.url

Definition at line 22 of file patch_latex.py.

◆ write_to

patch_latex.write_to

Definition at line 23 of file patch_latex.py.