MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   convert to lrf : paragraph indents, line breaks (https://www.mobileread.com/forums/showthread.php?t=37290)

karo02 01-26-2009 11:57 AM

convert to lrf : paragraph indents, line breaks
 
I've been using Calibre for almost 2 months now in order to convert different formats to lrf.

I noticed that when converting txt to lrf, Calibre add indents to paragraph even if there's none in the original txt files, which I find great.
But this is not the case for .lit files when the original file has no indent.
Would it be possible to add this feature when converting .lit files to lrf ? (or is there an option I didn't see...)

Also, I have issues with line breaks when converting txt to lrf : no matter how many blank lines I add in the txt file, none appears in the lrf file, I only get a new paragraph.
I don't want a blank line between each paragraph (like the option proposed in the GUI), but sometimes there are 2 or 3 blank lines between "blocks of paragraph", and I like to keep them... How can I do that ?

Thanks in advance for your answers.

llasram 01-26-2009 01:19 PM

For converting plain text files, Calibre actually processes the source as a form of simple markup named "Markdown." If you check out the Markdown documentation, it says that you can insert a hard line-break by ending the line with two spaces, so you might give that a try.

For the LIT->LRF paragraph indentation, I know the LRF converter(s) accept the command-line option '--minimum-indent' which allows you to specify a minimum paragraph indentation (in points), although I'm not sure where the option is in the GUI. If you convert to EPUB instead (which I heavily recommend), the option '--remove-paragraph-spacing' will do exactly what it sounds like you want.

karo02 01-27-2009 09:01 AM

Thanks for your answers and the markdown link, I'll try that.

I don't convert to EPUB because I CAN'T read non-justified text, and if I understood correctly EPUB is only left-aligned (but maybe I misunderstood that too and you can give me a solution ?...)

llasram 01-27-2009 09:54 AM

Quote:

Originally Posted by karo02 (Post 336693)
I don't convert to EPUB because I CAN'T read non-justified text, and if I understood correctly EPUB is only left-aligned (but maybe I misunderstood that too and you can give me a solution ?...)

Yeah, that's a much-lamented limitation of AdobeDE both on the Reader and the desktop. But you "CAN'T"?, like all left-aligned text (like this, for example) becomes instantly illegible? ;) At first I "couldn't stand" to read the LRF-justified text because I was used to LaTeX's clean justification w/ proper hyphenation and paragraph "color" balancing. I got used to it eventually, then I "couldn't stand" ADE's left-justified text. Now that I've gotten used to that, the LRF-justified text with rivers of whitespace looks horrible to me again.

So seriously do consider giving EPUB on the Reader a try. Even if the left justification takes some getting used to, at least you have real italics which IMHO is much much much more important.

karo02 01-27-2009 10:19 AM

Quote:

Originally Posted by llasram (Post 336731)
But you "CAN'T"?, like all left-aligned text (like this, for example) becomes instantly illegible? ;)

I "CAN'T" (english as foreign language... sorry ;) ) because when I'm trying I immediately want to turn off the reader.
But yeah, I'm gonna try and try again, and like you say I'm sure I will get used to it.
(BTW I agree with you : LaTeX is the best for proper layout).


All times are GMT -4. The time now is 06:32 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.