WORD: don't break the last sentence on a page Thread poster: DZiW (X)
| DZiW (X) Ukraine English to Russian + ...
Hi guys, After eliminating the white spaces and other stuff, I'm struggling to cope with the issue to prevent MS Word from breaking the last line on every page--the beginning of the sentence is on one page and its ending is on the other. Yes, long paragraphs are prone to such a thing, but I really doubt I'm the only or the first to encounter an annoyance. It's really annoying and I don't know how to simplify the task: 1) if there's such a property, move all the '... See more Hi guys, After eliminating the white spaces and other stuff, I'm struggling to cope with the issue to prevent MS Word from breaking the last line on every page--the beginning of the sentence is on one page and its ending is on the other. Yes, long paragraphs are prone to such a thing, but I really doubt I'm the only or the first to encounter an annoyance. It's really annoying and I don't know how to simplify the task: 1) if there's such a property, move all the 'broken' or flying sentences to the next page -OR- 2) find the last symbol at the page and if it's not end-of-line [as .?!")]>] then move the line. Any ideas would be more than welcome. TY ▲ Collapse | | | Kevin Fulton United States Local time: 18:03 German to English Widows and orphans | Dec 22, 2017 |
When only the last line of the paragraph appears at the top of the next page, that line is called a widow. When only the first line of the paragraph appears at the bottom of the first page, that line is called an orphan. There's a fix for this in Word: Right-click in the text and select Paragraph → Line and Page Breaks → check Widow / Orphan control. This should help keep things under control. | | | DZiW (X) Ukraine English to Russian + ... TOPIC STARTER thank you, Kevin, yet still | Dec 22, 2017 |
I did try to amend the issue at ease, however it either keeps breaking edge lines (not necessary the last in the paragraph) into two parts at page break, splitting the end unto the next or moves such whole paragraphs... Also I tried to clear formatting and styles at no avail. Perhaps, a simple vba or a life-hack would do nicely? | | | Daniel Frisano Italy Local time: 00:03 Member (2008) English to Italian + ...
Let me try to wrap my head around this. So you want all your pages to end with an end-of-sentence character such as .?!")]> ... right? If such a character comes in the middle of a long paragraph, then Word should automatically split the paragraph (but only for such characters that are the last of their kind in that page), so the 1st half of the paragraph stays in that page and ends with .?!")]> and the 2nd half starts at the new page. Now, wha... See more Let me try to wrap my head around this. So you want all your pages to end with an end-of-sentence character such as .?!")]> ... right? If such a character comes in the middle of a long paragraph, then Word should automatically split the paragraph (but only for such characters that are the last of their kind in that page), so the 1st half of the paragraph stays in that page and ends with .?!")]> and the 2nd half starts at the new page. Now, what happens if afterwards you add or delete text, change font size, change margins, or make any other change that affects the page layout? Should Word re-join the split paragraphs and split them again according to the new page breaks? This could be solved if there was a special character functioning as a "conditional page break" to be inserted instead of the normal space after each .?!")]> . The last "conditional page break" character in each page breaks the page. Perhaps with some clever programming... Stated another way, you need a "keep lines together" option that works sentence-by-sentence instead of paragraph-by-paragraph. This implies that you should be able (or required) to define what a sentence is, i.e., which characters should be read as sentence-ending characters, .?!")]> and such. Complicated, but not impossible. Yet, what happens when, as an exception to the rule, you want a sentence-ending character to behave differently? (E.g., when citing an author, say, T. S. Eliot, you don't want those periods after T and S to be read as sentence-ending).
[Edited at 2017-12-23 14:25 GMT] ▲ Collapse | |
|
|
| Tom in London United Kingdom Local time: 23:03 Member (2008) Italian to English
Go to format ---->paragraph--->and click on the little box that says "Don't add space between paragraphs of the same style" | | | DZiW (X) Ukraine English to Russian + ... TOPIC STARTER
Hi Tom, not for this case, unfortunately--no diff. Hans, I have never heard about that program, so I'd like to give it a try. As for .break, the problem is paragraphs are broken between pages while breaking its sentences, so I don't know how to hand it properly. Perhaps, .sentence(_broken).insertbefore VbCrLF would do, yet how to spot them... Any similar properties? | | |
How about abusing text boxes to keep paragraphs together? | |
|
|
DZiW (X) Ukraine English to Russian + ... TOPIC STARTER q'n'd soulution | Jan 1, 2018 |
1. Check first char at the page; 2. If LOWCASE letter, then move this line; 3. Continue to the end. Sub Xline() i = 2 'START FROM PAGE TWO Do '----------------MAIN LOOP Selection.GoTo What:=wdGoToPage, Which:=wdGoToAbsolute, Count:=i 'TOP OF THE i-th PAGE Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend 'SELECT c = Left(Trim(Selection.Text), 1) 'WHAT'S THE FIRST CH ... See more 1. Check first char at the page; 2. If LOWCASE letter, then move this line; 3. Continue to the end. Sub Xline() i = 2 'START FROM PAGE TWO Do '----------------MAIN LOOP Selection.GoTo What:=wdGoToPage, Which:=wdGoToAbsolute, Count:=i 'TOP OF THE i-th PAGE Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend 'SELECT c = Left(Trim(Selection.Text), 1) 'WHAT'S THE FIRST CHAR? If c Like "[a-zа-я]" Then 'IF LOWCASE ALPHA With Selection .Collapse .Extend: .Extend: .Extend 'SELECT THE WHOLE LINE 'Exit Sub 'IF JUST HIGHLIGHTING, THEN STOP .InsertBefore vbCrLf 'MOVE LINE .Collapse ThisDocument.Repaginate 'UPDATE NUMBER OF PAGES DoEvents i = i - 1 'RE-CHECK THE PAGE AND REPEAT MOVING OUT End With 'SELECT End If 'BROKEN ALPHA i = i + 1 'PROGRESS Loop Until i > ThisDocument.Range.Information(wdNumberOfPagesInDocument) '----------------MAIN LOOP Selection.Collapse 'UNSELECT End Sub Of course, it's neither optimized, nor universal, but it works for me. Although sometimes it's better to resize, reformat or move the whole paragraph... A simpler way?
[Edited at 2018-01-02 16:48 GMT] ▲ Collapse | | | To report site rules violations or get help, contact a site moderator: You can also contact site staff by submitting a support request » WORD: don't break the last sentence on a page Wordfast Pro | Translation Memory Software for Any Platform
Exclusive discount for ProZ.com users!
Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value
Buy now! » |
| Anycount & Translation Office 3000 | Translation Office 3000
Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.
More info » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |