apply_chinese_style
Apply Chinese-optimized formatting to Excel files: use Chinese font for headers, auto-adjust column widths for Chinese text, freeze the header row, and add thin borders.
Instructions
套用中文场景样式:中文字体表头、自动列宽(中文按 2 字符宽)、冻结首行、细边框。
为什么需要它:通用规范常推荐 Arial/Times New Roman,但对中文表格并不适用。 本工具默认使用微软雅黑(屏幕阅读友好),并让中文列宽自适应(中文按 2 字符宽计算)。
参数:
header_row:表头行号(默认 1)
auto_width:是否自适应列宽(默认 True)
freeze_header:是否冻结表头(默认 True)
font_name:自定义字体,省略用微软雅黑
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet | No | ||
| file_path | Yes | ||
| font_name | No | ||
| auto_width | No | ||
| header_row | No | ||
| freeze_header | No |