Add non-PUA ZRCola translations to ZRCola to Unicode translation

This allows ZRCola to Unicode translation to use precomposed Unicode
characters and provide better coverage for ZRCola to Unicode
translation.

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2021-12-13 14:37:59 +01:00
parent a3f0662022
commit 0b68cdedda
5 changed files with 21 additions and 9 deletions

View File

@@ -29,6 +29,11 @@ namespace ZRCola {
///
typedef double charrank_t;
inline bool ispua(_In_ wchar_t c)
{
return L'\ue000' <= c && c <= L'\uf8ff';
}
#pragma pack(push)
#pragma pack(2)
///

View File

@@ -33,7 +33,7 @@
///
/// ZRCola to Unicode translation sequence ID
///
#define ZRCOLA_TRANSEQID_UNICODE ((ZRCola::transeqid_t)31)
#define ZRCOLA_TRANSEQID_UNICODE ((ZRCola::transeqid_t)32)
namespace ZRCola {