Hello, Actually the source was in UTF-8, but it was using only characters that exist in latin-9, and it is exported to LaTeX for inclusion in a LaTeX document that is in latin-9. So I used an Emacs lisp snippet to make the export, and in this snippet after calling something like (org-export-to-buffer 'latex out-buffer nil nil nil t), I was doing some insertion like (goto-char (point-max)) (insert " % Local Variables: % coding: latin-9 % End: ") (save-buffer) (kill-buffer) so that the exported buffer is converted to latin-9 before being saved. OK, when I inserted the zero width space this barked because of no zwsp (aka U+200B) in latin-9. Then I tried something else, I rewrote the code with some some LaTeX snippet @@latex:\kern-0.5em\relax@@ in it, like this: ~--my-option=~ @@latex:\kern-0.5em\relax@@ /option value/ that was OK, but this really makes the OrgMode ugly (maybe a custom entity would be better), and also this works only for the LaTeX export. Then, I tried something else, I passed « utf8,latin9 » options, to LaTeX inputenc package, instead of just « latin9 », and I kept my org mode document in UTF-8, just before exporting I did something like this in the input buffer: (goto-char (point-max)) (insert "\n\n#+begin_export latex\n\\inputencoding{latin9}\n#+end_export\n") (goto-char (point-min)) (insert "\n\n#+begin_export latex\n\\inputencoding{utf8}\n#+end_export\n") this way the LaTeX processor is switching dynamically from latin9 to utf8 at the beginning of the doc, and back to latin9 at the end of it. But there are two pitfalls: the first one is that zwsp are not defined in the inputenc utf8.def definition file, so having a zwsp character in the LaTeX code, even though utf8 is declared as input encoding make a LaTeX compilation error. the second (but this is less serious I think …) is that my document ends with an enumerate list, and the orgmode exporter make the second begin_export go into the enumerate list, not after it. I mean I get in the output this: \inputencoding{latin9} \end{enumerate} instead of this: \end{enumerate} \inputencoding{latin9} My conlcusion is that for what I am after, an evolution of org-mode would be preferable, maybe I contribute something someday, so that writing one of the following would make it: ~--my-option=~\relax{}/option value/ ~--my-option=~@@:@@/option value/ \left~--my-option=\right~/option value/ \left~--my-option=\right~\left/option value\right/ ~--my-option=~\left/option value\right/ ________________________________ De : Nicolas Goaziou Envoyé : mardi 25 janvier 2022 11:55 À : Vincent Belaïche Cc : Juan Manuel Macías ; orgmode Objet : Re: [RFC] Creole-style / Support for **emphasis**__within__**a word** Hello, Vincent Belaïche writes: > Thank-you both for the reply, I should have mentioned that I am aware of > this trick but it works only for document encodings which have the > zero-width space, like UTF-8, I was after a fix for documents in > ISO-8859-15, aka latin-9. You mean the source itself is not UTF-8? I don't think there's a solution for you then, unless you convert it to UTF-8, of course. Regards, -- Nicolas Goaziou