World Library  
Flag as Inappropriate
Email this Article

Right-to-left mark

Article Id: WHEBN0008605254
Reproduction Date:

Title: Right-to-left mark  
Author: World Heritage Encyclopedia
Language: English
Subject: Word joiner, Latin Extended Additional, Unicode control characters, Enclosed Alphanumerics, Bi-directional text
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Right-to-left mark

The right-to-left mark (RLM) is a non-printing character used in the computerized typesetting of bi-directional text containing mixed left-to-right scripts (such as English and Cyrillic) and right-to-left scripts (such as Persian, Arabic, Syriac and Hebrew). It is used to change the way adjacent characters are grouped with respect to text direction.

Unicode

In Unicode, the RLM character is encoded at U+200F right-to-left mark (HTML: ). In UTF-8 it is E2 80 8F. Usage is prescribed in the Unicode Bidirectional Algorithm.

Example of use in HTML

Suppose the writer wishes to inject a run of Arabic or Hebrew (i.e. right-to-left) text into an English paragraph, with an exclamation point at the end of the run on the left hand side. "I enjoyed staying -- really! -- at his house." With the "really!" in Hebrew renders as follows:

I enjoyed staying -- באמת! -- at his house.

(Note that in a computer's memory, the order of the Hebrew characters is ‎ב‎,‎א‎,‎מ‎,‎ת‎.)

With an RLM added after the exclamation mark, it renders as follows:

I enjoyed staying -- באמת!‏ -- at his house.

(Standards-compliant browsers will render the exclamation mark on the right in the first example, and on the left in the second.)

This happens because the browser recognizes that the paragraph is in a LTR script (Latin), and applies punctuation, which is neutral as to its direction, in coordination with the surrounding (left-to-right) text. The RLM causes the punctuation to be surrounded by only RTL text - the Hebrew and the RLM - and hence be positioned as if it were in right-to-left text, i.e., to the left of the preceding text.

See also

External links

  • Unicode standard annex #9: The bidirectional algorithm
  • Unicode character (U+200F)


This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.