The following are some markup options that may be useful in your ScriptSource contributions. This markup can be used primarily in entry description and content fields, license details, attributions, source abstracts and annotations, and need descriptions, notes and contact information. Documentation for all the markup options is available on the  Ductile CMS site.

Markup summary

Code sample - code:

Emphasis - em:

File or graphic in text - media:

Link - link:

List - list:

Table - table:

Unicode character - usv:

Descriptions
Code sample

code:

code fragment

code-end:

Displays some text in an alternate style appropriate for source-code fragments.

Example:

code:
// Here is a rule to perform reordering in GDL:
glyph1  glyph2  >  @2  @1;
code-end:

produces this:

// Here is a rule to perform reordering in GDL:
glyph1  glyph2  >  @2  @1;
Emphasis

{em:text}

Text is rendered in a style indicating emphasis. The typography used is controlled by the stylesheet.

Example:

This is a {em:very important} point!

produces this:

This is a very important point!

File or graphic in text

{media:filename}

Specifies where an uploaded image or media file should be placed within the text. Note that the file or graphic must be stored within the same record as the text.

Example:

Here is an interesting script:

{media:script_sample.png}

produces this:

Here is an interesting script:



Link

{link:URL linktext}

Creates a link to an external document. The URL and linktext are separated by a single space.

Example:

This is {link:http://www.scriptsource.org/ a link to the ScriptSource website}.

produces this:

List

list:

item 1

(blank line)

item 2

(blank line)

item 3

(blank line)

(blank line)

#:end of list

Displays a bulleted list. There must be one blank line between each item and two blank lines after the last. The comment indicating the end of the list is optional.

Example:

My favorite fruits:

list:
Apples

Oranges

Bananas

Kiwi


#:end of list

produces this:

My favorite fruits:

  • Apples
  • Oranges
  • Bananas
  • Kiwi
Table

table:

|label 1|label 2|label 3|...|last label|

|data|data|data|...|data|

|data|data|data|...|data|

|data|data|data|...|data|

(blank line)

This option displays the given data in a table. The rows of the table must be listed on successive lines, and a blank line must terminate the table.

Example:

table:
|Script|Code|Type|
|Arabic|Arab|abjad|
|Bengali|Beng|abugida|
|Devanagari|Deva|abugida|
|Latin|Latn|alphabet|

produces this:

ScriptCodeType
  Arabic Arab abjad
  Bengali Beng abugida
  Devanagari Deva abugida
  Latin Latn alphabet
Unicode character

{usv:USV} or {usv:USV options}

Displays a Unicode character in various possible formats. The options are glyph, usv, and name and are separated by commas. By default, all three options are included.

Example 1:

{usv:0266}

produces this:

U+0266  LATIN SMALL LETTER H WITH HOOK

Example 2:

{usv:0266 usv,glyph}

produces this:

U+0266