jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.88k stars 3.39k forks source link

Emojis not being replaced when changing language from default to es-ES #9964

Open hyunlee1o opened 4 months ago

hyunlee1o commented 4 months ago

:ballot_box_with_check: Checked about no similar issues.

Explain the problem.

I am using the typical preamble.tex in my pandoc pipeline to make use emojis get replaced.

\usepackage{fontspec}
\directlua{luaotfload.add_fallback
   ("emojifallback",
    {
      "NotoColorEmoji:mode=harf;"
    }
   )}

\setmainfont{Atkinson Hyperlegible}[
  RawFeature={fallback=emojifallback}
]

\setmonofont{Hack}[
  RawFeature={fallback=emojifallback}
]

This is my pandoc command

 pandoc --verbose -C --embed-resources --number-sections --listings -H /home/user/Documentos/infinity/makepdf/preamble.tex -s --pdf-engine=lualatex --metadata-file=/home/user/Documentos/infinity/makepdf/metadata/guia-de-autodiagnostico-metadata.yaml --from markdown_mmd+emoji -o /home/user/Documentos/infinity/docs/downloads/guia-de-autodiagnóstico/guia-de-autodiagnóstico.pdf /home/user/Documentos/infinity/docs/guia-de-autodiagnóstico.markdown

This started happening when i added the language property to my metadata file: language: es-ES

Log

pandoc.log

Pandoc version

Edit: Same happened with 3.2.1 latest

$ pandoc --version                                                                                                
pandoc 3.1.3
Features: -server +lua
Scripting engine: Lua 5.4
User data directory: /home/jssanchez/.local/share/pandoc
Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
jgm commented 4 months ago

This is really a tex issue, I think, and you need to diagnose it at that level. Generate a standalone tex file using pandoc, and remove things til you get a minimal repro. Then maybe someone in a tex forum can diagnose it.