From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14882 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?JDani_Jim=C3=A9nez?= Newsgroups: gmane.text.pandoc Subject: Re: Insistent format converting from MarkDown to OpenDocument Date: Fri, 29 Apr 2016 02:52:00 -0700 (PDT) Message-ID: <6944b83a-910d-4686-a8b3-3adcb0b2f15a@googlegroups.com> References: <3681192c-529b-47f0-afcd-393ecf49508c@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_247_1543300750.1461923520691" X-Trace: ger.gmane.org 1461923531 22621 80.91.229.3 (29 Apr 2016 09:52:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 09:52:11 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDL6Z34U5MNRBQO5RS4QKGQEKVFEYUA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 29 11:52:03 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pa0-f60.google.com ([209.85.220.60]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aw55e-0001WZ-KD for gtp-pandoc-discuss@m.gmane.org; Fri, 29 Apr 2016 11:52:02 +0200 Original-Received: by mail-pa0-f60.google.com with SMTP id zy2sf26647269pac.0 for ; Fri, 29 Apr 2016 02:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Zsr9vaSDC74J8Nj7vtpD4RpCq8hbabMpqa+zUDY04BQ=; b=qSbT/9QPQSr4xP4uyq0Vf8fRsnfwe/brn6HJCDyNjwoVK5R+RP09aYlbg+mwlAbEHA HFBjUNjF8mxEUR5vsvGtu5SEj25MJ80N5Tn98i5FT8MJsr2HHQoujOe18LqpM46QKUZY Vtv97blwaqCjwXKKubsTc66DzDaJmfCXnNFZ1PLdNFvtU1rQR27to1uY5Q50VxapFO0g P0EY9meTO83x7B0UMzBPWXYthrhYlSArnkwav3xsqHhBHWbZ/FzMBffA3PwLrnYIxQ0k L29B+Qvsf75EEio/g8T+nbgfQ17jFEriJeDm/9GIJYtqvGMEBBpouyFRxgR/X1v6g7pv r9SQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Zsr9vaSDC74J8Nj7vtpD4RpCq8hbabMpqa+zUDY04BQ=; b=g5UTn6miUUM6NDMbwrTmv2Ke7jinfpA6ggF9NwK6Q8PvSilpYD2Yv5VPy2131Dy696 LbpGLmlYV29UBwECk1IxtMEfEz3p3sbPsdFEM0FS3bwM++ZbJcw6KaanqewPgXU8a8Bz pPCQLCeDKJRRc6nxgeZX3YLKu5x0KYBxPp9ftSQP54BhKqgd8Bc+DM5TAldawE80+KD9 Zf7hH6tiFRYTeFopcC+CN/58l1zyUL6m9KHX37cmG1lyFDmclnU9l9YS2/krKj8EaGFZ jO6n1XcMUfOfUFV2oU9ayDkIvqh00sTdwAQm4MTwlQOtPJ5HdgwQuieyurpLg3crNvOj PSaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Zsr9vaSDC74J8Nj7vtpD4RpCq8hbabMpqa+zUDY04BQ=; b=kmWqEAxTYrCLC4vTVTLJB7Zbs91yIv5vcH8SSEleYqKJy/W1FYfNRJ/dUUmkcobWji pxVwa68YkZuKRIFzIRj/RJ3jfegR2fuvw7yoKqU8g+b+RvG1J1F7xjngGI/8uA9ukbCc vx8LYDP5YRd8Db7pyRxymepSg5sRlGiCjd9juObdJm+k3kQZIrbjiACVqlfU3GmwXO+6 ghBDczQVIztFDR+fz8/v6Cj8Q6xXo+wQMmQZt6OV8kmuVUVljoa4Tu6cLa1wJwZ2JK3i 10H3kG/1MAE+QqDN1MnVvLAa0XLl5fM6fXGSIfQQm9FV5lnBpr/b42JxN17iXu0QQ8tK Ymyw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOPr4FV0eMTEpl9/CpMhSiIxZWbvSDAdD8PeJmivLphgQ3Qy9QWDBmE1WkDPsCBlEsDswQ== X-Received: by 10.182.113.198 with SMTP id ja6mr251310obb.0.1461923521775; Fri, 29 Apr 2016 02:52:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.1.243 with SMTP id e106ls405120ote.98.gmail; Fri, 29 Apr 2016 02:52:01 -0700 (PDT) X-Received: by 10.182.156.76 with SMTP id wc12mr251061obb.11.1461923521137; Fri, 29 Apr 2016 02:52:01 -0700 (PDT) In-Reply-To: <3681192c-529b-47f0-afcd-393ecf49508c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jdjp83-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14882 Archived-At: ------=_Part_247_1543300750.1461923520691 Content-Type: multipart/alternative; boundary="----=_Part_248_649488115.1461923520691" ------=_Part_248_649488115.1461923520691 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable *Inconsistent*, not Insistent.... =20 El viernes, 29 de abril de 2016, 11:21:43 (UTC+2), JDani Jim=C3=A9nez escri= bi=C3=B3: > > Why when converting this MarkDown code: > > > This is **bold text**, this is regular text. This is **bold text** again. > > > I'm getting this OpenDocument code: > > > This is > > bold > > > > > text > > , this is regular text. This is > > bold > > > > > text > > again. > > > > This is the python code I'm using to convert it: > pandoc_args =3D [] > > pandoc_args.append("--reference-odt") > pandoc_args.append("style_reference_file.odt") > > opendocument_code =3D pypandoc.convert(markdown_code, 'opendocument', for= mat > =3D'markdown_github', extra_args=3Dpandoc_args) > > This is the result: > > > > > I understand that I have to define styles, that's not the problem, I'll= =20 > control it in the future. But this is my question: why, for the same=20 > style, I get different style-names? > > Thanks again! > > --=20 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 e= mail 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/6944b83a-910d-4686-a8b3-3adcb0b2f15a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_248_649488115.1461923520691 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Inconsistent, not Insistent.... =C2=A0

El vi= ernes, 29 de abril de 2016, 11:21:43 (UTC+2), JDani Jim=C3=A9nez escribi= =C3=B3:
W= hy when converting this MarkDown code:


This is **<= /span>bold text**, th= is is regular text. T= his is<= /span> **bold text**<= /span> again.<= /span>


I'm getting= this OpenDocument code:

<text:p text:style-name=3D"Text_20_body= ">
=C2=A0 This is
=C2=A0
<= text:span text:style-name=3D"T1">=
=C2=A0 =C2=A0 bold
=C2=A0
</text:span>
=
<text:span text:style-name=3D"T2"<= span style=3D"color:#008">>
= </text:span>
<text:span text:style-name=3D"T3"= ;>=C2=A0 text
</text:span>
, this is regular text. This is
<= span style=3D"color:#008"><text:span
<= /span>text:style-name=3D"T4">
=C2=A0 bold
<= /span></text:span>
<text:span text:style-name=3D"T5&= quot;>
</text:span>
<text:span= text:style-na= me=3D&q= uot;T6">
=C2=A0 text
</text:spa= n>
=C2=A0 again.
</text:p>

=

This is the python code I'm using to convert = it:
pandoc_args =3D []

pandoc_args
.append("--reference-odt")
pandoc_args
.append("style_reference_file.odt")

opendocument_code
=3D pypandoc.convert(markdown_code, 'opendocument',= format= =3D'markdown_github', extra_args<= span style=3D"color:#660">=3Dpandoc_args<= /span>)

=
This is the result:


I understand that I have to= define styles, that's not the problem, I'll control it in the futu= re. But this is my question:=C2=A0why, for= the same style, I get different style-names?

Thanks again!

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/6944b83a-910d-4686-a8b3-3adcb0b2f15a%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_248_649488115.1461923520691-- ------=_Part_247_1543300750.1461923520691--