# HG changeset patch # User ferrall@nwoca.org # Date 1296156754 18000 # Node ID d34f4d408ef9814ccd8a0ec57e5859b164cff4da # Parent 22ed6d93442ce6feeb4e2e25bc4aea1916e8f096 [no commit message] diff -r 22ed6d93442c -r d34f4d408ef9 src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java --- a/src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java Tue Jan 25 21:59:31 2011 -0500 +++ b/src/org/nwoca/ssdt/tools/html2wiki/Html2Wiki.java Thu Jan 27 14:32:34 2011 -0500 @@ -57,12 +57,13 @@ transformers.add(new ReplaceTransformer("
","\\\\")); transformers.add(new ReplaceTransformer("|","{table}")); transformers.add(new ReplaceTransformer("|","{tr}")); - transformers.add(new ReplaceTransformer("|","{td}")); - transformers.add(new ReplaceTransformer("|","{th}")); + transformers.add(new ReplaceTransformer("|","{td}")); + transformers.add(new ReplaceTransformer("|","{th}")); transformers.add(new ReplaceTransformer("|","{ol}")); transformers.add(new ReplaceTransformer("|","{ul}")); transformers.add(new ReplaceTransformer("
  • ","{li}")); transformers.add(new ReplaceTransformer("
  • ","{li}\n")); + transformers.add(new ChapterTransformer(category)); transformers.add(new TagTransformer("
    (.*?)
    ", true, "{code}","{code}")); transformers.add(new TagTransformer("
    (.*?)
    ", true, "{center}","{center}")); @@ -77,6 +78,12 @@ transformers.add(new TagTransformer("

    (.*)

    ", "h4. ", "")); transformers.add(new TagTransformer("
    (.*)
    ", "h5. ", "")); transformers.add(new TagTransformer("
    (.*)
    ", "h6. ", "")); + transformers.add(new ReplaceTransformer("\\{center}\\n\\{table}\\n\\{tr\\}\\n\\s{2}\\{td\\}\\{center\\}\\*Note\\*\\{center\\}","{note}")); + transformers.add(new ReplaceTransformer("\\{td\\}\\n\\s{2}\\{tr\\}\\n\\{table\\}\\n\\{center\\}","{note}")); + +// transformers.add(new TagTransformer("\\{center}\\n\\{table}\\n\\{tr\\}\\n\\s{2}\\{td\\}\\{center\\}\\*Note\\*\\{center\\}(.*?)\\s\\{td\\}\\n\\s{2}\\{tr\\}\\{table\\}", "{note}", "{note}")); +// transformers.add(new TagTransformer("(\\S)\\s\\n", "", " ")); + transformers.add(new TagTransformer("
    (.*)
    ", "{quote}", "{quote}")); transformers.add(new DeleteTransformer("(?s)")); }