` etc. We need to keep them as is? The instruction: "Keep all HTML tags intact." So we should not modify tags, even if malformed. So we just translate the text nodes. Let's parse the content: ```

Pope John XII

Pope John XII can also refer to Pope John XII of Alexandria.

Pope John XII (Latin: Ioannes XII; c. 930/937 – 14 May 964) was head of the Catholic Church from 16 December 955 to his death in 964. He was related to the Counts of Tusculum and a member of the powerful Roman family of Theophylact which had dominated papal politics for over half a century. His pontificate became infamous for the alleged depravity and worldliness with which he conducted his office.

Birth and election as pope

John ... (rest) ``` We need to translate each text segment. Let's translate: - "Pope John XII" => "Papst Johannes XII" - "Pope John XII can also refer to Pope John XII of Alexandria." => "Papst Johannes XII kann sich auch auf Papst Johannes XII von Alexandria beziehen." - The self-closing `

` tags are weird: `

Pope John XII (Latin: Ioannes XII; c. 930/937 – 14 May 964) was head of the Catholic Church from 16 December 955 to his death in 964. He was related to the Counts of Tusculum and a member of the powerful Roman family of Theophylact which had dominated papal politics for over half a century. His pontificate became infamous for the alleged depravity and worldliness with which he conducted his office.

` We need to translate the text after the self-closing `

` up to `

`. German translation: "Pope John XII (Latin: Ioannes XII; c. 930/937 – 14 May 964) was head of the Catholic Church from 16 December 955 to his death in 964. He was related to the Counts of Tusculum and a member of the powerful Roman family of Theophylact which had dominated papal politics for over half a century. His pontificate became infamous for the alleged depravity and worldliness with which he conducted his office." German: "Papst Johannes XII (Lateinisch: Ioannes XII; ca. 930/937 – 14. Mai 964) war das Oberhaupt der katholischen Kirche vom 16. Dezember 955 bis zu seinem Tod im Jahr 964. Er war mit den Grafen von Tusculum verwandt und ein Mitglied der mächtigen römischen Familie Theophylact, die die päpstliche Politik über ein halbes Jahrhundert dominierte. Sein Pontifikat wurde berühmt-berüchtigt wegen der angeblichen Ausschweifungen und Weltlichkeit, mit der er sein Amt ausübte." Need to keep punctuation. Next: `

Birth and election as pope

` => "Geburt und Wahl zum Papst" Next: `

John XII was born Octavianus, the son of Alberic II of Spoleto, Patrician and self-styled prince of Rome. His mother is believed to have been Alda of Vienne, Alberic’s stepsister and the daughter of King Hugh of Italy. However, there is some doubt … Continue Reading

` Translate: "John XII was born Octavianus, the son of Alberic II of Spoleto, Patrician and self-styled prince of Rome. His mother is believed to have been Alda of Vienne, Alberic’s stepsister and the daughter of King Hugh of Italy. However, there is some doubt … Continue Reading" German: "Johannes XII wurde als Octavianus geboren, Sohn von Alberic II. von Spoleto, Patrizier und selbsternanntem Prinzen von Rom. Man glaubt, dass seine Mutter Alda von Vienne war, Alberics Stiefschwester und die Tochter von König Hugo von Italien. Allerdings gibt es einige Zweifel … Weiterlesen" But need to keep the HTML entity `’` for apostrophe? The original uses `Alberic’s`. We can keep the same entity but translate the text. Should we preserve the entity? The instruction: keep all HTML tags intact. Entities are not tags, but we can keep them. However we can also replace with proper apostrophe. Safer to keep the entity unchanged. Also the ellipsis entity `…` should be kept. Thus we need to keep `’` and `…` as is. So translation: "John XII was born Octavianus..." becomes German but we need to keep the entity for apostrophe after Alberic. So we can write "Johannes XII wurde als Octavianus geboren, Sohn von Alberic II. von Spoleto, Patrizier und selbsternanntem Prinzen von Rom. Seine Mutter soll Alda von Vienne gewesen sein, Alberic’s Stiefschwester und die Tochter von König Hugo von Italien. Allerdings gibt es einige Zweifel …" Now the link text "Continue Reading" -> "Weiterlesen". Keep the link unchanged. Next: `
` unchanged. Next: `

Source: https://en.wikipedia.org/wiki/Pope_John_XII

` We need to translate "Source:" to "Quelle:" but keep tags. Thus: `

Quelle: https://en.wikipedia.org/wiki/Pope_John_XII

` Next: `

` then `Papst Johannes XII

Papst Johannes XII kann sich auch auf Papst Johannes XII von Alexandria beziehen.

Papst Johannes XII (Lateinisch: Ioannes XII; ca. 930/937 – 14. Mai 964) war das Oberhaupt der katholischen Kirche vom 16. Dezember 955 bis zu seinem Tod im Jahr 964. Er war mit den Grafen von Tusculum verwandt und ein Mitglied der mächtigen römischen Familie Theophylact, die die päpstliche Politik über ein halbes Jahrhundert dominierte. Sein Pontifikat wurde berühmt‑berüchtigt wegen der angeblichen Ausschweifungen und Weltlichkeit, mit der er sein Amt ausübte.

Geburt und Wahl zum Papst

Johannes XII wurde als Octavianus geboren, Sohn von Alberic II. von Spoleto, Patrizier und selbsternanntem Prinzen von Rom. Seine Mutter soll Alda von Vienne gewesen sein, Alberic’s Stiefschwester und die Tochter von König Hugo von Italien. Allerdings gibt es einige Zweifel … Weiterlesen


Quelle: https://en.wikipedia.org/wiki/Pope_John_XII

Geburt und Wahl zum Papst

` originally had `

Birth and election as pope

` So we keep same pattern: `

Geburt und Wahl zum Papst

` Good. Now ensure we didn't accidentally add extra spaces. Now produce final answer with only the HTML.assistantfinal

Papst Johannes XII

Papst Johannes XII kann sich auch auf Papst Johannes XII von Alexandria beziehen.

Papst Johannes XII (Lateinisch: Ioannes XII; ca. 930/937 – 14. Mai 964) war das Oberhaupt der katholischen Kirche vom 16. Dezember 955 bis zu seinem Tod im Jahr 964. Er war mit den Grafen von Tusculum verwandt und ein Mitglied der mächtigen römischen Familie Theophylact, die die päpstliche Politik über ein halbes Jahrhundert dominierte. Sein Pontifikat wurde berühmt‑berüchtigt wegen der angeblichen Ausschweifungen und Weltlichkeit, mit der er sein Amt ausübte.

Geburt und Wahl zum Papst

Johannes XII wurde als Octavianus geboren, Sohn von Alberic II. von Spoleto, Patrizier und selbsternanntem Prinzen von Rom. Seine Mutter soll Alda von Vienne gewesen sein, Alberic’s Stiefschwester und die Tochter von König Hugo von Italien. Allerdings gibt es einige Zweifel …