Giter Club home page Giter Club logo

-anki-shinmeikai-addon's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

-anki-shinmeikai-addon's Issues

Crashes, tries to find "MIAJapaneseSupport"

Broken again,

Not everyone is running the MIA support plugin :)

  • it's looking for "japanese", but in Anki 2.1 anki puts plugins into numbered folders, instead of using the name of the plugin. The number for the Japanese Support plugin is "3918629684"

crashes when trying to parse hiragana-only Focus field

if the Focus field is Kanji, or Kanji/hiragana it works fine.
If the Focus field is Katakana, nothing is generated (example: ピザ)
if the Focus field is hiragana-only (example: ばたばた), the following error occurs:

Error 
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. 
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. 
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. 
Debug info:
Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1

Caught exception:
  File "C:\Users\honmashinsei\AppData\Roaming\Anki2\addons21\shinmeikai_definitions\main.py", line 91, in <lambda>
    action.triggered.connect(lambda: generateDefinitions(browser.selectedNotes()))
  File "C:\Users\honmashinsei\AppData\Roaming\Anki2\addons21\shinmeikai_definitions\main.py", line 69, in generateDefinitions
    definition = getCompleteDefinitionsForWord(srcTxt)
  File "C:\Users\honmashinsei\AppData\Roaming\Anki2\addons21\shinmeikai_definitions\main.py", line 99, in getCompleteDefinitionsForWord
    defs = shinmeikai.getDefsOfWord(targetWord, conf)
  File "C:\Users\honmashinsei\AppData\Roaming\Anki2\addons21\shinmeikai_definitions\shinmeikai.py", line 14, in getDefsOfWord
    return searchForWordInShinmeikai(word, conf)
  File "C:\Users\honmashinsei\AppData\Roaming\Anki2\addons21\shinmeikai_definitions\shinmeikai.py", line 46, in searchForWordInShinmeikai
    kanji = extractKanjiFromElement(innerDef)
  File "C:\Users\honmashinsei\AppData\Roaming\Anki2\addons21\shinmeikai_definitions\shinmeikai.py", line 91, in extractKanjiFromElement
    matchObj = re.search("・", returnValue)
  File "C:\Program Files\Python36\lib\re.py", line 182, in search
<class 'TypeError'>: expected string or bytes-like object

Doesn't work well with Anki 2.1

Anki 2.1 seems to rename plugin folders to the plugin download number, so it can't find it.

Following the comments on the YouTube video (https://www.youtube.com/watch?v=RSQ5cukeG-o) I renamed the folder name of the Japanese Support plugin to "japanese", after which I get the following error:

"tabError: inconsistent use of tabs and spaces in indentation".

Changing the main.py code, "from japanese.reading import mecab" to " from 3918629684.reading import mecab" gives the error "Syntaxerror: invalid syntax" with starting up Anki.

If you have the time, take a look please. Thank you very much for creating this, looks extremely useful. Can't wait to start using it!

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.