ObsidianToAnki / Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki
GNU General Public License v3.0
1.48k stars 130 forks source link

CurlyCloze的中文bug #599

Open dinghaol opened 1 month ago

dinghaol commented 1 month ago

我发现这个程序使用起来有一个bug,但我想使用CurlyColze功能的时候,我发现他无法正常转换,但是有一天我发现当使用这种Katex and Markdown Cloze模板的时候,它居然又可以使用了。 好,我根据这个问题进行测试,最后发现它这个转化卡片的功能似乎是根据这种模板的名称来进行转化的,就导致中文模板根本没有办法进行转化。 而我将中文模板转成英文模板之后,发现它又可以正常转化。 原本的中文模板为:选择题:文字,背面额外(前面没拍图片) 转换后的英文模板如下 image 这个问题可能是因为cloze的判断是通过模板的名称来进行目标的选定所导致的bug。

google translation I found a bug in the use of this program, but when I wanted to use the CurlyColze function, I found that it could not be converted normally, but one day I found that when using this Katex and Markdown Cloze template, it actually worked again. Okay, I tested based on this problem, and finally found that the function of the conversion card seems to be based on the name of the template to convert, which means that the Chinese template cannot be converted at all. After I converted the Chinese template to English template, I found that it could be converted normally. The original noon template is: 选择题:文字,背面额外 (no pictures on the front) The converted English template is as follows image This problem may be caused by a bug caused by cloze's judgment that the target is selected by the name of the template.

dinghaol commented 1 month ago

与此同时,我还发现有一个bug,就是add context功能时无法无法正常添加。而使用add file link功能却可以正常使用。 然后我在网络中查找之后,发现有人已经进行了回答说明这事。 "Add Context" option doesn't work #371 而根据我实际使用的时候发现,更好的方法是更改​​一次context field的设置,保存它,然后再更改回来。(具体的位置在(Note type setting->File Link Field and Context Field in Note Type Table)中) 这样可以避免因为插件数据更新而失效的问题。 At the same time, I also found a bug that could not be added normally when adding context functions. But using the add file link function can work normally. Then I searched on the Internet and found that someone had already answered this question. "Add context" option doesn't work #371 According to my actual use, a better method is to change the settings of the context field once, save it, and then change it back. (The specific location is in (Comment type settings->File link field and context field in comments) type table) This can avoid the problem of invalidation due to plug-in data update.