rubengees / Vocabletrainer

A free App to learn Vocables
24 stars 10 forks source link

Import xml #7

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi, thanks for the great app. After downloading the app I tried to import my vocab from dict.cc. I was kind of complex. here is a guide you may add it to the help or wiki :)

° substitute spechial chars "&", "<", ">" °. table 5 colums

<vocable><first_meaning><value>
language1
</value></first_meaning><second_meaning><value>
language2
</value></second_meaning></vocable>

° paste it in an editor (textpad, notepad++)

<?xml version='1.0' encoding='UTF-16' standalone='yes' ?>
<units>
  <unit>
    <title>###YOUR UNITNAME###</title>
        <vocables>
###past table###
    </vocables>
  </unit>
</units>

° save it as myvocabfile.xml encoding UTF-8 and without BOM ° Import it in the app

it was very confusing to save the file as utf-8 while the xml-tag says "I'm UTF-16" :D What about an Import feature from Dict.cc to skip this mess ? Have a nice day

rubengees commented 8 years ago

Thank you for this guide! What do you mean by "Import 5 tables"? I already thought about implementing an import function, but they don't allow you to do that. (At least the last time I checked)

ghost commented 8 years ago

Hi, I made with an excel table with 5 colums. In fact I working on a Javatool to automate all these steps. i'll upload it if it's useable. I'm not used to app-development so if you like you can add it to the app. Ok that's sad dictcc is a cool dictionary. But an open Api would be nice. On Jan 6, 2016 12:47, "Ruben Gees" notifications@github.com wrote:

Thank you for this guide! What do you mean by "Import 5 tables"? I already thought about implementing an import function, but they don't allow you to do that. (At least the last time I checked)

— Reply to this email directly or view it on GitHub https://github.com/rubengees/Vocabletrainer/issues/7#issuecomment-169306609 .

rubengees commented 8 years ago

Cool! I will have a look if they allow that now.

ghost commented 8 years ago

https://github.com/c456fa2/dict2vc take a look, if you miss any functionality just ask.

rubengees commented 8 years ago

I finally get on with the project, but I decided to rewrite most of the code. It may take some time until I get to this. But thank you very much for this contribution!