public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Textile document looks bad in RedMine, Pandoc 3.1.3 for Win
Date: Fri, 9 Jun 2023 14:33:28 -0700	[thread overview]
Message-ID: <947553D1-2D58-4BDA-AE1F-27DDE27029C5@gmail.com> (raw)
In-Reply-To: <CAPhsaWGmD7tJAEh3km-1C=nCrmcZAW5kELhcS5CB+2yJfrWGKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

It depends what you mean by "just fine."  Embedded HTML is perfectly fine in Textile, and in this case it is needed in order to preserve the semantic information about column widths.  (Btw, can't see these links - it says the file is in owner's trash.)

AT least, this used to be true. It looks like in a more recent iteration of Textile, there's a syntax for specifying these things:
https://textile-lang.com/doc/tables
In principle we could support this new syntax, but I'd prefer to aim for a more compatible subset of Textile that would also work with older Textile.

> On Jun 8, 2023, at 11:38 PM, Tatiana Kallaur <t.kallaur-/x1ayaorDlXIb2jZbfQ/kQ@public.gmane.org> wrote:
> 
> Ok, guys, here is the original docx file
> here is the file, converted by Pandoc 3.1.3 version (I did it)
> here is the file, converted by Pandoc 2.10.1 version installed 3 years ago (my colleague did it).
> 
> Older version converts to textile fine, the newest doesn't.
> 
> Best regards,
> Tatiana Kallaur
> Business Analyst
> Invento Labs
> web: www.invento-labs.com
> 
> 
> 
> On Thu, Jun 8, 2023 at 6:44 PM John MacFarlane <fiddlosopher@gmail.com> wrote:
> Pandoc will fall back to HTML for content that can't be represented in native Textile.
> In this case it's probably the column widths.
> 
> > On Jun 8, 2023, at 1:34 AM, Tatiana Kallaur <t.kallaur-/x1ayaorDlXIb2jZbfQ/kQ@public.gmane.org> wrote:
> > 
> > Here is an example:
> > 
> > <table>
> > <col width="5%" />
> > <col width="13%" />
> > <col width="11%" />
> > <col width="9%" />
> > <col width="7%" />
> > <col width="10%" />
> > <col width="9%" />
> > <col width="33%" />
> > <tbody>
> > <tr class="odd">
> > <td align="left">*ID*</td>
> > <td align="left">*nda*</td>
> > <td align="left">*nda*</td>
> > <td align="left">*nda*</td>
> > <td align="left">*nda*</td>
> > <td align="left">*nda*</td>
> > <td align="left">*nda*</td>
> > <td align="left">*nda*</td>
> > </tr>
> > 
> > 
> > Best regards,
> > Tatiana Kallaur
> > Business Analyst
> > Invento Labs
> > web: www.invento-labs.com
> > 
> > 
> > 
> > On Thu, Jun 8, 2023 at 10:56 AM BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Do you get *only* HTML or a mixture of textile and HTML? It may be that Pandoc falls back on HTML for things which can't be expressed in regular textile like complicated tables.
> > 
> > Can you produce a minimal example which shows the problem? What does -t native give for the same example?
> > 
> > 
> > Den tors 8 juni 2023 08:19Tatiana Kallaur <t.kallaur-/x1ayaorDlXIb2jZbfQ/kQ@public.gmane.org> skrev:
> > Have you used the -t textile command line option?
> > 
> > Yes, sure, that is why I'm at a loss... my command is -f docx -t textile -s -o name.textile
> > 
> > Any guesses what can be the problem?
> > 
> > 
> > Best regards,
> > Tatiana Kallaur
> > Business Analyst
> > Invento Labs
> > web: www.invento-labs.com
> > 
> > 
> > 
> > On Wed, Jun 7, 2023 at 6:24 PM BP Jonsson <bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > Have you used the -t textile command line option? Pandoc outputs html by default. Sometimes it can guess the input and output formats from the file extensions (if you have specified an output file name) but in principle you have to use the -f INPUTFORMAT and -t OUTPUTFORMAT (with the capitalized words replaced with actual format names). The default for input format is markdown.
> > 
> > Den ons 7 juni 2023 16:18Tatiana Kallaur <t.kallaur-/x1ayaorDlXIb2jZbfQ/kQ@public.gmane.org> skrev:
> > Hey, guys!
> > 
> > Textile document looks bad in RedMine, Pandoc 3.1.3 for Win 
> > 
> > The formatting command works ok, the file is saved in textile format, but the content in the file looks as html 
> > 
> > Also, when I copy/paste the content to redmine - it looks as html
> > 
> > What can it be?
> > 
> > Thank you in advance.
> > 
> > -- 
> > 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/661f2ce6-df0b-40a7-bb06-c43aefd3cf45n%40googlegroups.com.
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
> > To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/1AMBvgivAIk/unsubscribe.
> > To unsubscribe from this group and all its topics, 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/CAFC_yuTBmkkFiv9VmYb2ip7EU6G8Dm9e0qL1gLYp7XW1nRgvZA%40mail.gmail.com.
> > 
> > -- 
> > 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/CAPhsaWEGm4jCU8zO_i4aDK4M%3DWDTG1aDxuneo5AuL9C9VH05VQ%40mail.gmail.com.
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
> > To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/1AMBvgivAIk/unsubscribe.
> > To unsubscribe from this group and all its topics, 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/CADAJKhBN23eEjQegQe7gvHK7ZAtGS-tb6LD0vHN30Kc6n%3DxppA%40mail.gmail.com.
> > 
> > -- 
> > 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/CAPhsaWE6taXziqyunkfc46V8NOzboa9TGrbMaeHrG9cDnK0aYQ%40mail.gmail.com.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/1AMBvgivAIk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/0FE7A079-0C7C-42AF-AED9-DAD6841474B4%40gmail.com.
> 
> -- 
> 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/CAPhsaWGmD7tJAEh3km-1C%3DnCrmcZAW5kELhcS5CB%2B2yJfrWGKw%40mail.gmail.com.
> <view[1]>

-- 
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/947553D1-2D58-4BDA-AE1F-27DDE27029C5%40gmail.com.


  parent reply	other threads:[~2023-06-09 21:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-07 14:18 Tatiana Kallaur
     [not found] ` <661f2ce6-df0b-40a7-bb06-c43aefd3cf45n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-06-07 15:24   ` BP Jonsson
     [not found]     ` <CAFC_yuTBmkkFiv9VmYb2ip7EU6G8Dm9e0qL1gLYp7XW1nRgvZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-06-08  6:17       ` Tatiana Kallaur
     [not found]         ` <CAPhsaWEGm4jCU8zO_i4aDK4M=WDTG1aDxuneo5AuL9C9VH05VQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-06-08  7:56           ` BPJ
     [not found]             ` <CADAJKhBN23eEjQegQe7gvHK7ZAtGS-tb6LD0vHN30Kc6n=xppA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-06-08  8:34               ` Tatiana Kallaur
     [not found]                 ` <CAPhsaWE6taXziqyunkfc46V8NOzboa9TGrbMaeHrG9cDnK0aYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-06-08 15:44                   ` John MacFarlane
     [not found]                     ` <0FE7A079-0C7C-42AF-AED9-DAD6841474B4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-06-09  6:38                       ` Tatiana Kallaur
     [not found]                         ` <CAPhsaWGmD7tJAEh3km-1C=nCrmcZAW5kELhcS5CB+2yJfrWGKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-06-09 21:33                           ` John MacFarlane [this message]
     [not found]                             ` <947553D1-2D58-4BDA-AE1F-27DDE27029C5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-06-09 23:50                               ` Daniel Staal
     [not found]                                 ` <93fdc0f4-9198-b143-e88c-a4cf552faa43-Jdbf3xiKgS8@public.gmane.org>
2023-06-10  3:49                                   ` John MacFarlane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=947553D1-2D58-4BDA-AE1F-27DDE27029C5@gmail.com \
    --to=fiddlosopher-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).