From f4f9f85a308f48a66cad19a3bff36471162cd88a Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 8 Jun 2016 13:43:58 -0600 Subject: [PATCH] Trying to add PapaParse for importing CSV files of words, but for some reason it's not recognizing the Papa object. --- IMPORT.form | 20 + PRIVACY.md | 2 +- README.md | 1 + import_test.csv | 4 + index.php | 9 +- js/dictionaryBuilder.js | 34 + js/min/papaparse.js | 6 + js/papaparse.js | 1423 +++++++++++++++++++++++++++++++++++++++ js/ui.js | 1 + 9 files changed, 1495 insertions(+), 5 deletions(-) create mode 100644 IMPORT.form create mode 100644 import_test.csv create mode 100644 js/min/papaparse.js create mode 100644 js/papaparse.js diff --git a/IMPORT.form b/IMPORT.form new file mode 100644 index 0000000..0865165 --- /dev/null +++ b/IMPORT.form @@ -0,0 +1,20 @@ +
+

Import

+
+ +

This process imports words in a CSV format to the currently loaded dictionary. (You can save an Excel file as a CSV)

+

The CSV file must have a header line in this order: word,pronunciation,part of speech,equivalent,explanation. Your words must be formatted in the appropriate order.

+

Make sure the parts of speech for each word correspond to your dictionary's parts of speech or else it will be lost if you edit the word. If a part of speech is left blank, you can find the blanks using the "Blank" option in the Filter.

+

At a minimum, all of your words must have the "word" field and either the "equivalent" or "explanation" field filled out in the CSV file.

+ + + +
+
diff --git a/PRIVACY.md b/PRIVACY.md index 023dcb1..4781b29 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -42,7 +42,7 @@ Some of the ads may be served by Google. Google's use of the DART cookie enables ### Changes to this privacy policy Lexiconga Dictionary Builder has the discretion to update this privacy policy at any time. When we do, we will post a notification on the main page of our Site. We encourage Users to frequently check this page for any changes to stay informed about how we are helping to protect the personal information we collect. You acknowledge and agree that it is your responsibility to review this privacy policy periodically and become aware of modifications. -###Your acceptance of these terms +### Your acceptance of these terms By using this Site, you signify your acceptance of this policy. If you do not agree to this policy, please do not use our Site. Your continued use of the Site following the posting of changes to this policy will be deemed your acceptance of those changes. This policy was originally generated using PrivacyPolicies.com and modified for our use. ### Contacting us diff --git a/README.md b/README.md index dcff8d1..e09956e 100644 --- a/README.md +++ b/README.md @@ -188,4 +188,5 @@ I hope you enjoy Lexiconga and that it helps you build some awesome languages. ## Libraries Used * [Marked.js](https://github.com/chjj/marked) by Christopher Jeffrey (JJ) (a.k.a. chjj) * [Defiant.js](http://defiantjs.com) by Hakan Bilgin (a.k.a. hbi99) +* [Papa Parse](http://papaparse.com/) by Matt Holt (a.k.a. mholt) * [removeDiacritics.js](http://stackoverflow.com/a/18391901/3508346) by [rdllopes](http://meta.stackoverflow.com/users/1879686/rdllopes) diff --git a/import_test.csv b/import_test.csv new file mode 100644 index 0000000..3f809c9 --- /dev/null +++ b/import_test.csv @@ -0,0 +1,4 @@ +word,pronunciation,part of speech,equivalent,explanation +"test","[tehst]","noun","an example, per se!","no explanation required." +"test","[tehst]","verb","to test, i.e. to try to see if something works","no explanation required." +"tested","[tehst-ehd]","adjective","of or relating to an example","no explanation required." diff --git a/index.php b/index.php index c299847..e8069d2 100644 --- a/index.php +++ b/index.php @@ -256,9 +256,7 @@ if ($is_viewing) { 0) { //If logged in, show the log out button. ?> @@ -353,6 +351,8 @@ if ($is_viewing) { + + @@ -367,7 +367,7 @@ if ($is_viewing) {