Exemplo n.º 1
0
        static void WriteChanged_SemiVoiced(VbStrConv mode)
        {
            var changed = EnumerableHelper.RangeChars(char.MinValue, char.MaxValue)
                          .Select(c => new { before = c, after = Strings.StrConv($"{c}゚", mode) })
                          .Where(_ => _.after.Length == 1)
                          .Select(_ => $"{ToMessage1(_.before)} > {ToMessage2(_.after[0])}")
                          .ToArray();

            File.WriteAllLines($"VBStrings-{mode.ToString().Replace(", ", "")}-SemiVoiced.txt", changed, Encoding.UTF8);
        }
Exemplo n.º 2
0
        static void WriteChanged_Narrow(VbStrConv mode)
        {
            // 他言語の文字は "?" に変換されます。
            var changed = EnumerableHelper.RangeChars(char.MinValue, char.MaxValue)
                          .Select(c => new { before = c, after = Strings.StrConv(c.ToString(), mode) })
                          .Where(_ => _.before.ToString() != _.after)
                          .Where(_ => TargetChars.Contains(_.before) || _.after != "?")
                          .Select(_ => $"{ToMessage1(_.before)} > {(_.after.Length == 1 ? ToMessage2(_.after[0]) : _.after)}")
                          .ToArray();

            File.WriteAllLines($"VBStrings-{mode.ToString().Replace(", ", "")}.txt", changed, Encoding.UTF8);
        }