+// XeTeX with TeX fonts:
+// run in 8-bit emulation mode and trick `inputenc` into working with XeTeX
+static docstring const xetex_pre_inputenc = from_ascii(
+ "\\XeTeXinputencoding \"bytes\" % current file\n"
+ "\\XeTeXdefaultencoding \"bytes\" % included files\n"
+ "\\makeatletter\n"
+ "\\let\\origUmathchar\\Umathchar\n"
+ "\\let\\Umathchar\\@undefined\n");
+static docstring const xetex_post_inputenc = from_ascii(
+ "\\let\\Umathchar\\origUmathchar\n"
+ "\\makeatother\n");
+