* Insistent format converting from MarkDown to OpenDocument @ 2016-04-29 9:21 JDani Jiménez [not found] ` <3681192c-529b-47f0-afcd-393ecf49508c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: JDani Jiménez @ 2016-04-29 9:21 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1764 bytes --] 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: <text:p text:style-name="Text_20_body"> This is <text:span text:style-name="T1"> bold </text:span> <text:span text:style-name="T2"> </text:span> <text:span text:style-name="T3"> text </text:span> , this is regular text. This is <text:span text:style-name="T4"> bold </text:span> <text:span text:style-name="T5"> </text:span> <text:span text:style-name="T6"> text </text:span> again. </text:p> 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: <https://lh3.googleusercontent.com/-MjLFMgsLy04/VyMlXBjmFrI/AAAAAAAAQVU/syCsLO6CHv8GBBSrfg09zXD0z6knRHLzQCLcB/s1600/pandoc_styles.png> 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. [-- Attachment #1.2: Type: text/html, Size: 11118 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <3681192c-529b-47f0-afcd-393ecf49508c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: Insistent format converting from MarkDown to OpenDocument [not found] ` <3681192c-529b-47f0-afcd-393ecf49508c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2016-04-29 9:52 ` JDani Jiménez 2016-04-30 3:27 ` John MacFarlane 1 sibling, 0 replies; 3+ messages in thread From: JDani Jiménez @ 2016-04-29 9:52 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 2034 bytes --] *Inconsistent*, not Insistent.... El viernes, 29 de abril de 2016, 11:21:43 (UTC+2), JDani Jiménez escribió: > > 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: > > <text:p text:style-name="Text_20_body"> > This is > <text:span text:style-name="T1"> > bold > </text:span> > <text:span text:style-name="T2"> > </text:span> > <text:span text:style-name="T3"> > text > </text:span> > , this is regular text. This is > <text:span text:style-name="T4"> > bold > </text:span> > <text:span text:style-name="T5"> > </text:span> > <text:span text:style-name="T6"> > text > </text:span> > again. > </text:p> > > > 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: > > > <https://lh3.googleusercontent.com/-MjLFMgsLy04/VyMlXBjmFrI/AAAAAAAAQVU/syCsLO6CHv8GBBSrfg09zXD0z6knRHLzQCLcB/s1600/pandoc_styles.png> > > 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/6944b83a-910d-4686-a8b3-3adcb0b2f15a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. [-- Attachment #1.2: Type: text/html, Size: 8016 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Insistent format converting from MarkDown to OpenDocument [not found] ` <3681192c-529b-47f0-afcd-393ecf49508c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2016-04-29 9:52 ` JDani Jiménez @ 2016-04-30 3:27 ` John MacFarlane 1 sibling, 0 replies; 3+ messages in thread From: John MacFarlane @ 2016-04-30 3:27 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw +++ JDani Jiménez [Apr 29 16 02:21 ]: > 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? I don't know. Andre Rossato wrote the OpenDocument writer, and there's a lot I don't understand about it. I don't have any real knowledge of the format myself. -- 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/20160430032712.GG42206%40MacBook-Air-2.local. For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-30 3:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-04-29 9:21 Insistent format converting from MarkDown to OpenDocument JDani Jiménez [not found] ` <3681192c-529b-47f0-afcd-393ecf49508c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2016-04-29 9:52 ` JDani Jiménez 2016-04-30 3:27 ` John MacFarlane
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).