Hi Mat

On Sun, Jul 19, 2015 at 3:33 AM, Mat <[email protected]> wrote:

> Might PapaParse <http://papaparse.com/>be used to "live import" and/or
> "live conversion" non Wikified content into *individual *tiddlers? Even
> by simply providing an url? A kind of RSS reader?
>

PapaParse appears to be a JavaScript library for parsing CSV files. It
looks equivalent to a library that I've recently been using:

https://github.com/wdavidw/node-csv

(I recently posted a simple hack for converting CSV files to JSON:
https://github.com/Jermolene/csv2tiddlers)

The only sense in which PapaParse helps importing content into TiddlyWiki
is that it may be a convenient way to handle that content if it is in CSV
format.

Accessing external URLs from a local HTML page is pretty much disabled by
browsers these days. That's why the plugin library uses the unusual
mechanism of an iframe and window.postMessage to retrieve plugin text from
the library.

Can I make a simple copy-pasting into TW editor be automatically parsed
> into something nicer, when I save the tiddler? For instance if I copy a
> html-table from a website, i.e select+copy, this removes all formatting and
> all that is left is *tab *spaced rows. So... TW should be able to do
> something with this. Or, even simpler, just a plain text list. Instead of
> having the parser disregard the linebreaks, I should at least be allowed to
> choose if I want it to appear as a bullet list.
>

One could certainly imagine such a thing: a simple way to do it would be a
text box into which the user pastes their content with a "submit" button
that kicks off the conversion process. It's JS plugin territory, but
perfectly straightforward.


> This is actually related to some ideas touched on here
> <https://groups.google.com/forum/?fromgroups#!topic/tiddlywiki/K9O5eBkIuW0>(see
> post 11/24/14, the thread starts out with other ideas), about building
> content communities with lists presented as *topical *"addon stores", e.g
> *"**url-list: best TW addons for authors"*,or *"thumbnail gallery of *
> *[img[urls]]"*, etc. An entry in a list for a "top-plugins" could be;
>
> |[img[url]]||[pluginname|url]|Description]|  or with html markup
>
>
> ...however, with this "automatic parsing" idea, e.g for a simple
> copy-pasted text, I am hoping the input can be simply
>
> imageurl pluginname pluginurl description
>
> those are tab spaces, and the parsing would automatically convert things
> to add htmlmarkup and CSS. And any pre-added wikitformatting woudl be
> parsed like normal, I guess.
>

I think it might be clearer to import each of imageurl, pluginname,
pluginurl, description as individual fields, and then transclude the fields
into a table for display.


> So that is when I found the info to PapaParse, It sounds like it for sure
> would do this, but so much more and so much more powerfully. From what I
> understand it's purely javascript based and open source. Maybe it's even
> possible to use it as a streaming RSS/ATOM feed convert-to-TW tool. Put up
> a TW that displays your favorite feeds... as tiddlers... so that as you
> read, you can easily add meta data and save stuff. (If there is
> autolinkification/autoweaving, you could probably build up an incredible
> referencing database automatically! Whoa!)
>

Here I get a touch confused; as far as I can tell, PapaParse is just a CSV
parsing library. It doesn't really help with the other tasks you mention.


> Could PapaParse be used to stream individual tiddlers from external TWs
> too? Is we talkin' twederation thingies?
>

No, I don't think so. But we've already got a viable mechanism for
client-side federation: the plugin library.

Best wishes

Jeremy


> Anyway, if anyone else is interested; for the *lighter *ideas I initially
> had in my search, to convert plain tab-delimited text into nicer tables, I
> found the following that I intend to look closer at.
>
>
> http://victorwyee.com/js/convert-tab-delimited-text-into-comma-separated-text-with-pure-javascript/
> http://ss.johncardinal.com/table-gen.htm
> http://www.stefan-pettersson.nu/site/table2html/
> http://www.convertcsv.com/csv-to-html.htm
> http://www.jafsoft.com/asctotab/
> http://www.mattsbits.co.uk/webtools/text_to_html/
> http://www.textfixer.com/html/csv-convert-table.php
> https://www.virtualobjectives.com.au/utilitiesprogs/texttools.htm#CSV2HTML
>
>
> <:-)
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/bb610b52-57b0-4d4b-98a1-e36ff9fca0e0%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/bb610b52-57b0-4d4b-98a1-e36ff9fca0e0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJYDcOT-nxjovV9rLJKH8Fc0H2Jm9BbyE0zz1z3Qce4LBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to