========== 营业执照模板映射修正验证 ========== 正确的模板映射: - 横范围类型 → Business_License_Translation_Template_Landscape_Layout.docx - 横提示类型 → Business_License_Translation_Template_Landscape_Notes.docx - 竖范围类型 → Business_License_Translation_Template_Portrait_Layout.docx - 竖提示类型 → Business_License_Translation_Template_Portrait_Notes.docx ============================================================ 验证模板文件是否存在: - Business_License_Translation_Template_Landscape_Layout.docx: ✅ 存在 - Business_License_Translation_Template_Landscape_Notes.docx: ✅ 存在 - Business_License_Translation_Template_Portrait_Layout.docx: ✅ 存在 - Business_License_Translation_Template_Portrait_Notes.docx: ✅ 存在 🎉 所有模板文件都存在! ============================================================ BusinessLicenseTypeDetector 常量定义: - TYPE_VERTICAL_SIMPLE: 'vertical_simple' - TYPE_VERTICAL_FULL: 'vertical_full' - TYPE_HORIZONTAL_SIMPLE: 'horizontal_simple' - TYPE_HORIZONTAL_FULL: 'horizontal_full' 模板映射关系: - vertical_simple (竖提示类型) → Portrait_Notes.docx - vertical_full (竖范围类型) → Portrait_Layout.docx - horizontal_simple (横提示类型) → Landscape_Notes.docx - horizontal_full (横范围类型) → Landscape_Layout.docx 类型检测逻辑: 1. 经营范围为空 → 提示类型 (vertical_simple 或 horizontal_simple) 2. 经营范围存在 + 有效期为"无" → 横范围类型 (horizontal_full) 3. 经营范围存在 + 有效期为"长期" → 竖范围类型 (vertical_full) 4. 提示类型根据坐标序列判断横竖布局 ========== 测试完成 ==========