Sha256: 2a6ef43c800a9fc29df88e1fa4175db560e8414f4a21d399e667e1a1f786f3c9

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

= isodoc

This Gem converts documents in the https://github.com/riboseinc/isodoc-models[ISODoc document model] into HTML and Microsoft Word.

The Gem is a class called with a hash of file locations:

htmlstylesheet:: Generic stylesheet for HTML
wordstylesheet:: Generic stylesheet for Word
standardsheet:: Stylesheet specific to Standard
header:: Header file for Word
htmlcoverpage:: Cover page for HTML
wordcoverpage:: Cover page for Word
tmlintropage:: Introductory page for HTML
wordintropage:: Introductory page for Word

e.g.

[source,ruby]
--
        IsoDoc::Convert.new(
          htmlstylesheet: html_doc_path("htmlstyle.css"),
          wordstylesheet: nil,
          standardstylesheet: html_doc_path("isodoc.css"),
          header: html_doc_path("header.html"),
          htmlcoverpage: html_doc_path("iso_titlepage.html"),
          wordcoverpage: html_doc_path("iso_titlepage.html"),
          htmlintropage: html_doc_path("iso_intro.html"),
          wordintropage: html_doc_path("iso_intro.html"),
        )
--

NOTE: Cover page and Intro page must be XHTML fragments, not HTML fragments. In particular, unlike Word HTML, all HTML attributes need to be quoted: `<p class="MsoToc2">`, not `<p class=MsoToc2>`.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
isodoc-0.4.0 README.adoc
isodoc-0.0.1 README.adoc