From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31614 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jan_St=C3=BChler?= Newsgroups: gmane.text.pandoc Subject: docx with images in tables to markdown and back Date: Fri, 21 Oct 2022 05:30:17 -0700 (PDT) Message-ID: <02f65a26-e99a-4cfb-9ef7-899e7f40f899n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8800_2138020834.1666355417720" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1143"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDXJPMHQZ4FRBW5BZKNAMGQEMFPNYAA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 21 14:30:22 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f192.google.com ([209.85.167.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olrAM-000Abi-Lk for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 21 Oct 2022 14:30:22 +0200 Original-Received: by mail-oi1-f192.google.com with SMTP id bh28-20020a056808181c00b0035522358734sf912072oib.10 for ; Fri, 21 Oct 2022 05:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=C+opK1qDEKtuX0Cio+dDLgjGuZ/M5ihOvOWVICr/vxI=; b=gFa5avVHCbcoV49i8T8w5zOqZsdYpTzn6/sik9riJ9wJSyTbkzsCgrc9tVbewA/xO1 11n+OKiYWQUh/aoTj9AcYkJWul3EoH4OH+o4SlmuuhhyvohyfLrGxNGifOdmTwyhnMAi kPV3OH7jq46JRXaBFOEtEyc3F2Qt3ggFtN8e+4szLRL5pwQeVJD1el6Xkq6DwRwx9V+W 6NgeXe6W2zdP6h+6BRlxPDyhDF8WyewvrRpHl5lR17h7yHd7jlu56sjmo+8g6J5SYYEL Pq89q5akhQzUQvVV6Mza+eICQbQJFPKGoWuynf8BZtGhbFieYRyroqAvj4a2LufxAngP whqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=C+opK1qDEKtuX0Cio+dDLgjGuZ/M5ihOvOWVICr/vxI=; b=bt4E/u5px6yig4EnaK87TzoLqIxN6bk5bR9616CnX2pT282dSnlqvYI6WY1Edf5k98 krps7aIyAcz8mQaA0bkqG//CvmLhvtdBu3/wf/SsOFvKOzV1bbjND+gOQrfF0ojo3A3Q 7Rvh1qCgup3cbDDaZACFnPCGtH9ht7aNeIHTWsRKfxeE8aLA6Wn8gKNbF2ZVRbyfME8J PHl15IE7gQAIfnnJkutabWlIBL/CWpknz8x7ujYXQbLjH88ve5eEgCg7aVbGU/h2rhJ+ Gm8c9XdJHpcX3oTZHCZ7OhHussGs16w8VoWb0fbakjf1NY78mnv3mONLX9+xpdz+hROO a81w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=C+opK1qDEKtuX0Cio+dDLgjGuZ/M5ihOvOWVICr/vxI=; b=tjWruWayXkygItM1jp8fA3cEtdyMa9PXrLUnUbuZgfIpc6EpgBJQPWql78bmV9pVoy 8D9jXB41wO/VYX2+reC55nO5L+fZD2ZRJbFQbtkUbjYNTfOt+5RGAp8oC5pfP4utQWS0 BA2q6COVPRFVAMygJBLYQ9VXcyLLCz92+pT5Fcaud7sgwQiukRgbqI5ZfJvB0KbXiiIS 2ByCkI2Cz8+5pz7CK3ew+E0uhDn2kPgSk1J4Z24ppCuF7zi+mlELPA0g5pPQNOY16Yna B0tA+x4TW5J8qDsTAuyl0nVyTruqSKXJ7QUGxNLj9+DK7lTmsTnoPKGh26EuBGEbhzHp BDqw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf3EFKDUWL6ci6gnxI2S4rcUX7es5mSTVLqN+m6LhCdtDTl8yhbV DLBhRK8e65d+WRhCF8mhsUk= X-Google-Smtp-Source: AMsMyM4s+U+/qFGYIpNr1KmSFJNu/FTc8S4+J0wT+qcZ2Bo/U+a62hgm0UXB4Kclp2qIAR5pP189ng== X-Received: by 2002:a05:6870:524b:b0:132:fe86:4be9 with SMTP id o11-20020a056870524b00b00132fe864be9mr12978463oai.102.1666355421507; Fri, 21 Oct 2022 05:30:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a54:4f09:0:b0:34f:7989:33d with SMTP id e9-20020a544f09000000b0034f7989033dls739331oiy.6.-pod-prod-gmail; Fri, 21 Oct 2022 05:30:18 -0700 (PDT) X-Received: by 2002:a05:6808:1691:b0:351:48da:62e0 with SMTP id bb17-20020a056808169100b0035148da62e0mr10357064oib.98.1666355418529; Fri, 21 Oct 2022 05:30:18 -0700 (PDT) X-Original-Sender: jan.stuehler-Re5JQEeQqe8AvxtiuMwx3w@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.io gmane.text.pandoc:31614 Archived-At: ------=_Part_8800_2138020834.1666355417720 Content-Type: multipart/alternative; boundary="----=_Part_8801_825553250.1666355417720" ------=_Part_8801_825553250.1666355417720 Content-Type: text/plain; charset="UTF-8" Hello group. I use ``` pandoc -f docx -t markdown --extract-media "Lab 1-2.docx-dir" -o file.md file.docx ``` to convert a word document to markdown. The word document has (many) images which are sitting in table cells. One of the results is: ``` 1 +===============================+======================================+ 2 | Click on the Link:\ | ![](./Lab 1-2.docx-dir/media/ima | 3 | *[Click here to start the | ge7.png){width="3.643961067366579in" | 4 | Local Service | height="1.9991174540682415in"} | ``` (Line numbers from `vim`). Observe the line break between `ima` and `ge7.png`. To convert this markdown to word, I use ``` pandoc -f markdown -t docx -o file-new.docx file.md ``` which results in this error message: ``` [WARNING] Could not fetch resource ./Lab%201-2.docx-dir/media/ima%20ge7.png: replacing image with description ``` Observe the `%20` between `ima` and `ge7.png`. Is there something I can do so that pandoc can put the images into the word document? Thanks alot. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/02f65a26-e99a-4cfb-9ef7-899e7f40f899n%40googlegroups.com. ------=_Part_8801_825553250.1666355417720 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello group.

I use 
```
pandoc = -f docx -t markdown --extract-media "Lab 1-2.docx-dir" -o file.md file.docx=
```
to convert a word document to markdown. The wo= rd document has (many) images which are sitting in table cells. One of the = results is:
```
   1 +=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+
   2 | Click on the L= ink:\           | ![](./Lab 1-2.docx-dir/media/ima=     |
   3 | *[Click here to start the    = ; | ge7.png){width=3D"3.643961067366579in" |
   4 | Local Serv= ice                 | height=3D"1.9= 991174540682415in"}       |
```
(Lin= e numbers from `vim`).

Observe the line break betw= een `ima` and `ge7.png`.

To convert this markdown = to word, I use
```
pandoc -f markdown -t docx -o file-n= ew.docx file.md
```
which results in this error mes= sage:
```
[WARNING] Could not fetch resource ./Lab%201-= 2.docx-dir/media/ima%20ge7.png: replacing image with description
<= div>```
Observe the `%20` between `ima` and `ge7.png`.
=
Is there something I can do so that pandoc can put the image= s into the word document?

Thanks alot.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/02f65a26-e99a-4cfb-9ef7-899e7f40f899n%40googlegroups.= com.
------=_Part_8801_825553250.1666355417720-- ------=_Part_8800_2138020834.1666355417720--