On Sat, 8 Nov 2025 at 11:10, Ihor Radchenko <[email protected]> wrote:
> Pedro Andres Aranda Gutierrez <[email protected]> writes: > > >> > That I'll keep it FTMB. This is not cast in stone and people may come > up > >> > with better solutions. Currently, it does what I need, which is to > >> provide > >> > explicit enough messages (we may want to detect and use in the > future). > >> > >> Are we still talking about keeping \usepackage{fontspec} (not > >> \tracinglostchars) in > >> > >> ;; Tracing lost chars: > >> https://tex.stackexchange.com/questions/548901 > >> ;; FIXME: do we really need fontspec?? > >> (insert "\\tracinglostchars=2\n%%\\usepackage{fontspec}") > >> > >> ? > >> > > > > Yes, we are. > > Then I am still confused. AFAIU, the messages are generated by > \tracinglostchars=2. I do not quite understand why fontspec is needed. > So, I'll remove it... (about pop) > >> Also, you did not change it. At least, I do not see any commits to that > >> effect on the branch. > > > > Fine. There seems to have been a major hiccup in savannah and, as I see, > > this specific commit is part of what they haven't restored. > > So, can you push it again? > OK, removed. <silent protest> pop is a 101 in CS <silent protest/> >> > https://emacs-china.org/t/help-implementing-better-out-of-the-box-xelatex-export-in-org/30405 > > > > Which introduced a lot of configurations to look at in the future. I'll > > remove xpinyin stuff FTBM > > You also removed xeCJK. Why? > Woops, I went too far... > Also, I just tried > > #+LANGUAGE: zh > #+LATEX_HEADER: \usepackage[UTF8]{ctex} > #+LATEX_COMPILER: xelatex > * This is test > 正好借楼问一下,用 ctex 包时,org当中的加粗转为中间文件*tex*时是 > > And I am getting > ⛔ Warning (ox-latex): PDF file produced with warnings: [Missing > character(s): please load an appropriate font with the fontspec package] > Despite everything being rendered just fine. > Here we are... In my system I see this too with the default font packages it offers to xeCJK: = Package fontspec Warning: Font "FandolSong-Regular" does not contain requested = (fontspec) Script "CJK". This tells me that we might need to add "better" CJK fonts with a fontspec config. The warning, however, is triggered by: = Missing character: There is no (U+200B) in font [lmroman10-regular]:mapping=t = ex-text;! = Missing character: There is no (U+200B) in font [lmroman10-regular]:mapping=t = ex-text;! The character it is complaining about is a zero width space <https://unicode-explorer.com/c/200B>. I would need to investigate where this character comes from. But it has nothing to do with adding or not xeCJK. >> I would be OK if we _systematically_ added debug messages in a form of > >> logs everywhere. But occasional lines of commented code are unlikely to > >> be useful, IMHO. > > > > I have transformed the messages into proper comments. Otherwise, we will > > systematically bloat the *Message* buffer. > > I meant something like > (display-warning 'org "I will not be recorded or displayed unless > `warning-minimum-log-level' is set to :debug" :debug "*Org logs*") > I'll add that to possible improvements once the code is stabilised. -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at <https://orgmode.org/>. > Support Org development at <https://liberapay.com/org-mode>, > or support my work at <https://liberapay.com/yantar92> > Best, /PA -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler "Sagen's Paradeiser" (ORF: Als Radiohören gefährlich war) => write BE! Year 1 of the New Koprocracy
