Flugblatter / flugblaetter_static

Test repo for building a local dev-version of a static page to implement typesense searche with the data extracted so far.
https://acdh-ch.pages.oeaw.ac.at/todesurteile/flugblaetter-static-page/
Other
0 stars 0 forks source link

@rendition #45

Closed cfhaak closed 1 month ago

cfhaak commented 1 month ago

@rendition can hold the following vals/combinations

#aq
#aq #i
#c
#et
#et #aq #i
#g
#hr
#il
#in
#ot
#star
#sup
cfhaak commented 1 month ago

from odd:

 <classSpec type="atts" module="core" ident="att.global.rendition" mode="change">
               <attList>
                  <attDef ident="rendition" mode="replace">
                     <valList type="closed">
                        <valItem ident="#c">
                           <desc>zentriert</desc>
                        </valItem>
                        <valItem ident="#aq">
                           <desc>Antiqua-Schrift</desc>
                        </valItem>
                        <valItem ident="#in">
                           <desc>Erste Buchstabe ist eine inititale</desc>
                        </valItem>
                        <valItem ident="#i">
                           <desc>Kursivdruck</desc>
                        </valItem>
                        <valItem ident="#g">
                           <desc>Gesperrt</desc>
                        </valItem>
                        <valItem ident="#et">
                           <desc>Einzug</desc>
                        </valItem>
                        <valItem ident="#ot">
                           <desc>hängender Einzug</desc>
                        </valItem>
                        <valItem ident="#sup">
                           <desc>hochgestellt</desc>
                        </valItem>
                        <valItem ident="#il">
                           <desc>Element innerhalb einer Zeile</desc>
                        </valItem>
                        <valItem ident="#hr">
                           <desc>Horizontale Linie</desc>
                        </valItem>
                     </valList>
                  </attDef>
                  <attDef ident="rend" mode="delete"/>
                  <attDef ident="style" mode="delete"/>
               </attList>
            </classSpec>
cfhaak commented 1 month ago

elements containing rendition:

cfhaak commented 1 month ago

yea, that will be fun

cfhaak commented 1 month ago

there can of cause be multiple values …

cfhaak commented 1 month ago

So write a general template, taking rendition as input returning a string which then is added to class of the element. call the template via name from all elements above