@book{noauthor_numerical_2018,
address = {New York, NY},
title = {Numerical python},
isbn = {9781484242452},
publisher = {Springer Science+Business Media},
year = {2018},
}
Note that, you need to have the specific deserializer, here the bibtex plugin!Wait wait, Mohammad you wanted this feature but I have to explain it? ;)
Until now, if you drag and drop or paste any text into TiddlyWiki, it treats it as plain text and offers to create a tiddler with that content. Now, if a deserializer has been specified for a dropzone, it is used to parse the text content and import it. Note however that once you specify a deserializer, that dropzone will only accept that content type.We do still need better affordances for seeing the list of available deserializers in a wiki, the docs for Dropzone widget currently state:> The list of available deserializers can be inspected by executing Object.keys($tw.Wiki.tiddlerDeserializerModules).sort().join("\n") in the browser JavaScript console.This should probably be a filter operator, deserializers[].With the Bibtex plugin installed the deserializer for bibtex format is application/x-bibtexA use case would look something like having a special dropzone for pasting/dragging and dropping bibtex entries in plain text or in files and importing them. For the challenge of coming up with a good workflow and UX for this, I'll pass the ball back to Mohammad.
One of the things that would be nice to have in the future is to be able to specify a cascade of deserializers for a dropzone to use, so that you can use a single dropzone to import plain text from multiple formats.
Cheers,
Saq
On Thursday, May 6, 2021 at 8:39:17 AM UTC+2 Mohammad wrote:Recently Saq has extended the dropzone functionality to support specified deserializer for string data!This gives huge flexibility for drag and drop contents.One use case is to drop the bibtex entry copied from another site like Google Scholar!e.g drag and drop the below text to create a bibtex entry!Note that, you need to have the specific deserializer, here the bibtex plugin!@book{noauthor_numerical_2018, address = {New York, NY}, title = {Numerical python}, isbn = {9781484242452}, publisher = {Springer Science+Business Media}, year = {2018}, }
I am thinking of other possibilities and invite all you to share ideas and comment.I also kindly ask Saq to give us some examples!One playground for online test can be
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/31eb6e81-07e2-4e67-b29f-3af49a6d1c02n%40googlegroups.com.
I have made a PR to add a deserializers[] filter operator, to make it easier to see which ones are available:
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/02084d92-aa89-4604-96d9-29abb8222b83n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c64e231e-5420-4185-8907-daacbb1f2601n%40googlegroups.com.