Coder Social home page Coder Social logo

ankikanjitable's Introduction

AnkiKanjiTable

image

Visualize your progress by seeing your kanji cards in a pretty table with their maturity indicated by their color.

Notes:

  • You can click on a cell to open that kanji's details in Jisho.
  • You can right click on a cell to get more options, like opening the card in the Anki Browser window, etc.
  • If the field you select has more than one kanji in it, a tile will be created for each of those kanji. If the same kanji is found on multiple cards, the longest interval on those cards will determine the color of the card. i.e. if you have a card with "作家" with an interval of 1 day and a card with "国家" with an interval of 1 week, the tile for "家" will use the interval of 1 week to determine its color.
  • When using Group By, any kanji that are in the selected list that you do not have cards for will appear with a black background and red foreground.
  • The Filter setting uses the same search format as Anki's Browser window (https://docs.ankiweb.net/searching.html)
  • The "Time Travel To" option shows what the table would have looked like at a specific point in time. If you set it to Jan 1 2020, the table should look like what it would have on that date. It can be fun to look back on your progress.
  • The PNG Quality slider is a bit esoteric right now but just raise it if the PNG is not sharp enough. It controls each table cell's resolution in the resulting PNG and ranges from 25px*25px to 200px*200px.
  • The "Smooth" option just adds linear interpolation between the colors to smooth them out.

To be added:

  • Sort by JLPT level, RRTK/KKLC order, etc.
  • The ability to select a start date and end date and create a gif showing the table over that span (mostly done).
  • re: Time Travel To - account for local time zone and rollover setting (simple)

To be added maybe?:

  • User-configurable themes
  • Allow regex for field name in case you have kanji fields with different names that you want in the same table

Not planned to be added:

  • Export to HTML (don't see the utility)

Inspired by Kanji Grid (See here for a color key)

ankikanjitable's People

Contributors

austinhasten avatar

Stargazers

Emanuele Scaccia avatar  avatar

Watchers

 avatar  avatar

ankikanjitable's Issues

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

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)

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

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

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.