Spaces:
Running
Running
| export const COMIC_TRANSLATOR_PROMPT = (targetLanguage) => { | |
| const isBurmese = targetLanguage.toLowerCase().includes('burm') || targetLanguage.includes('ααΌααΊαα¬'); | |
| const burmeseRules = isBurmese ? ` | |
| STRICT BURMESE SRT RULES (MANDATORY OUTPUT STYLE): | |
| - STYLE: Professional Subtitling Style (Native-like). | |
| - ENDINGS: Strictly NO formal markers like 'αααΊ', 'α', 'αα±α¬'. | |
| - CONVERSATIONAL ENDINGS: Use only 'αα«αααΊ', 'αα¬αα«', 'αααΊ', 'αα¬αα±α«α·'. | |
| - FLOW: The translation must sound like a native Burmese speaker. | |
| ` : ""; | |
| return ` | |
| TASK: Process this document page by page. For each page, identify all text bubbles. | |
| Provide their [ymin, xmin, ymax, xmax] coordinates and the translated text in ${targetLanguage}. | |
| STRICT RULE: | |
| - Output ONLY valid JSON. | |
| - Do not include markdown headers or commentary. | |
| ${burmeseRules} | |
| `; | |
| }; |