module Bracetax_generic_printer:A generic printer, it implementssig
..end
Signatures.printer
functions from GenericPrinter.output_t
s.GenericPrinter.output_t
.typewrite_fun =
string -> unit
typestring_of_args_fun =
string list -> string
typestring_fun =
unit -> string
typetransform_string_fun =
string -> string
type
output_t = {
|
start_text : |
(* | Function called when printing starts. | *) |
|
terminate : |
(* | Function called before stopping the printing. | *) |
|
start_raw : |
(* | Begin a non-parsed bloc, the string option is the optional
post-processing plugin "identifier". | *) |
|
raw_line : |
|||
|
stop_raw : |
|||
|
line : |
(* | Handle a line of "pure" text. | *) |
|
comment_line : |
|||
|
quotation_open : |
(* | Open "quotation marks" of the kind given as argument. | *) |
|
quotation_close : |
|||
|
start_italic : |
|||
|
start_bold : |
|||
|
start_type : |
|||
|
start_sup : |
|||
|
start_sub : |
|||
|
stop_italic : |
|||
|
stop_bold : |
|||
|
stop_type : |
|||
|
stop_sup : |
|||
|
stop_sub : |
|||
|
list_start : |
|||
|
list_first_item : |
|||
|
list_item : |
|||
|
list_stop : |
|||
|
section_start : |
(* | Start a section title given its level and its label. | *) |
|
section_stop : |
|||
|
paragraph : |
|||
|
new_line : |
|||
|
non_break_space : |
|||
|
horizontal_ellipsis : |
|||
|
en_dash : |
|||
|
em_dash : |
|||
|
open_brace : |
|||
|
close_brace : |
|||
|
sharp : |
|||
|
utf8_char : |
|||
|
link : |
(* | (o.link kind target text) to create a link. | *) |
|
start_header : |
|||
|
start_title : |
|||
|
start_authors : |
|||
|
start_subtitle : |
|||
|
stop_header : |
|||
|
stop_title : |
|||
|
stop_authors : |
|||
|
stop_subtitle : |
|||
|
start_image : |
(* | Start an "image" (i.e. just before the caption), given the URL, the size, and the optional label. | *) |
|
stop_image : |
|||
|
print_table : |
(* | Print the table using the first argument (print function). | *) |
|
start_note : |
|||
|
stop_note : |
|||
|
start_quote : |
|||
|
stop_quote : |
val build : ?print_comments:bool ->
writer:Signatures.writer ->
output_funs:output_t ->
unit -> Signatures.printer
printer
from a GenericPrinter.output_t
to feed
Parser.do_transformation
, the optional argument has the same
meaning than for Transform.brtx_to_latex
.