Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Public Member Functions | |
def | __init__ |
def | end_paragraph |
def | add_line_break |
def | add_hor_rule |
def | add_label_data |
def | format_counter |
def | format_letter |
def | format_roman |
def | add_flowing_data |
def | add_literal_data |
def | flush_softspace |
def | push_alignment |
def | pop_alignment |
def | push_font |
def | pop_font |
def | push_margin |
def | pop_margin |
def | set_spacing |
def | push_style |
def | pop_style |
def | assert_line_data |
Data Fields | |
writer | |
align | |
align_stack | |
font_stack | |
margin_stack | |
spacing | |
style_stack | |
nospace | |
softspace | |
para_end | |
parskip | |
hard_break | |
have_label | |
Definition at line 54 of file formatter.py.
def __init__ | ( | self, | |
writer | |||
) |
Definition at line 61 of file formatter.py.
def add_flowing_data | ( | self, | |
data, | |||
whitespace = string.whitespace , |
|||
join = string.join , |
|||
split = string.split |
|||
) |
Definition at line 166 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.have_label, dospath.join(), AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.parskip, AbstractFormatter.softspace, and dospath.split().
def add_hor_rule | ( | self, | |
args, | |||
kw | |||
) |
Definition at line 94 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.have_label, AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.parskip, and AbstractFormatter.softspace.
def add_label_data | ( | self, | |
format, | |||
counter, | |||
blankline = None |
|||
) |
Definition at line 101 of file formatter.py.
References AbstractFormatter.format_counter(), AbstractFormatter.hard_break, AbstractFormatter.have_label, AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.parskip, and AbstractFormatter.softspace.
def add_line_break | ( | self) |
Definition at line 87 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.have_label, AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.parskip, and AbstractFormatter.softspace.
def add_literal_data | ( | self, | |
data | |||
) |
Definition at line 188 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.have_label, AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.parskip, and AbstractFormatter.softspace.
def assert_line_data | ( | self, | |
flag = 1 |
|||
) |
Definition at line 280 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.have_label, AbstractFormatter.nospace, AbstractFormatter.para_end, and AbstractFormatter.parskip.
def end_paragraph | ( | self, | |
blankline | |||
) |
Definition at line 76 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.have_label, AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.parskip, and AbstractFormatter.softspace.
def flush_softspace | ( | self) |
Definition at line 197 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.have_label, AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.parskip, and AbstractFormatter.softspace.
def format_counter | ( | self, | |
format, | |||
counter | |||
) |
Definition at line 113 of file formatter.py.
References AbstractFormatter.format_letter(), and AbstractFormatter.format_roman().
def format_letter | ( | self, | |
case, | |||
counter | |||
) |
Definition at line 128 of file formatter.py.
def format_roman | ( | self, | |
case, | |||
counter | |||
) |
def pop_alignment | ( | self) |
Definition at line 212 of file formatter.py.
References Chunk.align, AbstractFormatter.align, and AbstractFormatter.align_stack.
def pop_font | ( | self) |
def pop_margin | ( | self) |
Definition at line 253 of file formatter.py.
References fnmatch.filter(), and AbstractFormatter.margin_stack.
def pop_style | ( | self, | |
n = 1 |
|||
) |
Definition at line 276 of file formatter.py.
References AbstractFormatter.style_stack, and log_faction_ships.tuple.
def push_alignment | ( | self, | |
align | |||
) |
def push_font | ( | self, | |
size, | |||
i, | |||
b, | |||
tt | |||
) |
Definition at line 222 of file formatter.py.
References AbstractFormatter.font_stack, AbstractFormatter.hard_break, AbstractFormatter.nospace, AbstractFormatter.para_end, and AbstractFormatter.softspace.
def push_margin | ( | self, | |
margin | |||
) |
Definition at line 246 of file formatter.py.
References fnmatch.filter(), and AbstractFormatter.margin_stack.
def push_style | ( | self, | |
styles | |||
) |
Definition at line 267 of file formatter.py.
References AbstractFormatter.hard_break, AbstractFormatter.nospace, AbstractFormatter.para_end, AbstractFormatter.softspace, AbstractFormatter.style_stack, and log_faction_ships.tuple.
def set_spacing | ( | self, | |
spacing | |||
) |
align |
Definition at line 63 of file formatter.py.
align_stack |
Definition at line 64 of file formatter.py.
font_stack |
Definition at line 65 of file formatter.py.
hard_break |
Definition at line 73 of file formatter.py.
have_label |
Definition at line 74 of file formatter.py.
margin_stack |
Definition at line 66 of file formatter.py.
nospace |
Definition at line 69 of file formatter.py.
para_end |
Definition at line 71 of file formatter.py.
parskip |
Definition at line 72 of file formatter.py.
softspace |
Definition at line 70 of file formatter.py.
spacing |
Definition at line 67 of file formatter.py.
style_stack |
Definition at line 68 of file formatter.py.
writer |
Definition at line 62 of file formatter.py.