From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/17951 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Pandoc selectively transfers glyphs from LuaLaTeX to DOCX Date: Mon, 24 Jul 2017 19:25:03 +0200 Message-ID: <20170724172502.GA26245@Johns-MBP.home> References: <261e84b1-9891-465a-a21e-80a61b9e98c0@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1500917116 16537 195.159.176.226 (24 Jul 2017 17:25:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2017 17:25:16 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB7G23DFQKGQEGIAW2GQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Jul 24 19:25:12 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-qk0-f188.google.com ([209.85.220.188]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZh6V-000423-UN for gtp-pandoc-discuss@m.gmane.org; Mon, 24 Jul 2017 19:25:12 +0200 Original-Received: by mail-qk0-f188.google.com with SMTP id t2sf121695qkc.0 for ; Mon, 24 Jul 2017 10:25:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1500917117; cv=pass; d=google.com; s=arc-20160816; b=een7qolBXbFN24+H3cqzsI36RYyRvLdQ14NU4pqH7noycE3zecezm25K9uAHcUzvI3 57CsLuYpZR9IyNWzqtq7SAlUi4a6AlEGwL6t8qIywSQEZVGrMFd/O3QgbCm/BL0s0793 oo8Pwtdhy1urY0RDWEVChwNvQbQ2fhwMFyj/5qgcSJs+8UF3rSOWBVRbNJ+nSLt1ZIOy A7qPmEAwf3ME2k2eYK+LfTpjOj03A885fOmbLkZxq9bt9ZJgr9Dmalt8DHcXedVTg9EH +JVt7Dr/n/L6V3FkuDGiYs01DLXW56VmIxV3aZ2BD6+o+Pk7h2V/GHup41W7vjmlr8ia UYhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :date:from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=n0wRZ1+HtKKMmsvAsPlM9A0tkSvKwNfdKAwkjcQIm7A=; b=jQw0hRKcKuXusqZw3UCvhziGBJTvh3Wr5lXMvbBG1jWOtKQaEXTnajffH9fSURoscl mmeVvG+5MO+9m/GE2cpvkBYoC9MNN4GtM7/QqD36t6jPMOY5AoTm+LJAcDZVWR/UiYAA EuHj5xVPx+j0VHpnmwC+1YDdey8Gi8npY7374vm6wbYhEvx9o2jV+qa0WCtHJFkm6iwv 4M9vGn+LPQ1gMhHDvj3K2JnGTZSMr7mZlqfMihcz7ugE9OSDU/dhpQKv7EmECASN0D5r sebe6uTyNl2tWUH7zPiSvY5htCF6OyfX7S1YXnAPN5l9xJPpNxKr6Vdvp5Mn6tLOYsUg ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=0DV4UctD; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=n0wRZ1+HtKKMmsvAsPlM9A0tkSvKwNfdKAwkjcQIm7A=; b=os5VFdfy8Ucei/KLGwz2j7ybQTnRqaXuD6Mo60U9Z1p71B8V/OwRTwvG+yuIYQp76R 4bWRRuZyhgoCvnRr2kulOJv4QZAEqcYIVE4TiEt5rLC9bvdRVsk5Yc9GXWf8ZUjXfHaB ENaMsV3mpXBXxk0jpLOgpp2jKHUcoHwtsRqwASWrrAyn1l8s2uOns+QMCONYQRXFXcsy HtL2ufdWYu1NtBcS6nG1S3OCo7dcWJsfLHiGSs5WZqZonU6lvjUPEOs9OPRn4+i4BT3S z2KPuDmsmFipvZ68c1MDnHvz1RMWh01UX7EKrN3EsvzoLQxhiM9bbfvaoDkUZkL47T4b 5lig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=n0wRZ1+HtKKMmsvAsPlM9A0tkSvKwNfdKAwkjcQIm7A=; b=T9U4uYBKJwET9fsmMmaA1gkLCe4g+vGegzUTD6BkuXHDdND4EzgOzEEQ4GCeBUAW6D vJphT1QbRHVDM+oXnpfZDfhTHxJWsErso8w205ipR6qjnlfpj+/wkNhhulU6mFJHzxt2 BOhnIkK2o8AhrEmw0bO0jUTAPQlxMCAdgXPOdLexpgYeAV7d2fnbKbYLcQuGTp4wpdBm e7nAwkIjd7+liLaK8p3mXBrrhCigEXmYFQF3A99aHjr++elxkRpSPSeapoCL24IYx/nE +usWr4ikRnQbV2z1ewc3dkT+XuPPUCMoHKHMqYpAb/95tMmCUDg9Gl2Kxpdh1ri3j5eL Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIVw111qsdbuObHqYHnhH9QwUl95vo+HFa9ef2xNFmk9rFG2OB5Ynuq6 O08yXy2GHxQG2Q== X-Received: by 10.36.121.216 with SMTP id z207mr295993itc.4.1500917117588; Mon, 24 Jul 2017 10:25:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.47.137 with SMTP id v9ls12786834iov.8.gmail; Mon, 24 Jul 2017 10:25:16 -0700 (PDT) X-Received: by 10.36.3.4 with SMTP id e4mr5562734ite.20.1500917116738; Mon, 24 Jul 2017 10:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500917116; cv=none; d=google.com; s=arc-20160816; b=P6HdFMxSCc7wT1iYbCJOQmS6FKzQo79f+2gWdYwLO1EmGv8rYXPh4GSTNHnLz4ny11 SCXRIgt7j6JQkNWjUUohvehyF0jOJwv2F8XI4xpkwOmILOnsSl6XRBSxhcs7Hlh7Hp7X JYxn8k2xPoJ6CQ1Y6L3oFiNXBaPljXhV4oect5fL1WJghrHzWI8ZP4v9vHAm7YyP+dRA XBP8/0YZFt61gpKTLzYUh+YmC7p5QAYbxb8crG411MSRiJgSPQDHq1XXPEwlxxd3RUS1 EsXbNHqek1r7cnff0SkDt/ivIr3vDEVBqzWsiBZTu26+P7BV2XOyDol5u55ESy1DBRUE X1HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:to:date:from:dkim-signature :arc-authentication-results; bh=PsGV93M3uefR4Omi9m6LnKCEzx6jGC7dD/wYZ+MYR6Q=; b=CytUf4kTWMbhR7RX3O8bltf24yn5nPIvLks92cyqdxp86fDEpPN+S2l7H7KMNmWcSx QDNSBCqdmLf41PGoNPzSSNEpoALObMzRy+45NqRHjXLGJmhoOP+arFMpweXY4WACbGLd 22vwThAFylW6rKzbcp0SfeGT2YYIC5Oc1u9tx28kcixVwAnw2h7SgKeVWqTk4UjHYg+Q Zi65S40AFRlU5hAj+gKmXfSi9pJYz74HQJjXSjotKb0gYZd3kvgBi9CL5VjZn6zRwk2L TtwMa7e9flH9QtCNaUh9gmwBgQL2C66FS8vp4qAbojmAkVcOJ9iBz6ll4YeA97SQmEHM lOeQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=0DV4UctD; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg0-x230.google.com (mail-pg0-x230.google.com. [2607:f8b0:400e:c05::230]) by gmr-mx.google.com with ESMTPS id u15si2350301pfd.19.2017.07.24.10.25.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 10:25:16 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::230 as permitted sender) client-ip=2607:f8b0:400e:c05::230; Original-Received: by mail-pg0-x230.google.com with SMTP id y129so59790723pgy.4 for ; Mon, 24 Jul 2017 10:25:16 -0700 (PDT) X-Received: by 10.98.129.197 with SMTP id t188mr16409447pfd.318.1500917116244; Mon, 24 Jul 2017 10:25:16 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id d19sm23924281pfe.24.2017.07.24.10.25.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jul 2017 10:25:15 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 01638A1C5; Mon, 24 Jul 2017 13:25:04 -0400 (EDT) Content-Disposition: inline In-Reply-To: <261e84b1-9891-465a-a21e-80a61b9e98c0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.b=0DV4UctD; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::230 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:17951 Archived-At: +++ Sean Winslow [Jul 24 17 08:01 ]: > John, > Thank you for the quick response, and for adding that! I currently have > the release branch of pandoc installed from homebrew, but I will remove > it and compile from the master branch late this evening to test out the > solution. If you wait a bit, there should be a nightly on the pandoc-nightly repository. > Can you say more about what you're doing? Are you > > converting this latex to some other format? If so, > > which? > > I wrote a dissertation on Ethiopian scribal practices which uses a lot > of LaTeX features (fig, subfig, pdfparcols, tikz, datatool, special > diacritics, font-switching for Ethiopic, Arabic, greek). It has been > accepted (with revisions) for publication, but I need to get the file > into docx for the publisher, so that it fits the workflow they have for > inDesign. Luckily, they do not want the images in, so I am going to > write a macro that changes figures to the figure name and caption, and > I realize all the parcolumns/tikz/datatool stuff is probably a complete > loss and needs to be redone by hand, but there is so much Ethiopic text Not necessarily. You can use a filter to do tikz images. See https://github.com/sergiocorreia/panflute/blob/master/examples/panflute/tikz.py > and transcribed Ethiopic that it would be a nightmare to replace it all > by hand, so I am very keen to transfer that over automatically. After I > recompile from the master branch, I will still be trying to figure out > these issues: > 1. As written, it is also highly-referenced, but labels do not seem to > be transferring over--is there a procedure for making \label and \ref > work, or do I need to fix every one by hand? These are not supported at this time. We'd have to reimplement the whole latex numbering/label system. That's on the TODO list. > 2. In LaTeX, I have a > \renewcommand{\includegraphics}[2][]{% > {(((\url{#2})))}% print file name in a small box with triple parens > } > which lists the name of the file and the caption. In the pandoc-created > docx, the caption and the optional table of figures caption print > twice, without the filename. Is there something wrong with the syntax > of my renewcommand? See if the new version does better. It parses macros better. > 3. The Ethiopic text transfers over correctly, but since my main font > (Brill) does not contain Ethiopic glyphs, I have a > \newfontfamily\ethiopicfont[Script=Ethiopic]{Abyssinica SIL} > set up. In the docx, I see blocks, which when I change the font by hand > to Abyssinica, render correctly. What command do I need to pass to > pandoc to get it to set the ethiopicfont in a different font? Pandoc just does structural elements, it won't change the font in the docx.