Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MW display variant, part 2 #73

Open
funderburkjim opened this issue Jun 6, 2020 · 9 comments
Open

MW display variant, part 2 #73

funderburkjim opened this issue Jun 6, 2020 · 9 comments

Comments

@funderburkjim
Copy link
Contributor

This note describes a situation similar to that described in #26. I'll describe it in three parts:

  • the original problem
  • the 2015 solution to the original problem
  • the current problem (as yet unsolved).

The problem will be described in relation to the MW headwords 'mEtra' and 'mEtrI'.

First, let's get the underlying scanned images relevant to the example.

Here is the entry for mEtra (note reference to mEtrI also):

image

There is also a separate entry for 'mEtrI':
image

@funderburkjim
Copy link
Contributor Author

The original display problem

This uses an old version of the MW displays, which is still present on the Cologne server: https://www.sanskrit-lexicon.uni-koeln.de/monier1/webtc/indexcaller.php

Here's the original display for mEtra:


(H1) mEtr/a [p= 834,1] [L=168132] | mf(I)n. (fr. mitra , of , which it is also the vfdDi form in comp.) coming from or given by or belonging to a friend , friendly , amicable , benevolent , affectionate , kind Mn. MBh. &c
-- | --
[p= 834,1] [L=168133] | belonging or relating to mitra VS. &c
(H1B) mEtr/a [p= 834,1] [L=168134] | m. " friend of all creatures " , a Brahman who has arrived at the highest state of human perfection L.
(H1B) mEtr/a [p= 834,1] [L=168135] | m. a partic. mixed caste or degraded tribe (the offspring of an out-caste vESya ; cf. mEtreyaka) Mn. x , 23
(H1B) mEtr/a [p= 834,1] [L=168136] | m. (scil. saMDi) an alliance based on good-will Ka1m.
(H1B) mEtr/a [p= 834,1] [L=168137] | m. a friend (= mitra) Pa1n2. 5-4 , 36 Va1rtt. 4 Pat.
(H1B) mEtr/a [p= 834,1] [L=168138] | m. N. of the 12th astrol. yoga Col.
(H1B) mEtr/a [p= 834,1] [L=168139] | m. the anus Kull. on Mn. xii , 72
(H1B) mEtr/a [p= 834,1] [L=168140] | m. a man's N. much used as the N. of an imaginary person in giving examples in gram. and philos. (cf. cEtra and Lat. Caius)
(H1B) mEtr/a [p= 834,1] [L=168141] | m. N. of an Aditya (= mitra) VP.
(H1B) mEtr/a [p= 834,1] [L=168142] | m. of a preceptor Cat.
(H1B) mEtr/a [p= 834,1] [L=168144] | n. (ifc. A) friendship S3Br. &c
(H1B) mEtr/a [p= 834,1] [L=168145] | n. a multitude of friends MBh. ( Ni1lak. )
(H1B) mEtr/a [p= 834,1] [L=168146] | n. = -nakzatra Su1ryas.
(H1B) mEtr/a [p= 834,1] [L=168147] | n. an early morning prayer addressed to mitra BhP.
(H1B) mEtr/a [p= 834,1] [L=168148] | n. evacuation of excrement (presided over by mitra ; mEtraM √1. kf , to void excrement) Mn. iv , 152
(H1B) mEtr/a [p= 834,1] [L=168149] | n. = -sUtra.

And for mEtrI:


(H1B) mEtr/I a [p= 834,1] [L=168143] | f. » below
-- | --
(H2) mEtrI b [p= 834,2] [L=168204] | f. friendship , friendliness , benevolence , good will (one of the 4 perfect states with Buddhists Dharmas. 16 ; cf. MWB. 128) MBh. Ka1v. &c
[p= 834,2] [L=168205] | Benevolence personified (as the daughter of dakza and wife of Darma) BhP.
[p= 834,2] [L=168206] | close contact or union Megh. Vcar.
[p= 834,2] [L=168207] | (ifc.) equality , similarity Prasannar.
[p= 834,2] [L=168208] | N. of the nakzatra anurADA L.
[p= 834,2] [L=168209] | N. of an upanizad (cf. under mEtri).

168143 record for mEtrI does not show up in the display for mEtra: there
is a 'gap'.

@funderburkjim
Copy link
Contributor Author

2015 solution

Sometime before 2015, the MW displays were changed to address the 'gap' problem above. This solution is how the displays work currently:

For 'mEtra':


(H1) [p= 834,1]mEtra mf(I)n. (fr. mitra, of, which it is also the Vṛddhi form in comp.) coming from or given by or belonging to a friend, friendly, amicable, benevolent, affectionate, kind, Mn. ; MBh.  &c. [ID=168132]
--
belonging or relating to Mitra, VS.  &c. &c. [ID=168133]
mEtra m. ‘friend of all creatures’, a Brāhman who has arrived at the highest state of human perfection, L.  [ID=168134]
a partic. mixed caste or degraded tribe (the offspring of an out-caste Vaiśya; cf. mEtreyaka), Mn. x, 23  [ID=168135]
(scil. saMDi) an alliance based on good-will, Kām.  [ID=168136]
a friend (= mitra), Pāṇ. 5-4, 36 , Vārtt. 4, Pat.  [ID=168137]
N. of the 12th astrol. Yoga, Col.  [ID=168138]
the anus, Kull.  on Mn. xii, 72  [ID=168139]
a man's N. much used as the N. of an imaginary person in giving examples in gram. and philos. (cf. cEtra and Lat. Caius) [ID=168140]
N. of an Āditya (= mitra), VP.  [ID=168141]
of a preceptor, Cat.  [ID=168142]
←  (H1B) [p= 834,1] :mEtrI a f. See below [ID=168143]
mEtra n. (ifc. A) friendship, ŚBr.  &c. &c. [ID=168144]
a multitude of friends, MBh.  (Nīlak. ) [ID=168145]
= -nakzatra, Sūryas.  [ID=168146]
an early morning prayer addressed to Mitra, BhP.  [ID=168147]
evacuation of excrement (presided over by Mitra; mEtraM √1. kf, to void excr°), Mn. iv, 152  [ID=168148]
= -sUtra. [ID=168149]

Note that the 'mEtrI' entry now fills the gap mentioned above.

And here is how 'mEtrI' display works:


(H1) [p= 834,1]mEtra mf(I)n. (fr. mitra, of, which it is also the Vṛddhi form in comp.) coming from or given by or belonging to a friend, friendly, amicable, benevolent, affectionate, kind, Mn. ; MBh.  &c. [ID=168132]
--
belonging or relating to Mitra, VS.  &c. &c. [ID=168133]
mEtra m. ‘friend of all creatures’, a Brāhman who has arrived at the highest state of human perfection, L.  [ID=168134]
a partic. mixed caste or degraded tribe (the offspring of an out-caste Vaiśya; cf. mEtreyaka), Mn. x, 23  [ID=168135]
(scil. saMDi) an alliance based on good-will, Kām.  [ID=168136]
a friend (= mitra), Pāṇ. 5-4, 36 , Vārtt. 4, Pat.  [ID=168137]
N. of the 12th astrol. Yoga, Col.  [ID=168138]
the anus, Kull.  on Mn. xii, 72  [ID=168139]
a man's N. much used as the N. of an imaginary person in giving examples in gram. and philos. (cf. cEtra and Lat. Caius) [ID=168140]
N. of an Āditya (= mitra), VP.  [ID=168141]
of a preceptor, Cat.  [ID=168142]
←  (H1B) [p= 834,1] :mEtrI a f. See below [ID=168143]
mEtra n. (ifc. A) friendship, ŚBr.  &c. &c. [ID=168144]
a multitude of friends, MBh.  (Nīlak. ) [ID=168145]
= -nakzatra, Sūryas.  [ID=168146]
an early morning prayer addressed to Mitra, BhP.  [ID=168147]
evacuation of excrement (presided over by Mitra; mEtraM √1. kf, to void excr°), Mn. iv, 152  [ID=168148]
= -sUtra. [ID=168149]
←  (H2) [p= 834,2] :mEtrI b f. friendship, friendliness, benevolence, good will (one of the 4 perfect states with Buddhists, Dharmas. 16 ; cf. MWB. 128 ), MBh. ; Kāv.  &c. [ID=168204]
Benevolence personified (as the daughter of Dakṣa and wife of Dharma), BhP.  [ID=168205]
close contact or union, Megh. ; Vcar.  [ID=168206]
(ifc.) equality, similarity, Prasannar.  [ID=168207]
N. of the Nakṣatra Anurādhā, L.  [ID=168208]
N. of an Upaniṣad (cf. under mEtri). [ID=168209]

Here we get all of the original 'mEtra' record, including the reference to 'mEtrI',
and we also get the additional 'mEtrI' entry.

A UI feature is also present to distinguish the 'mEtrI' part of 'mEtra' - note the shading:
image

@funderburkjim
Copy link
Contributor Author

The remaining concern

In the current display, when we search for 'mEtra', we DO see the reference to mEtrI (it is noted as a feminine form of mEtra, with reference to 'see below').

However, the material under the referenced 'mEtrI' entry is NOT displayed as part of the mEtra display.

@funderburkjim
Copy link
Contributor Author

Proposed change

In such situations, the 'mEtra' display should be the same (except for shading) as the 'mEtrI' display.

@funderburkjim
Copy link
Contributor Author

solution by dal modification

The function get1_mwalt in dal.php. Altering this function could provide the desired behavior. Altering this function would provide the most direct solution.

dal.php occurs in two repositories:

@funderburkjim
Copy link
Contributor Author

keydoc_glob solution

The experimental keydoc_glob databases (in particular for MW) is probably flexible enough. See hwnorm2.

The approach here is to extend the notion of a dictionary document. Currently, a document is defined by a single headword. In our example, we want a document defined by two headwords (mEtra, mEtrI). hwnorm2 has a mechanism for this.

@gasyoun
Copy link
Member

gasyoun commented Jun 8, 2020

A UI feature is also present to distinguish the 'mEtrI' part of 'mEtra' - note the shading

It's the only meaning of shading or there are other as well?

we want a document defined by two headwords (mEtra, mEtrI)

Agree.

@funderburkjim
Copy link
Contributor Author

Just shading.

@gasyoun
Copy link
Member

gasyoun commented Jun 13, 2020

Just shading.

Always means only subentry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants