sanskrit-lexicon / COLOGNE

Development of http://www.sanskrit-lexicon.uni-koeln.de/
18 stars 3 forks source link

Quick Quote Bibliographical Reference JS #341

Open gasyoun opened 3 years ago

gasyoun commented 3 years ago

If I wan to quote Cologne, I have to do at least 3 clicks (click where from, drag, until where)

Let's take agni from MW in https://sanskrit-lexicon.uni-koeln.de/simple/

(H1) [Printed book page 5,1]agni m. (√ag, Uṇ. ) fire, sacrificial fire (of three kinds, Gārhapatya, Āhavanīya, and Dakṣiṇa) [ID=890]
--
the number three, Sūryas.  [ID=891]
the god of fire, the fire of the stomach, digestive faculty, gastric fluid [ID=892]
bile, L.  [ID=893]
gold, L.  [ID=894]
N. of various plants Semecarpus Anacardium, Suśr. , Plumbago Zeylanica and Rosea, Citrus Acida [ID=895]
mystical substitute for the letter r [ID=896]
in the Kātantra grammar N. of noun-stems ending in i and u [ID=897]
[Printed book page 1309,1](also) = next, ĀpŚr.  [ID=897.05]
[Printed book page 5,1]agni [cf. Lat. igni-s; Lith. ugni-s; Slav. ognj]. [ID=897.1]

There is a JS script https://github.com/gasyoun/ClickToQuote that can be used to generate a quote with bibliographical reference in a single click.

bile

Mode 1 Click on an icon "cite" above and get all the article + MONIER-WILLIAMS, M. (1872). A Sanskṛit-English dictionary etymologically and philologically arranged with special reference to Greek, Latin, Gothic, German, Anglo-Saxon, and other cognate Indo-European languages. Oxford, The Clarendon Press.

like https://www.worldcat.org/title/sanskrit-english-dictionary-etymologically-and-philologically-arranged-with-special-reference-to-greek-latin-gothic-german-anglo-saxon-and-other-cognate-indo-european-languages/oclc/3592375&referer=brief_results has

cite

Mode 2 Click on a single meaning and quote only it.

@funderburkjim and @drdhaval2785 there is Alexander, who has made it possible for my Parallel Corpus. What do you think of it?

gasyoun commented 3 years ago

@funderburkjim would you mind if I ask to add such a functionality to @alex-bukach ?

See the Copy button code

        <div class="input-group-append" aria-live="assertive">
            <button class="btn copy-button d-flex align-items-center" data-copy-from="checksum" type="button"><span class="ms-Icon ms-Icon-action ms-Icon--Copy"></span><span>Copy</span></button>
        </div>

https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-desktop-5.0.5-windows-x64-installer

copy

funderburkjim commented 3 years ago

I see no reason not to try it.

Looks like you want to add a button and some Javascript to simple-search.

Is there a url where the click to quote functionality can be seen in action?

What is the dot-net reference about?

funderburkjim commented 3 years ago

https://github.com/sanskrit-lexicon/csl-apidev/tree/master/simple-search/v1.1a

has the latest non-production code.

We can experiment with it.

https://sanskrit-lexicon.uni-koeln.de/simple1.1a/

accesses this experimental code.

funderburkjim commented 3 years ago

The entry point of the code is list-0.2s_rw.php, and this is where the UI mostly lives.

gasyoun commented 3 years ago

I see no reason not to try it.

Great.

Is there a url where the click to quote functionality can be seen in action?

Yes, the copy button at https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-desktop-5.0.5-windows-x64-installer Never seen inside a dictionary.

What is the dot-net reference about?

Only a copy button UI sample.

The entry point of the code is list-0.2s_rw.php

Let us have some fun, thanks

https://github.com/sanskrit-lexicon/csl-apidev/blob/master/simple-search/v1.1a/list-0.2s_rw.php

funderburkjim commented 3 years ago

copy button UI sample

Is this Github example a similar idea?

image

gasyoun commented 3 years ago

Is this Github example a similar idea?

Yes, it's identical. And I want such functionality at Cologne. For every line and all text as once. Two modes.