Module: Polytexnic::Postprocessor::Html
- Included in:
- Polytexnic::Postprocessor
- Defined in:
- lib/polytexnic/postprocessors/html.rb
Instance Method Summary collapse
-
#xml_to_html(xml) ⇒ Object
Converts Tralics XML output to HTML.
Instance Method Details
#xml_to_html(xml) ⇒ Object
Converts Tralics XML output to HTML.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/polytexnic/postprocessors/html.rb', line 7 def xml_to_html(xml) restore_underscores(xml) doc = Nokogiri::XML(xml) comments(doc) emphasis(doc) boldface(doc) small_caps(doc) small(doc) skips(doc) verbatim(doc) code(doc) (doc) typewriter(doc) quote(doc) verse(doc) itemize(doc) enumerate(doc) item(doc) remove_errors(doc) set_ids(doc) chapters_and_sections(doc) subsection(doc) subsubsection(doc) headings(doc) sout(doc) kode(doc) coloredtext(doc) filepath(doc) backslash_break(doc) spaces(doc) center(doc) title(doc) doc = smart_single_quotes(doc) tex_logos(doc) restore_literal(doc) doc = restore_unicode(doc) restore_inline_verbatim(doc) codelistings(doc) asides(doc) make_cross_references(doc) hrefs(doc) graphics_and_figures(doc) images_and_imageboxes(doc) tables(doc) math(doc) frontmatter(doc) mainmatter(doc) footnotes(doc) table_of_contents(doc) convert_to_html(doc) end |