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 a mix of left-to-right scripts (such as Latin and Cyrillic) and right-to-left scripts (such as Arabic, Persian, Syriac, and Hebrew).

RLM is used to change the way adjacent characters are grouped with respect to text direction. However, for Arabic script, Arabic letter mark may be a better choice.

Unicode

In Unicode, the RLM character is encoded at U+200F RIGHT-TO-LEFT MARK (). In UTF-8 it is E2 80 AF. Usage is prescribed in the Unicode Bidi (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‏, the sentence 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

References


Tags:

Right-To-Left Mark UnicodeRight-To-Left Mark Example of use in HTMLRight-To-Left MarkArabic scriptBi-directional textCyrillic scriptHebrew alphabetLatin scriptNon-printing characterPersian alphabetSyriac alphabetTypesetting

🔥 Trending searches on Wiki English:

2024 Indian general election in West BengalDrag Me to HellAlgebraic notation (chess)Robert Downey Jr.Shameless (American TV series)XXX (2002 film)George W. BushCatSolar eclipseList of Royal Challengers Bangalore recordsAlbert EinsteinThe Eras TourRobert HanssenLee GreenwoodThe Ministry of Ungentlemanly WarfareLeave the World Behind (film)Robert F. Kennedy Jr. 2024 presidential campaignJennifer LawrenceQuentin TarantinoBharatiya Janata PartyJosh Peck2024 Andhra Pradesh Legislative Assembly electionList of James Bond filmsRussian invasion of UkraineKaya ScodelarioAbraham LincolnJordan CameronList of ethnic slursRyan GarciaPaul AtreidesJesusInvincible (TV series)Christina ApplegateSandy Hook Elementary School shootingI-35W Mississippi River bridgeDrake BellSaltburn (film)Shaquille O'NealKobe Bryant2022 FIFA World CupOttoman EmpireMillennialsKaty O'BrianLes FerdinandQueen VictoriaGeneration XNarendra ModiJosh DoanStranger ThingsLeonardo DiCaprioAadhaarAkira ToriyamaLate Night with the DevilList of dates for EasterAlia BhattList of Twenty20 cricket recordsGmailHalo (TV series)Will Smith2 Girls 1 CupXXXX (album)Kristen StewartList of presidents of the United StatesUEFA European ChampionshipAnimal (2023 Indian film)List of Hindi films of 2024Ted McGinley2024 Indian Premier LeagueClint EastwoodBob MarleyBruce WillisBreaking BadShah Rukh KhanChatGPTThe Voice (American season 25)🡆 More