03-30-2013, 04:05 PM | #1 |
Addict
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
|
Line break - noob question
Hi,
Go gentle on me i am a total newbie when it comes to editing ebooks files. I have converted a PDF with Mobi Pocket creater and i decided to take the plung with sigil and clean up the resulting files. The problem i have is certain lines are joined and i would like to split them, what is happening is, in book view when i press enter it is giving me a paragraph break when i want a line break. Is there an easy way in book view to insert a line break without changing to code view and manually inserting a line break. |
03-30-2013, 04:54 PM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Why would you want a linebreak instead of a paragraph break? If it is to keep the lines as is, that will not work due to the reflow character of an ePUB.
|
Advert | |
|
03-30-2013, 05:09 PM | #3 |
Addict
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
|
When it inserts a paragraph break i get an extra blank line. i started on the contents menu and some lines are joined.
example page 20 example page 25 becomes example page 20 example page 25 what i want is a line break so it is example page 20 example page 25 does this make sense |
03-30-2013, 05:15 PM | #4 |
Wizard
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
|
There is no such thing as a line break. What you have is a paragraph with differing amounts of white space above (top-margin) or below (bottom-margin). So for a "line break" you need the first paragraph to have no bottom-margin, and the second paragraph to have no top-margin. The margins are normally set in the stylesheet, so you need to make sure your paragraphs have the right classes (styles) set in the stylesheet.
|
03-30-2013, 05:38 PM | #5 |
Addict
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
|
i think i am confused over my terms,i thought "<br/>" was a line break
|
Advert | |
|
03-30-2013, 07:30 PM | #6 | |
Well trained by Cats
Posts: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
is a break in the current flow. it will maintain the current style attributes in the absence of its own class Look at the code view to see if you are getting a new <p or there is a <br /> You may need to define a class to use with the BR to control margin-top/bottom and line-space that will be inherited from the containing <p <br class="tight" /> |
|
03-31-2013, 03:26 AM | #7 | ||
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
The space is not needed, at least not in XHTML, which ePub uses. |
||
03-31-2013, 03:47 AM | #8 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you use <br />, your text will be messed up. Indeed set the margins in the stylesheet correct, and it works fine.
However, please be aware that in Sigil Code View there will be an empty line between paragraphs. This is only in Code View and has no impact on the book itself. |
03-31-2013, 03:52 AM | #9 |
Addict
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
|
ok i think i get it, thanks for taking the time to explain.
|
03-31-2013, 06:10 AM | #10 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
One of the consequences of using <br/> is that first-line indent will no longer work. It has its uses, though. For instance, in short fragment of centered text, or in titles:
Code:
<h2>Chapter 1<br/>An Unexpected Party</h2>
Code:
<div class="center">
Alphonse Allais<br/>
FABRICANT D’ÉCRABOUILLITE
</div>
|
03-31-2013, 07:50 AM | #11 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
If you want just a break <br />, use shift-enter. But as noted above, if it is in middle of a paragraph which has been indented, it will go all the way to the left margin and be out of line with the first line.
For lists shorter than a line, you can do it three ways. Define a class in css which you put on each line in your list, as suggested above, something like<p class="examplelist"> where the top and bottom margins are 0. You can define a special class for the paragraph holding the whole list in which margin left is 0 and use breaks between items. You can set the margins for all paragraphs as 0 then you will not get the behavior. But the paragraphs will all be close to each other. Many consider this behavior desirable, and others not. Since you are doing it, you get to choose. |
04-01-2013, 10:27 PM | #12 |
Autism Spectrum Disorder
Posts: 1,212
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
|
Just a thought, if you want a newline without starting a paragraph, the keystroke for typing it in a word processor is usually shift-return. Seems to be valid in Windows, MacOS, and all major Linux distros.
|
04-22-2013, 11:23 AM | #13 |
Enthusiast
Posts: 29
Karma: 8300
Join Date: Apr 2013
Location: France
Device: Kobo glo, Apple devices
|
césure
Hi,
Go gentle on me i am a total newbie when it comes to editing ebooks files. Like the first poster on this thread ! In addition, I'm French. I even don't know how to say what is my problem. well, it's about the words break code to insert when needed. It's called "césure" in French and looks like this xxxxx xxxxx xx, il lui dit bonjour.[Right margin] WRONG xxxxx xxxxx xx, il lui dit bon-[Right margin] WANT I WANT jour. But it's an optional code depending of the device used. I did that into Word (for mac) a long time ago. But I'm asking if it works on the same way into Sigil. |
04-22-2013, 12:01 PM | #14 |
Well trained by Cats
Posts: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The term is: Hyphenate, in this case (conditional) auto-hyphenate
support is also conditional by reading device. (Another way of saying, all devices don't support the style setting) |
04-23-2013, 08:05 PM | #15 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
You can often insert a & shy; (remove the space after the &) which is called a soft hyphen. This will insert a break if needed based on the right margin.
Dale |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Line break within Headers? | Lori Reeser | Sigil | 7 | 02-15-2013 07:27 PM |
Line won't break automatically in iBooks | eriso | ePub | 9 | 01-23-2013 09:02 AM |
Correcting for a missing line break | Tango Mike | Sigil | 31 | 07-28-2012 05:30 AM |
how to insert break-line | schuster | Recipes | 1 | 05-24-2011 03:19 PM |
Yet another PDF line break question | heddhunter | Calibre | 7 | 01-18-2011 02:41 PM |