simple-formatter
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSimple Text Formatter
简单文本格式化工具
This skill formats text according to style guidelines.
该技能可根据样式指南格式化文本。
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."