transcriptmaster / prompts /comicTranslator.js
bigbossmonster's picture
Upload 9 files
cbca414 verified
raw
history blame contribute delete
912 Bytes
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}
`;
};