kelciour / import-powerpoint-slides

Anki add-on for importing PowerPoint slides with LibreOffice
0 stars 0 forks source link

import to anki #1

Open takpamgbo14 opened 1 year ago

takpamgbo14 commented 1 year ago

Hi I've converted my powerpoint slides into the html format with the file name 01.htm and but for some reason Anki isn't allowing me to import the files in the folder to Anki. The contents of the file are grayed out. I'm using a MacBook.

Screenshot 2023-02-23 at 3 07 50 AM
kelciour commented 1 year ago

I might be wrong but it looks like 01.htm is a folder, but the add-on expects a file with the .htm extension. Maybe try scrolling down a list of files (img0.html, img0.png, ..., img6.html) and look for the file with the same filename as your presentation file but with .htm extension, e.g. test.pptx and test.htm, or maybe try to search for .htm in the folder.

image

Also, if you used File > Import, it won't work, instead use Tools > Import Slides. The add-on should hide all extra files (img0.html, img0.png, ..., img6.html) in the folder and should show only one file with .htm extension (or maybe this feature doesn't work on Mac and all files in the folder will be visible).

image

takpamgbo14 commented 1 year ago

For some reason Mac isn't allowing me to name of the file .htm. It insists on me using .htm.,html or.html. Do you know of a way around it for Mac?

kelciour commented 1 year ago

The presentation file could be exported with LibreOffice and saved with any extension like file.ext, as long as it's exported as "HTML Document (Impress)", but the add-on expects the filename with the .htm extension, and to be able to import file.ext it needs to be manually renamed with Finder to file.htm.

The default filename with the .htm extenstion suggested by LibreOffice like ch1.htm should be fine.

image

takpamgbo14 commented 1 year ago

ok I figured it out. thank you