Skip to content

Instantly share code, notes, and snippets.

View nthung-2k5's full-sized avatar

Nguyễn Trường Hưng (Harlow Nylvesky) nthung-2k5

  • Cần Thơ, Việt Nam
View GitHub Profile
@nthung-2k5
nthung-2k5 / ExportEnLangBetter.csx
Last active June 15, 2025 04:47
UndertaleModTool script to extract English text from DELTARUNE Chapter 2 (and above) data.win to lang_en.json
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using System.Linq;
using System.Collections.Concurrent;
using System.Collections.Specialized;
using System.Text.Encodings.Web;
using Underanalyzer.Decompiler;
@nthung-2k5
nthung-2k5 / tcvn3_unicode.py
Last active May 17, 2022 05:16
TCVN3 to Unicode (Python 3)
# -*- coding: utf-8 -*-
# Based on the original tool https://gist.github.com/congkhoa/bcd46eea4972d01aad15f2c603b560c7 (the original can only TCVN3 -> Unicode)
# Dựa trên công cụ gốc https://gist.github.com/congkhoa/bcd46eea4972d01aad15f2c603b560c7 (bản gốc chỉ có thể chuyển TCVN3 -> Unicode)
import re
TCVN3TAB = "µ¸¶·¹¨»¾¼½Æ©ÇÊÈÉË®ÌÐÎÏѪÒÕÓÔÖ×ÝØÜÞßãáâä«åèæçé¬êíëìîïóñòô\u00adõøö÷ùúýûüþ¡¢§£¤¥¦" # NOQA
TCVN3TAB = [ch for ch in TCVN3TAB]
UNICODETAB = "àáảãạăằắẳẵặâầấẩẫậđèéẻẽẹêềếểễệìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵĂÂĐÊÔƠƯ" # NOQA