![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2014
Location: Port Macquarie, NSW
Device: ipad
|
Text Indent
Hi, Sorry if this question has been asked before, but I am relatively new to using Calibre to edit my books. I normally copy them to RTF, edit them and then convert back to epub.
Question Using Calibre; if I edit in RTF format and have a paragraph break at the end of every paragraph, then when I transfer to epub and edit, Calibre indents the first line but leaves a line between each paragraph. I am seeking a solution to this problem please? Attempts If I use the Line Break in RTF and then convert, Calibre removes the line between each paragraph but won't indent the first line. In the Common Options it shows indent size: 1.5 em but is greyed out?? I also copied this - p { margin: 0; padding: 0 0 5px 0; text-indent: 1.5em; } into the Extra CSS, but it doesn't seem to make much difference. Any help would be greatly appreciated. Thanks Copaw |
![]() |
![]() |
![]() |
#2 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
I do not think you have any way to avoid that indentation or that separation between successive paragraphs. Remember the TRUE text of the paragraph is the text inside the <p> ... </p> pair. It doesn't matter how you type those paragraphs. (You could even type them in a single huge line, and the rendered text would be the same). Last edited by arspr; 11-05-2014 at 10:52 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2014
Location: Port Macquarie, NSW
Device: ipad
|
Thanks for the information. Do you know of any way to solve this issue so my book format doesn't have extra lines and the first line of the paragraph can be indented?
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,185
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
Example from LibreOffice. Spoiler:
bernie |
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2014
Location: Port Macquarie, NSW
Device: ipad
|
I have edited the RTF file in Word 2010. I then deleted the old EPUB file and converted my RTF to a new EPUB file. When I bring up the edit book function, there are no extra lines showing, but it does not indent the paragraphs.
In the EPUB Output Format I have selected the 'remove spacing between paragraphs' which automatically sets the paragraph indent. Only this does not seem to work. Thanks Copaw |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Dont use RTF, use DOCX. Save your document as docx in word and convert that. And remove spacing between paragraphs will only work if your document actually has paragraphs as opposed to hard line breaks.
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 12
Karma: 10
Join Date: Nov 2014
Location: Port Macquarie, NSW
Device: ipad
|
Thanks for that. The remove line spacing worked on another ePub file which was fine except for the double spacing between paragraphs.
As there is no output file for docx, what would you recommend. |
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I'm assuming the RTF is in calibre Book Folder, and RTF is associated with Word 2010
Not only will the DOCX convert better than an RTF, if it's primarily text it will be typically be a lot smaller, up to 90% smaller! BR Last edited by BetterRed; 11-06-2014 at 03:08 AM. |
![]() |
![]() |
![]() |
#9 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
I used to convert to RTF and fiddle about, but as I've got more used to Calibre I now do it all with the EPUB editor:
* joining split paras: the second para of the split generally starts with a lower-case letter, so use use find-and-replace for All Text Files, Regex mode, Case sensitive, Wrap, Dot all and use the following RE: replace "</p>\s*<p[^>]+>([a-z])" by " \1" (that's "space backslash one") * indenting paras: click on a word in a para of the same style as you want to indent, look at the Live CSS panel (open from View menu if necessary) to find the CSS style name and edit the corresponding entry in the CSS stylesheet to use styles like "text-indent: 1.5em; margin: 0;" or similar * make the first para in a chapter unindented by copying the basic style (e.g. calibre2 to calibre2a) and replace the original "text-indent: 1.5em; margin: 0;" by "text-indent: 0; margin: 1em 0 0;". Now change every para after </h2> to calibre2a using an RE like "</h2>\s*<p class="calibre2">" and replace with "</h2>\s*<p class="calibre2a">" There are *so* many things you can do with a well-chosen RE! Test them first with "Find" and then "Replace" before hitting "Replace all", but if necessary you can revert a "replace all" from the Edit menu. HTH! |
![]() |
![]() |
![]() |
#10 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
using an RE like "</h2>\s*<p class="calibre2">" and replace with "</h2>\s*<p class="calibre2a">" Ooops, I meant replace with "</h2>\n<p class="calibre2a">"... which shows why testing your RE first is so important!
|
![]() |
![]() |
![]() |
#11 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
text-indent: 1.5em; Also generally good to say "text-align: justify" whenever necessary.
margin: 0; |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug converting html css text-indent and left-margin | bhoyt | Conversion | 15 | 01-24-2014 07:28 PM |
Cannot get rid of text-indent | dawood | Conversion | 3 | 10-21-2013 10:10 PM |
How do you turn off default text-indent <p> in Nook | DAntkowiak | Barnes & Noble NOOK | 9 | 07-11-2013 10:43 AM |
Border and text indent problem ePub to mobi | AlexBell | Conversion | 12 | 04-08-2012 08:37 AM |