![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 between words you really don't want to split.
eg: <h1>Royal Wedding<br />or<br />Sinister Plot?</h1> - or - <h1>Royal Wedding or Sinister 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Nov 2015
Device: iPad Air
|
Great. Thanks
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
![]() |
#5 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |