GithubHelp home page GithubHelp logo

glossika-to-anki's People

Contributors

awhlam avatar deepakjois avatar emesterhazy avatar raylillywhite 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

glossika-to-anki's Issues

Correct Audio file name

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!

Questions about extracting from the non-text pdfs

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!

Error extracting sentences from Japanese PDFs

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

Trying to extract sentences from non chinese or japanese pdf

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?

README.md Instructions Clarification

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.

New to python and having problems understanding the process

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?

Having problems with Glossika PDF

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.

Cantonese Level 1 - PDF to TSV extraction missing sentences

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:

Glossika PDF
Capture

Output TSV Extraction:
Capture2

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.

ImportError: No module named cv2

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.

Correct PDF file name

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?

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.