public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Pandoc selectively transfers glyphs from LuaLaTeX to DOCX
Date: Sun, 23 Jul 2017 09:47:38 +0200	[thread overview]
Message-ID: <20170723074737.GB67976@macbook-air-2.home> (raw)
In-Reply-To: <b4abf81b-74e7-490a-8cb9-f6a313c651e0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Pandoc's latex reader doesn't know anything about dblaccent.
But it can understand newcommand definitions, so you may
have some success simply adding the necessary macros to
the beginning of your document.  (Note that pandoc only
understands latex 'newcommand' macros, not plain tex
macros, so you can't just use dblaccnt.sty itself.  So
I'm not sure this helps much.)

+++ Sean Winslow [Jul 22 17 09:37 ]:
>   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:
>
>   [1][screenshot_latex.png]
>
>   But this is what I see in Word:
>
>   [2][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 [3]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To post to this group, send email to
>   [4]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>   To view this discussion on the web visit
>   [5]https://groups.google.com/d/msgid/pandoc-discuss/b4abf81b-74e7-490a-
>   8cb9-f6a313c651e0%40googlegroups.com.
>   For more options, visit [6]https://groups.google.com/d/optout.
>
>References
>
>   1. https://lh3.googleusercontent.com/-Nto3OG7FE8c/WXN9zv4_J3I/AAAAAAAAB3k/D5NTrxzrD2cjsdAQ9cWQUUkFTZzQYoYuwCLcBGAs/s1600/screenshot_latex.png
>   2. https://lh3.googleusercontent.com/-Rjn4Lnkaxx8/WXN9_oO77FI/AAAAAAAAB3o/aa-KxIii0jwM3zt0OO1PqI9RkIDu1TfQgCLcBGAs/s1600/screenshot_word.png
>   3. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   4. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>   5. https://groups.google.com/d/msgid/pandoc-discuss/b4abf81b-74e7-490a-8cb9-f6a313c651e0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
>   6. https://groups.google.com/d/optout

-- 
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/20170723074737.GB67976%40macbook-air-2.home.
For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2017-07-23  7:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-22 16:37 Sean Winslow
     [not found] ` <b4abf81b-74e7-490a-8cb9-f6a313c651e0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-07-23  7:47   ` John MacFarlane [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170723074737.GB67976@macbook-air-2.home \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).