Back

Making a automated hyperlink for kanji

#1
Hi, I'd like a hyperlink linked with the Japanese characters I'm reviewing.

I've done this for several websites:
e.g.
<a class="rel" rel="nofollow" href="http://en.wiktionary.org/wiki/{{text:漢字}}">Link</a>

But recently there's a website with really interesting pointers and small details to certain rare character. However, I haven't found a way to add the hyperlink yet...

http://kakijun.main.jp/
or
http://kakijun.main.jp/m-s/

Anyone can help me out?
Cheers!

-Mesqueeb
Reply
#2
I have also run into this exact problem with just that site. Though I haven't found a way around it yet :/
Reply
#3
You need to send a GET request to their cgi script with the individual kanji you want. Considering that 漢字 is the name of your field in Anki 1.2, and that you have only single characters in your 漢字 field (because that's what the website works with), then this is what you need to add to the template:
Code:
<a class="rel" rel="nofollow" href="http://kakijun.main.jp/main/u_kensaku.cgi?KANJI={{text:漢字}}">Link</a>
Edited: 2012-10-01, 2:31 pm
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
#4
gdaxeman Wrote:You need to send a GET request to their cgi script with the individual kanji you want. Considering that 漢字 is the name of your field in Anki 1.2, and that you have only single characters in your 漢字 field (because that's what the website works with), then this is what you need to add to the template:
Code:
<a class="rel" rel="nofollow" href="http://kakijun.main.jp/main/u_kensaku.cgi?KANJI={{text:漢字}}">Link</a>
Oo, that works perfectly, thanks!
Reply
#5
This is EXACTLY what I needed! Thank you so much! ^^

For the sake of my cards I made a logo for that website:
https://dl.dropbox.com/u/8876552/logo%20...akijun.png

Cheers!
Reply