Re: [9fans] Epublish, publish books as pdf and epub

2021-09-10 Thread Maurizio Boriani


sirjofri writes:

> In the last days I built a collection of scripts to generate
> epub-compatible files as well as troff-ms files from the same text
> source, all on Plan 9.
>
> The text source files are very similar to markdown syntax, but you can
> define blocks of text that only work with one of the two output
> formats. For using the scripts you only need awk and mk, as well as
> zip for epub and troff -ms for ... troff (plus other tools to convert
> it to pdf etc).
>
> Here is the package: http://shithub.us/sirjofri/epublish/HEAD/info.html

cool! I've done something similar from commonmark[1] to troff for
personal use. I'll have a look at this absolutely

Thanks!

-- 
Maurizio Boriani 
PGP key: 0xCC0FBF8F

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te51e4287ef58c819-M34f572d4b843bb97c55b7253
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Epublish, publish books as pdf and epub

2021-09-10 Thread sirjofri

Hello all,

In the last days I built a collection of scripts to generate 
epub-compatible files as well as troff-ms files from the same text 
source, all on Plan 9.


The text source files are very similar to markdown syntax, but you can 
define blocks of text that only work with one of the two output formats. 
For using the scripts you only need awk and mk, as well as zip for epub 
and troff -ms for ... troff (plus other tools to convert it to pdf etc).


Here is the package: http://shithub.us/sirjofri/epublish/HEAD/info.html

There's a sample "book" inside that package, I plan to extend this 
example to describe all formatting features, e.g. writing bold and 
italic.


sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te51e4287ef58c819-M74ed9b66e431c30bd4af38f0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription