lakedaemon / jxplugin Goto Github PK
View Code? Open in Web Editor NEWJapanese Extended Plugin for the Spaced Repetition System ANKI
Japanese Extended Plugin for the Spaced Repetition System ANKI
DESCRIPTION (Version 1.11) This plugin implements some stuff related to japanese : A) 3 More graphs (Jouyou Kanji, JLPT Kanji and JLPT Words time progression) B) All stats about JLPT/Jouyou/Frequency for Words and Kanji) C) Stroke order D) Words including the same kanji E) JLPT, Frequency and Grade Info in the answer F) customizable display : try putting the following code in the answer part of a word card model : ${Css} <div style="float:left;"> <div>${T2JLPT}</div> <div>${T2Freq}</div> </div> <div> %(Reading)s<br /> %(Meaning)s </div> or try putting the following code in the answer part of a kanji card model ${Css}<div style="float:left">${Stroke} <div>${K2JLPT}</div><div>${K2Jouyou}</div><div>${K2Freq}</div></div> <center>%(Meaning)s</center> <center> ${K2Words}</center> SET UP To use this plugin, you need a deck with : -> your words inside a japanese card model : Fields : "Expression", "Reading", "Meaning" Tags : "Japanese" Cards templates : "Recognition", "Recall" The "Expression" field must not contain anything other than 1 word (i.e. no space, no tabs, no exemple, no html, etc...) -> your Kanji inside a "custom" card model : Fields : "Kanji", the others fields don't matter Tags : "Kanji" Cards templates : "Kanji ?" The "Kanji" field must not contain anything other than 1 Kanji (i.e. no space, no tab, no exemple, no html, etc...) Optional : for stroke order, download the stroke order font from there : http://sites.google.com/site/nihilistorguk/Home/KanjiStrokeOrders_v2.012.zip?attredirects=0 unzip it and put StrokeOrderFont.ttf in your windows/Fonts directory For more information, look at the introduction of JapaneseXtended.py TROUBLESHOOTING 0) Customizable answer display 1) Displays Kanji with Stroke Order in the Kanji answer 2) Displays Words including the Kanji in the Kanji answer 3) Displays JLPT and Grade Info in the Kanji answer 4) Time -> Grade/JLPT Kanji Count graphs 5) Displays JLPT Info in the Tango answer 6) Time -> JLPT Word Count graph 7) Words JLPT stats 8) Seen/Missing Words against JLPT sets For 1), download the stroke order font from http://sites.google.com/site/nihilistorguk/Home/ and put it in your C:/Windows/Font directory For 2) and 3), you must have Facts with a field whose name is "Kanji" For 2) you must have a card model with "Expression", "Reading" and "Meaning" fields For 4) you must have a model whose tags includes "Kanji" AND a Card Model whose name is "Kanji ?" and a field whose name is "Kanji" For 5 and 6) you must have the file JLPT.Word.List.csv in the anki plugin directory. For 6) you must have a modem whose tags includes "Japanese" and a Card Model whose name is "Recognition" and a field whose name is "Expression" TO DO Frequency for Words/Kanji Time -> Kanji accumuated frequency graph Time -> Word accumuated frequency graph Threshold for graphs TO IMPROVE Separate Japanese graphic window presentation (colors, forms,...) JLPT/Grade levels in the graphs Clean the code (recurrent) USEFULL to print some variable and debug, use the command mw.help.showText(str(some variable)) LOG 5/07/2009 : version 1.4 Cleaned the JStats and JGraphs code. Experimented a little Separate Window for graphics 4/07/2009 : version 1.3 Cleaned the JStats code. Implemented Stats/Seen/Missing for JLPT/Jouyou and Kanji/JLPT Improved HTML display 3/07/2009 : version 1.2 Some HTML Clean-up Implemented Stats/Missing/Seen JLPT for Kanji Used RunHook for drawing Answer : JapaneseXtended is now "other plugins"-friendly. 2/07/2009 : version 1.0 Implemented JLPT for words Compiled JLPT.Word.List.csv Squashed JLPT Word bug Clean the code : names and tags Implemented JLPT4Words Stats Implemented Missing/Seen Words Enable/Disable JStats with Deck Opened/closed Tested and Uploaded first public version 1/07/2009 : version 0.2.6 Implemented Time -> Grade graph Squashed color bug Added JLPT and Grade Info to Kanji Answer Implemented threshold for the Graphs (hardcoded to 21 days) 30/06/2009 : version 0.2.3 Implemented Time -> JLPT graph Support for JLPT4/3/2/1/0=non JLPT Different colors for JLPT4/3/2/1/0 Squashed the bug interfering with the graphics 29/06/2009 : version 0.1.5 now displays in the answer all words including the Kanji (simpler tables). tests if the card has a valid "Kanji" Field. 17/05/2009 : version 0.1.3 displays basic kanji book related words under the Kanji in the answer. displays Kanji with Stroke Order + some html/css improvement tests if the card has a valid "Rank" Field.
"Show/Hide", "Refresh" and "Help" don't work in JxGraphs
The buttons might not be connected with the signal/slot of QT
known Stuff Threshold in JxGraphs is actually hardcoded to 21 days.
Implement a dialog box to allow the user to choose the value.
When you click any of the missing/seen/known links in JxMenu, a popup appears to provide specific words/kanji. If I remember correctly, these are links that allow you to amass a list that can be exported or taken to a dictionary or something. These links don't appear to do anything anymore. Thought I'd let ya know.
Cheers
The numbers shown in the graphs through JxGraphs do not match JxMenu numbers. The values in JxMenu seem correct.
In order to get better information about Kanji :
Kanji, On/Kun/ Readings, (grouped) Meanings, Strokes count, bushu, etc...
To allow the computation of Furigana (through the famous lakedaemonian recursive/dichotomic function) and reading frequency computation, etc...
and to unify the gestion of :
Frequency, JLPT,Grade
Implement Japanese Kanji Aptitude Test support for graphs/stats
see here :
http://en.wikipedia.org/wiki/Kanken
when I open a anki deck directly via double click the toolbar icons "JxGraph"
and "Jxstat" are grey and I can't click them. When I then go to the deck
browser and select the same deck again via "open" the icons are active.
Possible cause : When you open a deck this way, it might bypass
mw.deckRelatedMenuItems
in the JxPlugin code :
# to enable or disable Jstats whenever a deck is opened/closed
mw.deckRelatedMenuItems = mw.deckRelatedMenuItems +
("JxGraphs","JxStats","JxDuplicates",)
Take a few screenshots and explain how to setup/use JxPlugin
I would like to see the stroke order for the expression in recalll card
layouts. I'm also not verry happy with the size of the stroke order kanjis.
So I implemented a more general solution for displaying stroke order.
In the attached file you can search for "# RH:" to see, what I have modified.
Feel free tu edit my code (or dont uye it at all).
a) ignore trailing and leading white spaces
b) ask for field
c) ask for tags
First step : export stuff in lists
Second steps : create new facts in Anki through the import subsystem.
Third Step : bypass export/import to import directly in Anki
This is an ongoing effort.
There won't be any Time frame for feature release.
Add a window in the Anki Layout for JxStats related stuff :
How :
Implement the JxStats menu in a QtWebView window instead of mw.help.showText
When updating Tags through the JxDplicates menu,
they are not ordered like they should as we use the canonifying function
The Tags get ordered if you go in the fact browsers and "refresh" them by
going in their edit widget
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.