Hi Steve > Ideally, TW should read the .bib file directly, of course. But, one step at a > time...
OK, I’ve bowed to the inevitable and spent 40 minutes whipping up a basic BibTeX importer plugin, based on a JavaScript BibTeX parser that I found. You can try it out at: http://tiddlywiki.com/prerelease#%24%3A%2Fplugins%2Ftiddlywiki%2Fbibtex <http://tiddlywiki.com/prerelease#$:/plugins/tiddlywiki/bibtex> I found that your .bib file at https://stevesunypoly.updog.co/bibtex/first-jabref-bibtex-db.bib <https://stevesunypoly.updog.co/bibtex/first-jabref-bibtex-db.bib> gives an error unless I remove the final line: @Comment{jabref-meta: databaseType:bibtex;} I’ve only done the most basic field conversion: * title comes from citationKey * bibtex-entry-type comes from entryType * all entryTags are assigned to fields with the prefix “bibtex-“ Let me know how you get on, Best wishes Jeremy > On 18 Oct 2016, at 17:13, Steven Schneider <[email protected]> wrote: > > As part of my bibliography project (see previous thread, > https://groups.google.com/forum/#!topic/tiddlywiki/ZKiviPin72c > <https://groups.google.com/forum/#!topic/tiddlywiki/ZKiviPin72c>) it occurs > to me that I could import a structured file (a bib file) as a tiddler, and > write macros that search for / extract records from that tiddler. Is > something like that even possible? > > Here, for example, is what a bib file with two entries might look like > @InProceedings{Dalgaard2001, > author = {Dalgaard, Rune}, > title = {Hypertext and the Scholarly Archive: Intertexts, Paratexts > and Metatexts at Work}, > url = {http://doi.acm.org/10.1145/504216.504262}, > urldate = {2016-10-17}, > } > > @Article{Rowan2016, > author = {Rowan, Kyle Edward}, > title = {Not Quite a Sunset: a hypertext opera}, > date = {2016}, > shorttitle = {Not Quite a Sunset}, > url = {http://escholarship.org/uc/item/9830g5pn.pdf}, > urldate = {2016-10-17}, > } > > > How could I write macros that would allow me to transclude fields/values from > this tiddler, for example: > > {{Rowan2016!!url}} to return http://escholarship.org/uc/item/9830g5pn.pdf > > {{Rowan2016!!type}} to return @Article (this would be necessary to generate > custom templates based on type) > > etc. > > > I am still interested in parsing this file into separate tiddlers (one for > each @), but the approach outlined above might be easier for me to handle. > > Thanks, > > //steve. > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/830c0d47-36df-4535-b137-54e93a845c5a%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/830c0d47-36df-4535-b137-54e93a845c5a%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0E661637-FA22-488C-908A-A71FF47EF503%40gmail.com. For more options, visit https://groups.google.com/d/optout.

