Coder Social home page Coder Social logo

ankikanjitable's Issues

Jisho search doesn't open with whole card content

Hi, this is related to #2 (same causation).

I'm using a deck containing words with multiple kanji, clicking on a cell opens the jisho search for the first character only, disregarding the remaining characters (and thus making it impossible to understand the referenced card).

Would it be possible to make it so that the jisho search includes all characters? (but not meta-characters like HTML tags in #1)

Thanks

How do I see how many kanji have been covered at each level?

Hi, this may be user-error, but I haven't been able to figure out how many kanji I've covered in each section. For comparison, the Kanji Grid addon that I've been using shows exactly how many of the N2, N1, etc. kanji I have in my deck:
image

E.g. in this case, you can see 367 of 367 N2 and 965 of 1232 N1 kanji are in my deck currently

However, I'm unable to see the same with this Anki plugin:
0a12f3d9-33c4-4f3f-a868-e127c16187c4

This is the only feature that's preventing/stopping me from migrating from the Kanji Grid plugin to this one ๐Ÿ˜„

Field contains multiple kanji

Hi again!

I'm using a deck that contains words that are composed of multiple kanji (in addition to cards with the base meanings of the single kanji). This makes it so that only the first kanji is shown, and (false) duplicates are shown in the grid (see image at the bottom).

I was thinking that perhaps it'd be possible to fix this by adding a button to filter cards with multiple characters, so that only the single-kanji cards are shown.

Thanks

image

Selected field contains HTML

Hi!

I use a plugin to colour my cards based on the pitch accent of the kanji, which puts a tag on the kanji to colour it. The first character of the field is then showed on the grid, but it is "<" (because of the span tag) so the grid doesn't actually show the kanji.

The bug can be reproduced by creating a card and wrapping any kanji/character in a html tag, the grid should show a "<" only.
It could be fixed by parsing the HTML and getting the innermost content (i.e. the kanji, hopefully), would it be possible to do it?

Thanks

The following image is what I see; I'm colouring the cards as I get to them, so most of them don't have tags yet and show as intended.

image

Tapping on character causes error, doesn't open Jisho

Using latest (2024-01-06) on macOS:

Traceback (most recent call last):
  File "/Users/tmarsh/Library/Application Support/Anki2/addons21/1828617820/__init__.py", line 175, in cellClicked
    cell.openLink()
  File "/Users/tmarsh/Library/Application Support/Anki2/addons21/1828617820/__init__.py", line 161, in openLink
    webbrowser.open(f'https://jisho.org/search/{self.value} %23kanji')
  File "webbrowser", line 86, in open
  File "webbrowser", line 683, in open
UnicodeEncodeError: 'ascii' codec can't encode character '\u754c' in position 40: ordinal not in range(128)

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.