03-28-2021, 05:39 AM | #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!
|
03-30-2021, 01:51 PM | #2 | |
Age improves with wine.
Posts: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
Quote:
Search: (\W\w)\s+ Replace: \1\u0080 (or equivalent). |
|
04-02-2021, 08:49 AM | #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) |
04-02-2021, 09:08 AM | #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 |
04-04-2021, 04:58 AM | #5 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
|
04-09-2021, 04:39 AM | #6 |
Age improves with wine.
Posts: 558
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
|
|
Tags |
editing, hard-spaces, typography |
|
Similar Threads | ||||
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 |