Taronyu's Dictionary in XML?

Started by Kame Ayyo’koti, October 21, 2014, 09:19:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kame Ayyo’koti

Would it be possible to get the data for Taronyu's Dictionary in a format like XML? I'm working on a project for which I need this information, and if I could process an XML file instead of copying-and-pasting from the pdf that would help me immensely.

I don't know how the data for the dictionary is stored, but perhaps it could become something like this:

<dictionary>
  <entry>
    <word>'a'aw</word>
    <pro>[blahblah]</pro>
    <source>PF</source>
    <pos>adj.</pos>
    <def>a few, several</def>
    <note>Used with countable nouns in the singular form</note>
  </entry>
  <entry>
  .
  .
  .
</dictionary>
"Your work is to discover your world, and then with all your heart give yourself to it."

Tìtstewan

#1
Hmm, I didn't find such a file. I found only this created by a user (the HTML):
Quote from: eanayo on November 29, 2010, 02:35:22 PM
English: mobipocket epub HTML
...the lastest file update was in May, 2011

You could try to create a converter that convert the sql file into an xml file.
(Eana Eltu database dump)

Maybe, Tuiq know more about it. :)


E: Oe lu skxawng...pamrel soli pxaya kxeyeytsyìpur a 'ìnglìsìmì...

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

`Eylan Ayfalulukanä


Yawey ngahu!
pamrel si ro [email protected]

Kame Ayyo’koti

Quote from: Tìtstewan on October 22, 2014, 01:14:33 AM
You coud try fo create a converter that converts the sql file into an xml flile.
(Eana Eltu database dump)

Oh, this is exactly what I need! I can use SQL tables for this. :) Irayo ma Tìtstewan!
"Your work is to discover your world, and then with all your heart give yourself to it."

Toruk Makto

Note that the database is not static. As new vocabulary is added or existing entries are corrected, the sql will be updated. This can be as often as several times a week.

-M.

Lì'fyari leNa'vi 'Rrtamì, vay set 'almong a fra'u zera'u ta ngrrpongu
Na'vi Dictionary: http://files.learnnavi.org/dicts/NaviDictionary.pdf

Tìtstewan

Quote from: Kame Ayyo'koti on October 22, 2014, 07:54:53 AM
Quote from: Tìtstewan on October 22, 2014, 01:14:33 AM
You coud try fo create a converter that converts the sql file into an xml flile.
(Eana Eltu database dump)

Oh, this is exactly what I need! I can use SQL tables for this. :) Irayo ma Tìtstewan!
Nìprrte'! :)

As Toruk Makto has mentioned, keep in mind that the sql file will updated and found errors will be fixed.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

#6
Quote from: `Eylan Ayfalulukanä on October 22, 2014, 02:12:46 AM
So might Tirea Aean.

;)

Actually, indeed I /have/ seen such an XML file. One was created for that old project that SirHaxalot made for Windows/Mac/Linux called Aylì'uä Fwewyu. Too bad that project no longer gets updates.

Looks like you found what you needed, and I'm in late to say all the things that the others have said before me. My Python program vrrtepcli only uses .txt dumps because I had no MySQL access on the server I used for updates and I didn't feel like messing with MySQL queries and commands at the time.

EDIT: Oh Now I remember the main reason why no SQL tables for vrrtepcli: I didn't want the user to be required to have MySQL installed for it to run on their system.

Kame Ayyo’koti

Quote from: Tirea Aean on October 22, 2014, 09:25:09 PM
Actually, indeed I /have/ seen such an XML file.
I set up a webserver on a VM in order to load and get the data from the SQL dump. Probably overkill, but I couldn't figure out any other way to do it.

I exported the data to spreadsheet with phpmyadmin. There were other export options, including XML and even CSV, so yeah XML is definitely possible.
"Your work is to discover your world, and then with all your heart give yourself to it."

Tuiq

Most of the projects that relied on EE did exactly this: They had some sort of service which imported the file once a day, put it into a database and then converted it to a proprietary format that would suffice their needs (SQLite, JSON, binary).

I have no real intents to create additional data dumpers for the current iteration of EE.
Eana Eltu: PDF/TSV/jMemorize

Tìtstewan

*Massively late*

Well, since I have written a PHP script that generate some nice outputs, I just remebered me this thread... Anyways, I've just generated an XML file of the lastest dictionary version. (see attachment)
It could be useful for those, who want it. :)

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-