Git Product home page Git Product logo

Comments (5)

fatecyx avatar fatecyx commented on August 26, 2024

建议取消翻译时提取name
这一步应该提取文本时做的

from galtransl.

fatecyx avatar fatecyx commented on August 26, 2024

再补充一下,我猜测同样是name引起的,大概是原文的「」因为name为空被删掉了
原文:
「当てル」
缓存:
{
"index": 511,
"name": "",
"pre_jp": "当てル",
"post_jp": "当てル",
"pre_zh": "打中了",
"proofread_zh": "",
"trans_by": "galtransl-v1",
"proofread_by": "",
"post_zh_preview": "打中了"
},
结果:
打中了

from galtransl.

xd2333 avatar xd2333 commented on August 26, 2024

再补充一下,我猜测同样是name引起的,大概是原文的「」因为name为空被删掉了 原文: 「当てル」 缓存: { "index": 511, "name": "", "pre_jp": "当てル", "post_jp": "当てル", "pre_zh": "打中了", "proofread_zh": "", "trans_by": "galtransl-v1", "proofread_by": "", "post_zh_preview": "打中了" }, 结果: 打中了

pre_jp一定是GalTransl读取的原文,所以pre_jp没有对话框的话,是原文无对话框,或者读取的文件插件有问题。提供一下原始文本看看

from galtransl.

fatecyx avatar fatecyx commented on August 26, 2024

之前搞错了,是file_translator++_xlsx这个插件的问题
myProject.zip

from galtransl.

xd2333 avatar xd2333 commented on August 26, 2024

@PiDanShouRouZhouXD

看下这里

settings.get("名称识别正则表达式", r"^(?P<name>.*?)「(?P<message>.*?)」$"), re.DOTALL)

是否应该是r"^(?P.?)(「?P.?」)$"),不然会导致name为空时message的「」符号不见了

from galtransl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.