faustedition / faust-gen-html

Pipelines to generate HTML for the Faust edition's reading texts and prints.
1 stars 4 forks source link

Enable search for paralipomena numbers #653

Closed gerritbruening closed 3 years ago

gerritbruening commented 5 years ago

Paralipomena numbers may not be searched for now. P178 yields no result, the mere number 178 leads to verse 178. Is it feasible to integrate milestone/@n in search, and would that be part of the autocompletion issue?

thvitt commented 5 years ago

it should be possible to implement a 'quick jump' from the pattern p<number> or P<number> to the corresponding <milestone unit="paralipomenon"/>

gerritbruening commented 5 years ago

OK, good to hear that. Note that P126 may lead to search results with witness idnos (and rightly so). In such cases it would be great to have both witness idno and paralipomenon number as search results.

thvitt commented 5 years ago

The idea of the quick jump is that it is quick and jumps directly to the target in the edition, without intermediate search page. This means that we cannot have to many cascading searches here without making search even slower.

So either entering P126 in the search bar always jumps to Paralipomenon 126, or there is no direct jumping and we simply integrate paralipomena into the sigil search part of the search page

thvitt commented 5 years ago

we’ll need an advanced search page anyway, I guess. It is also not possible to search for numbers between 1 and 12111 currently …

gerritbruening commented 5 years ago

So either entering P126 in the search bar always jumps to Paralipomenon 126

Problem is that one P number may correspond to two instantiations of this Text, for example, P nr 68, 82 etc. appear twice in different witnesses.

gerritbruening commented 5 years ago

Wenn es Nummer nur einmal gibt, Sprung direkt in den Text. Wenn es Nummer mehrfach gibt, Spring an die entsprechende Stelle in der Tabelle. (@gerritbruening und @thvitt mdl.)