Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-11-2013, 12:10 PM   #1
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
Multimarkdown instead of markdown

Does anyone know if kovidgoyal has considered using multimarkdown instead of markdown? Multimarkdown is a superset which is way more powerful than regular markdown. It also allows easy conversion to other formats so there's incentive to use it even without Calibre for conversion.

http://fletcherpenney.net/multimarkdown/

http://fletcher.github.io/peg-multim...mmd-manual.pdf
anywho is offline   Reply With Quote
Old 07-11-2013, 12:11 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,562
Karma: 11409476
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont maintain the txt input plugin, the person you need to ask is user_none
kovidgoyal is offline   Reply With Quote
Advert
Old 07-11-2013, 12:13 PM   #3
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
Thanks for the quick response. Hopefully user_none monitors the forums as dilgently as you and will see this post.
anywho is offline   Reply With Quote
Old 07-11-2013, 12:15 PM   #4
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
Btw, thanks for this awesome software.
anywho is offline   Reply With Quote
Old 07-11-2013, 12:17 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 34,562
Karma: 11409476
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're welcome
kovidgoyal is offline   Reply With Quote
Advert
Old 07-31-2013, 09:32 PM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1054509
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Multimarkdown looks like it just adds some extensions to markdown (as far as input goes). From a cursory look what's added to the markdown format by multimarkdown is already supported by extensions provided by Python Markdown.

Right now the footnotes and tables extensions are the only ones enabled. I might be a good idea to check what other extensions we're including and allow those to be optionally enabled. I believe only footnotes and tables were enabled because some of the others were tripping people up when enabled.
user_none is offline   Reply With Quote
Old 07-31-2013, 09:38 PM   #7
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
Quote:
Originally Posted by user_none View Post
Multimarkdown looks like it just adds some extensions to markdown (as far as input goes). From a cursory look what's added to the markdown format by multimarkdown is already supported by extensions provided by Python Markdown.

Right now the footnotes and tables extensions are the only ones enabled. I might be a good idea to check what other extensions we're including and allow those to be optionally enabled. I believe only footnotes and tables were enabled because some of the others were tripping people up when enabled.

One of the reasons I was wanting it is because of the easy step from multimarkdown to full LaTeX documentation to create really nice documentation or books as PDF. I think multimarkdown would have a nice advantage there.

Basically it's really nice to have a portable write-once solution. The meta-data that you can put into multimarkdown is quite handy where the markdown solution that I think you support does not. You explicitly have to specify things such as author, title, etc etc whilst in MMD you don't.

Did you have a look at the metadata attributes at all?
anywho is offline   Reply With Quote
Old 07-31-2013, 09:47 PM   #8
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1054509
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by anywho View Post
One of the reasons I was wanting it is because of the easy step from multimarkdown to full LaTeX documentation to create really nice documentation or books as PDF. I think multimarkdown would have a nice advantage there.
You misunderstand how calibre's conversion process works. Multimarkdown as a program doesn't fit into calibre at all.

Calibre's input plugins convert to OEB. OEB is the intermediate format. All output plugins take OEB and convert it to the output format. In this way any supported input format can be converted to any supported output format. Multimarkdown as a perl script simply does not work with calibre. Also, compared to calibre it's quite limited as a conversion solution.

Quote:
Originally Posted by anywho View Post
Basically it's really nice to have a portable write-once solution. The meta-data that you can put into multimarkdown is quite handy where the markdown solution that I think you support does not. You explicitly have to specify things such as author, title, etc etc whilst in MMD you don't.
This is not an issue of calibre not allowing you to specify metadata in the file itself. It's an issue of calibre not supporting the metadata extension to the markdown syntax at this time.

Quote:
Originally Posted by anywho View Post
Did you have a look at the metadata attributes at all?
Again, the metadata format is an extension to the markdown format that's already supported by Python Markdown (which calibre uses internally for parsing markdown input). That extension is simply not enabled at this time. Hence the comment about allowing users to enable additional extensions in addition to the two that are by default and always enabled.
user_none is offline   Reply With Quote
Old 07-31-2013, 09:54 PM   #9
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
Quote:
Multimarkdown as a perl script simply does not work with calibre.
It's not been a perl script for a long time AFAIK. I think it started as one but no longer.

Code:
[~]$ file `which multimarkdown`
/usr/local/bin/multimarkdown: Mach-O 64-bit executable
Quote:
This is not an issue of calibre not allowing you to specify metadata in the file itself. It's an issue of calibre not supporting the metadata extension to the markdown syntax at this time.
OK, enabling these extensions sound promising. Hopefully that's still compatible with MMD then, because as mentioned, the LaTeX conversion is quite desired.
anywho is offline   Reply With Quote
Old 07-31-2013, 09:58 PM   #10
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1054509
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by anywho View Post
It's not been a perl script for a long time AFAIK. I think it started as one but no longer.

Code:
[~]$ file `which multimarkdown`
/usr/local/bin/multimarkdown: Mach-O 64-bit executable
It's still not compatible with cailbre's conversion system. Again calibre uses OEB as an intermediate format. All output plugins must convert from OEB. Multimarkdown taking markdown as the input can't be used as part of calibre's output system because the output system provides OEB not markdown. The input format is not directly fed to an output plugin. Only the intermediate format is.

Quote:
Originally Posted by anywho View Post
OK, enabling these extensions sound promising. Hopefully that's still compatible with MMD then, because as mentioned, the LaTeX conversion is quite desired.
Latex output is completely separate from enhancements to the markdown syntax calibre supports. Adding multimarkdown as part of calibre to get latex output isn't possible.
user_none is offline   Reply With Quote
Old 07-31-2013, 10:55 PM   #11
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
Quote:
Originally Posted by user_none View Post

Latex output is completely separate from enhancements to the markdown syntax calibre supports. Adding multimarkdown as part of calibre to get latex output isn't possible.
Now it's your turn to misunderstand. I'm simply saying that I'm hoping to be able to use both MMD and multimarkdown with the extensions you mentioned so that I can still have the write-once document.

Iow. I'm hoping a file.md can be parsed with both MMD and the multimarkdown + extensions you're talking about for Calibre.
anywho is offline   Reply With Quote
Old 08-05-2013, 08:48 PM   #12
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1054509
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The ability to enable/disable various Markdown extensions has been added for the next release. I don't know how well the meta plugin works though... It will put the markdown metadata into the html but I'm not sure if it's read back out.
user_none is offline   Reply With Quote
Old 08-05-2013, 09:47 PM   #13
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
awesome.thanks! we'll see what happens is there a list of which ones and how to utilize them? i.e. some docs?
anywho is offline   Reply With Quote
Old 08-06-2013, 08:30 AM   #14
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1054509
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The conversion GUI for txt input will give you a the name and description. You can see more information about each extension here.

Some extensions are excluded from being enabled. This is either due to the extension being added in a newer version of PyMarkdown than calibre is using. Or the extension really doesn't make any sense for calibre to enable.
user_none is offline   Reply With Quote
Old 08-06-2013, 12:27 PM   #15
anywho
Connoisseur
anywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watchanywho is clearly one to watch
 
Posts: 54
Karma: 10970
Join Date: Jul 2010
Device: Kindle
much thanks looking forward to trying
anywho is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Markdown Query : Using Emphasis Agama Conversion 10 09-20-2011 03:12 PM
markdown-calibre bobb40 Conversion 1 07-08-2011 12:02 PM
detecting chapters with --markdown p3aul Conversion 7 05-15-2011 11:01 AM
->Txt+Markdown Perkin Calibre 2 12-11-2010 04:04 AM
Markdown editor user_none Workshop 0 08-30-2009 09:25 PM


All times are GMT -4. The time now is 10:44 PM.


MobileRead.com is a privately owned, operated and funded community.