1
@foot_text_block_line_color ||= "#ff9933"
2
@foot_text_block_line_width ||= 1
3
@foot_text_block_line_length_ratio ||= 0.5
5
match("**", FootTextBlock) do
6
name = "foot-text-block"
9
delete_pre_draw_proc_by_name(name)
11
unless block.elements.empty?
12
block.margin_with(:top => space * 3)
14
block.add_pre_draw_proc(name) do |canvas, x, y, w, h, simulation|
19
(x + w * @foot_text_block_line_length_ratio).ceil,
21
@foot_text_block_line_color,
22
{:line_width => @foot_text_block_line_width},
24
canvas.draw_line(*args)
32
match("**", FootText) do
34
if text["order_added"]
35
order_text = text.elements.first
37
order_text = Text.new("(*#{text.order})")
38
text.unshift(order_text)
39
text["order_added"] = true
41
order_text.prop_set("foreground", "blue")
42
order_text.prop_set("size", @script_font_size)
43
order_text.prop_set("rise", (@script_font_size / 2.0).ceil)
47
match("**", Footnote) do
48
prop_set("foreground", "blue")
50
note.text = "(*#{note.order})"