Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Unicode  





2 Example of use in HTML  





3 See also  





4 References  





5 External links  














Left-to-right mark






العربية
Català
Deutsch
Français
Italiano

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


The left-to-right mark (LRM) is a control character (an invisible formatting character) used in computerized typesetting of text containing a mix of left-to-right scripts (such as Latin and Cyrillic) and right-to-left scripts (such as Arabic, Syriac, and Hebrew). It is used to set the way adjacent characters are grouped with respect to text direction.

Unicode

[edit]

InUnicode, the LRM character is encoded at U+200E LEFT-TO-RIGHT MARK (‎). In UTF-8 it is E2 80 8E. Usage is prescribed in the Unicode Bidi (bidirectional) algorithm.[1]

Example of use in HTML

[edit]

Suppose the writer wishes to use some English text (a left-to-right script) into a paragraph written in Arabic or Hebrew (a right-to-left script) with non-alphabetic characters to the right of the English text. For example, the writer wants to translate, "The language C++ is a programming language used..." into Arabic. Without an LRM control character, the result looks like this:

لغة C++ هي لغة برمجة تستخدم...

With an LRM entered in the HTML after the ++, it looks like this, as the writer intends:

لغة C++‎ هي لغة برمجة تستخدم...

In the first example, without an LRM control character, a web browser will render the ++ on the left of the "C" because the browser recognizes that the paragraph is in a right-to-left text (Arabic) and applies punctuation, which is neutral as to its direction, according to the direction of the adjacent text. The LRM control character causes the punctuation to be adjacent to only left-to-right text – the "C" and the LRM – and position as if it were in left-to-right text, i.e., to the right of the preceding text.

Some software requires using the HTML code ‎or‎ instead of the invisible Unicode control character itself.[citation needed] Using the invisible control character directly could also make copy editing difficult.

See also

[edit]

References

[edit]
[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Left-to-right_mark&oldid=1235803811"

Categories: 
Control characters
Digital typography
Unicode formatting code points
Hidden categories: 
Articles with short description
Short description is different from Wikidata
Articles to be merged from June 2024
All articles to be merged
Articles needing additional references from January 2019
All articles needing additional references
All articles with unsourced statements
Articles with unsourced statements from April 2019
 



This page was last edited on 21 July 2024, at 09:01 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki