Hi 

I experimented a bit with Google’s QR API and found a way to send tiddlers 
in vcard format to my phone to import in my address book. My macro takes a 
tiddler title as input and optionally a size: 

To transform a tiddler into a QR code use 

<<qr-tid "Tiddler Title">> 

or

<<qr-tid "Tiddler Title" size:540>>

---

\define qr-tid(tiddler,size:354)
<$wikify name="text" text=<<qr-urlencode """$tiddler$""">>>
<$macrocall $name="qr-code" text=<<text>> size=$size$/>
</$wikify>
\end

\define qr-code(text,size:354)
<img 
src='http://chart.apis.google.com/chart?chs=$size$x$size$&cht=qr&chl=$text$'>
\end

\define qr-urlencode(tiddler)
<$view format="urlencoded" tiddler="""$tiddler$"""/>
\end

---

If you want to test, you can import a .vcf file like mine 
<http://thomas-elmiger.ch/files/Elmiger-Thomas-Staempfli.vcf> directly by 
dropping it on your wiki. 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/4836fc01-9705-49ba-aad5-bed6eb738904%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to