public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Feature Idea: docx -> HTML table styling
@ 2022-06-15 19:13 Noah Malmed
       [not found] ` <cf7005a8-0447-4667-acb2-c1eccbaacaden-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Noah Malmed @ 2022-06-15 19:13 UTC (permalink / raw)
  To: pandoc-discuss


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



Hello!

 We use Pandoc often to convert from docx to HTML, and many of the 
documents we convert include tables. As far as we can tell, almost all of 
the table styling is lost in the docx reader. Specifically, we care about 5 
things:

1. Text justification (left, center, or right)

2. Vertical alignment (top, middle, or bottom)

3. Text indentation

4. Cell shading and text color

5. Table borders 

We hope to enhance the docx reader so that these stylings get preserved in 
the AST.

Proposed solutions:

1. It seems like text justification  already exists in the AST through the 
Alignment value. It just needs to get implemented in the docx reader, as 
described in this issue: https://github.com/jgm/pandoc/issues/6316

2. Add the vertical alignment style to attributes as suggested here 
<https://github.com/jgm/pandoc/issues/7444#issuecomment-881649125>

3. Add text indentation to attributes in the form of the style padding-left

4. Add cell shading and text color to attributes in the form of the styles 
background-color and color

5. Add table borders to attributes in the form of the style border

 

Does this sound like a sane and feasible solution? We're pretty motivated 
and willing to work on these changes, just want to know if they would be 
the best route!

Thanks! 

Noah

-- 
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/cf7005a8-0447-4667-acb2-c1eccbaacaden%40googlegroups.com.

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

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

end of thread, other threads:[~2022-06-21 17:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-15 19:13 Feature Idea: docx -> HTML table styling Noah Malmed
     [not found] ` <cf7005a8-0447-4667-acb2-c1eccbaacaden-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-15 22:36   ` John MacFarlane
     [not found]     ` <m2tu8l7dwk.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2022-06-16 15:16       ` Noah Malmed
     [not found]         ` <ec31e976-089b-4916-949a-fad874b2a8adn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-16 17:21           ` John MacFarlane
     [not found]             ` <m2v8t05xsf.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2022-06-17 13:56               ` Daniel Staal
     [not found]                 ` <98db6638-9fe8-90bc-8fc0-051d0307983c-Jdbf3xiKgS8@public.gmane.org>
2022-06-17 17:36                   ` John MacFarlane
     [not found]                     ` <m235g35h13.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2022-06-18  0:19                       ` ivo....-xwz7R8GQi1g@public.gmane.org
     [not found]                         ` <3dff9bb1-eed9-4252-9b72-1aa090c5865fn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-06-21 17:42                           ` William Lupton
2022-06-16  6:49   ` Albert Krewinkel
     [not found]     ` <87y1xxvzt3.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-16 15:19       ` Noah Malmed

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