SC: HTML Special Characters

Description Usage Arguments Details Value Warning Examples

Description

A system to produce HTML special characters.

Usage

1
SC(text, copy2clip = interactive())

Arguments

text

A character vector or text copied to the clipboard. Default is to read from the clipboard.

copy2clip

logical. If TRUE attempts to copy the output to the clipboard.

Details

The general use of SCis to provide a character string of length 2. The first character is a letter and the second is one of the following symbols:

c("'", "'", ":", "~", "^", "/", "o", ",")

Which corresponds to:

c("acute", "grave", "uml", "tilde", "circ", "slash", "ring", "cedil")

See examples for cases not conforming to this use.

Value

Returns an HTML special character entity.

Warning

The user can create non-HTML characters with SC that will not be converted (i.e., SC("b~") would yield "&btilde;" and would not be converted appropriately).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SC("A'")
SC('a\'')  #can use single quotes with escape
SC("a`")
SC("n~")
SC("o:")
SC("(c)")
SC("(r)")
SC("c|")
SC("o/")
SC("ao")
SC("c,")
SC("p")
SC("P")
SC("E")
SC("Y")
SC("/")
SC("+-")
SC("L")
SC("tm")
SC("S")
SC("<")
SC(">")
SC("~")
SC("o")
SC("_")
SC("...")

trinker/reports documentation built on May 31, 2019, 9:51 p.m.