Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2015, 09:54 AM   #1
kfachuh
Junior Member
kfachuh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2015
Device: iPad Air
Sigil: how to get rid of breaking words

How can I make my titles <h1> etc. don't break the words:
Like it is doing on a small screen:

This is the title of the verygoodchap-
ter

And I want it to beak only between words like:

This is the title of the
verygoodchapter


Tha bad word-split happens when the last word in the line is a longer one, but it could easily fit in the next line
kfachuh is offline   Reply With Quote
Old 11-20-2015, 10:57 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,345
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
You can either insert a <br /> where you want to break up long sentences, or you can use an &nbsp; between words you really don't want to split.
eg:
<h1>Royal Wedding<br />or<br />Sinister Plot?</h1>
- or -
<h1>Royal&nbsp;Wedding or Sinister&nbsp;Plot?</h1>

That will let the device/app know where it can split between those words.

Splitting the words themselves is a function of the device's hyphenation rules. You can add some css rules to your <h1> telling it not to hyphenate, but that doesn't mean that particular app/reader will obey the css rules...

h1 {
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none
}

A combination of the two techniques should work for almost all circumstances.
Cheers!

Last edited by Turtle91; 11-20-2015 at 11:04 AM.
Turtle91 is offline   Reply With Quote
Advert
Old 11-20-2015, 12:46 PM   #3
kfachuh
Junior Member
kfachuh began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Nov 2015
Device: iPad Air
Great. Thanks
kfachuh is offline   Reply With Quote
Old 11-20-2015, 01:07 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,535
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
This is not really a Sigil-related or Sigil-specific question. Moving to the ePub format forum
DiapDealer is offline   Reply With Quote
Old 11-23-2015, 05:10 PM   #5
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by DiapDealer View Post
This is not really a Sigil-related or Sigil-specific question. Moving to the ePub format forum

Thank you, Diap!!!

Hitch
Hitch is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
anybody got a Sigil regex for words with all caps? Gregg Bell Sigil 4 10-10-2015 02:30 PM
Words split between lines: can I get rid of them? Arkadian Editor 23 09-15-2014 11:53 PM
Do you have to use Sigil to let your device know how to split words? sunny1z Sigil 3 01-21-2013 02:33 PM
First post: Problem between Words and Sigil Ti-Ron Sigil 12 03-28-2012 04:11 PM
Strange Blanks in words in .epub in Sigil FraPe Sigil 10 11-16-2009 01:21 PM


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


MobileRead.com is a privately owned, operated and funded community.