Template:Sagittal: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
Dave Keenan (talk | contribs) Added CSS transformations to work around inverted and offset glyph errors in the current version of Bravura Text |
||
| Line 1: | Line 1: | ||
<includeonly><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; | <includeonly><span class="bravura" style="font-size: {{{size|250%}}}; line-height: {{{height|16px}}}; vertical-align: -0.3em; {{#switch: | ||
{{#replace: | {{#replace: | ||
{{#replace: | {{#replace: | ||
| Line 6: | Line 6: | ||
{{pipe}} | ¦ }} | | {{pipe}} | ¦ }} | | ||
h | | h | | ||
¦//¦ =  | | ¦//¦ = "> | | ||
# =  | | # = "> | | ||
b =  | | b = "> | | ||
X | | X | | ||
x =  | | x = "> | | ||
bb =  | | bb = "> | | ||
t | | t | | ||
> =  | | > = "> | | ||
d | | d | | ||
< =  | | < = "> | | ||
t# | | t# | | ||
># =  | | ># = "> | | ||
db | | db | | ||
<b =  | | <b = "> | | ||
+ =  | | + = "> | | ||
- =  | | - = "> | | ||
¦( =  | | ¦( = "> | | ||
!( =  | | !( = "> | | ||
/¦ =  | | /¦ = "> | | ||
\! =  | | \! = "> | | ||
¦) =  | | ¦) = "> | | ||
!) =  | | !) = "> | | ||
//¦ =  | | //¦ = "> | | ||
\\! =  | | \\! = "> | | ||
/¦) =  | | /¦) = "> | | ||
\!) =  | | \!) = "> | | ||
/¦\ =  | | /¦\ = "> | | ||
\!/ =  | | \!/ = "> | | ||
(¦) =  | | (¦) = "> | | ||
(!) =  | | (!) = "> | | ||
(¦\ = &# | (¦\ = display: inline-block; transform: scaleY(-1);"> | | ||
(!/ =  | | (!/ = "> | | ||
)¦¦( =  | | )¦¦( = "> | | ||
)!!( =  | | )!!( = "> | | ||
¦¦) =  | | ¦¦) = "> | | ||
!!) =  | | !!) = "> | | ||
¦¦\ =  | | ¦¦\ = "> | | ||
!!/ =  | | !!/ = "> | | ||
/¦¦) =  | | /¦¦) = "> | | ||
\!!) =  | | \!!) = "> | | ||
/¦¦\ =  | | /¦¦\ = "> | | ||
\!!/ =  | | \!!/ = "> | | ||
¦¦¦( =  | | ¦¦¦( = "> | | ||
!!!( =  | | !!!( = "> | | ||
/¦¦¦ =  | | /¦¦¦ = "> | | ||
\!!! =  | | \!!! = "> | | ||
¦¦¦) =  | | ¦¦¦) = "> | | ||
!!!) =  | | !!!) = "> | | ||
//¦¦¦ =  | | //¦¦¦ = "> | | ||
\\!!! =  | | \\!!! = "> | | ||
/¦¦¦) =  | | /¦¦¦) = "> | | ||
\!!!) =  | | \!!!) = "> | | ||
/¦¦¦\ =  | | /¦¦¦\ = "> | | ||
\!!!/ =  | | \!!!/ = "> | | ||
(¦¦¦) =  | | (¦¦¦) = "> | | ||
(!!!) =  | | (!!!) = "> | | ||
(¦¦¦\ =  | | (¦¦¦\ = "> | | ||
(!!!/ =  | | (!!!/ = "> | | ||
)X( =  | | )X( = "> | | ||
)Y( =  | | )Y( = "> | | ||
X) =  | | X) = "> | | ||
Y) =  | | Y) = "> | | ||
X\ =  | | X\ = "> | | ||
Y/ =  | | Y/ = "> | | ||
/X) =  | | /X) = "> | | ||
\Y) =  | | \Y) = "> | | ||
/X\ =  | | /X\ = "> | | ||
\Y/ =  | | \Y/ = "> | | ||
)¦( =  | | )¦( = "> | | ||
)!( =  | | )!( = "> | | ||
~¦( =  | | ~¦( = "> | | ||
~!( =  | | ~!( = "> | | ||
¦\ =  | | ¦\ = "> | | ||
!/ =  | | !/ = "> | | ||
(¦ =  | | (¦ = "> | | ||
(! =  | | (! = "> | | ||
(¦( =  | | (¦( = "> | | ||
(!( =  | | (!( = "> | | ||
~¦¦( =  | | ~¦¦( = "> | | ||
~!!( =  | | ~!!( = "> | | ||
)¦¦~ =  | | )¦¦~ = "> | | ||
)!!~ =  | | )!!~ = "> | | ||
/¦¦ =  | | /¦¦ = "> | | ||
\!! =  | | \!! = "> | | ||
(¦¦( =  | | (¦¦( = "> | | ||
(!!( =  | | (!!( = "> | | ||
//¦¦ =  | | //¦¦ = "> | | ||
\\!! =  | | \\!! = "> | | ||
)¦¦¦( =  | | )¦¦¦( = "> | | ||
)!!!( =  | | )!!!( = "> | | ||
~¦¦¦( =  | | ~¦¦¦( = "> | | ||
~!!!( =  | | ~!!!( = "> | | ||
¦¦¦\ =  | | ¦¦¦\ = "> | | ||
!!!/ =  | | !!!/ = "> | | ||
(¦¦¦ =  | | (¦¦¦ = "> | | ||
(!!! =  | | (!!! = "> | | ||
(¦¦¦( =  | | (¦¦¦( = "> | | ||
(!!!( =  | | (!!!( = "> | | ||
~X( =  | | ~X( = "> | | ||
~Y( =  | | ~Y( = "> | | ||
)X~ =  | | )X~ = "> | | ||
)Y~ =  | | )Y~ = "> | | ||
/X =  | | /X = "> | | ||
\Y =  | | \Y = "> | | ||
(X( =  | | (X( = "> | | ||
(Y( =  | | (Y( = "> | | ||
//X =  | | //X = "> | | ||
\\Y =  | | \\Y = "> | | ||
¦~ =  | | ¦~ = "> | | ||
!~ =  | | !~ = "> | | ||
)/¦ =  | | )/¦ = "> | | ||
)\! =  | | )\! = "> | | ||
/¦~ =  | | /¦~ = "> | | ||
\!~ =  | | \!~ = "> | | ||
¦¦~ =  | | ¦¦~ = "> | | ||
!!~ =  | | !!~ = "> | | ||
)¦¦) =  | | )¦¦) = "> | | ||
)!!) =  | | )!!) = "> | | ||
/¦¦~ =  | | /¦¦~ = "> | | ||
\!!~ =  | | \!!~ = "> | | ||
¦¦¦~ =  | | ¦¦¦~ = "> | | ||
!!!~ =  | | !!!~ = "> | | ||
)/¦¦¦ =  | | )/¦¦¦ = "> | | ||
)\!!! =  | | )\!!! = "> | | ||
/¦¦¦~ =  | | /¦¦¦~ = "> | | ||
\!!!~ =  | | \!!!~ = "> | | ||
X~ =  | | X~ = "> | | ||
Y~ =  | | Y~ = "> | | ||
)X) =  | | )X) = "> | | ||
)Y) =  | | )Y) = "> | | ||
/X~ =  | | /X~ = "> | | ||
\Y~ =  | | \Y~ = "> | | ||
)¦ =  | | )¦ = "> | | ||
)! =  | | )! = "> | | ||
~¦ =  | | ~¦ = "> | | ||
~! =  | | ~! = "> | | ||
)~¦ =  | | )~¦ = "> | | ||
)~! =  | | )~! = "> | | ||
~~¦ =  | | ~~¦ = "> | | ||
~~! =  | | ~~! = "> | | ||
)¦~ =  | | )¦~ = "> | | ||
)!~ =  | | )!~ = "> | | ||
)¦) =  | | )¦) = "> | | ||
)!) =  | | )!) = "> | | ||
~¦) =  | | ~¦) = "> | | ||
~!) =  | | ~!) = "> | | ||
~¦\ =  | | ~¦\ = "> | | ||
~!/ =  | | ~!/ = "> | | ||
)//¦ =  | | )//¦ = "> | | ||
)\\! =  | | )\\! = "> | | ||
(¦~ =  | | (¦~ = "> | | ||
(!~ =  | | (!~ = "> | | ||
(/¦ =  | | (/¦ = "> | | ||
(\! =  | | (\! = "> | | ||
)/¦\ =  | | )/¦\ = "> | | ||
)\!/ =  | | )\!/ = "> | | ||
¦\) =  | | ¦\) = "> | | ||
!/) =  | | !/) = "> | | ||
¦\\ =  | | ¦\\ = "> | | ||
!// =  | | !// = "> | | ||
)¦\\ =  | | )¦\\ = "> | | ||
)!// =  | | )!// = "> | | ||
)~¦¦ =  | | )~¦¦ = "> | | ||
)~!! =  | | )~!! = "> | | ||
~~¦¦ =  | | ~~¦¦ = "> | | ||
~~!! =  | | ~~!! = "> | | ||
)/¦¦ =  | | )/¦¦ = "> | | ||
)\!! =  | | )\!! = "> | | ||
(¦¦ =  | | (¦¦ = "> | | ||
(!! =  | | (!! = "> | | ||
~¦¦) =  | | ~¦¦) = "> | | ||
~!!) =  | | ~!!) = "> | | ||
~¦¦\ =  | | ~¦¦\ = "> | | ||
~!!/ =  | | ~!!/ = "> | | ||
)//¦¦ =  | | )//¦¦ = "> | | ||
)\\!! =  | | )\\!! = "> | | ||
(¦¦~ =  | | (¦¦~ = "> | | ||
(!!~ =  | | (!!~ = "> | | ||
)¦¦¦ =  | | )¦¦¦ = "> | | ||
)!!! =  | | )!!! = "> | | ||
~¦¦¦ =  | | ~¦¦¦ = "> | | ||
~!!! =  | | ~!!! = "> | | ||
)~¦¦¦ =  | | )~¦¦¦ = "> | | ||
)~!!! =  | | )~!!! = "> | | ||
~~¦¦¦ =  | | ~~¦¦¦ = "> | | ||
~~!!! =  | | ~~!!! = "> | | ||
)¦¦¦~ =  | | )¦¦¦~ = "> | | ||
)!!!~ =  | | )!!!~ = "> | | ||
)¦¦¦) =  | | )¦¦¦) = "> | | ||
)!!!) =  | | )!!!) = "> | | ||
~¦¦¦) =  | | ~¦¦¦) = "> | | ||
~!!!) =  | | ~!!!) = "> | | ||
~¦¦¦\ =  | | ~¦¦¦\ = "> | | ||
~!!!/ =  | | ~!!!/ = "> | | ||
)//¦¦¦ =  | | )//¦¦¦ = "> | | ||
)\\!!! =  | | )\\!!! = "> | | ||
(¦¦¦~ =  | | (¦¦¦~ = "> | | ||
(!!!~ =  | | (!!!~ = "> | | ||
(/¦¦¦ =  | | (/¦¦¦ = "> | | ||
(\!!! =  | | (\!!! = "> | | ||
)/¦¦¦\ =  | | )/¦¦¦\ = "> | | ||
)\!!!/ =  | | )\!!!/ = "> | | ||
¦¦¦\) =  | | ¦¦¦\) = "> | | ||
!!!/) =  | | !!!/) = "> | | ||
¦¦¦\\ =  | | ¦¦¦\\ = "> | | ||
!!!// =  | | !!!// = "> | | ||
)¦¦¦\\ =  | | )¦¦¦\\ = "> | | ||
)!!!// =  | | )!!!// = "> | | ||
)~X =  | | )~X = "> | | ||
)~Y =  | | )~Y = "> | | ||
~~X =  | | ~~X = "> | | ||
~~Y =  | | ~~Y = "> | | ||
)/X =  | | )/X = "> | | ||
)\Y =  | | )\Y = "> | | ||
(X =  | | (X = "> | | ||
(Y =  | | (Y = "> | | ||
~X) =  | | ~X) = "> | | ||
~Y) =  | | ~Y) = "> | | ||
~X\ =  | | ~X\ = "> | | ||
~Y/ =  | | ~Y/ = "> | | ||
)//X =  | | )//X = "> | | ||
)\\Y =  | | )\\Y = "> | | ||
(X~ =  | | (X~ = "> | | ||
(Y~ =  | | (Y~ = "> | | ||
¦ =  | | ¦ = "> | | ||
! =  | | ! = "> | | ||
' =  | | ' = "> | | ||
p | | p | | ||
. =  | | . = "> | | ||
` =  | | ` = display: inline-block; transform: translateY(-.4em);"> | | ||
c | | c | | ||
, =  | | , = display: inline-block; transform: translateY(-.4em);"> | | ||
`` =  | | `` = display: inline-block; transform: translateY(-.4em);"> | | ||
cc | | cc | | ||
,, =  | | ,, = display: inline-block; transform: translateY(-.4em);"> | | ||
@1 =  | | @1 = display: inline-block; transform: translateY(-.4em);"> | | ||
l1 =  | | l1 = display: inline-block; transform: translateY(-.4em);"> | | ||
@2 =  | | @2 = display: inline-block; transform: translateY(-.4em);"> | | ||
l2 =  | | l2 = display: inline-block; transform: translateY(-.4em);"> | | ||
@3 =  | | @3 = display: inline-block; transform: translateY(-.4em);"> | | ||
l3 =  | | l3 = display: inline-block; transform: translateY(-.4em);"> | | ||
@4 =  | | @4 = display: inline-block; transform: translateY(-.4em);"> | | ||
l4 =  | | l4 = display: inline-block; transform: translateY(-.4em);"> | | ||
@5 =  | | @5 = display: inline-block; transform: translateY(-.4em);"> | | ||
l5 =  | | l5 = display: inline-block; transform: translateY(-.4em);"> | | ||
@6 =  | | @6 = display: inline-block; transform: translateY(-.4em);"> | | ||
l6 =  | | l6 = display: inline-block; transform: translateY(-.4em);"> | | ||
@7 =  | | @7 = display: inline-block; transform: translateY(-.4em);"> | | ||
l7 =  | | l7 = display: inline-block; transform: translateY(-.4em);"> | | ||
@8 =  | | @8 = display: inline-block; transform: translateY(-.4em);"> | | ||
l8 =  | | l8 = display: inline-block; transform: translateY(-.4em);"> | | ||
@9 =  | | @9 = display: inline-block; transform: translateY(-.4em);"> | | ||
l9 =  | | l9 = display: inline-block; transform: translateY(-.4em);"> | | ||
@. =  | | @. = display: inline-block; transform: translateY(-.4em);"> | | ||
l. =  | | l. = display: inline-block; transform: translateY(-.4em);"> | | ||
¦(( =  | | ¦(( = "> | | ||
!(( =  | | !(( = "> | | ||
¦((( =  | | ¦((( = "> | | ||
!((( =  | | !((( = "> | | ||
/¦( =  | | /¦( = "> | | ||
\!( =  | | \!( = "> | | ||
/¦(( =  | | /¦(( = "> | | ||
\!(( =  | | \!(( = "> | | ||
/¦((( =  | | /¦((( = "> | | ||
\!((( =  | | \!((( = "> | | ||
//¦( =  | | //¦( = "> | | ||
\\!( =  | | \\!( = "> | | ||
//¦(( =  | | //¦(( = "> | | ||
\\!(( =  | | \\!(( = "> | | ||
//¦((( =  | | //¦((( = "> | | ||
\\!((( =  | | \\!((( = "> | | ||
///¦ =  | | ///¦ = "> | | ||
\\\! =  | | \\\! = "> | | ||
">{{#replace: | |||
{{#replace: | {{#replace: | ||
{{{1|}}}¦{{{2|⌫}}}¦{{{3|⌫}}}¦{{{4|⌫}}} | | {{{1|}}}¦{{{2|⌫}}}¦{{{3|⌫}}}¦{{{4|⌫}}} | | ||
¦⌫ | }} | | ¦⌫ | }} | | ||
¦ | {{pipe}} }} | ¦ | {{pipe}} }} | ||
}}</span></includeonly><noinclude> | }}</span> </includeonly><noinclude> | ||
The '''Sagittal''' template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font. | The '''Sagittal''' template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font. | ||
Revision as of 06:05, 7 October 2024
The Sagittal template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font.
The Sagittal template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font. There are also ASCII codes for lettered noteheads and staff segments. See the source code for the full list.
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, e.g. "16px"; defaults to "0.6em".
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| !) }} |
|