diff options
Diffstat (limited to 'lib/sisu/v3dv/xml_dom.rb')
| -rw-r--r-- | lib/sisu/v3dv/xml_dom.rb | 26 | 
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/sisu/v3dv/xml_dom.rb b/lib/sisu/v3dv/xml_dom.rb index ae45100d..e63f7ad7 100644 --- a/lib/sisu/v3dv/xml_dom.rb +++ b/lib/sisu/v3dv/xml_dom.rb @@ -165,7 +165,7 @@ WOK        end        def xml_element(dob,xml_el='',xml_content='',type='norm')          n=n1=n2=n3=0 -        if dob.is=='heading' +        if dob.is==:heading            lv=dob.ln            n=dob.ln - 1            n1=dob.ln @@ -200,7 +200,7 @@ WOK        end        def xml_structure(dob,type='norm')          n=n1=n2=n3=0 -        if dob.is=='heading' +        if dob.is==:heading            lv=dob.ln            n=dob.ln - 1            n1=dob.ln @@ -344,7 +344,7 @@ WOK            @trans.char_enc.utf8(dob) if @sys.locale =~/utf-?8/i #% utf8            dob=@trans.markup(dob)            if @rcdc==false \ -          and (dob.is =~/^meta/ \ +          and (dob.is ==:meta \            and dob.obj =~/Document Information/)              @rcdc=true            end @@ -353,9 +353,9 @@ WOK              if not @rcdc                if defined? dob.ocn \                and dob.ocn.to_s =~/\d+/ -                format_scroll=SiSU_XML_Format::FormatScroll.new(@md,dob) if dob.is=='para' and dob.indent ##FIX +                format_scroll=SiSU_XML_Format::FormatScroll.new(@md,dob) if dob.is==:para and dob.indent ##FIX                  x=SiSU_XML_Format::FormatSeg.new(@md,dob) -                if dob.is=='heading' +                if dob.is==:heading                    if dob.ln==1                      type="heading_section_#{dob.ln.to_s}"                      xml_markup(dob) @@ -388,32 +388,32 @@ WOK                    end                  else                    ocn=dob.ocn -                  if dob.is=='verse' +                  if dob.is==:verse                      type='verse'                      poem_structure(dob) #redo -                  elsif dob.is=='group' +                  elsif dob.is==:group                      type='group'                      group_structure(dob) #redo -                  elsif dob.is=='block' +                  elsif dob.is==:block                      type='block'                      block_structure(dob) #redo -                  elsif dob.is=='code' +                  elsif dob.is==:code                      type='code'                      code_structure(dob) #redo -                  elsif dob.is=='table' # tables come as single block #work area 2005w13 +                  elsif dob.is==:table # tables come as single block #work area 2005w13                      type='table'                      table_structure(dob) -                  elsif dob.is=='para' \ +                  elsif dob.is==:para \                    and dob.indent.to_s =~/[1-9]/ \                    and dob.bullet_                      type="indent_bullet#{dob.indent.to_s}"                      xml_markup(dob) -                  elsif dob.is=='para' \ +                  elsif dob.is==:para \                    and dob.indent.to_s =~/[1-9]/ \                    and dob.indent == dob.hang                      type="indent#{dob.indent.to_s}"                      xml_markup(dob) -                  elsif dob.is=='para' \ +                  elsif dob.is==:para \                    and dob.hang.to_s =~/[0-9]/ \                    and dob.indent != dob.hang                      type="hang#{dob.hang.to_s}_indent#{dob.indent.to_s}"  | 
