|
32 | 32 | $aodp_sn_span_superscript = "Superscript" |
33 | 33 | $aodp_sn_span_mark = "Mark" |
34 | 34 | $aodp_sn_span_monospaced = "Source_20_Text" |
35 | | -$aodp_sn_span_unquted_small = "Small" |
36 | | -$aodp_sn_span_unquted_table_small = "Table_20_Small" |
| 35 | +$aodp_sn_span_unquoted_small = "Small" |
| 36 | +$aodp_sn_span_unquoted_table_small = "Table_20_Small" |
| 37 | +$aodp_sn_span_unquoted_big = "Big" |
| 38 | +$aodp_sn_span_unquoted_table_big = "Table_20_Big" |
| 39 | +$aodp_sn_span_unquoted_underline = "Underline" |
37 | 40 | $aodp_sn_list_arabic = "Numbering_20_123" |
38 | 41 | $aodp_sn_list_decimal = "Numbering_20_dec" |
39 | 42 | $aodp_sn_list_loweralpha = "Numbering_20_abc" |
@@ -399,7 +402,7 @@ def h_basic_table_caption; BasicTableCaption.new(@sn, @sd) if |
399 | 402 | !!(@sn =~ /^adoc_tca[ ]/) end |
400 | 403 | def h_basic_header; BasicSectionHeader.new(@sn, @sd) if |
401 | 404 | !!(@sn =~ /^adoc_s[ ]/) end |
402 | | - def h_basic_inline_quoted; BasicInlineQuoted.new(@sn, @sd) if |
| 405 | + def h_basic_inline_quoted; BasicInlineQuoted.new(@sn, @sd) if |
403 | 406 | !!(@sn =~ /^adoc_iq[ ]/) end |
404 | 407 | def h_basic_list_caption; BasicListCaption.new(@sn, @sd) if |
405 | 408 | !!(@sn =~ /^adoc_lca[ ]/) end |
@@ -581,9 +584,12 @@ def h_parent_style_name |
581 | 584 | if type != "unquoted" |
582 | 585 | @sd[:parent_style_name] = eval("$aodp_sn_span_#{type}") |
583 | 586 | else |
584 | | - if !!(@snr =~ / small /) |
585 | | - @sd[:parent_style_name] = $aodp_sn_span_unquted_small |
586 | | - @sd[:parent_style_name] = $aodp_sn_span_unquted_table_small if !!(@snr =~ / in_cell_[0-9] /) |
| 587 | + ['small', 'big', 'underline'].each do |unquoted_type| |
| 588 | + if !!(@snr =~ / #{unquoted_type} /) |
| 589 | + @sd[:parent_style_name] = eval("$aodp_sn_span_unquoted_#{unquoted_type}") |
| 590 | + @sd[:parent_style_name] = eval("$aodp_sn_span_unquoted_table_#{unquoted_type}") if |
| 591 | + !!(@snr =~ / in_cell_[0-9] /) and ['small', 'big'].include? unquoted_type |
| 592 | + end |
587 | 593 | end |
588 | 594 | end |
589 | 595 | end |
|
0 commit comments