sanskrit-lexicon / LRV

Convert the data of L R Vaidya Sanskrit-English dictionary to CDSL format
0 stars 0 forks source link

Add to csl-orig repository #15

Closed drdhaval2785 closed 1 year ago

drdhaval2785 commented 2 years ago

Majority of headword errors which could be caught by program have been handled. Time to merge the data in the csl-orig repository and make it part of CDSL workflow.

drdhaval2785 commented 2 years ago

LRV has been added to csl-orig repository and some tweakings have been made in csl-pywork and csl-websanlexicon repository to allow generation of LRV for local host. Works well on my localhost.

Image files are not uploaded yet. Line breaks before new meaning is not inserted yet.

Otherwise looks good to me.

@funderburkjim, kindly check whether you can make it work on localhost?

gasyoun commented 2 years ago

Majority of headword errors which could be caught by program have been handled.

Thanks

drdhaval2785 commented 2 years ago

Alternate headwords (parsed from brackets) are now added in csl-orig repository.

drdhaval2785 commented 2 years ago

Feminine forms are also added to csl-orig repository. This placeholder may be treated to be over.

funderburkjim commented 2 years ago

local installation works

funderburkjim commented 2 years ago

basic display works

image

funderburkjim commented 2 years ago

simple-search dict problem

image The menu for dictionaries doesn't have lrv yet (that's why with partial name 'lr', no dictionary shown.

funderburkjim commented 2 years ago

simple-search, input=slp1 works

The 'suggestion' box works: image

The retrieval works: image

funderburkjim commented 2 years ago

simple search, input='simple'

This does not work:

image

funderburkjim commented 2 years ago

servepdf does not work

image

I'll

funderburkjim commented 2 years ago

the input=simple problem

The 'input=simple' problem is probably solved by regenerating hwnorm1c.sqlite. This binary file is in csl-apidev/simple-search/hwnorm1/

It's regeneration is awkward, and not fully automated.

@drdhaval2785 I'll let you work through this in a separate issue. Start by looking at csl-apidev/simple-search/readme.org, section 'ngram and hwnorm1c'. This in turn directs you to the 'hwnorm1' repository .... Somewhere (probably in hwnorm1/sanhw1) 'lrv' will need to be added to list of dictionaries.

gasyoun commented 2 years ago

Somewhere (probably in hwnorm1/sanhw1) 'lrv' will need to be added to list of dictionaries.

Yeah, @drdhaval2785 wants to go through it all ))

drdhaval2785 commented 2 years ago

sanhw1.txt and hwnorm1c.txt and hwnorm1c.sqlite have been updated. Maybe @funderburkjim may give it a try and install it in Cologne server to see if it works.

funderburkjim commented 2 years ago

lrv-simple now ok

Have installed csl-apidev repository at cologne. Tried simple-search on LRV. Looks fine to me:

image

drdhaval2785 commented 1 year ago

@funderburkjim Would you please add this LRV dictionary to CDS?

funderburkjim commented 1 year ago

additional steps

csl-homepage repository updated for LRV, pushed to github, pulled at cologne. Similarly, csl-doc repository.

@drdhaval2785 I think this completes the installation of LRV. Will let you close issue.

funderburkjim commented 1 year ago

Added comment in newsletter april2023.md for lrv.

Found (from the april2022.md file) reference to https://github.com/hrishikeshrt/PyCDSL. Looks like a major project.
@drdhaval2785 Are you working with Hrishikesh Terdalkar? Will he need to update something based on new LRV dictionary?

drdhaval2785 commented 1 year ago

I will intimate Hrishikesh about addition of new dictionaries. He may have to update the documentation about dictionary codes.

drdhaval2785 commented 1 year ago

I checked with the old version of pyCDSL installed in my computer. He will not have to do anything. The program is structured to download data based on CDSL dictionary codes themselves.

I typed ‘cdsl -d LRV -s kamala’

The LRV data was downloaded from web folder of Cologne and results were displayed.

drdhaval2785 commented 1 year ago

@funderburkjim PyCDSL is a good tool for two reasons.

  1. It helps nerds who do not want to come out of their terminals for finding dictionary meanings.
  2. It provides good python wrapper around dictionary data. Coders can use that for developing new python applications using Cologne data.
funderburkjim commented 1 year ago

pyCDSL is assuming some CDSL API -- There should be an 'official' location for the details of this api.

This official location would be beneficial

gasyoun commented 1 year ago

This official location would be beneficial

Right, you have a clue where it should be located?

funderburkjim commented 1 year ago

where should CDSL api documentation be located?

Probably a new repository sanskrit-lexicon/csl-api.

I would say the current api conventions are of an informal nature.

A more formal (official) api would likely be modeled after the JSON-based approach used by Github.

The nearest first step towards a more formal api may be to construct the csl-api repository and gather, in an issue (or issues), all the current parameterized urls of cdsl.