AnkiUniversal / Anki-Universal

Source code of Anki app on Windows 10.
GNU Affero General Public License v3.0
74 stars 11 forks source link

Used AnkiUniversal on Lumia/Windows and need to view my .anki2 files from my PC #34

Open canaxxx opened 5 years ago

canaxxx commented 5 years ago

Used AnkiUniversal on Nokia Lumia/Windows and need to view the content I created on it from my PC. How to do so? I backed it up to OneDrive. Is there any software which will import my .anki2 files ? I had a problem on my windows phone and I cannot access the software from the cell phone. I desperately need to view my saved/backed up content.

I look forward to hearing from you soon.

Thank you in advance!

PS.: I use Windows 8.1 on my notebook. No upgrade possible because it is a Sony Vaio which causes errors when upgrading, so I had to keep Windows 8.1. The Anki sofware I currently have on my Windows will only open .apkg extension files, so I need one which will open .anki2

AnkiUniversal commented 5 years ago

You can import collection.anki2 into the classic Anki app on Windows by doing the following steps:

  1. In the same folder of your backed up collection.anki2 file, create a blank text file and rename it to media (No .txt extension).
  2. Open the created media file with notepad and type into it 2 characters (open and close brackets): {}
  3. Save and close media file.
  4. Compress both of your collection.anki2 and media file into a single zip file.
  5. You can now import your .zip file into Anki in File>Import.

Please note that this will not import your images and audio files into Anki. However, you can just copy & paste them directly (do not copy sub-folders, only copy your files directly) into the folder named collection.media of Anki on your device. (The location of this folder depends on your Windows and Anki version. Please refer to Anki User Guide for more details)

canaxxx commented 5 years ago

By saying "(No .txt extension)", do you mean a software like "Word"? I created a blank Word file and saved it as "media.doc". After that, I opened a blank .txt file (Windows notepad), changed the option to import "Alll Files" (otherwise it only imports .txt files) and, then, I imported the media.doc (blank file) into the .txt file. A lot of hidden text from the media.doc got into the blank .txt file and... should I delete that text and just insert the open and close brackets {} ? or should I insert the open before the text and the close after all the text? and then I saved the media.doc from the .txt (notepad) file. Both collection.anki2 and media file into a single zip file. (I used winrar, .rar - Is that .rar extension the problem instead of being .zip?). I zipped (winrar) both the media.doc file (saved with the {} through .txt) along with the collection.anki2 file, however, importing this zipped file from the Windows Downloads folder did not work ("unknown file format"). Could you please help me where the problem should be?

Thank you again!

PS.: My collection.anki2 file is backed up on Onedrive as collection.anki2.zip, but when I download it (to the Windows Downloads folder), it comes as .rar (but inside it says it's zipped), hence the .rar/.zip question.

AnkiUniversal commented 5 years ago

The media file should not have any extensions (no .txt, .doc, .etc). You should create an empty text file (eg. NewFile.txt) by using Notepad and type {} into it. Then save & close, and name/rename it to media. Do not use other programs such as Word because the format will be different and Anki won't be able to read it.

For the backed up file, make sure you uncompress it until you see a file called collection.anki2. I think your file was compressed 2 times (first is .zip then .rar.) Thus you might need to uncompress it 2 times.

Then zip both collection.anki2 and media into a single .zip (not .rar) file. Winrar will let you choose which extension you wan to use before compressing. So please make sure you select Zip. Otherwise, Anki can't open the file.

If all else fail, you can send your file to us through our support email: ankiuniversal@gmail.com and we will help you to convert it to Anki format.