- ๐ซ Find me at musicallyut.xyz
- ๐ Pronouns: he/him/his
- โก Fun fact: My code is on Mars
musically-ut / anki-slides-import Goto Github PK
View Code? Open in Web Editor NEW๐ Import pdf slides + text notes into Anki.
License: MIT License
๐ Import pdf slides + text notes into Anki.
License: MIT License
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
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
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).
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.