From 07816623446c4b303581f175c7dc7d5c99ef1fbd Mon Sep 17 00:00:00 2001 From: GreenComfyTea Date: Tue, 10 Oct 2023 10:17:36 +0300 Subject: [PATCH] Update Unicode Ranges --- .../autorun/MHR_Overlay/Misc/language.lua | 72 ++++++++++--------- .../data/MHR Overlay/languages/ja-jp.json | 8 ++- .../data/MHR Overlay/languages/ko-kr.json | 12 ++++ .../data/MHR Overlay/languages/ru-ru.json | 12 ++-- .../data/MHR Overlay/languages/zh-cn.json | 12 +++- .../data/MHR Overlay/languages/zh-tw.json | 12 +++- 6 files changed, 82 insertions(+), 46 deletions(-) diff --git a/reframework/autorun/MHR_Overlay/Misc/language.lua b/reframework/autorun/MHR_Overlay/Misc/language.lua index 10bf175..abd5bd1 100644 --- a/reframework/autorun/MHR_Overlay/Misc/language.lua +++ b/reframework/autorun/MHR_Overlay/Misc/language.lua @@ -37,39 +37,45 @@ local package = package; this.language_folder = "MHR Overlay\\languages\\"; --- this.traditional_chinese_ranges = { --- 0x0020, 0x00FF, -- Basic Latin + Latin Supplement --- 0x2000, 0x206F, -- General Punctuation --- 0x2E80, 0x2EFF, -- CJK Radicals Supplement --- 0x3000, 0x303F, -- CJK Symbols and Punctuations --- 0x31F0, 0x31FF, -- Katakana Phonetic Extensions --- 0x3200, 0x4DBF, -- Enclosed CJK Letters and Months, CJK Compatibility, CJK Unified Ideographs Extension A --- 0x4E00, 0x9FAF, -- CJK Unified Ideograms --- 0xF900, 0xFAFF, -- CJK Compatibility Ideographs --- 0xFE30, 0xFE4F, -- CJK Compatibility Forms --- 0xFF00, 0xFFEF, -- Half-width characters +-- this.chinese_ranges = { +-- 0x0020, 0x00FF, -- Basic Latin + Latin Supplement 32, 255, +-- 0x2000, 0x206F, -- General Punctuation 8192, 8303, +-- 0x2E80, 0x2EFF, -- CJK Radicals Supplement 11904, 12031, +-- 0x3000, 0x303F, -- CJK Symbols and Punctuations 12288, 12351, +-- 0x3200, 0x4DBF, -- Enclosed CJK Letters and Months, CJK Compatibility, CJK Unified Ideographs Extension A 12800, 19903, +-- 0x4E00, 0x9FAF, -- CJK Unified Ideograms 19968, 40879, +-- 0xF900, 0xFAFF, -- CJK Compatibility Ideographs 63744, 64255, +-- 0xFE30, 0xFE4F, -- CJK Compatibility Forms 65072, 65103, +-- 0xFF00, 0xFFEF, -- Half-width characters 65280, 65519, +-- 0 -- }; -- this.japanese_glyph_ranges = { --- 0x0020, 0x00FF, -- Basic Latin + Latin Supplement --- 0x2000, 0x206F, -- General Punctuation --- 0x2E80, 0x2EFF, -- CJK Radicals Supplement --- 0x3000, 0x30FF, -- CJK Symbols and Punctuations, Hiragana, Katakana --- 0x31F0, 0x31FF, -- Katakana Phonetic Extensions --- 0x3200, 0x4DBF, -- Enclosed CJK Letters and Months, CJK Compatibility, CJK Unified Ideographs Extension A --- 0x4E00, 0x9FAF, -- CJK Unified Ideograms --- 0xF900, 0xFAFF, -- CJK Compatibility Ideographs --- 0xFE30, 0xFE4F, -- CJK Compatibility Forms --- 0xFF00, 0xFFEF, -- Half-width characters +-- 0x0020, 0x00FF, -- Basic Latin + Latin Supplement 32, 255, +-- 0x2000, 0x206F, -- General Punctuation 8192, 8303, +-- 0x2E80, 0x2EFF, -- CJK Radicals Supplement 11904, 12031, +-- 0x3000, 0x30FF, -- CJK Symbols and Punctuations, Hiragana, Katakana 12288, 12543, +-- 0x31F0, 0x4DBF, -- Katakana Phonetic Extensions, Enclosed CJK Letters and Months, CJK Compatibility, CJK Unified Ideographs Extension A 12784, 19903, +-- 0x4E00, 0x9FAF, -- CJK Unified Ideograms 19968, 40879, +-- 0xF900, 0xFAFF, -- CJK Compatibility Ideographs 63744, 64255, +-- 0xFE30, 0xFE4F, -- CJK Compatibility Forms 65072, 65103, +-- 0xFF00, 0xFFEF, -- Half-width characters 65280, 65519, +-- 0 -- }; -- this.korean_glyph_ranges = { --- 0x0020, 0x00FF, -- Basic Latin + Latin Supplement --- 0x1100, 0x11FF, -- Hangul Jamo --- 0x2000, 0x206F, -- General Punctuation --- 0x3130, 0x318F, -- Hangul Compatibility Jamo --- 0xAC00, 0xD7AF, -- Hangul Syllables --- 0xFF00, 0xFFEF, -- Half-width characters +-- 0x0020, 0x00FF, -- Basic Latin + Latin Supplement 32, 255, +-- 0x1100, 0x11FF, -- Hangul Jamo 4352, 4607, +-- 0x2000, 0x206F, -- General Punctuation 8192, 8303, +-- 0x2E80, 0x2EFF, -- CJK Radicals Supplement 11904, 12031, +-- 0x3000, 0x303F, -- CJK Symbols and Punctuations 12288, 12351, +-- 0x3130, 0x318F, -- Hangul Compatibility Jamo 12592, 12687, +-- 0x3200, 0x4DBF, -- Enclosed CJK Letters and Months, CJK Compatibility, CJK Unified Ideographs Extension A 12800, 19903, +-- 0x4E00, 0x9FAF, -- CJK Unified Ideograms 19968, 40879, +-- 0xAC00, 0xD7AF, -- Hangul Syllables 44032, 55215, +-- 0xF900, 0xFAFF, -- CJK Compatibility Ideographs 63744, 64255, +-- 0xFE30, 0xFE4F, -- CJK Compatibility Forms 65072, 65103, +-- 0xFF00, 0xFFEF, -- Half-width characters 65280, 65519, -- 0 -- } @@ -77,12 +83,12 @@ this.current_language = {}; this.default_language = { font_name = "NotoSans-Bold.otf", unicode_glyph_ranges = { - 0x0020, 0x00FF, -- Basic Latin + Latin Supplement - 0x0100, 0x017F, -- Latin Extended-A - 0x0400, 0x052F, -- Cyrillic - 0x1E00, 0x1EFF, -- Latin Extended Additional - 0x2000, 0x206F, -- General Punctuation - 0xFF00, 0xFFEF, -- Halfwidth and Fullwidth Forms + 0x0020, 0x00FF, -- Basic Latin + Latin Supplement 32, 255, + 0x0100, 0x017F, -- Latin Extended-A 256, 383, + 0x0400, 0x052F, -- Cyrillic 1024, 1327, + 0x1E00, 0x1EFF, -- Latin Extended Additional 7680, 7935, + 0x2000, 0x206F, -- General Punctuation 8192, 8303, + 0xFF00, 0xFFEF, -- Halfwidth and Fullwidth Forms 65280, 65519, 0 }, diff --git a/reframework/data/MHR Overlay/languages/ja-jp.json b/reframework/data/MHR Overlay/languages/ja-jp.json index d202e61..984748a 100644 --- a/reframework/data/MHR Overlay/languages/ja-jp.json +++ b/reframework/data/MHR Overlay/languages/ja-jp.json @@ -602,12 +602,18 @@ 255, 8192, 8303, + 11904, + 12031, 12288, 12543, 12784, - 12799, + 19903, 19968, 40879, + 63744, + 64255, + 65072, + 65103, 65280, 65519, 0 diff --git a/reframework/data/MHR Overlay/languages/ko-kr.json b/reframework/data/MHR Overlay/languages/ko-kr.json index ad82197..2abb413 100644 --- a/reframework/data/MHR Overlay/languages/ko-kr.json +++ b/reframework/data/MHR Overlay/languages/ko-kr.json @@ -604,10 +604,22 @@ 4607, 8192, 8303, + 11904, + 12031, + 12288, + 12351, 12592, 12687, + 12800, + 19903, + 19968, + 40879, 44032, 55215, + 63744, + 64255, + 65072, + 65103, 65280, 65519, 0 diff --git a/reframework/data/MHR Overlay/languages/ru-ru.json b/reframework/data/MHR Overlay/languages/ru-ru.json index 0ba9f95..108473c 100644 --- a/reframework/data/MHR Overlay/languages/ru-ru.json +++ b/reframework/data/MHR Overlay/languages/ru-ru.json @@ -409,7 +409,7 @@ "stinkmink": "Пахучка", "yellow_lampsquid": "Жлт. Лампокальм." }, - "font_name": "NotoSansKR-Bold.otf", + "font_name": "NotoSans-Bold.otf", "item_buffs": { "adamant_seed": "Адамант. зерно", "armor_ammo": "Защитные снаряды", @@ -600,16 +600,16 @@ "unicode_glyph_ranges": [ 32, 255, + 256, + 383, 1024, - 1241, + 1327, + 7680, + 7935, 8192, 8303, 65280, 65519, - 0, - 8303, - 65280, - 65519, 0 ], "weapon_skills": { diff --git a/reframework/data/MHR Overlay/languages/zh-cn.json b/reframework/data/MHR Overlay/languages/zh-cn.json index aad13c7..a9789ee 100644 --- a/reframework/data/MHR Overlay/languages/zh-cn.json +++ b/reframework/data/MHR Overlay/languages/zh-cn.json @@ -602,12 +602,18 @@ 255, 8192, 8303, + 11904, + 12031, 12288, - 12543, - 12784, - 12799, + 12351, + 12800, + 19903, 19968, 40879, + 63744, + 64255, + 65072, + 65103, 65280, 65519, 0 diff --git a/reframework/data/MHR Overlay/languages/zh-tw.json b/reframework/data/MHR Overlay/languages/zh-tw.json index 827f043..ee2baf9 100644 --- a/reframework/data/MHR Overlay/languages/zh-tw.json +++ b/reframework/data/MHR Overlay/languages/zh-tw.json @@ -602,12 +602,18 @@ 255, 8192, 8303, + 11904, + 12031, 12288, - 12543, - 12784, - 12799, + 12351, + 12800, + 19903, 19968, 40879, + 63744, + 64255, + 65072, + 65103, 65280, 65519, 0