Commits

Shlomi Fish committed b26e36b

Add more to the makefile.

Comments (0)

Files changed (1)

 DOCS_FICTION_XML = $(patsubst %,%.fiction-xml.xml,$(DOCS_BASE))
 DOCS_FICTION_DB5 = $(patsubst %,%.db5.xml,$(DOCS_BASE))
 DOCS_FICTION_XHTML = $(patsubst %,%.fiction-text.xhtml,$(DOCS_BASE))
+DOCS_FICTION_FO = $(patsubst %,%.fiction-text.fo,$(DOCS_BASE))
+DOCS_FICTION_RTF = $(patsubst %,%.fiction-text.rtf,$(DOCS_BASE))
 DOCS_FICTION_ODT = $(patsubst %,%.odt,$(DOCS_BASE))
 
 DOCBOOK5_XSL_STYLESHEETS_PATH := $(HOME)/Download/unpack/file/docbook/docbook-xsl-ns-snapshot
 DOCBOOK5_XSL_STYLESHEETS_XHTML_PATH := $(DOCBOOK5_XSL_STYLESHEETS_PATH)/xhtml
 DOCBOOK5_XSL_STYLESHEETS_FO_PATH := $(DOCBOOK5_XSL_STYLESHEETS_PATH)/fo
 DOCBOOK5_XSL_CUSTOM_XSLT_STYLESHEET := $(HOMEPAGE)/lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-xhtml-onechunk.xsl
+DOCBOOK5_XSL_CUSTOM_FO_XSLT_STYLESHEET := $(HOMEPAGE)/lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-fo.xsl
 
 ENG_DB_DIR = English-Docbook
 
 		$(DOCBOOK5_XSL_CUSTOM_XSLT_STYLESHEET) $<
 	mv -f $@.html $@
 
+$(DOCS_FICTION_FO): %.fiction-text.fo : %.db5.xml
+	xsltproc --stringparam root.filename $@ \
+		--stringparam html.stylesheet "style-heb.css" \
+		--path $(DOCBOOK5_XSL_STYLESHEETS_FO_PATH) \
+		-o $@ \
+		$(DOCBOOK5_XSL_CUSTOM_FO_XSLT_STYLESHEET) $<
+
+$(DOCS_FICTION_RTF): %.rtf: %.fo
+	fop -fo $< -rtf $@
+
+rtf: $(DOCS_FICTION_RTF)
+
 $(DOCS_FICTION_ODT): $(DOCS_FICTION_DB5)
 	docbook2odf $< -o $@
 
 
 epub_ff: epub
 	firefox $(ENG_EPUB)
+
+%.show:
+	@echo "$* = $($*)"
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.