User:Dave Keenan/sagittal: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Dave Keenan (talk | contribs)
No edit summary
Dave Keenan (talk | contribs)
No edit summary
Line 2: Line 2:
<span class="bravura" style="font-size:250%; line-height:16px;">
<span class="bravura" style="font-size:250%; line-height:16px;">
{{#switch:
{{#switch:
{{#replace:{{{1}}}|\p|¦}}|
{{#replace:{{{1|}}}¦{{{2|}}}¦{{{3|}}}¦{{{4|}}}|\p|¦}}|
//¦=&#xE306;|
//¦=&#xE306;|
\\!=&#xE307;|
\\!=&#xE307;|
Line 41: Line 41:
{{{1}}}}}
{{{1}}}}}
</span></includeonly><noinclude>
</span></includeonly><noinclude>
This template converts sagitype codes to sagittal symbols in the BravuraText font.
This template converts a sagitype code to a sagittal symbol in the BravuraText font.


e.g. <nowiki>{{sagittal| /¦ \! ¦) !) }}</nowiki> gives <span class="bravura" style="font-size:250%; line-height:16px;"> &#xE302; &#xE303; &#xE304; &#xE305; </span>
e.g. <nowiki>{{sagittal| /¦ }}</nowiki> returns <span class="bravura" style="font-size:250%; line-height:16px;">&#xE302;</span> and <nowiki>{{sagittal| !) }}</nowiki> returns <span class="bravura" style="font-size:250%; line-height:16px;">&#xE305;</span>


In the sagitype, the broken bar ¦ (U+00A6) is allowed as an alternative to the pipe | (vertical bar) to avoid having to escape the pipe as \p.
In the sagitype, the broken bar ¦ (U+00A6) is allowed as an alternative to the pipe | (vertical bar) to avoid having to escape the pipe as \p.

Revision as of 22:48, 3 October 2024

This template converts a sagitype code to a sagittal symbol in the BravuraText font.

e.g. {{sagittal| /¦ }} returns and {{sagittal| !) }} returns

In the sagitype, the broken bar ¦ (U+00A6) is allowed as an alternative to the pipe | (vertical bar) to avoid having to escape the pipe as \p.

The broken bar can be typed as ⎄|␣ (compose pipe space) using D&D's WinCompose sequences.