Repository: BYVoid/OpenCC (2026-04-11T16:34:13Z)

Issue:
倒霉 incorrectly translates into 倒黴
The wrong translation occurs for Simplified → Traditional, all variants.

The correct one should be 倒霉 (which is no translation), or 倒楣 (Taiwan-specific word).


Discussion:
此问题仍存在 https://opencc.js.org/compare?t=%E5%80%92%E9%9C%89



Patch:
diff --git a/data/dictionary/STPhrases.txt b/data/dictionary/STPhrases.txt
index f4798b9b5..be3b55e5a 100644
--- a/data/dictionary/STPhrases.txt
+++ b/data/dictionary/STPhrases.txt
@@ -4697,6 +4697,7 @@
 倒置干戈	倒置干戈
 倒载干戈	倒載干戈
 倒钟摆效应	倒鐘擺效應
+倒霉	倒霉
 候虫	候蟲
 倚儿不当	倚兒不當
 倚多为胜	倚多爲勝


Test patch:
diff --git a/test/testcases/testcases.json b/test/testcases/testcases.json
index 7f19c9281..f69949236 100755
--- a/test/testcases/testcases.json
+++ b/test/testcases/testcases.json
@@ -501,6 +501,16 @@
       "expected": {
         "tw2sp": "宏定义、宏展开、宏调用、宏替换、宏命令、宏语言、宏处理、宏函数、宏指令和宏编程"
       }
+    },
+    {
+      "id": "BYVoid_OpenCC_Issue_daomei",
+      "input": "倒霉",
+      "expected": {
+        "s2t": "倒霉",
+        "s2tw": "倒霉",
+        "s2twp": "倒霉",
+        "s2hk": "倒霉"
+      }
     }
   ]
 }