Hello, when I use Yomitan to make Japanese flashcards, the pitch accent on the reverse side shows "ruby" written in roman letters, which ruins the pitch accent legibility. I've attached a screenshot of what it should normally look like. I suspect the bug has to do with the way I configured Yomitan, so I've attached a screenshot. However, I also think that it could be fixed through the card styling on the Yomitan page, but I don't have any coding knowledge. I looked up the word "pitch" to see all relevant code relating to pitch accent (screenshot also attached). If anyone could help me fix this problem, it'd be very much appreciated! Thank you!
#Buggy Pitch Accent Display
26 messages · Page 1 of 1 (latest)
I don't have any experience with Yomitan (so there might be someone better suited to answer on that front), but I recognize those <ruby><rt> tags -- that's how to do ruby text manually in HTML. [Anki also has it's own built-in syntax.]
So that's unparsed HTML showing up on your card. Since it's happening on one note and not others -- have you looked at that field for that note?
- What is the name of the field? -- That's the best way to figure out where to look in your card template.
- Did you put those ruby tags in the regular field instead of the HTML field (which you open by clicking
< >above the field)?
Sorry, I should have added more context in the original post. The reason why this is the only note that's bugged is because Yomitan corrupted, and so I had to redownload the extension and set up everything again. I don't remember exactly how I set it up the first time, so I must have missed something while setting it up
yes, that's right
I believe the field is called "PitchPosition"
someone suggested that I should try resetting my handlebars to defaults, is that something worth trying?
how do I access the field page?
Do you want to do this here or in Reddit? https://www.reddit.com/r/Anki/comments/1kxo9yd/buggy_pitch_accent_display_incorrect_ruby_text/
I'm unlikely to continue helping you in both places.
how do I access the field page?
I don't know what you mean by that. I didn't say "field page" and the only thing I can think of that you might call that is the Fields window you already have in that screenshot.
Okay, then did you do the things I suggested in my first response?
Nope. That's related to the add-on, I assume. You posted the Anki "Fields" window. But I don't think you need to edit your fields -- I think the first place to look is this field for this note. Figure out if there's a problem with the text there. (My suggestion above.)
If there's not, then you need to know the name of the field so you can find where that is used in your card template and look there next.
is this the fields window?
sorry I'm not well-versed in Anki that well 😭
but I do believe 16: PitchPosition is the name of the field that's bugged out
I'm trying it out right now, just having a bit of difficulties locating some sections in Anki, but I'll let you know once I've done it!
Thank you, but you said that already yesterday.
Now that you know the name of the field, go to the Browse window and search up the note that makes the card with the problem. Look at that field --
- Did you put those ruby tags in the regular field instead of the HTML field (which you open by clicking
< >above the field)?
Does "note" refer to the notetype? As in, the type of card that's created?
actually, the field I thought was the issue doesn't seem to contain any indication of using ruby tags
okay, I think I've found something
I deleted the regular text in the "ExpressionFurigana" field and the ruby text disappeared. However, I no longer have furigana above the big japanese text (usually there should be small Japanese characters above the big word)
I deleted the ruby text entirely and manually entered [たま] into the main field, which completely fixed my issue
However, how do I make it so that every card under this notetype is also created in this fashion?