Template:t2i

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Usage

[edit]

This template converts the letter-by-letter piped text into image. Accepts two named parameters:

  • |sc= for script code, usually an ISO 15924 name
  • |size= to set letter size (default value of 15)

It calls individual letter-to-image converters in format sc2img which return picture name for a given letter (either in transliterated form, or in original script).

Note: Images are displayed from left to right, therefore the scripts that use right-to-left order (like Phoenician) often need to pipe the letters in reverse order. They can be placed in the correct order when they are displayed with the CSS property direction: rtl;, for instance when they are tagged with a class for a right-to-left script such as class="Phnx" in a headword line.

Script name Script code Converter
Phoenician Phnx {{Phnx2img}}
Epigraphic South Arabian Sarb {{Sarb2img}}

See also {{t2i-Egyd}} for rendering the Egyptian Demotic script (code Egyd).