Service to convert W3C Technical Reports to EPUB 3
This is an interface an on-line service to convert W3C Technical Reports, authored in ReSpec, to EPUB 3
The service receives the parameters through the form above, and generates an EPUB 3 instance stored on the local machine. The possible form parameters are:
url- The URL for the either the (HTML) content or for the (JSON) configuration file for a collection of documents. In the second case all other parameter values are ignored. This value is required.
respec- Whether the source has to be pre-processed by ReSpec (“true”) or is a final HTML (“false”). If the former, the source is converted using W3C’s Spec Generator into HTML first.
publishDate- (☨)Publication date. Overwrites the value in the “
respecConfig” structure in the source. specStatus- Specification date. Overwrites the value in the “
respecConfig” structure in the source. addSectionLinks- Add section links with a
§character. Overwrites the value in the “respecConfig” structure in the source. maxTocLevel- Maximum sectioning level for the Table of Content. Overwrites the value in the “
respecConfig” structure in the source.
By default, the value of respec is false. However, if one of publishDate, specStatus, addSectionLinks, or maxTocLevel are set, respec=true is implied (i.e., it is not necessary to set it explicitly).
Usage examples
Convert the HTML file (as generated by ReSpec) to an EPUB 3 file. The generated publication's name is short-name.epub, where short-name is set in the ReSpec configuration:
http://iherman-r2epub.deno.dev?url=https://www.example.org/doc.html
Convert the HTML ReSpec source to an EPUB 3 file. The source is converted on-the-fly by respec:
http://iherman-r2epub.deno.dev?url=https://www.example.org/doc.html&respec=true
Convert the HTML ReSpec source to an EPUB 3 file, setting its spec status to REC. The source is converted on-the-fly by respec, overwriting the specStatus entry in the configuration to REC:
http://iherman-r2epub.deno.dev?url=https://www.example.org/doc.html&respec=true&specStatus=REC
Generates a collection of HTML documents to an EPUB 3 file, described by a (JSON) configuration file:
http://iherman-r2epub.deno.dev?url=https://www.example.org/collection.json