diff options
author | rubidium <rubidium@openttd.org> | 2009-02-12 10:42:22 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-12 10:42:22 +0000 |
commit | a6ea606bb3867ee0776fb486907ee5035f5ec4c1 (patch) | |
tree | d14a6c77614fc60d70a73a74311359024f41111a /src | |
parent | 218f53d3fd8335bcbe4acfe2c57dc5b4316549e4 (diff) | |
download | openttd-a6ea606bb3867ee0776fb486907ee5035f5ec4c1.tar.xz |
(svn r15456) -Fix(ish): add strgen support to add 'directional formatting codes', so one can guide the bidirectional rendering a bit better.
Diffstat (limited to 'src')
-rw-r--r-- | src/strgen/strgen.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp index 0c6c8b133..02de3c076 100644 --- a/src/strgen/strgen.cpp +++ b/src/strgen/strgen.cpp @@ -530,6 +530,16 @@ static const CmdStruct _cmd_structs[] = { {"RIGHTARROW", EmitSingleChar, SCC_RIGHTARROW, 0, C_DONTCOUNT}, {"SMALLLEFTARROW", EmitSingleChar, SCC_LESSTHAN, 0, C_DONTCOUNT}, {"SMALLRIGHTARROW",EmitSingleChar, SCC_GREATERTHAN, 0, C_DONTCOUNT}, + + /* The following are directional formatting codes used to get the RTL strings right: + * http://www.unicode.org/unicode/reports/tr9/#Directional_Formatting_Codes */ + {"LRM", EmitSingleChar, 0x200E, 0, C_DONTCOUNT}, + {"RLM", EmitSingleChar, 0x200F, 0, C_DONTCOUNT}, + {"LRE", EmitSingleChar, 0x202A, 0, C_DONTCOUNT}, + {"RLE", EmitSingleChar, 0x202B, 0, C_DONTCOUNT}, + {"LRO", EmitSingleChar, 0x202D, 0, C_DONTCOUNT}, + {"RLO", EmitSingleChar, 0x202E, 0, C_DONTCOUNT}, + {"PDF", EmitSingleChar, 0x202C, 0, C_DONTCOUNT}, }; |