[Pas2js] how to store long data more than 1 mb of Ascii text
Jean SUZINEAU
Jean.Suzineau at wanadoo.fr
Thu Sep 17 00:40:18 CEST 2020
I imagine the best would be to use a json file, which is basically a
text file storing the data of a javascript object.
At first you'll need to write a program to convert the pspad dictionnary
to json. (Check the licence of pspad dictionnary to avoid copyright
problems).
Then you can easily put the json file on your server and load it from
your pas2js file.
I think you'll need to compute a good index file too, to reduce the
search time.
But recognising a word may be tricky.
May be you should dig in the direction of the integrated spellcheckers:
https://www.w3schools.com/tags/att_global_spellcheck.asp
It seems the feature is integrated in HTML/Javascript, may be you can
directly get it in pas2js.
More information about the Pas2js
mailing list