public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: pandoc transform between markdown and rst support Chinese character not well?
Date: Mon, 16 Oct 2017 09:13:46 -0700	[thread overview]
Message-ID: <20171016161346.GB10343@protagoras> (raw)
In-Reply-To: <b5d59708-1d56-4c95-aa79-9360c1a14580-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

Since you have a pipe table with lines that exceed the
stadard column width, the columns get relative widths (based
on the header line lengths).  This is why narrow columns are
used in the RST table.  You can disable this by setting
--columns to a very high number.  But then you'll get a very
wide RST table.

You can also adjust column widths by increasing the size of the
header lines.

The big problem is that you have constrained column widths,
but pandoc isn't able to break the lines anywhere, because
they don't contain regular space characters.

+++ iromise [Oct 16 17 08:44 ]:
>   When I use pandoc to transform markdown format table in which there is
>   some Chinese character to rst format table,the generated table seems
>   some wrong. Such as follows:
>   (this is a Elf32_Sym introduction, but it is now in Chinese)
>   md format:
>
>     | 字段       | 说明                                       |
>
>     | -------- | ---------------------------------------- |
>
>     | st_name  | 符号在字符串表中对应的索引。如果该值非 0,则它表示了给出符号名的字符串表索引,否则符号表项没有名称。
>     注:外部  C  符号在 C 语言和目标文件的符号表中具有相同的名称。 |
>
>     | st_value | 给出与符号相关联的数值,具体取值依赖于上下文,可能是一个正常的数值、一个地址等等。 |
>
>     | st_size  | 给出对应符号所占用的大小。如果符号没有大小或者大小未知,则此成员为0。      |
>
>     | st_info  | 给出符号的类型和绑定属性。之后会给出若干取值和含义的绑定关系。          |
>
>     | st_other | 目前为0,其含义没有被定义。                           |
>
>     | st_shndx | 每个符号表项都会和某个节区有所关系。此成员给出相关的节区头部表索引。某些索引具有特殊含义。 |
>
>
>
>   rst format:
>
>   +-----------+-------------------------------------------+
>
>   | 字段      | 说明                                      |
>
>   +===========+===========================================+
>
>   | st\_name  | 符号在字符串表中对应的索引。如果该值非    |
>
>   |           | 0,则它表示了给出符号名的字符串表索引,否则符号表项没有名称。 |
>
>   |           |                                           |
>
>   |           | 注:外部 C 符号在 C                       |
>
>   |           | 语言和目标文件的符号表中具有相同的名称。  |
>
>   +-----------+-------------------------------------------+
>
>   | st\_value | 给出与符号相关联的数值,具体取值依赖于上下文,可能是一个正常的数值、一个地址等等。 |
>
>   +-----------+-------------------------------------------+
>
>   | st\_size  | 给出对应符号所占用的大小。如果符号没有大小或者大小未知,则此成员为0。 |
>
>   +-----------+-------------------------------------------+
>
>   | st\_info  | 给出符号的类型和绑定属性。之后会给出若干取值和含义的绑定关系。 |
>
>   +-----------+-------------------------------------------+
>
>   | st\_other | 目前为0,其含义没有被定义。               |
>
>   +-----------+-------------------------------------------+
>
>   | st\_shndx | 每个符号表项都会和某个节区有所关系。此成员给出相关的节区头部表索引。某些索引具有特 |
>
>   |           | 殊含义。                                  |
>
>   +-----------+-------------------------------------------+
>
>   is there any way I can solved it? thanks.
>
>   --
>   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@googlegroups.com.
>   To post to this group, send email to
>   [2]pandoc-discuss@googlegroups.com.
>   To view this discussion on the web visit
>   [3]https://groups.google.com/d/msgid/pandoc-discuss/b5d59708-1d56-4c95-
>   aa79-9360c1a14580%40googlegroups.com.
>   For more options, visit [4]https://groups.google.com/d/optout.
>
>References
>
>   1. mailto:pandoc-discuss+unsubscribe@googlegroups.com
>   2. mailto:pandoc-discuss@googlegroups.com
>   3. https://groups.google.com/d/msgid/pandoc-discuss/b5d59708-1d56-4c95-aa79-9360c1a14580@googlegroups.com?utm_medium=email&utm_source=footer
>   4. 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@googlegroups.com.
To post to this group, send email to pandoc-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20171016161346.GB10343%40protagoras.
For more options, visit https://groups.google.com/d/optout.

  parent reply	other threads:[~2017-10-16 16:13 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16 15:44 iromise
     [not found] ` <b5d59708-1d56-4c95-aa79-9360c1a14580-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-16 16:13   ` John MACFARLANE [this message]
2017-10-17  2:39   ` iromise
     [not found]     ` <feb05f9a-a367-495e-94f2-50dfc9bb3f74-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-17  3:53       ` John MacFarlane
     [not found]         ` <20171017035353.GC57897-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-10-17 23:33           ` Václav Haisman
     [not found]             ` <61410aee-bec7-4697-a46f-68129f92bf8f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-18  1:36               ` John MacFarlane
     [not found]                 ` <20171018013611.GC72258-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-10-18  9:45                   ` Baozheng Liu
2017-10-19 11:56   ` BP Jonsson
     [not found]     ` <4f48a015-3dc7-f663-81d5-a1d74333304b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-10-19 16:10       ` John MACFARLANE
2017-10-20  2:52         ` Baozheng Liu
     [not found]           ` <CA+R_Ot=vGzOaC_kx-RpC-k2Jrz+U2g+LEKSxOsZxczX1LzcMPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-20 16:28             ` John MACFARLANE
2017-10-21  7:56               ` Baozheng Liu
     [not found]                 ` <CA+R_OtkDLgyG67Ziy6LM_zFxdWfFCiHS4MavZGzar1knQgQ7-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-21 16:02                   ` John MacFarlane
     [not found]                     ` <20171021160255.GC88234-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-10-23  1:28                       ` Baozheng Liu
     [not found]                         ` <CA+R_OtmZsToSgJoriRaDktVCDYaaH5+QcA1KYSMBvj24UivevA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-27  8:42                           ` Kolen Cheung

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=20171016161346.GB10343@protagoras \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@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).