Handright
Handright copied to clipboard
新增涂改算法
原理:先从输入文本中随机挑选一个字符(非end_chars)输出,然后在上面画一道斜线表示涂改,接着在旁边写下原来正确的字符
为了增加效果,目前设置是50%的概率进行涂改,同时为了迅速看反响如何,所以并没有将代码按原来的格式修改,如果反响不错,我就继续修改
不用这么麻烦。用户只需要在文本中提前预留好要涂改的文字,打印出来之后再用笔手动涂改就行。 况且每个人的涂改风格各不相同,你很难枚举。
---原始邮件--- 发件人: @.> 发送时间: 2023年9月1日(周五) 晚上9:57 收件人: @.>; 抄送: @.***>; 主题: [Gsllchb/Handright] 新增涂改算法 (PR #49)
原理:先从输入文本中随机挑选一个字符(非end_chars)输出,然后在上面画一道斜线表示涂改,接着在旁边写下原来正确的字符
为了增加效果,目前设置是50%的概率进行涂改,同时为了迅速看反响如何,所以并没有将代码按原来的格式修改,如果反响不错,我就继续修改
You can view, comment on, or merge this pull request online at:
https://github.com/Gsllchb/Handright/pull/49
Commit Summary
aaa0185 新增涂改算法
File Changes
(2 files)
M handright/_core.py (38)
M handright/_template.py (19)
Patch Links:
https://github.com/Gsllchb/Handright/pull/49.patch
https://github.com/Gsllchb/Handright/pull/49.diff
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
搞个投票吧
新增参数:
strikethrough_probability: "涂改出现的几率",
strikethrough_length_sigma: "涂改线长度的标准差",
strikethrough_width_sigma: "涂改线宽度的标准差",
strikethrough_angle_sigma: "涂改线角度的标准差",
strikethrough_width: "涂改线宽度",