Coder Social home page Coder Social logo

ankidown's People

Contributors

glfharris avatar jay-pee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jay-pee purequant

ankidown's Issues

Anki fails to open following installation

Debug info:
Anki 2.1.23 (de9543ff) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.3
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2020-04-16 11:15:20
Add-ons possibly involved: ⁨Ankidown - The advanced importer for Anki⁩

/Users/nick/Library/Application Support/Anki2/addons21/38786043/importer.py:127: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.bufferIndex is 0:
/Users/nick/Library/Application Support/Anki2/addons21/38786043/template.py:85: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if selection is 0:

[Doc] how does it work?

I was trying to understand the language so I went through the readme but apparently there is no documentaiont on how the syntax works. That's why I posted this.

UnicodeDecodeError

Caught exception:
  File "/Users/username/Library/Application Support/Anki2/addons21/38786043/importer.py", line 158, in onFilePicked
    text = f.read()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/ascii.py", line 26, in decode
<class 'UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc5 in position 197: ordinal not in range(128)

This seems to be caused by the use of the Unicode character ŭ in my markdown file.

Feature Request

Hello! Thank you for this extension. Just wanted to ask if it would be possible to have cloze deletion detection when parsing the .md file via set identifier such as using double brackets [[ clozed word/ code ]] . The reason I ask this is that adding {{c1:: }} every time in markdown could get tedious.
Thank you again.

Can't create preview

I was trying to run Ankidown with the person example.

Debuginformationen:
Anki 2.1.22 (0ecc189a) Python 3.8.1 Qt 5.14.1 PyQt 5.14.1
Platform: Linux
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-06-10 14:23:14
Möglicherweise beteiligte Erweiterungen: ⁨Ankidown - The advanced importer for Anki⁩

Caught exception:
Traceback (most recent call last):
  File "/home/user/.local/share/Anki2/addons21/38786043/importer.py", line 145, in onPreview
    self.setNote(self.currentNote().note)
  File "/home/user/.local/share/Anki2/addons21/38786043/importer.py", line 185, in setNote
    self.editor.tags.setText(note.stringTags().strip())
AttributeError: 'NoneType' object has no attribute 'stringTags'

Ankidown won't start/crashes directly after installation

When trying to start Ankidown by clicking on 'Tools'->'Ankidown'->'Import' immediatly after installing and restarting Anki I get the following:

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, repeat 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.48 (fb07bad3) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-10-14 10:36:31

Caught exception:
Traceback (most recent call last):
  File "C:\Users\<USER>\AppData\Roaming\Anki2\addons21\38786043\__init__.py", line 11, in open_importer
    aqt.dialogs.open("Ankidown-Importer", mw)
  File "aqt\__init__.py", line 116, in open
  File "C:\Users\<USER>\AppData\Roaming\Anki2\addons21\38786043\importer.py", line 43, in __init__
    self.setupChoosers()
AttributeError: 'AnkidownImporter' object has no attribute 'setupChoosers'

EDIT:
It appears that setupChoosers() is now setup_choosers() and works slightly differently? Trying to figure it out, but might just downgrade Anki.

Possibility to leave a field empty

Currently adding a note like the following wouldn't be possible:

Template:

# {Front}
# {Back}
# {Hint}

Note:

# Front Example
# Back Example

This would be good to have since you might for instance not want to add a hint to every note but use the same template non the less.

This would hopefully also allow for the following:

Template:

# Front
{Front}
# Back
{Back}
# Hint
{Hint}
# Source
{Source}

Note:

# Front
Front Example
# Back
Back Example
# Hint

# Source
Example Source

<p></p> HTML tags inserted

When importing notes the

HTML are always inserted I think it would be better if this would be optional.

download

Would it be difficult to allow the opposite operation, ie downloading a deck to markdown files?

Markdown parsing is not working

Thank you for your work in this add on. :) I hope I find the time to contribute.

But to the topic:

Formatting doesn't work or am I doing something wrong?

  1. Code blocks are not formatted

For Example:

```python
    import sys
    sys.path
```

is not rendered to

    import sys
    sys.path
  1. List formatting doesn't work
  2. Bold and Italic doesn't work.

Had no time to look in the code. But do you render markdown to html and then import it to anki? For me it looks like the plain text is just imported...

Make the install process easier

I had to overcome the problem that I have to build the import/export UI.
Maybe would be great to include the forms folder in the git repo.

I am on windows and didn't had make and pyqt5-tools installed.
It's a little cumbersome to get the plugin to run with this issue.

Also short install guide would be great in the readme.md file.

Should I do a pull request for this?

AttributeError: 'NoneType' object has no attribute 'stringTags'

错误
有一个错误发生了.请在按住shift键的同时启动Anki,这样可以临时的禁用您已经安装的插件。
如果仅仅是因为插件引起的问题,请选择工具>插件菜单项来将出错的的插件设置成失效,然后重启Anki,重复以上的步骤直到你发现了具体是哪个插件引起的问题。
当你已经发现是因为插件引起的问题,请在我们的支持网站上 插件支持 上报告问题。
调试信息:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-11-01 16:55:03

Caught exception:
Traceback (most recent call last):
File "C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\38786043\importer.py", line 145, in onPreview
self.setNote(self.currentNote().note)
File "C:\Users\YEDONG\AppData\Roaming\Anki2\addons21\38786043\importer.py", line 185, in setNote
self.editor.tags.setText(note.stringTags().strip())
AttributeError: 'NoneType' object has no attribute 'stringTags'

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.