Template:Spc: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 10: Line 10:
to insert "n" ''hairspaces'', where n{{spc|1}}={{spc|1}}0,1,...,12 (one hairspace is 1/12 of an em-space).
to insert "n" ''hairspaces'', where n{{spc|1}}={{spc|1}}0,1,...,12 (one hairspace is 1/12 of an em-space).
<pre>{{spc}}</pre>
<pre>{{spc}}</pre>
is the same as <tt><nowiki>{{spc|1}}</nowiki></tt>, which is useful for inserting a very small space after an italic (slanted) character which appears before an upright character, as in
is the same as <tt><nowiki>{{spc|1}}</nowiki></tt>, which is useful for inserting a very small space after an italic (slanted) numeral or tall character (such as ''f'' or ''l''{{spc}}) which appears before an upright character, as in
<pre>(''379''{{spc}})</pre>
<pre>(''379''{{spc}})</pre>
producing (''379''{{spc}}), whereas
producing (''379''{{spc}}), whereas
<pre>(''379'')</pre>
<pre>(''379'')</pre>
produces the less appealing (''379'').  To get this small hairspace before and after the italics material being enclosed, simply type, say,
produces the less appealing (''379'').  To get this small hairspace before and after the italics material being enclosed, simply type, say,
<pre>({{spc}}''425 ml''{{spc}})</pre>
<pre>({{spc}}''jof''{{spc}})</pre>
obtaining ({{spc}}''425 ml''{{spc}}) instead of the usual (''425 ml'').
obtaining ({{spc}}''jof''{{spc}}) instead of the usual (''jof'').  By contrast, we have
<pre>({{spc}}''nu''{{spc}})</pre>
obtaining ({{spc}}''nu''{{spc}}) instead of the usual (''nu'').  On the other hand,
compare ({{spc}}''joy''{{spc}}) and ({{spc}}''leaf''{{spc}}) (both have a hairspace before and after the italicized word) with (''joy'') and (''leaf'') (no hairspace before or after the italicized word).  It may be that ({{spc}}''joy'') (with hairspace before) and (''leaf''{{spc}}) (with hairspace after) appear evem better.  However, be forwarned that this may be somewhat browser and font dependent, espcially at small font sizes.
 
Here these are repeated, with some other possibliities:
 
''joy''
:({{spc|2}}''joy''{{spc}}) via <tt><nowiki>({{spc|2}}''joy''{{spc}})</nowiki></tt>
:({{spc}}''joy''{{spc}}) via <tt><nowiki>({{spc}}''joy''{{spc}})</nowiki></tt>
:({{spc}}''joy'') via <tt><nowiki>({{spc}}''joy'')</nowiki></tt>
:(''joy'') via <tt><nowiki>(''joy'')</nowiki></tt>
''leaf''
:({{spc}}''leaf''{{spc|2}}) via <tt><nowiki>({{spc}}''leaf''{{spc|2}})</nowiki></tt>
:({{spc}}''leaf''{{spc}}) via <tt><nowiki>({{spc}}''leaf''{{spc}})</nowiki></tt>
:(''leaf''{{spc}}) via <tt><nowiki>(''leaf''{{spc}})</nowiki></tt>
:(''leaf'') via <tt><nowiki>(''leaf'')</nowiki></tt>
 
In each of these examples above, the fourth instance (no hairspaces) seems quite unappealin, while the first three seem acceptable, with the first and third being better, perhaps the first being best of all.


Here are <tt><nowiki>>{{spc|n}}<</nowiki></tt>, for n = 0,1,...,12:
Here are <tt><nowiki>>{{spc|n}}<</nowiki></tt>, for n = 0,1,...,12:

Revision as of 22:16, 19 August 2009

Usage

Type

{{spc|n}}

to insert "n" hairspaces, where n=0,1,...,12 (one hairspace is 1/12 of an em-space).

{{spc}}

is the same as {{spc|1}}, which is useful for inserting a very small space after an italic (slanted) numeral or tall character (such as f or l) which appears before an upright character, as in

(''379''{{spc}})

producing (379), whereas

(''379'')

produces the less appealing (379). To get this small hairspace before and after the italics material being enclosed, simply type, say,

({{spc}}''jof''{{spc}})

obtaining (jof) instead of the usual (jof). By contrast, we have

({{spc}}''nu''{{spc}})

obtaining (nu) instead of the usual (nu). On the other hand, compare (joy) and (leaf) (both have a hairspace before and after the italicized word) with (joy) and (leaf) (no hairspace before or after the italicized word). It may be that (joy) (with hairspace before) and (leaf) (with hairspace after) appear evem better. However, be forwarned that this may be somewhat browser and font dependent, espcially at small font sizes.

Here these are repeated, with some other possibliities:

joy

(joy) via ({{spc|2}}''joy''{{spc}})
(joy) via ({{spc}}''joy''{{spc}})
(joy) via ({{spc}}''joy'')
(joy) via (''joy'')

leaf

(leaf) via ({{spc}}''leaf''{{spc|2}})
(leaf) via ({{spc}}''leaf''{{spc}})
(leaf) via (''leaf''{{spc}})
(leaf) via (''leaf'')

In each of these examples above, the fourth instance (no hairspaces) seems quite unappealin, while the first three seem acceptable, with the first and third being better, perhaps the first being best of all.

Here are >{{spc|n}}<, for n = 0,1,...,12:

0: ><
1: ><
2: ><
3: ><
4: ><
5: ><
6: ><
7: ><
8: ><
9: ><
10: ><
11: ><
12: ><

See User:CHGiffen/Spacing for spacing issues.