Code Monkey home page Code Monkey logo

anki-slides-import's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ“ซ Find me at musicallyut.xyz
  • ๐Ÿ˜„ Pronouns: he/him/his
  • โšก Fun fact: My code is on Mars

anki-slides-import's People

Contributors

barryridge avatar musically-ut 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

Watchers

 avatar  avatar  avatar  avatar

anki-slides-import's Issues

File Directory

Hi there,

Just wanted to start by thanking you for making a tool like this, I think it's an amazing idea.

As somebody with a remedial level of programming knowledge, I was wondering if you could direct me to the repository where we store the files we want to import.

Using the command: slides2anki -U "~/Library/Application Support/Anki2/myProfileName" example_notes.txt Veg-food-in-Japan.pdf decktest.apkg I believe I have been able to successfully route the file path of my user profile.

However, when I run the command, I get the error Error while reading source files: [Errno 2] No such file or directory: 'example_notes.txt' . I have tried putting the PDF and example_notes from your test folder in various directories, including the folder for my own user profile. I have also tried storing it in the slidesimport folder within the python site-packages directory, but to no avail.

If you have any idea why this is happening, please let me know. I would really love to take advantage of this wonderful tool. :)

Best regards,
Mousa

module 'cgi' has no attribute 'escape'

Hi,

I'm happy to see a tool like this in development since I'm doing a tough degree
ch513notes__electronic_conduction.txt
program in school: I hope it will see more updates sometime. I'm running on Mac OS, and I encountered an error message after the following command, per the docs:

slides2anki /Users/Usr/Desktop/ch513notes__electronic_conduction.txt /Users/Usr/Downloads/Electrical+Conductivity-2021-revised.pdf ch513_econductivity_deck -U "/Users/Usr/Library/Application Support/Anki2/User_1"

And here was the result/error:

Verifying arguments ...
Done.
Reading files ...
Traceback (most recent call last):
  File "/Users/Usr/anaconda3/bin/slides2anki", line 8, in <module>
    sys.exit(run())
  File "/Users/Usr/anaconda3/lib/python3.8/site-packages/slidesimport/slidesimport.py", line 92, in run
    notes = Parser(open(notesFilePath, 'r')).getNotesAndCropsParsing()
  File "/Users/Usr/anaconda3/lib/python3.8/site-packages/slidesimport/parser.py", line 99, in __init__
    slideQList[slideNum].append(cgi.escape(lineMatch.group('line')))
AttributeError: module 'cgi' has no attribute 'escape'
(base) Usr@Usr-MacBook-Pro-2 ~ % 

Did I do something wrong? If not, is there any fix at present?

Any guidance would be appreciated: 67 slides is plenty to do by hand, anyhow, haha.

-herebcirelapsed

Feature request: Specify Square to cut out of a slide

Thanks for the addon, nice idea!

It would be nice if one could specify which part of the slide is used to create the images from (instead of using the entire slide). This way common (distracting) headers and footers can be removed from the image. Those could either be added as a commandline argument (such as --dimensions 100:100:400:400 where each number represents a corner) or added to the notes file (probably makes more sense).

Multiple field support on import in Anki

I want to find out about the parser and if there is a syntax for identifying different fields in the text based slide notes.

Also, I am wondering if there is a way to combine (append) the image from a slide with text notes. And if there is a way to include images (or references to images) in the text based slide notes.

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.