handle footnotes correctly, hide internal notes

This commit is contained in:
Oleg Belyaev 2025-03-30 20:01:15 +03:00
parent 0e7fb74acf
commit 9151b9eb32
4 changed files with 59 additions and 12 deletions

View file

@ -16,8 +16,8 @@ declare %rest:path("{$lang}/entries/{$id}")
%output:html-version('5')
function entries:entry($lang as xs:string, $id as xs:string, $query as xs:string?) {
if (count($query) = 0) then
(: doc(`abaevdict_{$lang}/html/{$id}.html`) :)
abv-m:make-html(doc(`abaevdict_{$lang}/xml/{$id}.xml`),$lang)
doc(`abaevdict_{$lang}/html/{$id}.html`)
(: abv-m:make-html(doc(`abaevdict_{$lang}/xml/{$id}.xml`),$lang) :)
else
let $xml := doc(`abaevdict_{$lang}/xml/{$id}.xml`)/tei:entry[1]
let $marked := ft:mark(

View file

@ -3,7 +3,10 @@ declare namespace abv = "http://ossetic-studies.org/ns/abaevdict";
import module namespace abv-m = 'http://ossetic-studies.org/ns/abaevdict-mod' at './abv-mod.xqm';
abv-m:make-html(doc('abaevdict_en/xml/entry_a.xml'),'en')
abv-m:make-html(doc('abaevdict_en/xml/entry_abūzyn.xml'),'en')
(: for $node in collection('abaevdict')//tei:ref/@target[.='#ref_Walde—Pok.']
return replace value of node $node with '#ref_Walde-Pok.' :)
(: collection(`abaevdict_en/html`)/article[@id='entry_az'] :)
(: html:doc('abaevdict_en/html/entry_az.html') :)