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