Giter Site home page Giter Site logo

jxplugin's Introduction

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.

jxplugin's People

Contributors

robh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

robh

jxplugin's Issues

Links in Known/seen/missing Popup go nowhere

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

Graph Numbers are incorrect

The numbers shown in the graphs through JxGraphs do not match JxMenu numbers. The values in JxMenu seem correct.

Write/use a xml parser for Kanjidic

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

grayed icons when opening deck by bypassing the deckbrowser

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",)

Stroke order for other fields

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).

Tags aren't ordered in JxDuplicates

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

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.