We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2427f5 commit 41e829fCopy full SHA for 41e829f
Flow.Launcher.Infrastructure/DoublePinAlphabet.cs
@@ -29,7 +29,7 @@ public bool CanBeTranslated(string stringToTranslate)
29
30
public (string translation, TranslationMapping map) Translate(string content)
31
{
32
- if (_settings.ShouldUseDoublePin)
+ if (_settings.ShouldUsePinyin)
33
34
if (!_doublePinCache.ContainsKey(content))
35
@@ -57,7 +57,7 @@ public bool CanBeTranslated(string stringToTranslate)
57
58
if (content[i] >= 0x3400 && content[i] <= 0x9FD5)
59
60
- string dp = ToDoublePin(resultList[i].ToLower());
+ string dp = _settings.ShouldUseDoublePin ? resultList[i] : ToDoublePin(resultList[i].ToLower());
61
map.AddNewIndex(i, resultBuilder.Length, dp.Length + 1);
62
resultBuilder.Append(' ');
63
resultBuilder.Append(dp);
0 commit comments