23/2/12

Transformation of text - Wikipedia, the free encyclopedia

Transformation of text

From Wikipedia, the free encyclopedia

Transformation of text is strategies to perform geometric transformations on text (reversals, rotations, etc), particularly in systems that do not natively support transformation, such as HTML, seven-segment displays and plain text.

Contents

[hide]

[edit]Implementation

Many systems, such as HTML, seven-segment displays and plain text, do not support transformation of text. In the case of HTML, this limitation in display may eventually be addressed through standard cascading style sheets (CSS), since proposed specifications for CSS3 include rotation for block elements.[1] In the meantime, several ways of producing the visual effects of text transformations have come into use.

The most common of these transformations are rotation and reflection.

Unicode supports a variety of characters that resemble transformed characters, primarily for various forms ofphonetic transcription. Each of these character names indicates what kind of transformation the characters have undergone:

  • Reversed characters, those that have been reflected in a vertical line (i.e., flipped horizontally);
  • Inverted characters, those that have been reflected on a horizontal line (i.e., flipped vertically, only one letter has been done this way);
  • Turned characters, those that have been rotated 180 degrees and thus appear upside-down (this is the most common);
  • Sideways characters, those that have been rotated 90 degrees counterclockwise (generally the least supported, and used only for a handful of vowels in the Uralic Phonetic Alphabet system).

[edit]Upside-down text

Strategies can be used to render words upside down in languages such as HTML that do not permit rotation of text; using Unicode characters (especially those in the International Phonetic Alphabet), a very close approximation ofupside-down text (also called flip text) can be achieved. The letters s, x, z and o are rotationally symmetrical, while pairs such as b/q, d/p and n/u are rotations of each other. The rest of the letters have been encoded into the Unicode IPA section, creating a full set of upside-down lowercase letters. Coverage of upside-down uppercase letters is far more sparse, and there is no support for upside down numbers (except 0, 8, and 6/9), but punctuation (by use of such characters as the interpunct and the inverted question mark and exclamation point) is mostly covered. Several Internet utilities exist for the transformation of regular text to (and sometimes from) upside-down text; each has its own slightly different algorithm for letters not precisely or well covered. A list of converters and algorithms can be found at the list below.

A similar process is USD encoding, which uses characters entirely within the ASCII character set. Because it is almost entirely alphanumeric, it is far more compatible with other programs that do not support Unicode, and more readily typed by hand. However, the text created by using USD encoding is far less legible, and in fact more closely resembles Leet. Another problem is that because not all letters fit well, the USD algorithms cannot be a completeinvolution (i.e., completely convertible back and forth) and contain a complete set of letters at the same time. For instance, the Albartus USD algorithm example seen in the "Examples" section below has k, T, t, and R still in their upright positions. Another issue with USD encoding is the use of italic type. The letter "a" will, in most typefaces using italic fonts, render it as a "one-story" Latin alpha, thus causing problems with any word using that letter as a lowercase "e." Oblique type does not have this problem.

Below is a table of one particular algorithm (Tomas Schild's upsidedown.info) and its complete transformation of lowercase, numeric and punctuation output. Note that the numeric output uses characters from hangul (Korean) for 2, the Latin epsilon for 3, as well as bopomofo (Chinese) for 4 and 7. (An earlier implementation of the Schild algorithm used a Canadian Aboriginal syllabics character, ᔭ, for upside-down 4.) Unusual sources for number transformations are necessary to achieve results that, at least cosmetically, are legible.

LowercaseLetterszʎxʍʌnʇsɹbdouɯlʞɾıɥɓɟǝpɔqɐ
007A028E0078028D028C006E02870073027900620064006F0075026F006C029E027E013102650253025F01DD0070025400710250
UppercaseLettersZXMΛSΌԀONW˥ſIHƎƆ𐐒
005A21440058004D039B222922A500531D1A038C0500004F004E005702E522CA017F0049004821412132018E25D60186104122200
Numbers0689ގƐ
00300036003831250039078E31230190110521C2
Punctuation¿¡,˙'؛
214B203E00BF00A1201E002C02D90027061B

[edit]Sideways text

Sideways text presents a unique problem. Though it is likely the most practical (as opposed to artistic) form of text transformation, it is the least supported and is the most difficult to implement. Unlike rotating text 180 degrees, the number of sideways characters falls far short of what would be needed for most purposes, and because text is rendered horizontally, it would be very difficult to render beyond one line of vertical text in a well-aligned manner without columns, especially in proportional fonts (furthermore, each character would require a line break after it). The process of using alternate characters for sideways text is further complicated by the fact that most fonts space letters further apart vertically (to accommodate underlining and overlining) than horizontally, and that most fonts are taller than they are wider, making simulated sideways text look significantly more awkward.

Internet Explorer has a CSS property that will rotate normally entered text 90 degrees clockwise:

However, no other major browsers (Mozilla Firefox, Opera nor WebKit based browsers such as Google Chrome) support this writing-mode property. However, CSS3 defines rotation for block elements, which should make the visual rotation of HTML text available to standards-compliant browsers as they are developed to support CSS3 completely.[1]

The most common way around these problems is to use images of text, which can then be rotated and transformed in an image editor at will, and to represent the text in those images with the alt attribute so that search engines and text-only browsers can read it properly. The use of ANSI art and box-drawing characters to manually draw sideways text has the advantage of being copiable and pastable (whereas images are not in most plain text situations), but generally creates large characters.

[edit]Reversed text

Though less widespread, text can also be reversed to be a mirror image of itself. Letters A, H, I, M, O/o, T, U, V/v, W/w, X/x, Y, and in some fonts i and l are symmetrical in the y-axis; the pairs of b/d and p/q transform to each other. The letters И, Я, and г from Cyrillic, among other sources, are among the numerous characters that can be used to further generate this effect. Reversed text can use capital letters mixed with lowercase, as opposed to the strict lowercase used by upside-down transformation (upside-down lowercase and capital letters do not generally align as they would upright, though reversed letters do).

X-axis symmetry is visible in the letters B, C, D, E, H, I, K, O, and in some fonts a and l, as well as in the pairs of a/g, b/p, d/q, e/G, and f/t. Expanding to Cyrillic and Greek produces more symmetries, such as Λ/V and Γ/L.

The Fixedsys Excelsior typeface includes a complete set of reversed characters like this in its Private Use Area. However, online utilities to create mirrored text are not readily available, and most sites that claim to "mirror text" or "reverse text" in fact only change the order of the letters and do not actually flip the letters themselves.

[edit]Examples

  • Artistry, such as representing the two end zones or player designations on an American football gridiron; e.g. "sɹəʅəəʇS ɥɓɹnqsʇʇɪƋ"from this example or "sʇuɐɪŋ ʞɹoʎ ʍəN ƕ" (note the use of hwair as a dingbat of the team's logo)
  • Better fit; for instance, rotating column headers on a table sideways would produce a more compact table, desirable particularly in tables that contain mostly abbreviations and numeric values.
  • Evoking Russian stereotypes, by flipping certain letters one at a time.
  • Evoking simplicity, such as childlike confusion over the direction of a letter (e.g., "Toys Я Us") or to indicate vulgarity (such as the wordmark for KoЯn).
  • Symmetry, such as in the wordmarks for Nine Inch Nails (NIИ), ABBA, or The Rush Limbaugh Show "EIB" slogan (εıз). The use of transformation in this fashion is known as an ambigram.
  • Calculator spelling on seven-segment displays, where numbers represent letters upside down (e.g. 07734, "hello").
  • Emulating the boustrophedon style of writing, where alternating lines are written in opposite directions.
  • Pentominoes and tetrominoes resemble (and are traditionally named after) Latin letters, and the rotation of these letterlike objects forms the basis of several games, including Tetris.
  • Though not strict transformation, the substitution of a plural "s" with its near-reflection "z" is a fairly common tropeamong some minor league sports teams in the United States, in order to make team names seem more modern.
  • Basic encryption, to "hide" the answer to a joke or puzzle, for instance:
Question: How can you tell an introvert from an extrovert at the NSA?
Answer: ˙sǝoɥs s,ʎnƃ ɹǝɥʇo ǝɥʇ ʇɐ sʞool ʇɹǝʌoɹʇxǝ ǝɥʇ 'sɹoʇɐʌǝlǝ ǝɥʇ uı (Using the Revfad algorithm)
Or: 'saoys s.hn6 R3HTO ayt te skool tJa^oJtxa ayt `sJote^ala ayt uI (using the Albartus USD algorithm)
  • In baseball scorekeeping, a player who strikes out despite not swinging at the third strike is indicated in the official score book with a reversed K. It is not directly supported in Unicode, but can be approximated with the obsolete IPA symbol ʞ or the Cyrillic Ж, the latter of which resembles two Ks back-to-back.
  • On the Soundgarden album Superunknown, all mention of the album or title track (except in the lyrics booklet) is shown as "Superиmoиʞи∩".
  • The beverage 7Up during the early 2000s had a spin-off counterpart, known as dnL, with a significantly different color and flavor as well as caffeine.
  • Facebook added "upside-down English" as a language choice in summer 2009.

Example of reversed text reflected along a y-axis:

Example:...иiɒəɒ иɘqo x иoiƨиɘмib oɟ lɒɟɿoq ɘнɟ ɟʇɘl γbodɘмoƧ (Somebody left the portal to Dimension X open again...)

Poet Darius Bacon has written two examples of palindromic poetry that reads the same upside-down as it does upside right.[2]

[edit]Comparison of algorithms

ConverterLowercaseUppercaseNumbersReconvert
Backward
ReflectionCharacter setProvides HTML
CedarCreek LabsYesYesYesNoNoLatin characters in UnicodeNo
Flip
(revfad.com)
YesNoNoYesNoLatin characters in UnicodeNo
Rot180
(logarithmic.net)
YesYesYesNoNoAll ofUnicode
Usescombining charactersfor some
No
Fliptext.orgYesNoNoNoNoLatin, with one exceptionNo
Fliptext.netYesNoYesYesNoLatin for letters
all of Unicode for numbers
No
FlipThisText.comYesNoNoYesNoLatin, with one exceptionNo
Upside Down Letters
(sevenwires.com)
YesNoNoYesNoLatin, with one exceptionNo
USD encoding
(albartus.googlepages.com)
IncompleteIncompleteYesYesNoASCIIN/A
NQAS
(superliminal.com)
YesYesNo, errorsAlmostNoWindows-1252No
UpsideDown.infoYesIncompleteYesNoX-axis, IncompleteAll ofUnicodeYes
UpsideDownText.comYesIncompleteYesYesErrorsLatin characters with UnicodeYes
Flipallwords.comYesNoNoYesNoLatin for letters
all of Unicode for numbers
No
Calculator spellingIncompleteIncompleteIncompleteNoNo, but conceivableNumerals 0-9No
Write upside down
(web2generators.com)
YesYesYesYesNoAll ofUnicodeNo

[edit]

No hay comentarios: