Hiding the Story field on the Question side in Anki

Index » Learning resources

  • 1
 
vgambit Member
Registered: 2007-06-21 Posts: 221

I want to change the Question side of my Heisig deck to have the Kanji followed by the word "Story." I want to be able to click the word "Story" and have it change into whatever is in the Story field, so I can use it when I can't recall the kanji from just the keyword (like Heisig recommends).

However, I can't figure out how to do this. Would I have to use Javascript?

nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

I use that Anki Heisig deck with the clickable keyword that takes you to the relevant story on this page. Isn't that the default?

vgambit Member
Registered: 2007-06-21 Posts: 221

Yes, but that's different. What you're describing requires an internet connection. What I'm describing uses the text from the Story field in the Anki deck itself, so it requires no internet connection. I switched from SuperMemo to Anki, and after copying over every single story I had in SuperMemo to Anki, I found that none of them actually showed up unless I was on the edit deck screen, which makes them quite useless for aid during review.

I keep my stories offline rather than online.

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
vgambit Member
Registered: 2007-06-21 Posts: 221

Figured it out.

<FONT onClick="this.innerHTML = '%(text:Story)s'">Story</FONT>

Paste that code wherever you want, and it will show up as the word Story. Click on the word, and it will change to whatever you have in the Story field of the current kanji (so if the Story field is blank, it will simply disappear).  The first "Story" is the name of the field whose contents will be displayed, whereas the second "Story" is what the trigger will show up as on the card.

For anyone who has been displaying the story field on the question side as white text, then highlighting it in order to read it, that code is much better. I'm gonna test it on Ankimini (which is what I really wanted it to work for) now.

IT WORKS PERFECTLY ON ANKIMINI

This is so awesome. Now I can do all of my reviewing *offline*.

Last edited by vgambit (2008 December 27, 6:08 pm)

nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

I ran this code and it took over my computer! It's a virus trojan hack everybody, don't use it.

Edit: (I was kidding here, BTW. ;p)

Last edited by nest0r (2009 August 15, 8:05 am)

vgambit Member
Registered: 2007-06-21 Posts: 221

nest0r wrote:

I ran this code and it took over my computer! It's a virus trojan hack everybody, don't use it.

what

vgambit Member
Registered: 2007-06-21 Posts: 221

Something I noticed is that this story hiding system tends to mess up when there is puntuation (specifically an apostrophe or quote) in the story field.

Tobberoth Member
From: Sweden Registered: 2008-08-25 Posts: 3364

I think Highlighting is good enough, it should be done so seldomly that it doesn't really matter how long it takes to do it. That also means you can just highlight the beginning of the story to get your memory working, with a button you have to show it all.

vgambit Member
Registered: 2007-06-21 Posts: 221

The ipod has no highlighting function.

Reply #10 - 2009 January 01, 1:49 pm
iSoron Member
From: Canada Registered: 2008-03-24 Posts: 490

vgambit wrote:

Something I noticed is that this story hiding system tends to mess up when there is puntuation (specifically an apostrophe or quote) in the story field.

Why not 'on click change foreground color' ? Or 'on hover'.
That would avoid the punctuation problem.

Last edited by iSoron (2009 January 01, 1:50 pm)

Reply #11 - 2009 January 03, 9:57 am
vgambit Member
Registered: 2007-06-21 Posts: 221

iSoron wrote:

vgambit wrote:

Something I noticed is that this story hiding system tends to mess up when there is puntuation (specifically an apostrophe or quote) in the story field.

Why not 'on click change foreground color' ? Or 'on hover'.
That would avoid the punctuation problem.

Safari on the iPod Touch has no mouse cursor, so 'on hover' will not function when using Ankimini. "On click change foreground color" would mean that I would have to randomly press the Ankimini screen in order to get the story to show up, because there is no cursor to change to an I when I'm hovering over text.

Reply #12 - 2009 January 21, 3:01 pm
migge New member
From: Germany Registered: 2009-01-18 Posts: 8

To get a similar result I changed the default text-color of the Story field to the background color. The text can be read by selecting it with the mouse.

  • 1