krmanik / Anki-xiehanzi

Learn, read, write and practice Mandarin by drawing strokes in Anki Desktop, AnkiDroid and AnkiMobile with audio of HSK 2.0 (HSK1-6) and HSK 3.0 (HSK 1-9) characters.
https://krmanik.github.io/Anki-xiehanzi
Other
187 stars 21 forks source link

Create Website paragraph&file character input broken #56

Open XiangRongLin opened 5 months ago

XiangRongLin commented 5 months ago

Describe the bug I can't add characters using the paragraph or file options in order to create a deck

To Reproduce Steps to reproduce the behavior:

  1. Go to https://krmanik.github.io/Anki-xiehanzi/create#url
  2. select something and go to second page (I selected pinying & english definitions)
  3. Select Paragraph in the dropdown
  4. Put 爱 into the textbox
  5. click on generate

Expected behavior

Actual behaviour Nothing happens. Console shows following error

Uncaught (in promise) TypeError: i is undefined
    x https://krmanik.github.io/Anki-xiehanzi/assets/js/7270.6f15f471.js:2
    onClick https://krmanik.github.io/Anki-xiehanzi/assets/js/0fcd1e54.3d2767a5.js:1
    ze https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    $e https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Ir https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Ir https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Mr https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Hr https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    uu https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Ne https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Hr https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Wt https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
    Gt https://krmanik.github.io/Anki-xiehanzi/assets/js/main.b2f53f90.js:2
2 7270.6f15f471.js:2:1664777

Desktop (please complete the following information):

Additional context With file input it seems to be stuck on "pending" only single word works, but since I want to generate a deck with the lists from here thats useless

krmanik commented 5 months ago

The issue was related to changes to jieba library fengkx/jieba-wasm. It is fixed now, try again please.

XiangRongLin commented 5 months ago

thanks for the quick fix ❤️ With paragraphs it works now. But using a file seems to still be stuck on pending