* Can pandoc warn if a docx table includes merged cells?
@ 2016-03-09 11:02 James H
[not found] ` <b1936c10-6f49-494a-ab93-6090a0d0d0d0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: James H @ 2016-03-09 11:02 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 956 bytes --]
Hello. I'm converting docx files into md. What's the best way to deal with
merged cells in tables? I can't get them to convert properly at the moment
- some columns simply get deleted.
Instead, is there a way to get pandoc to throw a warning if a docx table
includes merged cells?
I couldn't find any existing threads on this topic but please let me know
if there are some!
--
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/b1936c10-6f49-494a-ab93-6090a0d0d0d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1461 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can pandoc warn if a docx table includes merged cells?
[not found] ` <b1936c10-6f49-494a-ab93-6090a0d0d0d0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2016-03-09 16:12 ` John MacFarlane
[not found] ` <20160309161216.GF70376-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2016-03-12 19:04 ` Jesse Rosenthal
1 sibling, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2016-03-09 16:12 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Pandoc conversion from formats more expressive than pandoc
Markdown can be lossy, as stated near the beginning of the README.
Ideally warnings would be produced, but currently only a few
of the readers support warnings. This would be a good
addition to the docx reader.
+++ James H [Mar 09 16 03:02 ]:
> Hello. I'm converting docx files into md. What's the best way to deal
> with merged cells in tables? I can't get them to convert properly at
> the moment - some columns simply get deleted.
> Instead, is there a way to get pandoc to throw a warning if a
> docx table includes merged cells?
> I couldn't find any existing threads on this topic but please let me
> know if there are some!
>
> --
> 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [3]https://groups.google.com/d/msgid/pandoc-discuss/b1936c10-6f49-494a-
> ab93-6090a0d0d0d0%40googlegroups.com.
> For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
> 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 3. https://groups.google.com/d/msgid/pandoc-discuss/b1936c10-6f49-494a-ab93-6090a0d0d0d0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> 4. https://groups.google.com/d/optout
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can pandoc warn if a docx table includes merged cells?
[not found] ` <20160309161216.GF70376-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
@ 2016-03-10 14:22 ` Jesse Rosenthal
0 siblings, 0 replies; 5+ messages in thread
From: Jesse Rosenthal @ 2016-03-10 14:22 UTC (permalink / raw)
To: John MacFarlane, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
I'll look into it. It's not immediately obvious to me, though, what the
best way to produce the warning would be. Most readers use `addWarning`,
which adds to the Parsec state, but the docx reader doesn't use Parsec
(and doesn't have StateT in its monad stack).
I guess I could add WriterT or StateT to the stack, and then just tack
on to `stateWarnings` the way `addWarning` does in the Parsec
state. Easy enough, and since I'm using mtl, I shouldn't have to add any
extra lifts. That seems preferable to just popping in a `hPutStr stderr
"error\n" >> hFlush stderr` whenever we hit a warning situation, anyway.
Best,
Jesse
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can pandoc warn if a docx table includes merged cells?
[not found] ` <b1936c10-6f49-494a-ab93-6090a0d0d0d0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-03-09 16:12 ` John MacFarlane
@ 2016-03-12 19:04 ` Jesse Rosenthal
[not found] ` <87fuvvecvo.fsf-4GNroTWusrE@public.gmane.org>
1 sibling, 1 reply; 5+ messages in thread
From: Jesse Rosenthal @ 2016-03-12 19:04 UTC (permalink / raw)
To: James H, pandoc-discuss
I've set up all the preiminaries for the docx reader to emit
warnings. James, can you open an issue on github issue tracker, with a
minimal docx file displaying the problem?
James H <jamesrharwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> [ text/plain ]
> Hello. I'm converting docx files into md. What's the best way to deal with
> merged cells in tables? I can't get them to convert properly at the moment
> - some columns simply get deleted.
>
> Instead, is there a way to get pandoc to throw a warning if a docx table
> includes merged cells?
>
> I couldn't find any existing threads on this topic but please let me know
> if there are some!
>
>
> --
> 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/b1936c10-6f49-494a-ab93-6090a0d0d0d0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Can pandoc warn if a docx table includes merged cells?
[not found] ` <87fuvvecvo.fsf-4GNroTWusrE@public.gmane.org>
@ 2016-03-14 20:19 ` James H
0 siblings, 0 replies; 5+ messages in thread
From: James H @ 2016-03-14 20:19 UTC (permalink / raw)
To: pandoc-discuss; +Cc: jamesrharwood-Re5JQEeQqe8AvxtiuMwx3w
[-- Attachment #1.1: Type: text/plain, Size: 2066 bytes --]
Done. It's issue #2783. Thank you Jesse.
https://github.com/jgm/pandoc/issues/2783
On Saturday, 12 March 2016 19:04:48 UTC, Jesse Rosenthal wrote:
>
> I've set up all the preiminaries for the docx reader to emit
> warnings. James, can you open an issue on github issue tracker, with a
> minimal docx file displaying the problem?
>
> James H <jamesr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> writes:
>
> > [ text/plain ]
> > Hello. I'm converting docx files into md. What's the best way to deal
> with
> > merged cells in tables? I can't get them to convert properly at the
> moment
> > - some columns simply get deleted.
> >
> > Instead, is there a way to get pandoc to throw a warning if a docx table
> > includes merged cells?
> >
> > I couldn't find any existing threads on this topic but please let me
> know
> > if there are some!
> >
> >
> > --
> > 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
> > To post to this group, send email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> <javascript:>.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc-discuss/b1936c10-6f49-494a-ab93-6090a0d0d0d0%40googlegroups.com.
>
> > For more options, visit 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/fb3f206a-3681-45c3-baad-a624e19c59b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 4519 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-14 20:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-09 11:02 Can pandoc warn if a docx table includes merged cells? James H
[not found] ` <b1936c10-6f49-494a-ab93-6090a0d0d0d0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-03-09 16:12 ` John MacFarlane
[not found] ` <20160309161216.GF70376-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2016-03-10 14:22 ` Jesse Rosenthal
2016-03-12 19:04 ` Jesse Rosenthal
[not found] ` <87fuvvecvo.fsf-4GNroTWusrE@public.gmane.org>
2016-03-14 20:19 ` James H
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).