Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Geert Josten
committed
Oct 21, 2011
1 parent
7f97f1b
commit c4f312d
Showing
136 changed files
with
12,556 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<classpath> | |||
<classpathentry kind="src" path=""/> | |||
<classpathentry exported="true" kind="lib" path="lib/calabash-0.9.35.jar"/> | |||
<classpathentry kind="output" path="bin"/> | |||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<projectDescription> | |||
<name>XmlHolland CodeChallenge</name> | |||
<comment></comment> | |||
<projects> | |||
</projects> | |||
<buildSpec> | |||
<buildCommand> | |||
<name>org.eclipse.jdt.core.javabuilder</name> | |||
<arguments> | |||
</arguments> | |||
</buildCommand> | |||
</buildSpec> | |||
<natures> | |||
<nature>org.eclipse.jdt.core.javanature</nature> | |||
</natures> | |||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
catalogs=dtd/catalog.xml | |||
relative-catalogs=1 | |||
static-catalog=1 | |||
verbosity=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,68 @@ | |||
|
|||
The XProc E-Book Processor is an end-user application. The distribution therefore includes all necessary dependencies, apart from Java Run-Time. | |||
|
|||
Requirements | |||
------------ | |||
- Java Run-Time 1.5 or higher | |||
|
|||
Included (Java) packages | |||
------------------------ | |||
Located under 'lib' folder: | |||
- XMLCalabash 0.9.35 | |||
- Saxon-HE 9.3.0.4J (required by XMLCalabash) | |||
- Apache Commons Codes 1.3 (required by XMLCalabash) | |||
- Apache Commons Httpclient 3.1 (required by XMLCalabash) | |||
- Apache Commons IO 1.3.1 (required by XMLCalabash) | |||
- Apache Commons Logging 1.1.1 (required by XMLCalabash) | |||
- Epubcheck 1.2 (for ePub validation) | |||
- Saxon 6.5.5 (required by Epubcheck) | |||
- Jing version 20091111 (required by Epubcheck) | |||
- Apache XML Commons Resolver 1.2 (for local DTD resolving) | |||
|
|||
Also included is an XProc extension package: | |||
- grtjn-xproc-utils (for the extension step ut:sys-info, source available under 'src' folder) | |||
|
|||
Installation | |||
------------ | |||
- Unpack the distribution package to a suitable location. | |||
- Make sure 'java' is available from the command-line (by adding it to the PATH environment variable) | |||
- Open a command-box in the root of where you unpacked the E-Book Processor | |||
- Run the following command-line: | |||
|
|||
java -cp .;lib\resolver.jar;lib\calabash-0.9.35.jar;lib\grtjn-xproc-utils.jar -Dcom.xmlcalabash.phonehome=false -Djava.util.logging.config.file=logging.properties com.xmlcalabash.drivers.Main -D -E org.apache.xml.resolver.tools.CatalogResolver -U org.apache.xml.resolver.tools.CatalogResolver -c lib/grtjn-xproc-utils.xml -i source=in/mult001mill01_01.xml src\nl\grtjn\xproc\ebook\main.xpl | |||
|
|||
- This should produce an epub file of the example file 'Millioenenstudien' by 'Multatuli'. It should be written as 'out/mult001mill01_01-default.epub'. | |||
- Windows/DOS users can also use the 'run.bat' file. To do the same as above, call it as follows: | |||
|
|||
run.bat in/mult001mill01_01.xml | |||
|
|||
- Call run.bat without parameters for further usage. | |||
|
|||
DTD references to internet | |||
-------------------------- | |||
- If internet access goes through a Proxy server, you may need to add the following parameters to the command-line, just after 'java'. Make sure to replace '...' with suitable values. User and Password can be left out if not applicable: | |||
|
|||
-Dhttp.proxyHost=... -Dhttp.proxyPort=... -Dhttp.proxyUser=... -Dhttp.proxyPassword... | |||
|
|||
- Internet access is usually necessary to access DTDs that are referenced from DOCTYPEs using HTTP references. | |||
- You could also put the dtd with all its modules in the 'dtd' folder, and add an entry to the 'catalog.xml' file in the same directory. | |||
|
|||
Other resources | |||
--------------- | |||
- docs/ | |||
- Contains the documentations, including: this file, notices, license, buglist, and a readme. | |||
- etc/ | |||
- Contains anything related to styling and templating. The application comes with three styles: 'default', 'dbnl', and 'medieval'. | |||
- in/ | |||
- Contains a TEI 2 encoded XML file containing the booklet 'Millioenenstudien' by 'Multatuli'. It was the XProc challenge example file | |||
- log/ | |||
- A 'run.log' file will be written to this folder on each run. See 'logging.properties' for details. | |||
- Debug files will be written to this folder as well if debug is activated by passing in 'debug=true' at the end of the command-line | |||
- src/ | |||
- Contains all XProc, XSLT, and Java logic used in this application. | |||
- tmp/ | |||
- Is used to build up the contents of each epub file, and will be cleared on each run. | |||
|
|||
Already mentioned: | |||
- The 'dtd' folder, containing TEI dtd, and appropriate catalog | |||
- The 'lib' folder, containing all necessary (Java) packages to run the application |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
|
|||
Bugs, and known issues: | |||
- The xhtml is written with indentation when debug is activated, but that gives some funky results in page ref layout in for instance the index. | |||
- No elegant error handling when specifying non-existing files for input, styles or template. | |||
- Inline footnotes aren't optimally handled yet. Blockquotes inside footnotes result in invalid XHTML (though epub viewers most likely won't complain) | |||
|
|||
Future wishes: | |||
- Outputting of PDF. | |||
- Composing of parts and sections based on input fragments (e.g. high granular input control from template). | |||
- Footnotes as sidebars or gathered at bottom of page (as far as possible in epub) |
Oops, something went wrong.