def encode(self, text): text = HTMLTranslator.encode(self, text) if self._in_literal <= 0: text = smartypants.smartyPants(text, "qde") return text