unic_bidi/format_chars.rs
1// Copyright 2015 The Servo Project Developers.
2// Copyright 2017 The UNIC Project Developers.
3//
4// See the COPYRIGHT file at the top-level directory of this distribution.
5//
6// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9// option. This file may not be copied, modified, or distributed
10// except according to those terms.
11
12//! Directional Formatting Characters
13//!
14//! <https://www.unicode.org/reports/tr9/#Directional_Formatting_Characters>
15
16// == Implicit ==
17/// ARABIC LETTER MARK
18pub const ALM: char = '\u{061C}';
19/// LEFT-TO-RIGHT MARK
20pub const LRM: char = '\u{200E}';
21/// RIGHT-TO-LEFT MARK
22pub const RLM: char = '\u{200F}';
23
24// == Explicit Isolates ==
25/// LEFT‑TO‑RIGHT ISOLATE
26pub const LRI: char = '\u{2066}';
27/// RIGHT‑TO‑LEFT ISOLATE
28pub const RLI: char = '\u{2067}';
29/// FIRST STRONG ISOLATE
30pub const FSI: char = '\u{2068}';
31/// POP DIRECTIONAL ISOLATE
32pub const PDI: char = '\u{2069}';
33
34// == Explicit Embeddings and Overrides ==
35/// LEFT-TO-RIGHT EMBEDDING
36pub const LRE: char = '\u{202A}';
37/// RIGHT-TO-LEFT EMBEDDING
38pub const RLE: char = '\u{202B}';
39/// POP DIRECTIONAL FORMATTING
40pub const PDF: char = '\u{202C}';
41/// LEFT-TO-RIGHT OVERRIDE
42pub const LRO: char = '\u{202D}';
43/// RIGHT-TO-LEFT OVERRIDE
44pub const RLO: char = '\u{202E}';