|
109 | 109 | $aodp_assume_src_dpi = 130 |
110 | 110 | $aodp_list_first_level_indent = "12.7mm" |
111 | 111 | $aodp_list_other_levels_indent = "6.4mm" |
| 112 | +$aodp_sn_preamble_before_paragraph = "Preamble_20_Before_20_Paragraph" |
112 | 113 |
|
113 | 114 | =begin |
114 | 115 | tag::algorithm_description[] |
@@ -438,6 +439,8 @@ def h_basic_toc_header; BasicTocHeader.new(@sn, @sd) if |
438 | 439 | !!(@sn =~ /^adoc_toch[ ]/) end |
439 | 440 | def h_basic_toc_inline_quoted; BasicTocInlineQuoted.new(@sn, @sd) if |
440 | 441 | !!(@sn =~ /^adoc_tociq[ ]/) end |
| 442 | + def h_basic_preamble_first_paragraph; BasicPreambleFirstParagraph.new(@sn, @sd) if |
| 443 | + !!(@sn =~ /^adoc_pr[ ]/) end |
441 | 444 | end |
442 | 445 |
|
443 | 446 |
|
@@ -786,7 +789,7 @@ def h_parent_style_name |
786 | 789 | def h_style_vertical_pos |
787 | 790 | @sd["style:graphic-properties"]["style:vertical-pos"] = "top" |
788 | 791 | @sd["style:graphic-properties"]["style:vertical-rel"] = "baseline" |
789 | | - @sd["style:graphic-properties"]["text:anchor-type"] = "paragraph" |
| 792 | + @sd["style:graphic-properties"]["text:anchor-type"] = "paragraph" |
790 | 793 | @sd["style:graphic-properties"]["style:flow-with-text"] = "true" |
791 | 794 | @sd["style:graphic-properties"]["style:wrap"] = "none" |
792 | 795 | end |
@@ -906,6 +909,14 @@ def h_parent_style_name |
906 | 909 | @sd[:parent_style_name] = $aodp_sn_toc_dots_space_page_number if !!(@snr =~ / dots_space_page_number /) |
907 | 910 | end |
908 | 911 | end |
| 912 | + |
| 913 | + |
| 914 | +class BasicPreambleFirstParagraph < BasicHelper |
| 915 | + def h_parent_style_name |
| 916 | + @sd[:parent_style_name] = $aodp_sn_preamble_before_paragraph if !!(@snr =~ / before-paragraph /) |
| 917 | + end |
| 918 | +end |
| 919 | + |
909 | 920 | class StyleToXml |
910 | 921 | def self.to_doc style_rep, xml_node |
911 | 922 | style_rep.each do |sn, sd| |
|
0 commit comments