Giter Site home page Giter Site logo

Comments (7)

ospalh avatar ospalh commented on September 28, 2024

Just to make sure, the content of your “Reading” field is both kanji and kana, as in 「土星[どせい]」, the way it comes out of the Japanese support add-on’s reading generation?

The add-on isn't really up to the task to do a request using two fields as the text source, taking kanji from one and kana from the other. Maybe that is something that can be added. (Maybe with some kind of True/False switch in the code, that the user has to change, see below.)

If you have the kanji in the “Reading” field, the problem is much trickier.
In that case, could you perhaps send a sample deck (per e-mail). Just exporting a few cards and sending that would be fine.

It's not hard to go and change get_fields to "audio_field_keys = ['reading', 'sound']"

That's the nice thing about a scripting/interpreted language like Python.

(Until i get some reports that people didn’t manage to do this kind of change in the code, i feel this is good enough. I don‘t really want to spend too much time writing an elaborate GUI for something that can be done quickly in a text editor.)

from anki-addons.

flameiguana avatar flameiguana commented on September 28, 2024

I would also like it if the kanji side of the reading filed was taken from 'expression', and the 'reading' field(which should be in kana) was used as the kana side.
Ignoring the kanji causes japanese pod to not return anything, because sometimes the same kana can use different kanji.
Here is how my cards are set up.
Expression: 漢字
Reading: かんじ
Audio:

from anki-addons.

ospalh avatar ospalh commented on September 28, 2024

I kind of see the point.

At the moment the way the text is selected is rather field based, getting the data out of two fields instead of looking at just one field may be a bit of work. (Too much for me to bother with, if you are out of luck.)

Then again, having kanji and kana in one field as in 「漢字[かんじ]」 has a number of advantages:

  • This add-on works better (d'uh)
  • You can let the Japanese Support add-on generate the reading for you
  • The {{furigana:NN}} template works, along with {{kanji:NN}}, {{kana:NN}}

If you want to keep the pure kana field, you could rename it (to, say, “Just kana”) and re-add a new, empty field “Reading”.

Then you could have the Japanese Support add-on re-generate the readings and only fix those were there is a problem/ambiguity (e.g. 「今日[きょう]」 versus 「今日[こんにち]」), either go through your collection or fix them in the download dialog. That’s more or less what it is there for. (Although when you spot a true error there, you should fix it in the note as well.) In the future you can then just type/copy-paste the kanji and get the reading done for you.

from anki-addons.

flameiguana avatar flameiguana commented on September 28, 2024

Thanks for the suggestion. I wasn't using the Japanese Support plugin, so I had no idea why that was your preferred way of fetching the reading. Here's what my fields look like now, after converting note types.
Capture
Was the bracket notation mentioned thing in your guide for the plugin? If so, I must have missed it.

In case you were wondering, I kept my old reading field because I prefer not to use the furigana display thing, as the placement of the kana is sometimes ambiguous.

from anki-addons.

ospalh avatar ospalh commented on September 28, 2024

Was the bracket notation mentioned thing in your guide for the plugin?

Not really. See #11

from anki-addons.

ospalh avatar ospalh commented on September 28, 2024

I guess i should have written this a bit earlier.
I have added code that should deal with this issue to get_fields.py. The point is that

  • at the moment i don't really have time to test this too much
  • and the manual is not ready.

So i havent pushed this to AnkiWeb.

But i guess getting the add-on from here, and when you have installed it to the addons folder changing the naked_reading to True should work.

from anki-addons.

ospalh avatar ospalh commented on September 28, 2024

I have now

from anki-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.