Also reviving this thread/conversation, as it relates to getting TW 
integrated into pandoc, opening up a much wider world of content! 

On Friday, September 7, 2018 at 3:28:35 PM UTC-5, Mark S. wrote:
>
> What?! I learned it in an afternoon 6 months ago ... not remembering that 
> much ;-)
>
> The lua filter I made might be useful to someone who knew Haskell and 
> Pandoc better as a starting guide. I had the impression that LUA filters 
> were not first-class citizens of Pandoc so they might not be willing to 
> grant it an official place in the pantheon of converters without "real" 
> Haskell code. But you could ask.
>
> Have fun,
> -- Mark
>
> On Friday, September 7, 2018 at 12:09:40 PM UTC-7, Diego Mesa wrote:
>>
>> Hey Mark,
>>
>> Im not at all familiar with haskell, lua writers, etc. but do you think 
>> this is enough to open it up to the pandoc community? I think it would be 
>> GREAT if .tid was a 100% supported member of the pandoc community, letting 
>> us import from essentially anywhere directly into .tid
>>
>>
>>
>> On Friday, March 2, 2018 at 8:05:52 PM UTC-6, Mark S. wrote:
>>>
>>> Here's where I'm at with using lua filters inside of Pandoc. The script 
>>> is attached. It can be invoked by:
>>>
>>>    pandoc  -f html -t TW5.lua myfile.html  -o myfile.tid 
>>>
>>> or 
>>>
>>>    env basename="/mylocaldir/" pandoc  -f html -t TW5.lua myfile.html  
>>> -o myfile.tid 
>>>
>>> ... if you want to specify a basename file to be appended to links -- 
>>> not that it does much good with Wikipedia links since they seem to use some 
>>> internal linking mechanism.
>>>
>>> I left <spans> as html since TW has no way of doing nested spans and 
>>> lua-filters doesn't seem to have a way to tell you when you're inside a 
>>> nested span. As you can see from the screen shot, without the right classes 
>>> and context,  the output from WP may not play nicely inside of TW.
>>>
>>> Probably someone would need to tailor the script for whatever platform 
>>> they're looking at.  
>>>
>>> This is very beta. Not sure if it's worth pursuing further, but it was 
>>> interesting. Probably adding a template wrapper so that the resulting file 
>>> is a draggable tid would be a next step.
>>>
>>> -- Mark
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3fda1da8-3159-4811-ac4a-007259621735o%40googlegroups.com.

Reply via email to