Skip to content

Commit 91be62d

Browse files
Temp: compatibility with full pinyin option
1 parent 5434b1c commit 91be62d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Infrastructure/DoublePinAlphabet.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public bool CanBeTranslated(string stringToTranslate)
2929

3030
public (string translation, TranslationMapping map) Translate(string content)
3131
{
32-
if (_settings.ShouldUseDoublePin)
32+
if (_settings.ShouldUsePinyin)
3333
{
3434
if (!_doublePinCache.ContainsKey(content))
3535
{
@@ -57,7 +57,7 @@ public bool CanBeTranslated(string stringToTranslate)
5757
{
5858
if (content[i] >= 0x3400 && content[i] <= 0x9FD5)
5959
{
60-
string dp = ToDoublePin(resultList[i].ToLower());
60+
string dp = _settings.ShouldUseDoublePin ? resultList[i] : ToDoublePin(resultList[i].ToLower());
6161
map.AddNewIndex(i, resultBuilder.Length, dp.Length + 1);
6262
resultBuilder.Append(' ');
6363
resultBuilder.Append(dp);

0 commit comments

Comments
 (0)