Re: Working with ePub: generate .toc and .opf files?

2012-08-17 Thread Eelco Deuling
Hello Maarten, …maybe you are not a Python code checker but I do appreciate your help. (hell… I am not a programmer and decided during my first and only lesson of Pascal that I would never get it- 20 years ago). Thank you for your patience :-) -- -- You received this message because you are s

Re: Working with ePub: generate .toc and .opf files?

2012-08-17 Thread Eelco Deuling
Sorry: this part I had posted already! This is the second part: --- import os import re ## # remove OSX .DS_Store files ## for root, dirs, files in os.walk('./'): if '.DS_Store' in files: os.rem

Re: Working with ePub: generate .toc and .opf files?

2012-08-17 Thread Eelco Deuling
BPS", "toc.ncx"), "w") as fp: fp.write("") with open(os.path.join(My_Epub, "OEBPS", "content.opf"), "w") as fp: fp.write("") with open(os.path.join(My_Epub, "OEBPS", "nav.xhtml"), "w") as

Re: Working with ePub: generate .toc and .opf files?

2012-08-10 Thread Eelco Deuling
there are bits of code you want to use, since it looked like you > were also writing in Python. > > Eelco Deuling > August 9, 2012 23:01 > Hello Wats Martin, > > I am sorry if I did sound offensive: that was not my intention. I "more or > less" understand w

Re: Working with ePub: generate .toc and .opf files?

2012-08-09 Thread Eelco Deuling
Hello Wats Martin, I am sorry if I did sound offensive: that was not my intention. I "more or less" understand what Bookbind tries to do but for me it won't work, because Markdown has not enough support for classes, id's etc. I usually start with a InDesign document (a "completed" book for prin

Re: Working with ePub: generate .toc and .opf files?

2012-08-09 Thread Eelco Deuling
Hello Maarten, Thank you for "cleaning up" my script, and thank you for pointing out to http://code.google.com/p/python-epub-builder/. I did find this myself before, but I staggered mentally when I read the introduction in the Wiki to "create a epub in five minutes", as I hardly understand a w

Re: Working with ePub: generate .toc and .opf files?

2012-08-08 Thread Eelco Deuling
Hello, I have finished "part one": make a directory structure and all the necessary files for an epub. As this is my first-ever python script there should be some things wrong, but it works: #!/usr/bin/python # call the o

Re: SVN options no longer show up in BBEdit version 10

2012-08-08 Thread Eelco Deuling
Cornerstone and Versions both work great with BBEdit/SVN. Cornerstone is better configurable and has some options Versions does not have, so make sure to try them both, but for most tasks the BBEdit options for SVN are good enough. …I use Versions at work and Cornerstone at home: the repositorie

Re: Working with ePub: generate .toc and .opf files?

2012-08-06 Thread Eelco Deuling
zaterdag 4 augustus 2012 11:32:55 UTC+2 schreef Eelco Deuling het volgende: > > I use BBEdit to prepare my ePubs and used eCub to generate the .toc and > .opf files. > However, eCub starts to show it's age: I could not include video and audio > files so I switched to Sigil. >

Working with ePub: generate .toc and .opf files?

2012-08-04 Thread Eelco Deuling
I use BBEdit to prepare my ePubs and used eCub to generate the .toc and .opf files. However, eCub starts to show it's age: I could not include video and audio files so I switched to Sigil. I dislike Sigil because I have to use the naming convention of this program and it is sometimes very slow w