humdrum-tools / verovio-humdrum-viewer

Verovio Humdrum Viewer
http://verovio.humdrum.org
37 stars 9 forks source link

Styling text attached to time signature #806

Open craigsapp opened 1 year ago

craigsapp commented 1 year ago

By default, text attached to time signatures is rendered in bold font. When the font style is different, apply the desired font:

Screen Shot 2023-04-06 at 05 00 37
**kern  **kern  **dynam
!!LO:TX:a:B:t=Leggiermente
!!LO:TX:a:i:t=Variation II
*M3/4   *M3/4   *
16EELL  16r .
16r (16BLL  p
16r 16g#JJ) .
(16EJJ  16r .
16G#LL) 16r .
16r (16eLL  .
16r 16BJJ)  .
(16GG#JJ    16r .
16AALL) 16r .
16r (16c#LL .
16r 16f#JJ) .
(16AJJ  16r .
=37 =37 =37
Click to view target MEI conversion ```xml </titleStmt> <pubStmt /> </fileDesc> <encodingDesc> <appInfo> <application isodate="2023-04-06T05:01:50" version="3.16.0-dev-0b9dff2"> <name>Verovio</name> <p>Transcoded from Humdrum</p> </application> </appInfo> </encodingDesc> <workList> <work> <title /> </work> </workList> </meiHead> <music> <body> <mdiv xml:id="miht80i"> <score xml:id="su1sk80"> <scoreDef xml:id="sjbkufb"> <staffGrp xml:id="shaclye" bar.thru="true" symbol="brace"> <staffDef xml:id="staffdef-L1F2" n="1" lines="5"> <clef xml:id="cjyu5qh" shape="G" line="2" /> <meterSig xml:id="metersig-L4F2" count="3" unit="4" /> </staffDef> <staffDef xml:id="staffdef-L1F1" n="2" lines="5"> <clef xml:id="c88scvd" shape="F" line="4" /> <meterSig xml:id="metersig-L4F1" count="3" unit="4" /> </staffDef> </staffGrp> </scoreDef> <section xml:id="section-L1F1"> <measure xml:id="measure-L1"> <staff xml:id="staff-L1F2" n="1"> <layer xml:id="layer-L1F2N1" n="1"> <rest xml:id="rest-L5F2" dur="16" /> <beam xml:id="beam-L6F2-L7F2"> <note xml:id="note-L6F2" dur="16" oct="3" pname="b" accid.ges="n" /> <note xml:id="note-L7F2" dur="16" oct="4" pname="g" accid="s" /> </beam> <rest xml:id="rest-L8F2" dur="16" /> <rest xml:id="rest-L9F2" dur="16" /> <beam xml:id="beam-L10F2-L11F2"> <note xml:id="note-L10F2" dur="16" oct="4" pname="e" accid.ges="n" /> <note xml:id="note-L11F2" dur="16" oct="3" pname="b" accid.ges="n" /> </beam> <rest xml:id="rest-L12F2" dur="16" /> <rest xml:id="rest-L13F2" dur="16" /> <beam xml:id="beam-L14F2-L15F2"> <note xml:id="note-L14F2" dur="16" oct="4" pname="c" accid="s" /> <note xml:id="note-L15F2" dur="16" oct="4" pname="f" accid="s" /> </beam> <rest xml:id="rest-L16F2" dur="16" /> </layer> </staff> <staff xml:id="staff-L1F1" n="2"> <layer xml:id="layer-L1F1N1" n="1"> <beam xml:id="beam-L5F1-L8F1"> <note xml:id="note-L5F1" dur="16" oct="2" pname="e" accid.ges="n" /> <rest xml:id="rest-L6F1" dur="16" /> <rest xml:id="rest-L7F1" dur="16" /> <note xml:id="note-L8F1" dur="16" oct="3" pname="e" accid.ges="n" /> </beam> <beam xml:id="beam-L9F1-L12F1"> <note xml:id="note-L9F1" dur="16" oct="3" pname="g" accid="s" /> <rest xml:id="rest-L10F1" dur="16" /> <rest xml:id="rest-L11F1" dur="16" /> <note xml:id="note-L12F1" dur="16" oct="2" pname="g" accid="s" /> </beam> <note xml:id="note-L13F1" dur="16" oct="2" pname="a" accid.ges="n" /> <rest xml:id="rest-L14F1" dur="16" /> <rest xml:id="rest-L15F1" dur="16" /> <note xml:id="note-L16F1" dur="16" oct="3" pname="a" accid.ges="n" /> </layer> </staff> <tempo xml:id="tempo-L4F2" place="above" staff="1" tstamp="1.000000">Leggiermente</tempo> <tempo xml:id="tempo-L4F2" place="above" staff="1" tstamp="1.000000"><rend fontweight="normal" fontstyle="italic">Variation II</rend></tempo> <dynam xml:id="dynam-L6F3" staff="1" tstamp="1.250000" vgrp="100">p</dynam> <slur xml:id="slur-L6F2-L7F2" staff="1" startid="#note-L6F2" endid="#note-L7F2" /> <slur xml:id="slur-L10F2-L11F2" staff="1" startid="#note-L10F2" endid="#note-L11F2" /> <slur xml:id="slur-L14F2-L15F2" staff="1" startid="#note-L14F2" endid="#note-L15F2" /> <slur xml:id="slur-L8F1-L9F1" staff="2" startid="#note-L8F1" endid="#note-L9F1" /> <slur xml:id="slur-L12F1-L13F1" staff="2" startid="#note-L12F1" endid="#note-L13F1" /> <beamSpan xml:id="b52l0fi" plist="#note-L13F1 #rest-L14F1 #rest-L15F1 #note-L16F1" startid="#note-L13F1" endid="#note-L16F1" /> </measure> </section> </score> </mdiv> </body> </music> </mei> ``` </details> <p>Resulting rendering:</p> <img width="543" alt="Screen Shot 2023-04-06 at 05 07 11" src="https://user-images.githubusercontent.com/3487289/230374386-0c254cd0-ceb3-41c1-b079-a92d86f3c769.png"> <p>Also maybe reverse the writing order of the text (when above the staff) so that the Humdurm order and the vertical order match.</p> <p>Target rendering:</p> <img width="486" alt="Screen Shot 2023-04-06 at 05 11 19" src="https://user-images.githubusercontent.com/3487289/230375192-6a2ce9b8-9bc7-4708-b07d-ba1e8f72b06f.png"> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>