This is an extension to Lexique Pro, adding a search function and a mobile-friendly layout.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
include
.gitignore
LICENSE
README.md
build.sh
categories.php
index-english.php
index-new.htm
lexicon.php
search.php

README.md

README.md

Easy PHP Lexique Pro Website Extension

About

This is an extension to the Lexique Pro (http://www.lexiquepro.com) web page output, which adds two main functionalities:

    1. Search is enabled while viewing the dictionary online.
    1. Mobile-friendly layout makes it easier to view the dictionary online on a mobile device.

As input it takes the web page output of a Lexique Pro dictionary file. Lexique Pro in turn takes as input a Toolbox Lexicon, which is a simple backslash text file.

You will only need basic knowledge about editing text files and uploading files to a web provider.

It is based on a basic Bootstrap template (http://getbootstrap.com).

It was developed as part of the Mawng website project led by Ruth Singer http://languages-linguistics.unimelb.edu.au/about/staff/dr-ruth-singer.

The Mawng dictionary example can be found at http://www.mawngngaralk.org.au/dictionary. Another example of this extension for the Cheyenne language can be found at http://www.cheyennelanguage.org/dictionary/ (thanks to Wayne Leman for helping to debug the audio links).

Instructions

  • It is assumed that you have a running website with PHP enabled, where you can upload files.
  • First, generate website output from Lexique Pro.
  • You should now have something like the following file structure. This basic structure will be kept and all these files will be used for the website extension, so there is no need to delete or alter any of the files produced by Lexique Pro.
.
+-- audio
+-- categories
|   +-- c001.htm
|   +-- ...
+-- images
|   +-- ...
+-- index-english
|   +-- 01.htm
|   +-- ...
+-- index.htm
+-- javascript
|   +-- ...
+-- lexicon
|   +-- 01.htm
|   +-- ...
+-- pictures
+-- stylesheets
|   +-- lexiquepro.css
+-- title.htm
  • Download all the files for this extension from GitHub.
  • Add all the extension files to the same folder as the Lexique Pro files.
.
+-- build.sh
+-- categories.php
+-- include
|   +-- functions.php
|   +-- head.php
|   +-- nav.php
|   +-- scripts.js
|   +-- style.css
|   +-- variables.php
+-- index-english.php
+-- index-new.htm
+-- lexicon.php
+-- LICENSE
+-- README.md
+-- search.php
  • The next two steps can be done manually or by running the script as described in the next section:
    • Delete the old index.htm file and rename index-new.htm to replace it.
    • Open the variables.php file in the include folder and manually enter the language name, update the language alphabet, English letter categories and category names.
  • Upload files to your website. Make sure that the permissions of the folder are set to 755.
  • You should now be able to access the new mobile friendly version of your Lexique Pro web pages :-)

Running the Build Script (Optional, Mac only)

  • A number of fields need to be filled out in the file variables.php in the include folder.
  • Instead of filling out these fields by hand, you can run the build script to automatically fill these fields.
  • This has only been tested on a Mac running OS X El Capitan 10.11.4.
  • First open a Terminal window.
  • Type in ./build.sh plus the address of your website homepage, e.g. ./build.sh www.myhomepage.com. (Note, you may need to run chmod +x build.sh first if you get a permission denied error.)
  • Check in the include/variables.php that the four variables for the language name, index letters, language alphabet letters and categories have been filled out.

Notes

  • Feedback is welcome (robyn.loughnane@gmail.com).
  • Limited support can be provided.
  • It was tested with PHP version 5.4 and Lexique Pro version 3.6.
  • The Lexique Pro output was generated by using the Web Page Wizard (File > Export as Web Page...), with the options "Framed version" and all pictures and audio selected.
  • It is assumed there is only one finder language, namely English. If there is demand for other langauges, please contact us and we can adapt the extension for them.