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}

`;
};