bid-cover-formatter
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese招投标书封面格式化技能
Tender/Bidding Document Cover Formatting Skill
技能目的
Skill Purpose
将招投标书封面 Markdown 内容转换为符合打印规范的 Markdown 格式(使用 HTML 标签表示样式),便于后续转换为 Word 文档。
Convert Markdown content of tender/bidding document covers into Markdown format compliant with printing specifications (using HTML tags for styling), facilitating subsequent conversion to Word documents.
适用场景
Applicable Scenarios
识别以下类型文档为封面:
- 标题包含"招标文件"、"投标文件"、"报价文件"、"商务文件"、"技术文件"、"技术协议"、"采购文件"等关键词
- 内容结构符合封面特征(公司信息、项目信息、招标人/报价人/投标人信息等)
Identify documents of the following types as covers:
- Titles containing keywords such as "招标文件 (Tender Document)", "投标文件 (Bidding Document)", "报价文件 (Quotation Document)", "商务文件 (Commercial Document)", "技术文件 (Technical Document)", "技术协议 (Technical Agreement)", "采购文件 (Procurement Document)"
- Content structure conforms to cover characteristics (company information, project information, tenderee/quoter/bidder information, etc.)
核心要求
Core Requirements
1. 封面识别规则
1. Cover Identification Rules
识别信号:以下任一条件满足即视为封面
- 标题行包含:报价文件、商务文件、技术文件、技术协议、采购文件
- 内容包含:报价人、投标人等信息
- 结构特征:顶部为公司/项目信息,底部为报价人/日期信息
Identification Signals: A document is considered a cover if any of the following conditions are met:
- Title line contains: Quotation Document, Commercial Document, Technical Document, Technical Agreement, Procurement Document
- Content includes information such as quoter, bidder, etc.
- Structural features: Company/project information at the top, quoter/date information at the bottom
2. 内容解析规则
2. Content Parsing Rules
输入内容分析:
- 提取所有非空行
- 按语义分组识别:
- 公司信息段:顶部 1-2 行,包含公司名称、项目信息
- 如果只有1行但包含公司名和项目信息,需要智能分离(识别公司名称和项目描述的边界)
- 卷册信息段:中间部分,包含卷册标识(如"第二卷")、文件类型(如"技术部分")、"报价文件"等
- 报价人信息段:底部 2-3 行
- 2行:报价人(或采购人) + 日期
- 3行:采购人 + 采购机构 + 日期
- 公司信息段:顶部 1-2 行,包含公司名称、项目信息
默认假设(如果信息缺失):
- 如果卷册部信息不完整,保留现有内容但调整间距
- 如果缺少"第二卷"信息,不调整格式
- 内容行数可能变化,但尽量保持在一页以内
Input Content Analysis:
- Extract all non-empty lines
- Identify semantic groups:
- Company Information Section: Top 1-2 lines, containing company name and project information
- If there is only one line but includes both company name and project information, intelligently separate them (identify the boundary between company name and project description)
- Volume Information Section: Middle part, containing volume identification (e.g., "Volume 2"), document type (e.g., "Technical Part"), "Quotation Document", etc.
- Quoter Information Section: Bottom 2-3 lines
- 2 lines: Quoter (or Procurer) + Date
- 3 lines: Procurer + Procurement Institution + Date
- Company Information Section: Top 1-2 lines, containing company name and project information
Default Assumptions (if information is missing):
- If volume information is incomplete, retain existing content but adjust spacing
- If "Volume 2" information is missing, do not adjust the format
- The number of content lines may vary, but try to keep it within one page as much as possible
2.1 文本排版规则
2.1 Text Formatting Rules
日期格式标准化:
- 输入:或
2025年12月2025.12 - 输出:(统一使用"年月"格式,不添加空格)
2025年12月
卷册标识空格规则:
- 输入:、
第二卷技术部分第三卷技术分册 - 输出:、
第二卷 技术部分(在"卷"字后添加空格)第三卷 技术分册
项目信息处理规则:
- 项目名称和项目标的保持在同一行,不进行分段
- 第二行直接使用原始输入内容,包含完整的项目描述
Date Format Standardization:
- Input: or
2025年12月2025.12 - Output: (Unify to "YYYY年MM月" format, no spaces)
2025年12月
Volume Identification Spacing Rules:
- Input: ,
第二卷技术部分第三卷技术分册 - Output: ,
第二卷 技术部分(Add a space after "卷 (Volume)")第三卷 技术分册
Project Information Processing Rules:
- Keep project name and project subject on the same line, do not split into paragraphs
- Use the original input content directly for the second line, including the complete project description
3. Markdown 输出格式规范(使用 HTML 标签表示样式)
3. Markdown Output Format Specifications (Using HTML Tags for Styling)
字号对照表(中文字号 → pt):
| 中文字号 | pt 值 |
|---|---|
| 一号 | 26pt |
| 二号 | 22pt |
| 三号 | 16pt |
| 四号 | 14pt |
| 小三号 | 15pt |
字体规范:
- 黑体:用于所有封面信息(公司信息、项目信息、卷册信息、报价人信息、日期)
行高基准:1 行 ≈ 22pt
Font Size Conversion Table (Chinese Font Size → pt):
| Chinese Font Size | pt Value |
|---|---|
| 一号 | 26pt |
| 二号 | 22pt |
| 三号 | 16pt |
| 四号 | 14pt |
| 小三号 | 15pt |
Font Specifications:
- 黑体: Used for all cover information (company information, project information, volume information, quoter information, date)
Line Height Benchmark: 1 line ≈ 22pt
格式模板
Format Templates
栟准封面格式(8行)
Standard Cover Format (8 Lines)
markdown
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">{公司名称}</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; text-align: center;">{项目信息}</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">{文件类型}</div>
<div style="margin-top: 176pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">{卷册标识} {卷册名称}</div>
<div style="margin-top: 242pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">报价人:{报价人全称}</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">{日期}</div>markdown
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">{公司名称}</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; text-align: center;">{项目信息}</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">{文件类型}</div>
<div style="margin-top: 176pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">{卷册标识} {卷册名称}</div>
<div style="margin-top: 242pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">报价人:{报价人全称}</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">{日期}</div>简化封面格式(内容少于8行)
Simplified Cover Format (Fewer Than 8 Lines)
根据实际内容行数灵活调整:
- 如果缺失卷册信息(第5行),调整中间留白大小
- 如果缺失了日期(第8行),移除对应div
- 核心原则:保持视觉平衡,内容尽量在一页以内
Adjust flexibly according to the actual number of content lines:
- If volume information (Line 5) is missing, adjust the size of the middle blank space
- If date (Line 8) is missing, remove the corresponding div
- Core Principle: Maintain visual balance and keep content within one page as much as possible
处理流程
Processing Flow
Step 1: 识别封面
Step 1: Identify Cover
检查输入内容是否为封面文档:
- 扫描标题行,查找关键词
- 分析内容结构特征
- 确认后继续,否则提示用户
Check if the input content is a cover document:
- Scan the title line to find keywords
- Analyze content structural features
- Proceed if confirmed, otherwise prompt the user
Step 2: 解析内容
Step 2: Parse Content
按语义分段提取信息:
- 公司信息段(顶部)
- 卷册信息段(中间)
- 报价人信息段(底部)
Extract information by semantic sections:
- Company Information Section (Top)
- Volume Information Section (Middle)
- Quoter Information Section (Bottom)
Step 3: 生成 Markdown
Step 3: Generate Markdown
根据解析内容应用格式模板:
- 填充占位符
- 调整段前距和留白
- 确保字体、字号规范
- 输出为 Markdown 格式(使用 HTML 标签表示样式)
Apply format templates based on parsed content:
- Fill in placeholders
- Adjust before-paragraph spacing and blank spaces
- Ensure font and font size specifications are followed
- Output in Markdown format (using HTML tags for styling)
Step 4: 输出结果
Step 4: Output Result
返回完整的 Markdown 代码
Return the complete Markdown code
重要注意事项
Important Notes
- 输出格式:输出为 Markdown 文件,但使用 HTML 标签包裹文本内容来表示样式
<div> - 字体名称:统一使用"黑体"
- 字号单位:统一使用 22pt(二号)
- 间距单位:统一使用 pt
- 日期格式:保持完整格式"YYYY年MM月"(无空格),不缩写为"YYYY.MM"
- 报价人全称:保持营业执照全称,不可简写
- 一页限制:确保内容布局在 A4 纸一页以内
- 空行处理:使用空的 设置 margin-top,不使用
<div><br> - 标签格式:每个 独占一行,标签内部无缩进(保持 Markdown 简洁)
<div> - 居中对齐:所有包含文字的 标签必须包含
<div>样式,确保内容居中对齐。text-align: center;
- Output Format: Output as a Markdown file, but use HTML tags to wrap text content for styling
<div> - Font Name: Uniformly use "黑体"
- Font Size Unit: Uniformly use 22pt (二号)
- Spacing Unit: Uniformly use pt
- Date Format: Keep the complete format "YYYY年MM月" (no spaces), do not abbreviate to "YYYY.MM"
- Full Name of Quoter: Keep the full business license name, do not abbreviate
- One-Page Limit: Ensure content layout is within one A4 page
- Blank Line Handling: Use empty to set margin-top, do not use
<div><br> - Tag Format: Each occupies a single line, no indentation inside the tag (keep Markdown concise)
<div> - Center Alignment: All tags containing text must include
<div>style to ensure content is center-alignedtext-align: center;
示例
Example
输入(Markdown)
Input (Markdown)
markdown
国能信控技术股份有限公司
陕西公司店塔电厂MIS系统升级改造项目燃料与检修管理系统、备份等设备
报价文件
第二卷技术部分
报价人:马鞍山市睿峰信息技术有限公司
2025年12月markdown
国能信控技术股份有限公司
陕西公司店塔电厂MIS系统升级改造项目燃料与检修管理系统、备份等设备
报价文件
第二卷技术部分
报价人:马鞍山市睿峰信息技术有限公司
2025年12月输出(Markdown 使用 HTML 标签)
Output (Markdown Using HTML Tags)
markdown
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">国能信控技术股份有限公司</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; text-align: center;">陕西公司店塔电厂MIS系统升级改造项目燃料与检修管理系统、备份等设备</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">报价文件</div>
<div style="margin-top: 176pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">第二卷 技术部分</div>
<div style="margin-top: 242pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">报价人:马鞍山市睿峰信息技术有限公司</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">2025年12月</div>markdown
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">国能信控技术股份有限公司</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; text-align: center;">陕西公司店塔电厂MIS系统升级改造项目燃料与检修管理系统、备份等设备</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">报价文件</div>
<div style="margin-top: 176pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">第二卷 技术部分</div>
<div style="margin-top: 242pt;"></div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 0pt; text-align: center;">报价人:马鞍山市睿峰信息技术有限公司</div>
<div style="font-family: 黑体; font-size: 22pt; font-weight: normal; margin-top: 11pt; text-align: center;">2025年12月</div>质量检查清单
Quality Check List
输出 Markdown 前必须检查:
- 输出格式为 Markdown(非纯 HTML 文件)
- 所有字体均为"黑体"
- 所有字号均为 22pt (二号)
- 所有间距使用 pt 单位
- 日期格式为"YYYY年MM月"(无空格)
- 报价人信息完整,包含"报价人:"前缀
- 页面布局合理,不溢出
- 留白段使用空 而非
<div><br> - HTML 结构合法,标签正确闭合
- 每个 独占一行
<div> - 所有包含文字的 都包含
<div>text-align: center;
Must check before outputting Markdown:
- Output format is Markdown (not pure HTML file)
- All fonts are "黑体"
- All font sizes are 22pt (二号)
- All spacing uses pt units
- Date format is "YYYY年MM月" (no spaces)
- Quoter information is complete, including the prefix "报价人:"
- Page layout is reasonable, no overflow
- Blank sections use empty instead of
<div><br> - HTML structure is valid, tags are properly closed
- Each occupies a single line
<div> - All tags containing text include
<div>text-align: center;