Back

Core2k/6k Deck - removing the hiragana from the [] after each Kanji

#1
On the question side of the card in Nukemarine's uploaded Core2k/6k deck, is there a way to easily remove all the bracketed "furigana" (the hiragana that comes right after a kanji in the question card, under the "Cloze-deleted sentence field) easily?

Of course, I could go through card by card and eliminate that hiragana, but is there a way to target it because it is in square brackets? Or do I simply manually delete it, card-by-card?
Reply
#2
You would have to export your deck to excel to do it easily. Then, try in excel to use the replace function (Select the cloze-deleted sentence field column, then press Ctrl+F and navigate to replace
(http://www.210computing.com/content/bina...alue_1.jpg))

Find what: [*]
Replace with: (blank)

Then press "replace all"

So abc[123]def[45]gh should become abcdefgh

Reimport the deck and it should be good

Does this work?
Reply
#3
If you have a text editor like Notepad++ than you can use a regular expression (regex) to mass remove all bracket groups (in Notepad++ under find and replace you can select different methods, one of which is Regular Expressions). You would have to export the deck and re-import it to do this of course.

The regex string you would want to use if "\[.*?\]"

This would turn the string: "This is a [short] string" into "This is a string"

EDIT: Seren beat me apparently, plus his method is probably much easier for most people.
Edited: 2012-06-06, 12:17 am
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
#4
Before you do that, is there a reason you want it removed? Anki's Japanese support plugin has changes you can make with how it displays furigana.

If it's personal preference thing then that's cool, though I'd recommend adding another field and putting non-furigana in there that way you can switch back with minimal effort should you desire.
Reply
#5
Anki's website has directions on how to hide the furigana. Google search should suffice.
Reply
#6
Sounds like OP doesn't have the Japanese plugin installed, because then they'd appear as 漢字[かんじ], which is indeed annoying (and unreadable).

So install the plugin first, which will likely solve your problem.
Edited: 2012-06-06, 1:50 am
Reply
#7
That was all really helpful! (except you, soap gun. Google it=lazy answer. For shame Smile )
I has no idea that there was a Japanese plugin, that is exactly how the durians shows up. I shall correct this mess posthaste! Thank you all for your help!

I'll try my best to remember what solutions helped me so I can report back in here.
Reply
#8
Okay!

I downloaded the Japanese plugin. So far so good. It got rid of the terrible brackets after the kanji, and that was awesome.

Now, a new issue! So, it turns out that not only did it get rid of the terrible, terrible brackets, but it ALSO got rid of the sweet goodness that was the kanji in the first place!

I'll explain:

So, before I had something that looked like this (first sentence is question card, second is answer card):
彼[かれ]は()が好き[すき]です。

彼[かれ]は漢字[かんじ]が好き[すき]です。
Now I have something that looks like this:
かれは()がすきです。

彼は漢字が好きです。

While this is a good step up for me (brackets were killing me!), I would still like to see just the kanji. Would it be better for me to do as the opening answer suggested and excel export it and replace the bracketed words so that I get only kanji?

Or is this simply a core 2k issue? I noticed that my 4k cards render exactly (thank you again) the way I want them too. Are the core 2k ones simply intended for very low levels, and hence no kanji in the question?

You've all already been very helpful, and thank you for your time.
Reply
#9
http://ankisrs.net/docs/AnkiMobile.html

Scroll to the bottom... I had to deal with the same issue. It gets even hairier when trying to deal with furigana and the jp plugin on the phone.

Pretty simple fix just follow the site's directions.
Reply
#10
s0apgun, I'm pretty sure that only works for iDevices. This post explains how to change the behaviour on the desktop client.
Reply
#11
When I changed it for my phone it worked for my desktop client as well. I ended up disabling the furigana plugin all together as it was causing difficulties.
Reply
#12
Both of those answers were exactly what I needed to study with impunity.

Thank you!
Reply
#13
Kinda related to this, is there any way of removing the Japanese 《とうめい》style brackets (and everything inside the brackets) from a large text file, such as those you might come accross in the reviews signposted to in the innocent thread about Japanese books?
Bearing in mind, I know "nothing" at all about coding or anything ... please go easy on me : /

That would be super helpful

thanks
Reply
#14
If you go to IceCream's link in the innocent book thread, she has something called Aozora Remover in her Books folder that should remove them.

You can also go here to download it as well.
Edited: 2012-07-20, 4:45 am
Reply
#15
You're absolutely right Blackbrich.

Thanks a lot for pointing that out.

Joy ^^
Reply
#16
Hello s0apgun,

How did you manage to get the furigana right on the iOS device? I followed the instructions given by Anki and downloaded SQLite Database Browser for MAC, but I don't understand what to do next.

Best wishes!
Reply
#17
Run the query
Code:
INSERT INTO deckVars VALUES ("furiganaType",2);
Reply
#18
I did not realize that teaching yourself Japanese would increase your programming and computer skills as well. Thanks a lot: it works like a charm! ^_^
Reply
#19
Nice Smile
Reply