emesterhazy / glossika-to-anki Goto Github PK
View Code? Open in Web Editor NEWConvert Glossika PDFs and audio files into Anki decks
License: MIT License
Convert Glossika PDFs and audio files into Anki decks
License: MIT License
First of all, thank you for this great project!!
I'm stuck on the audio script that tells me to refer to the readme for the correct file name pattern. Unfortunately, I cannot find any hint on that in the actual readme. So my question would be what the actual file name for the audio files has to be? Additionally, am I right assuming to put the audio files into the glossika_source/audio folder?
Thank you very much for your help and time!
Hello emesterhazy!
I used your program to convert my cantonese pdfs into anki, and I was blown away by the efficiency your script did this.
I was doing it manually until I had the thought of searching on google, and you were the first solution I found. Such finesse and precision. It was amazing!
I was trying to convert my zh pdfs as well but it seems like they are not text.
I looked all over, but I can't seem to find find the text versions of these that are compatible with your software, would you happen to have them?
I'm trying to create a hybrid deck with zh-canto-eng, so i can do 2 langs at once, and your script would really help with this, but I can't seem to find the zh text pdfs anywhere.
Thank you so much for your hard work!
I really have no clue what I'm doing wrong, I've been working on this for 2+ hours. I have the mp3split folder in the python folder and when i use the glossika_split_audio all that happens is python pops up for half a second and then goes away.
Please help
Hello I want to extract sentences from a non chinese or japanese pdf , I tried reading the file but I'm having trouble trying to change this:
` # If your language isn't listed, add it here
languages = {
'ZS': ['EN', '简', 'PIN'], # Simplified Chinese
'ZH': ['EN', '繁', 'PIN'], # Traditional Chinese
'ZT': ['EN', '繁', 'PIN'], # Traditional Chinese (Taiwan)
'YUE': ['EN', '粵', 'YALE'], # Cantonese | Change YALE to JYUT for Jyutping
'JA': ['EN', '日|JA', 'ROM'] # Japanese
}
`
How can I add a new language here?
Hey, under “Requirements and Setup” you said for the Xpdf tools that one would need “copy pdftotext.exe to a folder on the path (i.e. the Python folder)” and a friend of mine and I who wish to setup the program are not sure which python folder you are referring to here. Could you please clarify this statement and provide an example what the default path may look like on a Windows machine.
Additionally, I can submit a pull request to add the explanation to the README.md after you’ve explained so you don’t have to do so twice. I’m a new developer interested in providing his first open source contribution, and I would appreciate the opportunity to help with your project in whatever way I can.
Hi, I'm having problems fully understanding how to use python/this code to create an anki deck. Mainly my problem is that I do not really know how to label my glossika pdf and audio files and where to put these files. Can you make the readme a little more descriptive please?
I believe I have the v2 Glossika PDFs, but they are not getting extracted properly. I just get a .txt file at the end of the process, and the following message.
$ python glossika_extract_pdf.py
Processing 1 files...
Processing GLOSSIKA-ENYUE-F1-EBK.pdf...error
Something went wrong...found 0 sentences instead of 1,000
PDF extract complete!
Audio splitting works just fine, but the Anki deck generation does not produce anything after that.
If you require to look at the PDF, I can share it privately via email.
I ran the PDF to TSV extraction for Cantonese.
Levels 2 and 3 extracted all 1,000 sentences fine, but level 1 was missing 3 sentences in the output TSV (I modified the Python script to not abort).
Below is an example of a sentence that was missed:
Sentence #89 - has the Yale for sentence #90 instead
Sentence #90 is missing
I think it might be an issue with the regular expressions? Let me know if you have any ideas or if you need more examples.
I don't think this is a problem with the script, but I'm getting this error message. I've tried installing OpenCV using both homebrew and Pip but Python still can't access the module. Any advice would be appreciated. I'm using a Mac.
Hello - first off, excellent project and thank you for the effort and time spent to make this.
I've successfully split the audio, however the PDF splitting is having issues; I'm getting the following output:
Processing GLOSSIKA-ENKR-EBK.pdf...unmatched
File name does not match
Skipping GLOSSIKA-ENKR-EBK.pdf
PDF extract complete!
What is the expected name format?
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.