Word to Tiddlywiki

423 views
Skip to first unread message

Eskha

unread,
Dec 12, 2017, 11:11:32 AM12/12/17
to TiddlyWiki
Hello TW community,

Following this message from Jeremy in another thread:

(...) I’m working on a project for a client to convert a 25MB Microsoft Word file into TiddlyWiki. It contains 14,800 pages, 6,300 paragraphs, 8,580,000 words and 46,000,000 characters (not counting spaces).

Converting it into a TiddlyWiki yields a 55MB HTML file. On my five year old Mac, performance is astonishingly good: it loads in less than 5 seconds, and I can search the entire file in less than 5 seconds.
(...)

I'd like to share the process I used for a similar usecase: converting several word document (~2 000 pages in total) to tiddlywiki by using an external software Writage' and a TiddlyWiki plugin : MarKed''.

1. I save the word to a markdown file (.md)
    This is done thanks to Writage which has the advantage to create a markdown file and a media folder with all the images exported from the word.
2. I import this file in my tiddlywiki (by simply dropping it)
3. I set it's "type" field to "text/x-marked"
4. I move the content of the media folder in a media folder located next to my tiddlywiki.

That's all.
The Marked plugin supports display of arrays and images.

Optionnaly, I slice the resulting tiddlers in smaller parts using the toolbar "excise" tool.

I think this process is quite simple and it is very usefull to have my documents in Tiddlywiki.

However, I would be really interrested to improve this process woth your suggestions, for instance:
* to have an alternative for Writage (free and allowing batch processing of several files),
* automatically set the field type to text/x-marked when drooping a .md file to tiddlywiki,
* to have a way to automaticaly slice imported tiddlers in several tidlers (one per chapter) of type text/x-marked


Best regards

Eskha


' www.writage.com a beta software with a free trial avaiable
'' bjtools.tiddlyspot.com/#%24%3A%2Fplugins%2Fbj%2Fplugins%2Fmarked

PMario

unread,
Dec 12, 2017, 11:40:07 AM12/12/17
to TiddlyWiki
On Tuesday, December 12, 2017 at 5:11:32 PM UTC+1, Eskha wrote:
* automatically set the field type to text/x-marked when drooping a .md file to tiddlywiki,

.md is associated with markdown ... TW knows it as mime type:  text/x-markdown  ... which is outdated since 2016, since the standard was released.

The markdown mime type is standardized as:    text/markdown

it's possible to add a variant hint:   text/markdown; variant=original  .. or  variant=gfm ...

Variants that are standardized atm can be found here. https://tools.ietf.org/html/rfc7764#page-10

So if you want text/x-marked as standard for .md files it is clearly plugin territorry. IMO the core should go with text/markup; variant ....

Which still involves some work, since the existing TW MD-plugins use text/x-markdown atm, which we will need to change .... some time.

have fun!
mario


Reply all
Reply to author
Forward
0 new messages