Spaces:
Running
Running
File size: 912 Bytes
cbca414 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
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}
`;
}; |