sanskrit-lexicon / mw-dev

Development version of MW dictionary, to collaborate with Andhrabharati
1 stars 0 forks source link

getting cdsl displays to work #16

Closed funderburkjim closed 1 year ago

funderburkjim commented 1 year ago

Here are steps to get the cdsl version of displays to work in this repository

This mw-dev repository was created slightly before a revision to some php display code. (primarily this revision was to gain better compatibility with php 8.2/3.) As a preparatory step, the web/webtc and web/webtc1 repositories are updated to this revision.

mkdir web/sqlite
cp -r /c/xampp/htdocs/cologne/mw/web/webtc1 ../web/
cp -r /c/xampp/htdocs/cologne/mw/web/webtc ../web/

And these are pushed to the mw-dev at github.

funderburkjim commented 1 year ago

web/sqlite

The pywork/redo_hw.sh script references script pywork/mwkeys/redo.sh, which in turn (at last line) assumes web/sqlite/ directory.

mkdir web/sqlite

Now the directory exists. Note that .gitignore does not track the files in web/sqlite directory.

funderburkjim commented 1 year ago

now regenerate cdsl displays

These are displays based on orig/mw.txt . It could be useful to have these for comparison to displays based on orig/mw_AB.txt.

To generate these displays, run three scripts from pywork directory.

sh redo_hw.sh
sh redo_xml.sh
sh redo_postxml.sh

Now, the cdsl displays should work at urls such as


http://localhost/sanskrit-lexicon/mw-dev/web/

Next step will be directed towards displays based on mw_AB.txt.

funderburkjim commented 1 year ago

If we want to update mw-dev/orig/mw.txt (to agree with csl-orig/v02/mw/mw.txt), then we should subsequently rerun the above three scripts.