开源改变世界

Debian lintian 发现的几个错别字 #2218

推推 grbl 3年前 (2023-01-31) 257次浏览
打开
petterreinholdtsen 打开了这个问题 2022 年 12 月 20 日 · 10 条评论
打开

Debian lintian 发现的几个错别字#2218

petterreinholdtsen 打开了这个问题 2022 年 12 月 20 日 · 10 条评论

注释

Debian lintian 发现的几个错别字 #2218

debian 构建工具 lintian 在源代码 debian 包中发现了几个拼写错误。这是修复检测到的问题的脚本。我不认为只在源存储库上运行它有什么意义,因为一些拼写错误出现在 linuxcnc 存储库中不存在的文件中。

#!/bin/sh
#
# Fix several typos discovered by lintian in the linuxcnc source package:
#
# W: linuxcnc-doc-es: spelling-error-in-changelog embeded embedded
# W: linuxcnc-doc-es: spelling-error-in-changelog Portugese Portuguese
# W: linuxcnc-doc-es: spelling-error-in-changelog more more (duplicate word) more
# W: linuxcnc-doc-es: spelling-error-in-changelog vesion version
# W: linuxcnc-doc-es: spelling-error-in-changelog unecessary unnecessary
# W: linuxcnc-doc-es: spelling-error-in-changelog commmand command
# W: linuxcnc-doc-es: spelling-error-in-changelog authorative authoritative
# W: linuxcnc-doc-es: spelling-error-in-changelog interpeter interpreter
# W: linuxcnc-doc-es: spelling-error-in-changelog crtical critical
# W: linuxcnc-doc-es: spelling-error-in-changelog consistant consistent
# W: linuxcnc-doc-es: spelling-error-in-changelog overriden overridden
# W: linuxcnc-doc-es: spelling-error-in-changelog Futher Further
# W: linuxcnc-doc-es: spelling-error-in-changelog hightlighting highlighting
# W: linuxcnc-doc-es: spelling-error-in-changelog folowing following
# W: linuxcnc-doc-es: spelling-error-in-changelog incase in case
# W: linuxcnc-doc-es: spelling-error-in-changelog mutiple multiple
# W: linuxcnc-doc-es: spelling-error-in-changelog upto up to
# W: linuxcnc-doc-es: spelling-error-in-changelog occurences occurrences
# W: linuxcnc-doc-es: spelling-error-in-changelog occassionally occasionally
# W: linuxcnc-doc-es: spelling-error-in-changelog substract subtract
# W: linuxcnc-doc-es: spelling-error-in-changelog possibilty possibility
# W: linuxcnc-doc-es: spelling-error-in-changelog missmatch mismatch
# W: linuxcnc-doc-es: spelling-error-in-changelog documention documentation
# W: linuxcnc-doc-es: spelling-error-in-changelog relatd related
# W: linuxcnc-doc-es: spelling-error-in-changelog formated formatted
# W: linuxcnc-doc-es: spelling-error-in-changelog calulation calculation
# W: linuxcnc-doc-es: spelling-error-in-changelog menues menus
# W: linuxcnc-doc-es: spelling-error-in-changelog inadvertantly inadvertently
# W: linuxcnc-doc-es: spelling-error-in-changelog surounding surrounding
# W: linuxcnc-doc-es: spelling-error-in-changelog commited committed
# W: linuxcnc-doc-es: spelling-error-in-changelog accessable accessible
# W: linuxcnc-doc-es: spelling-error-in-changelog follwing following
# W: linuxcnc-doc-es: spelling-error-in-changelog intial initial
# W: linuxcnc-doc-es: spelling-error-in-changelog lables labels
# W: linuxcnc-doc-es: spelling-error-in-changelog exising existing
# W: linuxcnc-doc-es: spelling-error-in-changelog openning opening
# W: linuxcnc-doc-es: spelling-error-in-changelog documenation documentation
# W: linuxcnc-doc-es: spelling-error-in-changelog distrubution distribution
# W: linuxcnc-doc-es: spelling-error-in-changelog requiere require
# W: linuxcnc-doc-es: spelling-error-in-changelog temparary temporary
# W: linuxcnc-doc-es: spelling-error-in-changelog consistancy consistency
# W: linuxcnc-doc-es: spelling-error-in-changelog intialization initialization
# W: linuxcnc-doc-es: spelling-error-in-changelog transistion transition
# W: linuxcnc-doc-es: spelling-error-in-changelog guage gauge
# W: linuxcnc-doc-es: spelling-error-in-changelog bultin builtin
# W: linuxcnc-doc-es: spelling-error-in-changelog compatiblity compatibility
# W: linuxcnc-doc-es: spelling-error-in-changelog exemple example
# W: linuxcnc-doc-es: spelling-error-in-changelog informtion information
# W: linuxcnc-doc-es: spelling-error-in-changelog accelleration acceleration
# W: linuxcnc-doc-es: spelling-error-in-changelog allows to allows one to
# W: linuxcnc-doc-es: spelling-error-in-changelog Allow to Allow one to

replace() {
    key="$1"
    sed="$2"
    sed -i "$sed" $(grep -rl "$key" bin configs COPY* debian docs gnupg/ include ISSUE* lib meson* nc_files README* rtlib scripts share src tcl tests TODO VERSION)
}

replace embeded 's/\<embeded\>/embedded/g'
replace Portugese 's/\<Portugese\>/Portuguese/g'
replace 'more more' 's/\<more more\>/more/g'
replace vesion 's/\<vesion\>/version/g'
replace unecessary 's/\<unecessary\>/unnecessary/g'
replace commmand 's/\<commmand\>/command/g'
replace authorative 's/\<authorative\>/authoritative/g'
replace interpeter 's/\<interpeter\>/interpreter/g'
replace crtical 's/\<crtical\>/critical/g'
replace consistant 's/\<consistant\>/consistent/g'
replace overriden 's/\<overriden\>/overridden/g'
replace Futher 's/\<Futher\>/Further/g'
replace hightlighting 's/\<hightlighting\>/highlighting/g'
replace folowing 's/\<folowing\>/following/g'
replace incase 's/\<incase\>/in case/g'
replace mutiple 's/\<mutiple\>/multiple/g'
replace upto 's/\<upto\>/up to/g'
replace occurences 's/\<occurences\>/occurrences/g'
replace occassionally 's/\<occassionally\>/occasionally/g'
replace substract 's/\<substract\>/subtract/g'
replace possibilty 's/\<possibilty\>/possibility/g'
replace missmatch 's/\<missmatch\>/mismatch/g'
replace documention 's/\<documention\>/documentation/g'
replace relatd 's/\<relatd\>/related/g'
replace formated 's/\<formated\>/formatted/g'
replace calulation 's/\<calulation\>/calculation/g'
replace menues 's/\<menues\>/menus/g'
replace inadvertantly 's/\<inadvertantly\>/inadvertently/g'
replace surounding 's/\<surounding\>/surrounding/g'
replace commited 's/\<commited\>/committed/g'
replace accessable 's/\<accessable\>/accessible/g'
replace follwing 's/\<follwing\>/following/g'
replace intial 's/\<intial\>/initial/g'
replace lables 's/\<lables\>/labels/g'
replace exising 's/\<exising\>/existing/g'
replace openning 's/\<openning\>/opening/g'
replace documenation 's/\<documenation\>/documentation/g'
replace distrubution 's/\<distrubution\>/distribution/g'
replace requiere 's/\<requiere\>/require/g'
replace temparary 's/\<temparary\>/temporary/g'
replace consistancy 's/\<consistancy\>/consistency/g'
replace intialization 's/\<intialization\>/initialization/g'
replace transistion 's/\<transistion\>/transition/g'
replace guage 's/\<guage\>/gauge/g'
replace bultin 's/\<bultin\>/builtin/g'
replace compatiblity 's/\<compatiblity\>/compatibility/g'
replace exemple 's/\<exemple\>/example/g'
replace informtion 's/\<informtion\>/information/g'
replace accelleration 's/\<accelleration\>/acceleration/g'
replace 'allows to' 's/\<allows to\>/allows one to/g'
replace 'Allow to' 's/\<Allow to\>/Allow one to/g'

我机器上的运行时间约为 1 分钟。

Debian lintian 发现的几个错别字 #2218
贡献者

对于更早版本的 LinuxCNC,我也可以纠正拼写错误。

Debian lintian 发现的几个错别字 #2218
合作者

问题看起来很清楚,但我不确定你提出的解决方案是什么?
你是说这不能成为 PR,因为有些文件是生成的?在那种情况下,拼写问题很可能出现在提交评论中,我不确定尝试纠正这些问题是否有意义。

Debian lintian 发现的几个错别字 #2218
合作者作者
彼得赖因霍尔特森 评论了 2022 年 12 月 26 日 通过电子邮件
Debian lintian 发现的几个错别字 #2218
合作者作者
彼得赖因霍尔特森 评论了 2022 年 12 月 26 日 通过电子邮件
Debian lintian 发现的几个错别字 #2218
合作者

进一步看,我尝试寻找的所有示例都出现在提交消息中,我怀疑 Lintian 就是在这里找到它们的。
我做了一些谷歌搜索,我觉得重写提交历史来修复拼写错误可能不是一个好主意。

我很好奇为什么它只在 linuxcnc-doc-es 中发现拼写错误?

Debian lintian 发现的几个错别字 #2218
合作者

如果建议在生成实际的 .deb 文件后运行此脚本,我认为这将需要对其进行解压缩、编辑和重新打包(相应地更新 MD5 总和)

Debian lintian 发现的几个错别字 #2218
合作者作者
彼得赖因霍尔特森 评论了 2022 年 12 月 26 日 通过电子邮件
Debian lintian 发现的几个错别字 #2218
合作者

林天的这篇报道哪里看的?

免费注册 在 GitHub 上加入此对话。已有帐户? 登录评论
标签
还没有
项目

还没有

发展

没有分支机构或拉取请求

3人参加
Debian lintian 发现的几个错别字 #2218Debian lintian 发现的几个错别字 #2218Debian lintian 发现的几个错别字 #2218

喜欢 (0)