From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14880 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?JDani_Jim=C3=A9nez?= Newsgroups: gmane.text.pandoc Subject: Insistent format converting from MarkDown to OpenDocument Date: Fri, 29 Apr 2016 02:21:43 -0700 (PDT) Message-ID: <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_5304_1359223868.1461921703339" X-Trace: ger.gmane.org 1461921712 24866 80.91.229.3 (29 Apr 2016 09:21:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 09:21:52 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDL6Z34U5MNRBJ6PRS4QKGQEJTYCLNQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 29 11:21:46 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pf0-f188.google.com ([209.85.192.188]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aw4cL-0002SS-DK for gtp-pandoc-discuss@m.gmane.org; Fri, 29 Apr 2016 11:21:45 +0200 Original-Received: by mail-pf0-f188.google.com with SMTP id g132sf36615412pfb.0 for ; Fri, 29 Apr 2016 02:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:date:from:to:message-id: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=eSM09IMN298FziBCV+ukpzQOHUCk7XCL21nSynMmMPE=; b=SYW4wSZW9fNTRTlc+IiYQRZNJKLxUAsNtccGWEe26tVuC23T3/5fgsUkfRhgxlOAr/ cZqfvfFAmjGBAe3KDfkazAfYEfyVZFslPVUaLQ2tDvfNqe09y7TmrkzglVrnw/2U5sm2 Hj7kwtt2cHBiONAosrDV1zHlUPGFyaeAbz+Y4JSSA6QFRoWjnQwcV7d47e8ttTp0zP93 /xmIm5PGyGmpqaEy7OcVUChvigh9zffiTk1Tt2QFeTrSQq/bPnXQVM0bGTgduDfxuk1k rsEX8ZT8NlsOq6mV+EN+S+X77A4awnKrrPcdLuQEIsZDMaxNyY1+gdOw+1Q0qXb3ZtjF HuMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id: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=eSM09IMN298FziBCV+ukpzQOHUCk7XCL21nSynMmMPE=; b=Egohw6WV1m6pYF+X82dHvAtaDGsP/STh3UEnJWXy4JVKKrAhhLbWRUq3MnqHQjOUlV 8z5BkWdIcye9nXG/WwY9mKqDX9nmVE7fZEy3UVK1K4a0kXWDg6M+ChgzdG2ucL/SqHzy Tz/1ykZ5Cl8tP6cR+B3tsOFl7yY3XSoEruPOOiL5VF/NH3JRR2S9zfkm3RBOeYaLM6Es 3zVFl8Bc5SVLXKeitnDCk28eu5o3y1fFLHnBbgZmgUhN6iaF0ileJv7Y4uvpyy3ZqYu+ JZPO36visvgrhJTg98OLKT6DH7sUU6yL72oaG2TZGyCLu+OI2ezUDDu/9e32plZzyXIC VTyA== 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: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=eSM09IMN298FziBCV+ukpzQOHUCk7XCL21nSynMmMPE=; b=TvbLvHEPUdwL9727n3ktWjzzjqC8XuUuJXIeD82VzJnkajPaVhagiEoReQ59urDt5T AWHziWfb5+3zyTYnpLQ3fJWq9KaT7OQcaJb7V7GCdw80JPb/xfSQvKXZCfnnoBTftDH7 Jf2T+LLoRGoPc69FU1FUtAwdR4pb/C85eMcSUN6o+gRvYyYUoAEl102m+hq2plFY5Xu9 /h+TO2Sz2KlNr+qsuEvgXeAiGt+uiTAkhTHpx/vAjrDSAc1pPJjhkitTEhWL/Zku979/ Wv1lF1pMMZk0xiSURkLuKRubxcSvHG2q5TJTaPtgtiluO5qJJbVoyPb0CmrsoBRhRWj1 DDJQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOPr4FW97KSal5YOTuS9ahII073L9qO5AxgwQxPSdGTp/E0x3y42USJPxWhycHYPx1Mg4w== X-Received: by 10.182.184.73 with SMTP id es9mr194973obc.5.1461921704332; Fri, 29 Apr 2016 02:21:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.182.79.169 with SMTP id k9ls389657obx.9.gmail; Fri, 29 Apr 2016 02:21:43 -0700 (PDT) X-Received: by 10.182.19.129 with SMTP id f1mr250801obe.20.1461921703813; Fri, 29 Apr 2016 02:21:43 -0700 (PDT) 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:14880 Archived-At: ------=_Part_5304_1359223868.1461921703339 Content-Type: multipart/alternative; boundary="----=_Part_5305_973915362.1461921703347" ------=_Part_5305_973915362.1461921703347 Content-Type: text/plain; charset=UTF-8 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 = [] pandoc_args.append("--reference-odt") pandoc_args.append("style_reference_file.odt") opendocument_code = pypandoc.convert(markdown_code, 'opendocument', format= 'markdown_github', extra_args=pandoc_args) This is the result: I understand that I have to define styles, that's not the problem, I'll control it in the future. But this is my question: why, for the same style, I get different style-names? Thanks again! -- 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/3681192c-529b-47f0-afcd-393ecf49508c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_5305_973915362.1461921703347 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Why when converting this MarkDown code:


This is **bold text**, this is regular text. Thi= s <= span style=3D"color: #008;" class=3D"styled-by-prettify">is **bold text** again.


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">
</text:span>
<text:span text:style-name=3D"T3">
=C2=A0 text
</text:span>
, this is regular te= xt. This is
<text:span t= ext:style-name=3D&qu= ot;T4">
= =C2=A0 bold
</text:span>
<text:span text:style-name=3D&= quot;T5"></text= :span><= br><tex= t:span text:style-na= me=3D
"T6"<= /span>>=
=C2=A0 text
</tex= t:span>=
=C2=A0 again.
</text:p>


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

pandoc_args
.append(&q= uot;--reference-odt")
pandoc_args
.append(<= /span>"style= _reference_file.odt")

opendocument_code
=3D pypandoc.convert(markd= own_code,<= /span> 'opendocument= 9;,= format=3D
'markdown_github', extra_args=3Dpandoc_args)

This is the result:

<= /p>


I understand that I have to define styles, that'= s not the problem, I'll control it in the future. But this is my questi= on:=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/3681192c-529b-47f0-afcd-393ecf49508c%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_5305_973915362.1461921703347-- ------=_Part_5304_1359223868.1461921703339--