simple-formatter-redux
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSimple Text Formatter
简易文本格式化器
This skill formats text according to style guidelines.
本skill可根据样式规范格式化文本。
Features
功能
- Capitalize sentences
- Fix spacing
- Apply punctuation rules
- 句子首字母大写
- 修正间距
- 应用标点规则
Usage
使用说明
When the user provides text to format, apply the following rules:
- Capitalize first letter of sentences
- Ensure single space after periods
- Remove trailing whitespace
In most cases, you should use the python tool in rather
than attempting the conversion yourself.
scripts/formatter.py当用户提供需要格式化的文本时,遵循以下规则:
- 句子首字母大写
- 确保句号后仅保留单个空格
- 移除尾部空白
大多数情况下,你应该使用中的python工具,而非自行尝试完成转换。
scripts/formatter.pyExample
示例
Input: "hello world.this is a test."
Output: "Hello world. This is a test."
输入:"hello world.this is a test."
输出:"Hello world. This is a test."