I was inserting empty
<foreign xml:lang="gr"></foreign>
tags as markers for greek text that I couldn't transcribe but that I would go back to once CC had them transcribed by a greek professor. I had trouble figuring out why every time I inserted an empty foreign tag, the text proceeding the tag would display italicized online even though I had rendered the entire paragraph as
<p rend="font-style: normal;">
Originally, I had tried fixing this problem by putting a
<hi rend="font-style: normal;"></hi>
tag after every foreign tag, however, MH noticed that this was causing a problem to the XHTML because in some cases the
<hi>
element was running right over a page break.
MH explained to me that leaving foreign tags without any content in them causes text proceeding the tag to become italicized. As a solution, he suggested that I get rid of all
<hi rend="font-style: normal;"></hi>
tags following the foreign elements and to instead put a comment tag within the foreign tag:
<foreign xml:lang="gr"><!-- Phrase grecque à ajouter --></foreign>
As a result, all the text proceeding the tag returned to normal font style.