diff options
author | Ralph Amissah <ralph@amissah.com> | 2008-02-24 21:05:47 +0000 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2008-02-24 21:05:47 +0000 |
commit | ec9282e23d3262a2746f9837e0bc57e9aa7a48d5 (patch) | |
tree | f1fdab5e27bad144a1e2472a8242348a45d03914 /lib/sisu/v0/sst_to_s_xml_sax.rb | |
parent | make possible to strip 0.66 markup in dal commit (diff) |
enable conversion from sst to various forms of input xml and back including 0.66 tags
sst_to_s_xml (sax/dom/node) semantic xml mockup naive conversion of known abbreviated tags,
in flux, e.g.
sisu --to-sax autonomy_markup0.sst
back to sst markup with:
sisu --from-sxml autonomy_markup0.sxs.xml
sst_to_s_dom fix to footnote/endnote conversion
Diffstat (limited to 'lib/sisu/v0/sst_to_s_xml_sax.rb')
-rw-r--r-- | lib/sisu/v0/sst_to_s_xml_sax.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sisu/v0/sst_to_s_xml_sax.rb b/lib/sisu/v0/sst_to_s_xml_sax.rb index 5e4eb5ea..4625779d 100644 --- a/lib/sisu/v0/sst_to_s_xml_sax.rb +++ b/lib/sisu/v0/sst_to_s_xml_sax.rb @@ -1,3 +1,4 @@ +# coding: utf-8 =begin * Name: SiSU @@ -262,7 +263,14 @@ WOK data << SiSU_document_structure::Structure.new(@md,para).structure end data.each do |para| - para=SiSU_sem::Tags.new(para).rm.all + if para !~/^\s*(?:%+ |<:code>)/ + if @md.sem_tag and para =~/[:;]\{|\}[:;]/ + para=@trans.xml_semantic_tags(para) + end + if para =~/[:;]\{|\}[:;]/ + para=SiSU_sem::Tags.new(para,@md).rm.all + end + end para=@trans.markup_light(para) @trans.char_enc.utf8(para) if @sys.locale =~/utf-?8/i #% utf8 if para =~/\A(?:@|0~)(\S+?):?\s+(.+?)\Z/m # for headers |