Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多行合并问题 #189

Open
xameless opened this issue Oct 13, 2023 · 2 comments
Open

多行合并问题 #189

xameless opened this issue Oct 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@xameless
Copy link

xameless commented Oct 13, 2023

好像是用大写开头来判断是否是一个句子开头,但是会误判一些变量和专有名词

// The UDP ASSOCIATE request is used to establish an association within
// the UDP relay process to handle UDP datagrams.  The DST.ADDR and
// DST.PORT fields contain the address and port that the client expects
// to use to send UDP datagrams on for the association.  The server MAY
// use this information to limit access to the association.  If the
// client is not in possession of the information at the time of the UDP
// ASSOCIATE, the client MUST use a port number and address of all
// zeros. RFC1928

会合并成这样,还有这个zero不知道为什么没有合并到上一行

//UDP ASSOCIATE 请求用于在 UDP 中继进程内建立关联以处理 UDP 数据报。 DST.ADDR 和
//DST.PORT 字段包含客户端希望用于发送关联的 UDP 数据报的地址和端口。服务器可以使用此信息来限制对关联的访问。如果客户端在 UDP 时不拥有该信息
//ASSOCIATE,客户端必须使用所有的端口号和地址
//零。 RFC1928

把A和D改成小写之后就是这样,zero还是没有合并
Snipaste_2023-10-13_11-43-39

@intellism intellism added the bug Something isn't working label Oct 13, 2023
@XIYU11864
Copy link

遇到了同样的问题。

@one-pyy
Copy link

one-pyy commented Dec 24, 2024

+1,同时双小写开头就会认为是两个句子。对我个人来说,一个分行可能不是很重要(除非段落非常长),但把句子分割开来就会影响翻译结果。(或许是否能通过判断句末是否为句号/问号等结束符号来分割?如果没有句号则默认合并?)

[Start translate]: Use 'Kaiqun.tencent-cloud-translate-tencentCloud' translate source
[Kaiqun.tencent-cloud-translate-tencentCloud]:
we're returning an integer, but the signature
says we're returning a float.
[<============================>]:
我们会返回一个integer,但签名
说我们要归还花车。

[Start translate]: Use 'Kaiqun.tencent-cloud-translate-tencentCloud' translate source
[Kaiqun.tencent-cloud-translate-tencentCloud]:
You can change the category the function appears under in
Excel by using the optional argument 'category'.
[<============================>]:
您可以更改该功能出现的类别
通过使用可选参数“category”进行Excel。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants