Mercurial > hg > Aquinas
view summa/concord @ 123:a632dda13c9b
complete
| author | ht |
|---|---|
| date | Sat, 30 Oct 2021 17:57:13 +0000 |
| parents | 500614f45701 |
| children |
line wrap: on
line source
#!/bin/sh if [ "$1" = "-b" ] then shift bi=1 tb="Bilingual c" ff=bilingual/FP_ii.html pat='x:div[@class="bilingual"][.//x:p[.~"'$1'"]]' else bi=0 tb="C" ff=latin/sth????.html pat='x:p[.~"'$1'"]' fi egrep -l "\b$1" /home/ht/Documents/Aquinas/summa/$ff | tr '\012' '\000' | \ xargs -0 lxgrep -xmlns:x="http://www.w3.org/1999/xhtml" -w x:div $pat | \ sed "s/\(\b$1\w*\)/<b>\1<\/b>/; s/<x:/</g; s/<\/x:/<\//g; s/xmlns:x/xmlns/; 1i \ <html xmlns='http://www.w3.org/1999/xhtml'>\ <head>\ <title>${tb}oncordance for $1</title>\ <style>\ h2, h3, h4 {margin-bottom: 0px; clear: both}\ .bilingual {clear: both; margin-top: .5em}\ div.eng {width: 45%; float: left}\ div.lat {width: 45%; float: right}\ </style>\ </head>\ <body>\ " echo "</body></html>"
