simple-formatter-redux

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Simple 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:
  1. Capitalize first letter of sentences
  2. Ensure single space after periods
  3. Remove trailing whitespace
In most cases, you should use the python tool in
scripts/formatter.py
rather than attempting the conversion yourself.
当用户提供需要格式化的文本时,遵循以下规则:
  1. 句子首字母大写
  2. 确保句号后仅保留单个空格
  3. 移除尾部空白
大多数情况下,你应该使用
scripts/formatter.py
中的python工具,而非自行尝试完成转换。

Example

示例

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."