![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2021
Device: Kindle
|
Automatic elimination of "orphans"
It is a~problem peculiar to Polish I'm afraid. In Polish a~line break after a~one-letter world is a~typographic mistake called "an orphan". For this purpose so-called hard-spaces must be used. I~suppose that orphan elimination may be implemented by Calibre or one of its plugins. Unfotunatelly I~cannot find it. Thanks for any help!
|
![]() |
![]() |
![]() |
#2 | |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
Search: (\W\w)\s+ Replace: \1\u0080 (or equivalent). |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2021
Device: Kindle
|
The problem is: tags (for example <p ....>). This should work for regular text only - not inside tags!
(btw: \u00A0) |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Mar 2021
Device: Kindle
|
I can use
([^<A-Za-zĄĆĘŁÓŚŻŹąćęłóśżź]\w)\s+ for avoiding <p ...> and similar tags but omitting all elements inside < > would be perfect |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Age improves with wine.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 576
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
|
![]() |
![]() |
![]() |
Tags |
editing, hard-spaces, typography |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New option "Automatic Book Update" | AnemicOak | Amazon Kindle | 3 | 07-05-2013 04:22 PM |
automatic reset of font size in field "comments"? | Grins | Calibre | 3 | 12-19-2012 03:24 AM |
Automatic fill "Summary" text at ADD BOOK function | ttacta | Library Management | 0 | 10-10-2012 08:13 AM |
Automatic "_" instead of blank space in filenames | damirock | Devices | 1 | 11-30-2011 10:19 AM |
My automatic "feeds to Memory card" trick... | sherman | Calibre | 0 | 11-22-2008 04:42 PM |