Persist lang attribute on page elements

SHRP uses these parameters to select the correct vernacular labels out of css. Previously the attribute was set, but not saved to disk, so opening in a browser wouldn't show the right labels.
Narrow application of UL LI rules used for source text bubbles