Transformation of text
   HOME

TheInfoList



OR:

Transformations of text are strategies to perform geometric transformations on text (reversal, rotations, etc.), particularly in systems that do not natively support transformation, such as
HTML The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaS ...
,
seven-segment display A seven-segment display is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix displays. Seven-segment displays are widely used in digital clocks, electronic meters, bas ...
s and
plain text In computing, plain text is a loose term for data (e.g. file contents) that represent only characters of readable material but not its graphical representation nor other objects (floating-point numbers, images, etc.). It may also include a limit ...
.


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 Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone tec ...
(CSS), since proposed specifications for
CSS3 Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as Scalable Vector Graphics, SVG, MathML or XHTML). CS ...
include rotation for block elements. 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 Rotation, or spin, is the circular movement of an object around a '' central axis''. A two-dimensional rotating object has only one possible central axis and can rotate in either a clockwise or counterclockwise direction. A three-dimensional ...
and
reflection Reflection or reflexion may refer to: Science and technology * Reflection (physics), a common wave phenomenon ** Specular reflection, reflection from a smooth surface *** Mirror image, a reflection in a mirror or in water ** Signal reflection, in ...
.
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology standard for the consistent encoding, representation, and handling of text expressed in most of the world's writing systems. The standard, ...
supports a variety of characters that resemble transformed characters, primarily for various forms of
phonetic transcription Phonetic transcription (also known as phonetic script or phonetic notation) is the visual representation of speech sounds (or ''phones'') by means of symbols. The most common type of phonetic transcription uses a phonetic alphabet, such as the I ...
. 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, or flipped horizontally, like certain
Cyrillic script The Cyrillic script ( ), Slavonic script or the Slavic script, is a writing system used for various languages across Eurasia. It is the designated national script in various Slavic, Turkic, Mongolic, Uralic, Caucasian and Iranic-speaking c ...
letters; *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 The Uralic Phonetic Alphabet (UPA) or Finno-Ugric transcription system is a phonetic transcription or notational system used predominantly for the transcription and reconstruction of Uralic languages. It was first published in 1901 by Eemil Nes ...
system).


Upside-down text

Strategies can be used to render words upside down in languages such as
HTML The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaS ...
that do not permit
rotation Rotation, or spin, is the circular movement of an object around a '' central axis''. A two-dimensional rotating object has only one possible central axis and can rotate in either a clockwise or counterclockwise direction. A three-dimensional ...
of text; using Unicode characters (especially those in the
IPA IPA commonly refers to: * India pale ale, a style of beer * International Phonetic Alphabet, a system of phonetic notation * Isopropyl alcohol, a chemical compound IPA may also refer to: Organizations International * Insolvency Practitioners A ...
), a very close approximation of upside-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, generating a complete set of upside-down lowercase letters. With the addition of the
Fraser alphabet The Fraser or Old Lisu script is an artificial abugida invented around 1915 by Sara Ba Thaw, a Karen preacher from Myanmar and improved by the missionary James O. Fraser, to write the Lisu language. It is a single-case ( unicameral) alphabet. It ...
to the Unicode standard in version 5.2, full (or at least near-full) support for upside-down capital letters is now available. Number support is incomplete; four numbers are universally strobogrammatic (0, 8, and 6/9), and the upside-down versions of numbers 2 and 3 have been provisionally assigned Unicode points for use in dozenal notation; however, other numbers still are not supported. Punctuation (by use of such characters as the
interpunct An interpunct , also known as an interpoint, middle dot, middot and centered dot or centred dot, is a punctuation mark consisting of a vertically centered dot used for interword separation in ancient Latin script. (Word-separating spaces did n ...
and the
inverted question mark and exclamation point The inverted question mark, , and inverted exclamation mark, , are punctuation marks used to begin interrogative and exclamatory sentences or clauses in Spanish and some languages which have cultural ties with Spain, such as Asturian and War ...
) 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 ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because ...
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 Leet (or "1337"), also known as eleet or leetspeak, is a system of modified spellings used primarily on the Internet. It often uses character replacements in ways that play on the similarity of their glyphs via reflection or other resemblance ...
. Another problem is that because not all letters fit well, the USD algorithms cannot be a complete
involution Involution may refer to: * Involute, a construction in the differential geometry of curves * '' Agricultural Involution: The Processes of Ecological Change in Indonesia'', a 1963 study of intensification of production through increased labour inpu ...
(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 In typography, italic type is a cursive font based on a stylised form of calligraphic handwriting. Owing to the influence from calligraphy, italics normally slant slightly to the right. Italics are a way to emphasise key points in a printed ...
. The letter "a" will, in most typefaces using italic fonts, render it as a "one-story"
Latin alpha Latin alpha ( majuscule: Ɑ, minuscule: ɑ) or script a is a letter of the Latin alphabet based on one lowercase form of a, or on the Greek lowercase alpha (α). Usage Although is normally just an allograph of , there are instances in wh ...
, thus causing problems with any word using that letter as a lowercase "e."
Oblique type Oblique type is a form of type that slants slightly to the right, used for the same purposes as italic type. Unlike italic type, however, it does not use different glyph shapes; it uses the same glyphs as roman type, except slanted. Oblique and it ...
does not have this problem. Below is a conversion table that can be used to transform lowercase, uppercase numeric and punctuation output. These characters require Unicode version 8.0 minimum (in particular the ᘔ and Ɛ from the
duodecimal The duodecimal system (also known as base 12, dozenal, or, rarely, uncial) is a positional notation numeral system using twelve as its base. The number twelve (that is, the number written as "12" in the decimal numerical system) is instead wr ...
block).


Sideways text

Sideways text presents a unique problem. 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 An underscore, ; also called an underline, low line, or low dash; is a line drawn under a segment of text. In proofreading, underscoring is a convention that says "set this text in italic type", traditionally used on manuscript or typescript as ...
and overlining) than horizontally, and that most fonts are taller than they are wider, making simulated sideways text look significantly more awkward. Until
CSS3 Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as Scalable Vector Graphics, SVG, MathML or XHTML). CS ...
introduced rotation for block elements,Can I use... CSS3 transforms
/ref> there was no direct way to rotate text at any direction other than the manual 180-degree method described above.
Internet Explorer Internet Explorer (formerly Microsoft Internet Explorer and Windows Internet Explorer, commonly abbreviated IE or MSIE) is a series of graphical web browsers developed by Microsoft which was used in the Windows line of operating systems (in ...
offered a proprietary
CSS Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone technolo ...
property that rotated text 90 degrees clockwise, which has been revised and incorporated into CSS: <div style="writing-mode:vertical-rl;"> There remain some inconsistencies in how the writing-mode property is implemented; rotation can also cause some issues with a given element's width, height and word wrapping. The most common way around these problems was to use
image An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensio ...
s 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 The alt attribute is the HTML attribute used in HTML and XHTML documents to specify alternative Plain text, text (alt text) that is to be displayed in place of an HTML element, element that cannot be rendered. The alt attribute is used for sho ...
so that search engines and text-only browsers can read it properly. The use of
ANSI art The American National Standards Institute (ANSI ) is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States. The organi ...
and
box-drawing character Box-drawing characters, also known as line-drawing characters, are a form of semigraphics widely used in text user interfaces to draw various geometric frames and boxes. Box-drawing characters typically only work well with monospaced fonts. ...
s 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 and is not generally readable by search engines. With the broader adoption of CSS3 by all of the major browsers, these methods are now mostly obsolete for Web media.


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 The Cyrillic script ( ), Slavonic script or the Slavic script, is a writing system used for various languages across Eurasia. It is the designated national script in various Slavic, Turkic, Mongolic, Uralic, Caucasian and Iranic-speaking co ...
, 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, X, 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.


Dilated text

Through the use of Unicode's
small capitals In typography, small caps (short for "small capitals") are characters typeset with glyphs that resemble uppercase letters (capitals) but reduced in height and weight close to the surrounding lowercase letters or text figures. This is technicall ...
, small-form punctuation, and
subscript and superscript A subscript or superscript is a character (such as a number or letter) that is set slightly below or above the normal line of type, respectively. It is usually smaller than the rest of the text. Subscripts appear at or below the baseline, whil ...
phonetic modifiers, text can be created that is smaller than the inline text. This is generally only necessary for applications that only support one-size plain text since HTML and CSS support different text sizes.


Examples

*Artistry, such as representing the two end zones or player designations on an
American football American football (referred to simply as football in the United States and Canada), also known as gridiron, is a team sport played by two teams of eleven players on a rectangular field with goalposts at each end. The offense, the team wi ...
gridiron; e.g. " sɹəꞁəəʇS ɥᵷɹnqsʇʇᴉԀ"from this example
/sup> or (note the use of
hwair Hwair (also , , ) is the name of , the Gothic letter expressing the or sound (reflected in English by the inverted '' wh''-spelling for ). Hwair is also the name of the Latin ligature (capital ) used to transcribe Gothic. Name The name of the ...
as a
dingbat In typography, a dingbat (sometimes more formally known as a printer's ornament or printer's character) is an ornament, specifically, a glyph used in typesetting, often employed to create box frames, (similar to box-drawing characters) or as ...
of the team's logo). *
Emoticon An emoticon (, , rarely , ), short for "emotion icon", also known simply as an emote, is a pictorial representation of a facial expression using characters—usually punctuation marks, numbers, and letters—to express a person's feelings, ...
s are traditionally drawn sideways in North America. *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"). *
Symmetry Symmetry (from grc, συμμετρία "agreement in dimensions, due proportion, arrangement") in everyday language refers to a sense of harmonious and beautiful proportion and balance. In mathematics, "symmetry" has a more precise definiti ...
, such as in the wordmarks for
Nine Inch Nails Nine Inch Nails, commonly abbreviated as NIN and stylized as NIИ, is an American industrial rock band formed in Cleveland in 1988. Singer, songwriter, multi-instrumentalist, and producer Trent Reznor was the only permanent member of the band ...
(NIИ),
ABBA ABBA ( , , formerly named Björn & Benny, Agnetha & Anni-Frid or Björn & Benny, Agnetha & Frida) are a Swedish supergroup formed in Stockholm in 1972 by Agnetha Fältskog, Björn Ulvaeus, Benny Andersson, and Anni-Frid Lyngstad. The grou ...
(AꓭBA), or ''
The Rush Limbaugh Show ''The Rush Limbaugh Show'' is an American conservative talk radio show hosted by Rush Limbaugh. Since its nationally syndicated premiere in 1988, ''The Rush Limbaugh Show'' became the highest-rated talk radio show in the United States. At its ...
'' "EIB" slogan (εıз). The use of transformation in this fashion is known as an ''
ambigram An ambigram is a calligraphic design that has several interpretations as written. The term was coined by Douglas Hofstadter in 1983. Most often, ambigrams appear as visually symmetrical words. When flipped, they remain unchanged, or they mut ...
''. *
Calculator spelling Calculator spelling is an unintended characteristic of the seven-segments display traditionally used by calculators, in which, when read upside-down, the digits resemble letters of the Latin alphabet. Each digit may be mapped to one or more let ...
on seven-segment displays, where numbers represent letters upside down (e.g. 07734, "hello"). * Emulating the
boustrophedon Boustrophedon is a style of writing in which alternate lines of writing are reversed, with letters also written in reverse, mirror-style. This is in contrast to modern European languages, where lines always begin on the same side, usually the le ...
style of writing, where alternating lines are written in opposite directions. *
Pentomino Derived from the Greek word for ' 5', and " domino", a pentomino (or 5-omino) is a polyomino of order 5, that is, a polygon in the plane made of 5 equal-sized squares connected edge-to-edge. When rotations and reflections are not considered ...
es and
tetromino A tetromino is a geometric shape composed of four squares, connected orthogonally (i.e. at the edges and not the corners). Tetrominoes, like dominoes and pentominoes, are a particular type of polyomino. The corresponding polycube, called a tetracu ...
es resemble (and are traditionally named after) Latin letters, and the rotation of these letterlike objects forms the basis of several games, including
Tetris ''Tetris'' (russian: link=no, Тетрис) is a puzzle video game created by Soviet software engineer Alexey Pajitnov in 1984. It has been published by several companies for multiple platforms, most prominently during a dispute over the appro ...
. * Though not strict transformation, the substitution of a plural "s" with its near-reflection "z" is a fairly common
trope Trope or tropes may refer to: Arts, entertainment, and media * Trope (cinema), a cinematic convention for conveying a concept * Trope (literature), a figure of speech or common literary device * Trope (music), any of a variety of different things ...
among some minor league
sports teams A sports team is a group of individuals who play sports ( sports player), usually team sports, on the same team. The number of players in the group depends on type of the sports requirements. Historically, sports teams and the people who play ...
in the United States, in order to make team names seem more modern. * Basic
encryption In cryptography, encryption is the process of encoding information. This process converts the original representation of the information, known as plaintext, into an alternative form known as ciphertext. Ideally, only authorized parties can d ...
, to "hide" the answer to a joke or puzzle, for instance: :Question: How can you tell an introvert from an extrovert? :Answer: ˙sǝoɥs s,ʎnᵷ ɹǝɥʇo ǝɥʇ ʇɐ sʞooꞁ ʇɹǝʌ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)


Russian

:Question: How do flamingos get their color? :Answer: ¿ɯǝʚǹ и̯oʚɔ ɯoıɐhʎvou oɹниꟺɐvф 𝼐ɐ𝼐


Baseball

*In
baseball scorekeeping Baseball scorekeeping is the practice of recording the details of a baseball game as it unfolds. Professional baseball leagues hire official scorers to keep an official record of each game (from which a box score can be generated), but many fans ...
, a player who strikes out despite not swinging at the third strike is indicated in the official scorebook with a reversed or turned K. It has been added to Unicode in version 7.0 at U+A7B0 (Ʞ). *On the Soundgarden album
Superunknown ''Superunknown'' is the fourth studio album by American rock band Soundgarden, released on March 8, 1994, through A&M Records. It is the band's second album with bassist Ben Shepherd, and features new producer Michael Beinhorn. Soundgarden began ...
, all mention of the album or title track (except in the lyrics booklet) is shown as "Superиmoиʞи∩". *The beverage
7Up 7 Up (stylized as 7up outside North America) is an American brand of lemon-lime-flavored non-caffeinated soft drink. The brand and formula are owned by Keurig Dr Pepper although the beverage is internationally distributed by PepsiCo. 7 Up comp ...
during the early 2000s had a spin-off counterpart, known as dnL, with a significantly different color and flavor as well as caffeine. *
Facebook Facebook is an online social media and social networking service owned by American company Meta Platforms. Founded in 2004 by Mark Zuckerberg with fellow Harvard College students and roommates Eduardo Saverin, Andrew McCollum, Dust ...
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 A palindrome is a word, number, phrase, or other sequence of symbols that reads the same backwards as forwards, such as the words ''madam'' or ''racecar'', the date and time ''11/11/11 11:11,'' and the sentence: "A man, a plan, a canal – Pana ...
poetry that reads the same upside-down as it does rightside up.Bacon, Darius
a poem
an

The Palindromist #4.


Comparison of algorithms


See also

*
Ambigram An ambigram is a calligraphic design that has several interpretations as written. The term was coined by Douglas Hofstadter in 1983. Most often, ambigrams appear as visually symmetrical words. When flipped, they remain unchanged, or they mut ...
s often play with perceptual shifts of inverted and rotated text.


References

{{DEFAULTSORT:Transformation Of Text Obfuscation Encodings Leet Constrained writing