Skip to content

Commit

Permalink
doc: BIT-乐学-消除姓名中空格
Browse files Browse the repository at this point in the history
Relates-to: #4
  • Loading branch information
YDX-2147483647 committed Jul 17, 2023
1 parent 4c4bdd2 commit d98c3e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions TamperMonkey/BIT-乐学-消除姓名中空格.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# BIT-乐学-消除姓名中空格

Moodle 是国际化系统,同学的姓、名之间会空格。[乐学](https://lexue.bit.edu.cn/)并未正确设置,同学的“姓”总是名字的第一个字,未必是真的姓,总之显示效果不好。

这段脚本可以消除这些多余空格。

- “绫 波丽” → “绫波丽”:名字不含拉丁字母时,删除空格。
- “Rei Ayanami” → “Rei Ayanami”:包含拉丁字母时,保留原貌。

0 comments on commit d98c3e4

Please sign in to comment.