public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Pandoc selectively transfers glyphs from LuaLaTeX to DOCX
@ 2017-07-22 16:37 Sean Winslow
       [not found] ` <b4abf81b-74e7-490a-8cb9-f6a313c651e0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Sean Winslow @ 2017-07-22 16:37 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2430 bytes --]



I am trying to convert a dissertation from LaTex to Word, in order to 
comply with publisher requirements. Part of why I used LaTeX is my need for 
complicated diacritics in transcriptions, which XeLaTeX/LuaLaTeX and the 
dblaccent package made easy. Now, when I use pandoc to output to docx, 
certain glyphs are missing. See, for example, \b{q} in Maqala and \v{\d{C}} 
in Chelaqwot:


LuaLaTeX (or XeLaTeX) produces this:

<https://lh3.googleusercontent.com/-Nto3OG7FE8c/WXN9zv4_J3I/AAAAAAAAB3k/D5NTrxzrD2cjsdAQ9cWQUUkFTZzQYoYuwCLcBGAs/s1600/screenshot_latex.png>

But this is what I see in Word:

<https://lh3.googleusercontent.com/-Rjn4Lnkaxx8/WXN9_oO77FI/AAAAAAAAB3o/aa-KxIii0jwM3zt0OO1PqI9RkIDu1TfQgCLcBGAs/s1600/screenshot_word.png>


Here is my MWE: 

%!TEX TS-program = lualatex
%!TEX encoding = UTF-8 Unicode

\documentclass[a4]{memoir}

%packages
\usepackage{fontspec}
\usepackage{dblaccnt}

\usepackage{savesym}
\savesymbol{U}
\savesymbol{T}
\usepackage{semtrans}

%newcommands
\newcommand{\schwa}{ǝ}
\newcommand{\mekele}{M\"{a}\b{q}\"{a}l\"{a}}
\newcommand{\chelekot}{\d{\v{C}}el\={a}qwot S\schwa{}lasse}

\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text]{Brill}

\begin{document}

The two research locations visited were \mekele{} and \chelekot{}.\par

\end{document}

and the pandoc command I am using to convert it:

pandoc test.tex \

    --from=latex \

    --to=docx \

    --output=test.docx \

    --latex-engine=lualatex \

    --reference-docx=test_ref.docx \

    -S \

    -R

The reference-docx is just the output, but changed to use Brill as the font.

Is there any way to have pandoc pass along the special diacritics I need? 
Re-doing all of them by hand will be a nightmare, and is a lot of the 
reason I am learning pandoc.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b4abf81b-74e7-490a-8cb9-f6a313c651e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 5853 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-07-25 16:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-22 16:37 Pandoc selectively transfers glyphs from LuaLaTeX to DOCX Sean Winslow
     [not found] ` <b4abf81b-74e7-490a-8cb9-f6a313c651e0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-07-23  7:47   ` John MacFarlane
2017-07-23 23:20   ` Sean Winslow
     [not found]     ` <94be1e1e-c49f-4fe6-92fe-4aaf13c083f3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-07-24  8:58       ` John MacFarlane
     [not found]         ` <20170724085825.GA4877-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
2017-07-24  9:17           ` John MacFarlane
2017-07-24 11:34   ` Melroch
2017-07-24 15:01   ` Sean Winslow
     [not found]     ` <261e84b1-9891-465a-a21e-80a61b9e98c0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-07-24 17:25       ` John MacFarlane
     [not found]         ` <20170724172502.GA26245-l/d5Ua9yGnxXsXJlQylH7w@public.gmane.org>
2017-07-25 16:30           ` Sean Winslow
     [not found]             ` <6ac7783a-acbb-4d7f-8ed4-0fcf150d3422-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-07-25 16:46               ` John MacFarlane
2017-07-24 19:27       ` BP Jonsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).