[sword-devel] Wanted : Sword utility to convert MarkDown to GenBook
Greg Hellings
greg.hellings at gmail.com
Wed Feb 20 10:30:05 MST 2019
As with most such proposals, going from a presentational markup to a
semantic markup is neither straightforward, nor guaranteed any measure of
particular success. Even just looking at the first few documents at the URL
you've provided, the automation into OSIS would be non-trivial. The first
two documents are completely bespoke, indicating author, title, table of
contents, etc using completely arbitrary presentational markup with no
inherent semantic meaning that I can discern.
The individual chapters and so forth would be relatively straightforward,
even though the markup is, again, completely arbitrary. As such, any
conversion utility written for this would be completely bespoke to the
particular documents being translated.
Further, I could very much be mistaken but I thought that GenBooks were not
available from OSIS. I thought OSIS was only used for Scripture/Commentary
markup that follows a chapter:verse arrangement. I thought we were stuck
using IMP format with raw, ThML, or RTF input for formatting. If so,
conversion from these files into a format like that would be very
straightforward. MD->HTML renderers already exist, and one would just need
to iterate the files, read their content into such a renderer, and output
the resulting IMP format file.
--Greg
On Wed, Feb 20, 2019 at 4:59 AM David Haslam <dfhdfh at protonmail.com> wrote:
> Here’s an example of a source text in MarkDown format.
>
> https://github.com/DavidHaslam/From-Death-Into-Life
>
> FROM DEATH INTO LIFE
> by William Haslam (1818-1905)
>
> [no relation]
>
> If we could readily convert this to OSIS by a suitable script, then we
> could distribute the work as a GenBook module.
>
> It’s just one sample of stuff I was involved with earlier this century
> well before I became a CrossWire volunteer.
>
> Who would like to volunteer?
>
> Best regards.
>
> David
>
> Sent from ProtonMail Mobile
>
>
> On Sat, Feb 16, 2019 at 17:22, David Haslam <dfhdfh at protonmail.com> wrote:
>
> We could probably vastly increase our available resources if someone were
> able to develop a Sword utility to convert MarkDown file[s] to a GenBook
> module.
>
> Anyone up to this?
>
> Best regards
>
> David
>
> Sent from ProtonMail Mobile
>
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20190220/5a66c5bb/attachment.html>
More information about the sword-devel
mailing list