public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* DocX Writer: Document set to RTL, but table remains LTR
@ 2021-11-16 13:52 Chanamel Ungar
       [not found] ` <37f616aa-f9d7-4b90-ad16-2edfc76266c8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Chanamel Ungar @ 2021-11-16 13:52 UTC (permalink / raw)
  To: pandoc-discuss


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

Hey,

Pandoc version: 2.11.3.2

While converting from markdown to docx, the docx writer isn't setting 
tables as RTL even though the document direction is set to RTL.

So if I have a simple table:

| 1 | 2 |
-----------
|1-a | 2-a |
| 1-b | 2-b |

It is inserted as LTR, and appears reversed to a RTL user.

I manually changed the table to RTL in Word and checked the XML. RTL tables 
have an additional property.

LTR table:
<w:tblPr>
<w:tblStyle w:val="Table"/>
   
<w:tblW w:w="5000" w:type="pct"/>
<w:tblLook w:val="0000" w:firstRow="0" w:lastRow="0" w:firstColumn="0" 
w:lastColumn="0" w:noHBand="0" w:noVBand="0"/>
</w:tblPr>

RTL table:
<w:tblPr>
<w:tblStyle w:val="Table"/>
*<w:bidiVisual/>*
<w:tblW w:w="5000" w:type="pct"/>
<w:tblLook w:val="0000" w:firstRow="0" w:lastRow="0" w:firstColumn="0" 
w:lastColumn="0" w:noHBand="0" w:noVBand="0"/>
</w:tblPr>

Is this a known issue? Or should I open an issue on GitHub?


-- 
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/37f616aa-f9d7-4b90-ad16-2edfc76266c8n%40googlegroups.com.

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

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

end of thread, other threads:[~2021-11-16 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 13:52 DocX Writer: Document set to RTL, but table remains LTR Chanamel Ungar
     [not found] ` <37f616aa-f9d7-4b90-ad16-2edfc76266c8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-11-16 16:42   ` John MacFarlane

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).