From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18352 Path: news.gmane.org!.POSTED!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: pandoc transform between markdown and rst support Chinese character not well? Date: Thu, 19 Oct 2017 13:56:42 +0200 Message-ID: <4f48a015-3dc7-f663-81d5-a1d74333304b@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------5DE3F0267576E163EC698739" X-Trace: blaine.gmane.org 1508414227 32254 195.159.176.226 (19 Oct 2017 11:57:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Oct 2017 11:57:07 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 To: iromise , pandoc-discuss Original-X-From: pandoc-discuss+bncBDIY76M674FRBA5GULHQKGQE5WIBRRI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Oct 19 13:57:01 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-it0-f57.google.com ([209.85.214.57]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e59RM-0005vi-EF for gtp-pandoc-discuss@m.gmane.org; Thu, 19 Oct 2017 13:56:44 +0200 Original-Received: by mail-it0-f57.google.com with SMTP id y15sf7306198ita.22 for ; Thu, 19 Oct 2017 04:56:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1508414211; cv=pass; d=google.com; s=arc-20160816; b=zkfZT54J9cE38gX0a8BzZOve8hrHvL+TSVSUPobkvJWGH6jb/+K/QODlZYjCVHjB49 ZYh9jk/k/O7gzVg7GDd21QwAc/Dlb2RJZEXMfJkXj0Ckg/0vYL5rs//bySD0arJZqYgE Nz0FyJGWipv1jextFY3nlB1Kx6sxIZMIto8y/dwvN0IDBfH5jPCMpFeskqAvmOhzZXsp 6a2JWWokPrMxuzSyBiHPG5wOxRItsOUQlbx73X9fMMerDXwmwxxBzTODSBQwgEV0SkXp XqwmoEEyb1g/oMuC++0DK72JewWcZCtMF5d6WPISD7Giho4SRn+S39kP3LFwAoB71aat SnEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=LpOJ4rN1rE8FTMYeIn1Yv6xK+LrpJQfc9OlZ08612NQ=; b=Hdndh+b74QTFYSZCy21aKE7p6dilFgIJn85Gi+VPKNfnxcw9c0vRpW4sBhx7oomerV qQOF3djGXjvf2jI9c0iVpb2UCbacFqwFGup8a4Cx1puQT0s4bzHNqQm6No22pBNw7l6p MWoo6L1JdF6zFP+AiREc6NtMH5yZHhrHl7zbSDeG6fsDJBOngsW0yCaPNYPC7EmfS9BV wVTBLIpqyw6lfJi1txVY03mVwTvf1iQVkYomXUZZrLJI1WX529WL1Tv/3ZQn3r9UO5n5 CnxHaKhWivTSbsB3r9XH1OgiRzoT7cWpgBsXRUGRPR2Oii77B+ICC3ctFO13pwPciXWt XqK ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.244 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=LpOJ4rN1rE8FTMYeIn1Yv6xK+LrpJQfc9OlZ08612NQ=; b=pTvmKO55HXcmvrGO81GyYWlFGhXpQ+zEesc8hEjWNQU2V7aaAiCyZW2YJNS1jHIWWE bQnB0SOo03Xad7HZvbmm1Rn+RgJpCTwlgPibYc315ZDRC9OD0SicKzyxAMXYEqO1oMjY Bs7ijKs3KWewis4Nb8YZKoaD+ImidbBGXqdD73Az1f6Pz1ofVa4Wsjx1Ir+ozqy8Y5Tt O0RNroksROTQjTgCiRzu1LCUmEncU9GY1Cf3IfMkk82XiIqZIofipMH25mSbl/j7+Wxn tkKongLuCX/wgsxtOsML7Rn0MsyXuNpBxqF44qgby4X1IAH8aqmrpTtx+2knuaQ6Vae+ /2xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=LpOJ4rN1rE8FTMYeIn1Yv6xK+LrpJQfc9OlZ08612NQ=; b=mCXt1eEnEOt1tEzBG4teHLeAG8tyYiOgODIkAqI/dvEjBC0nACgldfnRaIcO2kkEmr kKHZHGoqzRTk9IjWce1I8lBc+jcU4JWl0blnwUZcT7Y42ubtLytc5osGOGECOs1BZb/g KQpOo318k2UutXgcQTYQyeMxbPoxoyC53NO5cRGMoBoYTTvHHMMX3VhOEcK4Zxbi7FM6 Gv0aDIEUEYj369txOfTa4WjvA16SOMehSrmef3Fv6yETlc/ZQ1uk589kpAeLHpbkNvRZ TN6zAL0ibs30f2316dhD6KyUW6+r8kG6K1zaDJjQm+NWU1rYMOuKfCAPPHvnY1LnHD5J Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AMCzsaVntP4JWbrQf85WFqAokptzNBhSP4j3UF4HoaRUunGnT/sYQAnq lrlaSu3JCPc1zthmYzpI+kw= X-Google-Smtp-Source: ABhQp+QYnll4LbyeX+ufs+FpD9MBhlerYdsFvUomQRUP41ZosTKBvu7zBwEaSikOmupehY39zp5JXQ== X-Received: by 10.36.80.4 with SMTP id m4mr30044itb.5.1508414211778; Thu, 19 Oct 2017 04:56:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.120.3 with SMTP id p3ls342937itc.4.gmail; Thu, 19 Oct 2017 04:56:49 -0700 (PDT) X-Received: by 10.36.5.5 with SMTP id 5mr1057920itl.30.1508414209527; Thu, 19 Oct 2017 04:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508414209; cv=none; d=google.com; s=arc-20160816; b=Kffq4bDIKlBR9JVFiK0ROc6x3RfOhAmVfiRj2+5ARoG/k82EpfuirlljvFCeMyRsiX vTgdAK9Qq4N11nCtDmRFIm5IyCs0TPrJktqDUKjMpQ8ULeVq4La/kB6LHjinAS9Wmc4s aXHk2G8Pw5lYa2mSrkjJdBvhZb1AdxWaThNcCvjepl6R7ikHABslrMZb0K7Y60VQFXuR O6iDE8RzbI8bRIopmPYoAnBLcTjz0rxTzT4akjly2HM6/KgfWUoNeOFCNbyMBXwkCgVd n+aQfTLoTgwuM/QEaeME7a+q4iGZM9ZfI5YhLsI5TOEX3YAVCiKCf02ZRSP9/gam8uTI Q3MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=LBLqrF8aj2Hk/lrWxST2BDDn5AEJ/Q2NTbU3/8uB6SA=; b=Ug0lOz2lAryCxOvPRdY4o71jBnitFLQ0LB4qRnGY2SDPQ3SyXelLSse/Z76cS+Ot+i Uu29tSlOVygSc8aaz9ZfdPfB4NMjpOGGYmGI3BwnnkXrZyKwbQxYxWXh7+ZAj5SL6hgg Q1Dq1K1jBPKI+ETGlANGdGb7BcJ4KFQY61G7d7JaOeAxGWyKt1AIcwTVYu6oTIfbs8RF ayF7OGAptg7tQmdbM+pJFFBgCLYh7CGAYEdWX1aMXQYOFSGVoRNd8wGQikqG7gjYTDBc GTdXylUKPXVRZCMAlm+cvTGTLPAYs3DGBbB61Al+PMG7ckOIUtaGNfMah+55yS7z+Ugv 0AXg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.244 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Original-Received: from manu6.manufrog.com (ns12.manufrog.com. [138.128.164.244]) by gmr-mx.google.com with ESMTPS id r194si44252itr.1.2017.10.19.04.56.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Oct 2017 04:56:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.244 as permitted sender) client-ip=138.128.164.244; Original-Received: from [178.249.150.162] (port=44182 helo=[192.168.1.7]) by manu6.manufrog.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1e59RQ-0000Dr-M1; Thu, 19 Oct 2017 13:56:48 +0200 In-Reply-To: Content-Language: sv-SE X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu6.manufrog.com X-AntiAbuse: Original Domain - googlegroups.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gmail.com X-Get-Message-Sender-Via: manu6.manufrog.com: authenticated_id: bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org X-Authenticated-Sender: manu6.manufrog.com: bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org X-Source: X-Source-Args: X-Source-Dir: X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.244 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18352 Archived-At: This is a multi-part message in MIME format. --------------5DE3F0267576E163EC698739 Content-Type: text/plain; charset="UTF-8"; format=flowed Den 2017-10-16 kl. 17:44, skrev iromise: > 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. [snip] > > is there any way I can solved it? thanks. > > Does it help to replace those spaces you actually have in the source with non-breaking spaces? "You can insert a non-breaking space in Pandoc Markdown by typing a backslash followed by an ordinary space character. Otherwise setting a high --columns value is the way to go. If the table in your example is typical --columns=250 would be about enough, and shouldn't be a problem on modern screens. I often need tables with many narrow columns, and then I need to set --columns=200 in order to not get unwanted line breaks in the middle of (Western script) words. Moreover this particular table looks like it could profitably be reformatted as a definition list, since it has only two columns (see the attached file!) /bpj -- 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/4f48a015-3dc7-f663-81d5-a1d74333304b%40gmail.com. For more options, visit https://groups.google.com/d/optout. --------------5DE3F0267576E163EC698739 Content-Type: text/x-markdown; name="markdown_and_rst_support_Chinese.md" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="markdown_and_rst_support_Chinese.md" st_name : 符号在字符串表中对应的索引。如果该值非 0,则它表示了给出符号名的字符串表索引,否则符号表项没有名称。 注:外部 C > 符号在 C 语言和目标文件的符号表中具有相同的名称。 st_value : 给出与符号相关联的数值,具体取值依赖于上下文,可能是一个正常的数值、一个地址等等。 st_size : 给出对应符号所占用的大小。如果符号没有大小或者大小未知,则此成员为0。 st_info : 给出符号的类型和绑定属性。之后会给出若干取值和含义的绑定关系。 st_other : 目前为0,其含义没有被定义。 st_shndx : 每个符号表项都会和某个节区有所关系。此成员给出相关的节区头部表索引。某些索引具有特殊含义。 pandoc -r markdown+east_asian_line_breaks -w rst % st\_name 符号在字符串表中对应的索引。如果该值非 0,则它表示了给出符号名的字符串表索引,否则符号表项没有名称。 注:外部 C > 符号在 C 语言和目标文件的符号表中具有相同的名称。 st\_value 给出与符号相关联的数值,具体取值依赖于上下文,可能是一个正常的数值、一个地址等等。 st\_size 给出对应符号所占用的大小。如果符号没有大小或者大小未知,则此成员为0。 st\_info 给出符号的类型和绑定属性。之后会给出若干取值和含义的绑定关系。 st\_other 目前为0,其含义没有被定义。 st\_shndx 每个符号表项都会和某个节区有所关系。此成员给出相关的节区头部表索引。某些索引具有特殊含义。 --------------5DE3F0267576E163EC698739--