funderburkjim / kosha-dev

Develop xml and html for anekArthaka and samAnArthaka Sanskrit dictionaries
1 stars 1 forks source link

A useful grep tool to identify which lines to modify #26

Closed drdhaval2785 closed 7 months ago

drdhaval2785 commented 7 months ago

As my new dictionaries APCH and ACSJ have the same type of input data as that of ABCH, What I practically want to do is to change the lines which have 'abch' or 'ABCH' in the csl-pywork or csl-websanlexicon, csl-homepage, csl-doc, csl-apidev and hwnorm1 dictionaries.

grep -r -n abch . will recursively search for abch in the required directory and show the matching line numbers too.

e.g. a run on the sanskrit-lexicon/csl-pywork repository showed the following

./v02/makotemplates/pywork/sqlite/sqlite.py:27:%if dictlo in ['abch']:
./v02/makotemplates/pywork/sqlite/sqlite.py:75:%if dictlo in ['abch']:
./v02/makotemplates/pywork/sqlite/sqlite.py:138:%if dictlo in ['abch']:
./v02/makotemplates/pywork/hwparse.py:44:%if dictlo not in ['abch']:
./v02/makotemplates/pywork/one.dtd:35:%if dictlo in ['abch']:
./v02/makotemplates/pywork/one.dtd:63:%if dictlo in ['abch']:
./v02/makotemplates/pywork/make_xml.py:51:%if dictlo in ['pw','pwg','ae','gst','ieg','mwe','pgn','pui','vei','mw72','snp','bor','mw','inm','bop','abch']:
./v02/makotemplates/pywork/make_xml.py:444:%if dictlo in ['abch']:
./v02/makotemplates/pywork/make_xml.py:729:%elif dictlo in ['abch']:
./v02/makotemplates/pywork/make_xml.py:744: # for koshas like abch
./v02/makotemplates/pywork/make_xml.py:1074:%if dictlo in ['abch']:
./v02/makotemplates/pywork/make_xml.py:1076: # used for abch
./v02/makotemplates/pywork/make_xml.py:1109:%if dictlo in ['abch']:
./v02/makotemplates/pywork/make_xml.py:1140:%elif dictlo in ['abch']:
./v02/makotemplates/pywork/make_xml.py:1141:  # using abch form
./v02/makotemplates/pywork/hw.py:25:%elif dictlo in ['abch']:
./v02/makotemplates/pywork/hw.py:49:%if dictlo not in ['abch']:
./v02/makotemplates/pywork/hw.py:110:%if dictlo in ['abch']:
./v02/makotemplates/pywork/hw.py:120:%if dictlo in ['abch']:
./v02/makotemplates/pywork/hw.py:256: """ write different format for koshas (abch)
./v02/makotemplates/pywork/hw.py:333:% if dictlo in ['abch']:
./v02/makotemplates/pywork/hw.py:334: # abch is kosha. No 'extra headwords
./v02/redo_xampp_all.sh:41:sh generate_dict.sh abch  ../../abch
./v02/dictparms.py:5:microversion = '.002'  # abch 11-19-2023
./v02/dictparms.py:248: "abch": {
./v02/dictparms.py:250:  "dictlo":"abch",
./v02/redo_cologne_all.sh:41:sh generate_dict.sh abch  ../../ABCHScan/2023/
drdhaval2785 commented 7 months ago

I can put 'acph' and 'acsj' in these places to make the code compatible with these two new dictionaries.

drdhaval2785 commented 7 months ago

Documented the use. Closing now.