Joined: Mar 2012
Posts: 11
Thanks:
0
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?
Joined: Mar 2012
Posts: 1
Thanks:
0
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
Joined: Jul 2007
Posts: 2,313
Thanks:
22
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.
Joined: Dec 2011
Posts: 490
Thanks:
6
Anki's website has directions on how to hide the furigana. Google search should suffice.
Joined: Jul 2008
Posts: 179
Thanks:
0
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
Joined: Mar 2012
Posts: 11
Thanks:
0
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.
Joined: Dec 2011
Posts: 490
Thanks:
6
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.
Joined: Mar 2012
Posts: 11
Thanks:
0
Both of those answers were exactly what I needed to study with impunity.
Thank you!
Joined: Oct 2009
Posts: 123
Thanks:
0
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
Joined: Oct 2009
Posts: 123
Thanks:
0
You're absolutely right Blackbrich.
Thanks a lot for pointing that out.
Joy ^^
Joined: Jul 2007
Posts: 33
Thanks:
0
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!
Joined: Jul 2007
Posts: 33
Thanks:
0
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! ^_^