mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
(svn r21047) [1.0] -Backport from trunk:
- Fix: Chat/console messages got sometimes messed up due to LTR names in RTL translations and vice-versa [FS#3746] (r21006, r21004) - Fix: Size of sort buttons for order and vehicle list gui could be too small (r20997) - Fix: [NewGRF] The X and Y offsets in the parameter for industry vars 60, 61, 62, 63 are unsigned instead of signed (r20996) [1.0] -Add: Knowledge about the existence of XZ/LZMA compressed savegames so loading those gives a proper error message (Yexo)
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
/** A non-breaking space. */
|
||||
#define NBSP "\xC2\xA0"
|
||||
|
||||
/** A left-to-right marker, marks the next character as left-to-right. */
|
||||
#define LRM "\xE2\x80\x8E"
|
||||
|
||||
/**
|
||||
* Valid filter types for IsValidChar.
|
||||
*/
|
||||
@@ -27,4 +30,14 @@ enum CharSetFilter {
|
||||
|
||||
typedef uint32 WChar;
|
||||
|
||||
/* The following are directional formatting codes used to get the LTR and RTL strings right:
|
||||
* http://www.unicode.org/unicode/reports/tr9/#Directional_Formatting_Codes */
|
||||
static const WChar CHAR_TD_LRM = 0x200E; ///< The next character acts like a left-to-right character.
|
||||
static const WChar CHAR_TD_RLM = 0x200F; ///< The next character acts like a right-to-left character.
|
||||
static const WChar CHAR_TD_LRE = 0x202A; ///< The following text is embedded left-to-right.
|
||||
static const WChar CHAR_TD_RLE = 0x202B; ///< The following text is embedded right-to-left.
|
||||
static const WChar CHAR_TD_LRO = 0x202D; ///< Force the following characters to be treated as left-to-right characters.
|
||||
static const WChar CHAR_TD_RLO = 0x202E; ///< Force the following characters to be treated as right-to-left characters.
|
||||
static const WChar CHAR_TD_PDF = 0x202C; ///< Restore the text-direction state to before the last LRE, RLE, LRO or RLO.
|
||||
|
||||
#endif /* STRING_TYPE_H */
|
||||
|
||||
Reference in New Issue
Block a user