Re: Starting new chapters on a new page

2023-03-15 Thread David Donachie


> On 15 Mar 2023, at 21:05, Bruce Van Allen  wrote:
> 
> I haven’t used Quark for at least a decade, so I haven’t faced this question 
> in that context. But with css in general:
> 
> 1. Your css is using the deprecated page-break-inside property. It might 
> still work, so try 'page-break-before: initial;' in the first paragraph of a 
> chapter.
> 
> 2. Otherwise the newer property is simply break-before (along with 
> break-after, and break-inside);
> 
> break-before: page;
> break-before: initial;
> 
> See mdn: 


Although break-before is part of the current CSS spec, the EPUB 3.3 spec (which 
I think is the latest) refers to page-break-before only. I can’t see an 
indication in the W3C spec that break-before is supported: 
https://www.w3.org/TR/epub-33 

Having said that, the draft points at https://www.w3.org/TR/CSS 
 which does have break-before, so you could equally 
assume that 3.3 does support it.

Of course, some EPUB platforms only support EPUB 2, which wouldn’t definitely 
not use break-before.

I guess the right approach is to test your target platforms.

Yours
David Donachie


-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/01000186e7295ad4-ae256b87-3e31-412c-ae8c-9fccb4657674-00%40email.amazonses.com.


Re: Starting new chapters on a new page - added

2023-03-15 Thread Bruce Van Allen
I haven’t used Quark for at least a decade, so I haven’t faced this question in 
that context. But with css in general:

1. Your css is using the deprecated page-break-inside property. It might still 
work, so try 'page-break-before: initial;' in the first paragraph of a chapter.

ADDED: Maybe not the first paragraph of the chapter if you have a separate 
Chapter style. 

2. Otherwise the newer property is simply break-before (along with break-after, 
and break-inside);

break-before: page;
break-before: initial;

See mdn: 

HTH

   — Bruce

_bruce__van_allen__santa_cruz_ca_





> On Mar 15, 2023, at 12:28 PM, Richard Powell 
>  wrote:
> 
> Hi everyone. This is probably a pretty simple one for most of you. I have an 
> epub file which was created in QuarkXPress. The chapters all need to start on 
> a new page. I imagine that would be the Chapter style in the css file which 
> would have to be altered? I have attached a screenshot of the css file. Can 
> somebody please explain how I need to alter the text to achieve this. Thank 
> you.
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/1eda5e3b-fa5f-4204-8587-a10f4e55a06an%40googlegroups.com.
> 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/8DA5530A-5F41-4B45-986B-91678A264AFC%40cruzio.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/24F27304-4F37-4AE3-AE5C-24789B524A84%40cruzio.com.


Re: Starting new chapters on a new page

2023-03-15 Thread Bruce Van Allen
I haven’t used Quark for at least a decade, so I haven’t faced this question in 
that context. But with css in general:

1. Your css is using the deprecated page-break-inside property. It might still 
work, so try 'page-break-before: initial;' in the first paragraph of a chapter.

2. Otherwise the newer property is simply break-before (along with break-after, 
and break-inside);

break-before: page;
break-before: initial;

See mdn: 

HTH

— Bruce

_bruce__van_allen__santa_cruz_ca_





> On Mar 15, 2023, at 12:28 PM, Richard Powell 
>  wrote:
> 
> Hi everyone. This is probably a pretty simple one for most of you. I have an 
> epub file which was created in QuarkXPress. The chapters all need to start on 
> a new page. I imagine that would be the Chapter style in the css file which 
> would have to be altered? I have attached a screenshot of the css file. Can 
> somebody please explain how I need to alter the text to achieve this. Thank 
> you.
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/1eda5e3b-fa5f-4204-8587-a10f4e55a06an%40googlegroups.com.
> 

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/8DA5530A-5F41-4B45-986B-91678A264AFC%40cruzio.com.