suttacentral / sc-data

Content for SuttaCentral, including texts both legacy and bilara, parallels, structure, and other metadata.
43 stars 39 forks source link

add dpd dic + script #280

Closed cittadhammo closed 7 months ago

cittadhammo commented 7 months ago

I am not sure if this is a good method, it has to be run manually if the dpd dictionaries are updated. Also, the 3 files of the dpd are not all proper dictionaries. They work together according to the Readme.md in the new dpd folder at root level.

thesunshade commented 7 months ago

Yes, the fact that the DPD is in constant flux will be an issue no matter what. Triggering the rebuild each week when the site is rebuilt seems excessive, but having to remember to manually rebuild might not be great either.

BTW, do you know how to make use of this sc-data branch in a local build? I can figure out how to run your suttacentral/suttacentral but not this one.

cittadhammo commented 7 months ago

in the main readme

Changing the branch(s) the server, or staging server, uses

cd /opt/suttacentral
git checkout <code-branch>
cd server/sc-data
git checkout <data-branch>

Then run the commands for updating, probably including the make delete-database step.

cittadhammo commented 7 months ago

I thought it would be better to precombine the files and create a "normal" dictionary. This is what I have done in the last commit.

ihongda commented 7 months ago

Thanks, Ven. @cittadhammo 🙏🏼 I'll merge and test this PR, and then push to Staging to test.