sanskrit-lexicon / csl-corrections

Replacement for sanskrit-lexicon/CORRECTIONS. User corrections to sanskrit-lexicon/csl-orig
GNU General Public License v3.0
0 stars 0 forks source link

Correction submission to allow HW and L parameters #86

Open drdhaval2785 opened 10 months ago

drdhaval2785 commented 10 months ago

Currently the user has to input these items manually. Only dict parameters are passed. If we add these parameters, the form will be autopopulated for headword snd lnum. Only old and new changes will have to be provided by the user.

https://www.sanskrit-lexicon.uni-koeln.de/scans/csl-corrections/app/correction_form.php?dict=MW&lnum=300&hw=aMSa

Something of this sort.

The use case I have in mind is that the users of downstream applications like vidyut, sanskritkosha.com, stardict files etc will have a link to submit corrections for given headword.

funderburkjim commented 10 months ago

This looks plausible. 'user=xyz' might be another parameter.

Security is important. e.g. in turning $_GET['lnum'] into $lnum.

You might consider making separate correction_form_downstream.php program (and companion correction_form_response_downstream.php). This would allow you to experiment with this idea.

There might also be useful additional functionalities and safeguards built into c_f_ds and c_f_r_ds. e.g. c_f_ds might require an additional 'dsapp' parameter (supplied by the app), which would be checked by c_f_r_ds to be a known downstream app.

TempaYeshe commented 7 months ago

That would be great! Right now the current solution to submit corrections for stardict (etc.) users is to make a PR request, i.e. something the vast majority of people on earth cannot do.