Template:Sagittal: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Dave Keenan (talk | contribs)
Bracketed the trailing hair-space (U+200A) (that I added in the last update) with word-joiners (U+2060) to make the hair-space non-breaking
Dave Keenan (talk | contribs)
Added CSS transformations to work around offset errors in semisharp and sesquisharp glyphs in the current version of Bravura Text
Line 13: Line 13:
   bb    = "> |
   bb    = "> |
   t    |
   t    |
   >    = "> |
   >    = display: inline-block; transform: translateY(-.017em);"> |
   d    |
   d    |
   <    = ">&#xE284; |
   <    = ">&#xE284; |
   t#    |
   t#    |
   >#    = ">&#xE283; |
   >#    = display: inline-block; transform: translateY(.01em);">&#xE283; |
   db    |
   db    |
   <b    = ">&#xE285; |
   <b    = ">&#xE285; |

Revision as of 02:18, 8 October 2024

The Sagittal template converts a sagitype code (the pictorial ASCII code for sagittal) into a sagittal symbol in the BravuraText font.

Template documentation[view] [edit] [history] [purge]

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:

  1. Text in the form of sagitype, representing a sagittal or related symbol.
  2. (optional) size = a CSS font-size value; defaults to "250%".
  3. (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| !) }}

See also