算法缺陷导致 s2twp 的「正则表达式 => 正规表示式」功能不起作用
As the title suggests, although TWPhrases* defines "regular expression => regular expression", the actual usage converts "regular expression" to "regular expression". I don't understand the C code very well, but based on the current configuration file of s2twp, it seems that the program first performs word segmentation based on STPhrases.ocd2, and then performs simplified-to-complex conversion and regional word conversion on the segmented sentences. Since STPhrases already has the term "expression => expression", the original text is cut into "regular expression", and then converted to "regular expression" due to simplification. Since it has been cut, the definition of "regular expression => regular expression" in TWPhrases* cannot be matched. The algorithm may need to be improved, otherwise this problem can only be solved by adding "regular expression => regular expression" to STPhrases.
内容来源: BYVoid/OpenCC