c-okelly / org_to_anki

Python3 module to convert Txt, Org or LibreOffice files into Anki decks
MIT License
64 stars 10 forks source link

Non-Technical Help Request #73

Closed AAO2020 closed 4 years ago

AAO2020 commented 4 years ago

Hi,

I do not have a technical error or inquiry. I have a very a basic issue that I have spent a lot of time trying to resolve.

I installed your add-on in Anki. I created a basic test file, then copied the steps in your "Word or LibreOffice files" page. It worked the first time around when I imported into Anki, then it stopped working when I tried again. So I downloaded LibreOffice and converted the test file into an HTML. However, every time I try to import something it asks me to fill out "Import Options" and "Field Mapping". I have no idea what I am supposed to fill out as there is not really any guidance. When I fill it out, etc, it gives me flash cards with gibberish.

I have no error report I am a Windows 10 user

Please advise. Thank you, Ben

c-okelly commented 4 years ago

Hey Ben,

It sounds like you are potentially using the wrong import menu.

I assume you are clicking here?

Wrong import

This is the correct menu:

Right menu

The File > Import is the built in Anki way to handle imports and completed different from normal imports

AAO2020 commented 4 years ago

Thanks! Such a simple fix... I was trying to figure it out on my own. Thanks again!

c-okelly commented 4 years ago

The answer is always simple when you know it! I think the docs could probably be clearer tbh

AAO2020 commented 4 years ago

On another note, why does the HTML file from a Word document differ from a HTML file from a Libre document? I am wondering. Not a technical user. Just an every day Joe.

AAO2020 commented 4 years ago

Also, this does not work for either Libre or Word.

Multi-level files

Question with sublists A question Group 1 Item A Item B Group 2 Item C Item D

c-okelly commented 4 years ago

On another note, why does the HTML file from a Word document differ from a HTML file from a Libre document?

As for the why I could not even being to guess but the TLDR of the situation is as follows:

Microsoft word generates a html file where the contents of the document look correct but are generally not using standard html syntax to actually render the format. The best example of this is the list syntax where it just inserts icons and white spacing to what looks like a list to the users.

In comparison LibreOffice generates "proper" html syntax that is much easier to parse into metadata so that I can generate a card.

I'm sure there is some legacy reason why word is doing this. Word will also generate different html / file encoding depending on what system is is run from. It also re-encodes the entire html file if you open and save it. It just ended up being to much hassle and I really don't think I'm going to support it in future

c-okelly commented 4 years ago

Can you send me a screen shot of the list and possible and attach the html file and I will have a look.

I assume you are using bullet points in the LibreOffice document? As from above I would not advise using Word as it will likely just throw errors

AAO2020 commented 4 years ago

Hi, Please see attached for Libre Writer document and associated HTML file. Let me know. Thanks


From: c-okelly notifications@github.com Sent: Friday, June 5, 2020 5:49 PM To: c-okelly/org_to_anki org_to_anki@noreply.github.com Cc: Lee, Benjamin blee23@lsuhsc.edu; State change state_change@noreply.github.com Subject: Re: [c-okelly/org_to_anki] Non-Technical Help Request (#73)

EXTERNAL EMAIL: EVALUATE

Can you send me a screen shot of the list and possible and attach the html file and I will have a look.

I assume you are using bullet points in the LibreOffice document? As from above I would not advise using Word as it will likely just throw errors

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fc-okelly%2Forg_to_anki%2Fissues%2F73%23issuecomment-639877330&data=02%7C01%7Cblee23%40lsuhsc.edu%7C3714e6a3cd8a45cbf44308d809a2c2f5%7C3406368982d44e89a3281ab79cc58d9d%7C0%7C1%7C637269941955886174&sdata=8oxpxoFzVekcGzWUAS%2FucCC%2FdLrvi%2FynIbiIxdbofWQ%3D&reserved=0, or unsubscribehttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAP3BCUIYET556KFE764D3HDRVFZBDANCNFSM4NTHGVIA&data=02%7C01%7Cblee23%40lsuhsc.edu%7C3714e6a3cd8a45cbf44308d809a2c2f5%7C3406368982d44e89a3281ab79cc58d9d%7C0%7C1%7C637269941955886174&sdata=zcZrj6An8w6jxyIIbhJ7Z9qGImJtyd15bQovy2TOUDs%3D&reserved=0.

c-okelly commented 4 years ago

I'm not sure you are able to attach files to the actual github issues.

You can either pastebin them or email me at okellyconor at gmail.com

c-okelly commented 4 years ago

Fixed offline