Skip to content

Conversation

@pt2919
Copy link

@pt2919 pt2919 commented Sep 5, 2025

修改内容

  1. NAPS2.Ocr/Tesseract/TesseractOcrEngine.cs(第 156-170 行)中,添加文本方向检测逻辑:
    // 新增右-to-左语言检测
    var isRtl = languageCode is "ar" or "he";
    if (isRtl)
    {
        processOptions.SetVariable("textord_right_to_left", "1");
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant