Template:Sagittal: Difference between revisions
Jump to navigation
Jump to search
Dave Keenan (talk | contribs) Added CSS transformations to work around offset errors in semisharp and sesquisharp glyphs in the current version of Bravura Text |
Dave Keenan (talk | contribs) Added codes for SMuFL noteheads with note-names inside them; whole-note, half-note and black. |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch: | <includeonly>{{#ifeq: | ||
{{#replace: | |||
{{#replace: | |||
{{{1|}}}¦{{{2|⌫}}}¦{{{3|⌫}}}¦{{{4|⌫}}} | | |||
¦⌫ | }} | | |||
{{pipe}} | ¦ }} | | |||
(¦\ | | |||
<span style="display: inline-block; transform: translateY(9px) scaleY(-1);"><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.255em; display: inline-block; transform: translateY(0.22em);"></span></span> | | |||
<span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch: | |||
{{#replace: | {{#replace: | ||
{{#replace: | {{#replace: | ||
Line 36: | Line 44: | ||
(¦) = "> | | (¦) = "> | | ||
(!) = "> | | (!) = "> | | ||
(¦\ = | (¦\ = "> | | ||
(!/ = "> | | (!/ = "> | | ||
)¦¦( = "> | | )¦¦( = "> | | ||
Line 279: | Line 287: | ||
///¦ = "> | | ///¦ = "> | | ||
\\\! = "> | | \\\! = "> | | ||
ntAwh = "> | | |||
ntBwh = "> | | |||
ntCwh = "> | | |||
ntDwh = "> | | |||
ntEwh = "> | | |||
ntFwh = "> | | |||
ntGwh = "> | | |||
ntAhf = "> | | |||
ntBhf = "> | | |||
ntChf = "> | | |||
ntDhf = "> | | |||
ntEhf = "> | | |||
ntFhf = "> | | |||
ntGhf = "> | | |||
ntAbl = "> | | |||
ntBbl = "> | | |||
ntCbl = "> | | |||
ntDbl = "> | | |||
ntEbl = "> | | |||
ntFbl = "> | | |||
ntGbl = "> | | |||
">{{#replace: | ">{{#replace: | ||
{{#replace: | {{#replace: | ||
Line 284: | Line 313: | ||
¦⌫ | }} | | ¦⌫ | }} | | ||
¦ | {{pipe}} }} | ¦ | {{pipe}} }} | ||
}}</span> | }}</span>}}{{nbhsp}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Font templates]] | [[Category:Font templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 07:48, 11 April 2025
The Sagittal template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font.
Usage notes
This template accepts one unnamed argument and two named arguments:
- Text in the form of sagitype, representing a sagittal or related symbol.
- (optional) size = a CSS font-size value; defaults to "250%".
- (optional) height = a CSS line-height value; defaults to "16px".
Notes:
- Pipe characters (
|
) do not need to be escaped. - Short-sagitype (single-character codes for common sagittals) is not yet supported.
Examples
You type | You get |
---|---|
{{sagittal| /| }} |
|
{{sagittal| !) }} |
|