I want to write a script to convert my .mobi files to epub [closed] - epub

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Hey guys/girls,
I am in need of a script to turn my 100+ mobi files into epub.
I am currently using stanza (mac) to convert each file one by one.
I was wondering if someone could tell me how to do all of them at once. IE. A script that will do it for me. Time is not an issue. I just don't want to sit here and do it. I found a couple of sites that allow you to upload you file to them and they would give the epub format back to you. This is great except that they only allow one file at time as well.
Sorry if this was not clear. English is not my first language.
Thanks.

try calibre, it allows bulk conversion between many ebook formats and I used it successfully on some PDFs I wanted to read on my kobo.

I would also suggest using Calibre. You can BULK convert mobi files to epub files. Going from mobi to epub can usually be done with just the default conversion settings in Calibre (going from PDF to epub, on the other hand, typically requires a bunch of fiddling around with settings and regex in order to get it to look okay in epub). As you have mobi files it's likely you'll have them converted in no time.
Get Calibre from: http://calibre-ebook.com
Get help with Calibre from: the Calibre forum at http://www.mobileread.com (directly link: http://www.mobileread.com/forums/forumdisplay.php?f=166 )
The online manual is here: http://manual.calibre-ebook.com/
I think you'll find writing your own script is not necessary.

Related

What is 'Copy' option while viewing email attached documents [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I would like to know about the 'Copy' option/action available while viewing the documents attached in the email. I am referring to the default 'Email' app present on the iOS devices.
Following are more specific questions:
What does the Copy action copy? A complete document or part of it?
Where does the Paste action come in picture for the copied action in email viewer?
This is the screenshot:
I've been checking, searching and researching around this question about .PDF files for the past half an hour, but not finding any answer to that file type. However since you haven't asked about PDF files specifically, I'm putting my answer here.
The Copy option is not available for all file types attached to an email; for example a .zip file or even a .txt or .doc file does not have this option. Video files also come with a different option called Save Video.
So, this option seems to be available for image and PDF files only. If you copy an image file using that option, and then compose a new mail, you can simply paste it by long-tapping the email body section and select paste option.
And that will insert the copied image in-line into your mail which does not work with PDF files. You can copy them, there's no place to paste them. The same paste option wouldn't show up after copying a PDF file. I'd say this is another iOS bug/future-feature that Apple is trying to include in later versions, as file attachments have always been a problem even after almost 8 versions and 8 years.
Log a bug and report this if you have a developer account.

How to extract txt from epub format for iOS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to extract text from epub file for my text to speech iOS app.
It would be great if I can do that within iOS device using some library, but I also wonder if it should be handled on the server side.
Does anyone have an idea about how to do that?
For example, Voice Dream extract text from epub formats.
http://www.voicedream.com/?page_id=134
ePub is a ZIP file with an XML manifest containing the summary (and some meta-data) and refering to a set of HTML (Have a look to the specifications for all the details: http://idpf.org/epub)
If you want to do it on device, you'll very likely have to write your own code: open the zip, find your way in the manifest to locate you text, then remove all the HTML tags to get plain text.
If you can do it server side, it will be easier: you can use Apache Tika (http://tika.apache.org/) which handles ePub (and many other formats).
It's difficult to be more precise as you didn't explain how you get the epub and how you select which part of the epub will be locuted...

Ideal README file for Web applications [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am kind of obsessed with how I document and organize my projects. I am curious about best practices for readme files, and looking to learn more about what should be in it. I am mostly using rails. But I believe that readme should make no assumptions about the reader and explain everything with from scratch. So what would be your ideal descriptive timeless readme file for web application projects? Also It would ve very helpful if you attach the readme files you like.
content? short info the about app? language, framework? screenshot? format? markdown vs plain? ideal deployment? etc..
If you don't make assumptions about the reader then plain text is the best choice. Any markup language needs to be parsed and converted which may not be possible when viewing the readme locally. Sites such as Github support various markup formats which is good but you're limited to what they support.
It terms of content: it should explain everything that the user would possibly want to do, such as compile, build, run, modify, et cetera.

What is the best way to format LaTeX source for the Kindle? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to format my book for a Kindle 3. I'm writing the book using LaTeX. I am ok with transferring the file in PDF format but I need it formatted to be small.
I have tried:
\documentclass[12pt,b7paper]{book}
\usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm]{geometry}
But this is too small. I have also tried something like:
\usepackage[paperwidth=9cm, paperheight=12cm, top=1cm, left=1cm, right=1cm, bottom=1.5cm, includefoot]{geometry}
But that doesn't work well either. Has anyone found a good way to format a LaTeX PDF for the Kindle? (Not the big DX version.)
This works well. I found it important to remove paper size from the dvips command. Forgetting to adjust that setting through me off for a while.
\documentclass[12pt]{book}
\usepackage[paperwidth=9cm, paperheight=12cm, top=0.5cm, bottom=0.5cm, left=0.0cm, right=0.5cm]{geometry}
\special{papersize=9cm,12cm}
Why don't you convert the LaTeX to HTML and create a Mobipocket document from that? That way, the Kindle will be able to reflow the document, which it cannot do if you load it in PDF form.
This may be much more than you need, but it's worth pointing out that there's a much more comprehensive answer over on tex.stackexchange

How can I convert an .rtf or .doc document to LaTeX? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Unfortunately, I can't use rtf2latex2e because it says that DropUNIX "no longer supports the classic environment". I barely know what I'm doing otherwise, besides dropping my .rtf file onto the DropUNIX program.
What else can I use? I don't mind which type of file it is I'm converting to LaTeX (.doc would also be OK, as long as it keeps my formatting).
I am using Mac OS 10.5.8.
Open Office can. Download it.
See the fmtconv question on the UK TeX FAQ, or, more specifically, the page on Converters from PC Textprocessors to LaTeX - Overview, which is specifically about this question and has many many examples. This general list of word-processor filters may help too.
UnRTF claims to be able to convert RTF to LaTeX as well as other formats (e.g. HTML). It claims to support HTML best, so perhaps RTF->HTML->LaTeX (e.g. with html2latex) might work better. I haven't actually tried any of this though.
Make your rtf/doc document into docx, and convert it using docx2tex.
You need the System.IO.Packaging .NET class to get this to work, which is no problem if you are using Windows, and is in principle supported by Mono if you are not. If anyone has success doing this with Mono, I'd like to hear of your experiences: this didn't work a year or so ago, but their implementation of that class has improved since then.
I say more about the utility in an answer at tex.stackexchange. Suffice it to say that I consider this by far the cleanest, most Latex-friendly option out there.

Resources