Here's a thinking process:
1. **Analyze User Input:**
- **Role:** Professional translator for an e-commerce website selling building materials and industrial products in Saudi Arabia.
- **Task:** Translate Arabic HTML content to English.
- **Rules:**
1. Preserve ALL HTML tags, attributes, and structure exactly as-is.
2. Only translate the visible text content between tags.
3. Keep brand names, model numbers, and technical codes unchanged.
4. Use natural, fluent English - not word-for-word translation.
5. For Arabic output: use formal Modern Standard Arabic suitable for Saudi audience (Not applicable here, output is English).
6. For English output: use professional, clear technical English.
7. Return ONLY the translated HTML - no explanations, no markdown, no code fences.
- **Content to translate:** `الرخام الطبيعي صخور جيرية طبيعية، غالي الثمن، ويتطلب ختماً دورياً. الصناعي مصنوع من الرقائق المسحوقة والراتنجات، متين ولكن ثقيل. بديل الرخام PVC هو لوحات بلاستيكية فائقة الخفة، مقاومة للماء والرطوبة والحرارة، وتقل تكلفة التركيب عليها بنسبة 60%.`
- **Note:** The input content is plain text, not HTML. The prompt says "Translate the following Arabic HTML content", but the provided content has no HTML tags. I should just translate the text as is, but if there were tags, I'd preserve them. Since there are none, I'll just output the translated text. Wait, the prompt says "Return ONLY the translated HTML". I will assume the input is just text, so the output will be just the translated text. If it's meant to be wrapped in tags, I'll just output the translated text directly as requested. I'll make sure to follow the exact instruction: "Return ONLY the translated HTML - no explanations, no markdown, no code fences". Since there's no HTML in the input, I'll just output the translated English text. But to be safe, I'll treat it as plain text translation.
2. **Analyze Source Text (Arabic):**
`الرخام الطبيعي صخور جيرية طبيعية، غالي الثمن، ويتطلب ختماً دورياً. الصناعي مصنوع من الرقائق المسحوقة والراتنجات، متين ولكن ثقيل. بديل الرخام PVC هو لوحات بلاستيكية فائقة الخفة، مقاومة للماء والرطوبة والحرارة، وتقل تكلفة التركيب عليها بنسبة 60%.`
Breakdown:
- الرخام الطبيعي صخور جيرية طبيعية، غالي الثمن، ويتطلب ختماً دورياً. -> Natural marble is natural limestone rock, expensive, and requires periodic sealing.
- الصناعي مصنوع من الرقائق المسحوقة والراتنجات، متين ولكن ثقيل. -> Synthetic (man-made) marble is made from crushed chips and resins, durable but heavy.
- بديل الرخام PVC هو لوحات بلاستيكية فائقة الخفة، مقاومة للماء والرطوبة والحرارة، وتقل تكلفة التركيب عليها بنسبة 60%. -> PVC marble alternative consists of ultra-lightweight plastic sheets, resistant to water, moisture, and heat, with installation costs reduced by 60%.
3. **Refine Translation (Professional/Technical English for E-commerce):**
Let's make it sound professional and suitable for building materials/industrial products:
"Natural marble is a type of natural limestone, costly, and requires periodic sealing. Synthetic marble is manufactured from crushed stone chips and resins; it is durable but heavy. The PVC marble alternative consists of ultra-lightweight plastic panels that are water, moisture, and heat resistant, reducing installation costs by up to 60%."
Check technical terms:
- صخور جيرية طبيعية -> natural limestone rock / natural limestone
- ختماً دورياً -> periodic sealing / regular sealing
- الرقائق المسحوقة -> crushed chips / crushed stone aggregates
- الراتنجات -> resins
- بديل الرخام PVC -> PVC marble alternative / PVC marble panels
- لوحات بلاستيكية فائقة الخفة -> ultra-lightweight plastic panels/sheets
- مقاومة للماء والرطوبة والحرارة -> water, moisture, and heat resistant
- تقل تكلفة التركيب عليها بنسبة 60% -> reduces installation costs by 60%
Refined: "Natural marble is a natural limestone rock that is expensive and requires periodic sealing. Synthetic marble is made from crushed stone chips and resins; it is durable but heavy. The PVC marble alternative consists of ultra-lightweight plastic panels that are resistant to water, moisture, and heat, reducing installation costs by 60%."
This sounds professional and accurate for an e-commerce context.
4. **Check Constraints:**
- Preserve HTML tags: None in input, so output will be plain text. If the prompt implies it should be HTML, I'll just output the text. The prompt says "Translate the following Arabic HTML content", but provided plain text. I will output just the translated text as requested.
- Only translate visible text: Done.
- Keep brand/model/tech codes: "PVC" is kept.
- Natural, fluent English: Yes.
- Professional technical English: Yes.
- Return ONLY translated HTML/text: I will output just the translated string.
One minor thing: The prompt says "Return ONLY the translated HTML". Since the input has no HTML, I'll just output the translated text. If I want to be strictly compliant, I'll just output the text. I won't add any markdown or code blocks.
Let's verify the translation accuracy:
Original: الرخام الطبيعي صخور جيرية طبيعية، غالي الثمن، ويتطلب ختماً دورياً. الصناعي مصنوع من الرقائق المسحوقة والراتنجات، متين ولكن ثقيل. بديل الرخام PVC هو لوحات بلاستيكية فائقة الخفة، مقاومة للماء والرطوبة والحرارة، وتقل تكلفة التركيب عليها بنسبة 60%.
Translation: Natural marble is a natural limestone rock that is expensive and requires periodic sealing. Synthetic marble is manufactured from crushed stone chips and resins; it is durable but heavy. The PVC marble alternative consists of ultra-lightweight plastic panels that are resistant to water, moisture, and heat, reducing installation costs by 60%.
Matches perfectly. I will output exactly this string. No extra text. No markdown. Just the raw text. Since the prompt says "HTML content", but there's none, I'll assume it's fine. If I must wrap it in something, I won't. I'll just output the text.
Final check of the prompt: "Return ONLY the translated HTML - no explanations, no markdown, no code fences"
I will output just the translated text. If the user intended HTML tags, they forgot to include them. I'll proceed.
Text to output:
Natural marble is a natural limestone rock that is expensive and requires periodic sealing. Synthetic marble is manufactured from crushed stone chips and resins; it is durable but heavy. The PVC marble alternative consists of ultra-lightweight plastic panels that are resistant to water, moisture, and heat, reducing installation costs by 60%.
All constraints met. Proceeds.
One thing: "صخور جيرية طبيعية" -> "natural limestone rock" or "natural limestone". I'll stick with "natural limestone".
"الرقائق المسحوقة" -> "crushed stone chips" or "crushed aggregates". "Crushed stone chips" is fine.
"بديل الرخام PVC" -> "PVC marble alternative" or "PVC marble panels". I'll use "PVC marble alternative".
All good. Output matches.✅
I will generate the exact string. No extra formatting.
Note: I'll make sure there are absolutely no markdown characters like backticks or asterisks. Just raw text.
Ready.
Output: Natural marble is a natural limestone rock that is expensive and requires periodic sealing. Synthetic marble is manufactured from crushed stone chips and resins; it is durable but heavy. The PVC marble alternative consists of ultra-lightweight plastic panels that are resistant to water, moisture, and heat, reducing installation costs by 60%.
(Self-Correction/Refinement during thought)
Wait, the prompt says "Translate the following Arabic HTML content". Even though there's no HTML, I should just output the translated text. If they meant to include HTML, they didn't. I'll just output the text. To be strictly compliant with "Return ONLY the translated HTML", I'll just output the text as is. It's fine.
I will produce exactly the translated string. No extra words. All rules followed.✅
Output matches.
Proceeds.
[Output Generation] -> Natural marble is a natural limestone rock that is expensive and requires periodic sealing. Synthetic marble is manufactured from crushed stone chips and resins; it is durable but heavy. The PVC marble alternative consists of ultra-lightweight plastic panels that are resistant to water, moisture, and heat, reducing installation costs by 60%.
(Note: I'll ensure no