![]() |
#1 |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
25 stars or one?
Hallo!
In a book there are 25 stars, seems me senseless. I would like to summarize to one star. They are seemingly identical, since the byte data differ minimally. star01.jpeg_798_B · · · · · · star03.jpeg_799_B · · · · · · star24.jpeg_800_B I know the job (in technical sense). But my question is whether the request is inadvisable for any reason? Last edited by chaot; 10-23-2015 at 06:38 AM. Reason: change image appearance, inadvisable |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
It should be safe.
I've seen this before, when a book was clearly OCRed. ![]() The same image was picked up multiple times by the OCR software, but with ever-so-slight differences in the image data (a pixel here or there) so the software created multiple images. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
![]() Then your S&R will be simpler ![]() Pick the best and give it a non-'star' name, REGEX search for star\d+ and replace with the above OR ![]() Code:
.mystar {display:block;font-size: 1.2em;text-align center; margin: 1em 0; text-indent: 0;} |
![]() |
![]() |
![]() |
#4 | |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
OCRed (OCR)→Initialism of Optical Character Recognition (the principle) or Optical Character Reader (the scanning device)
Realistic! ![]() Quote:
Your explanation (about S&R) is not clear to me. 3 non-star images Last edited by chaot; 10-26-2015 at 12:57 PM. |
|
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
1) Reduce file size (the book) for either way 2)Remove jitter (the image appears to jump around) between, what should be the SAME image., when viewed rapidly in succession. My idea for S&R is simply a work flow methodology I use to K.I.S.S. Usually (not always) these are the bulk of the images, the rename means a less exacting search BTW In the Editor: Tools Reports: Images (sidebar) To see what you have |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |||||
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
@theducks Sorry, I understand less and less.
Quote:
Quote:
Quote:
Quote:
Quote:
To see what we got, I show it (the whole I can't, it's a .csv file, what calibre recognizes as an Invalid file). Reports_Images |
|||||
![]() |
![]() |
![]() |
#7 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Inline (I am guessing that English is not your primary language.
![]() INLINE replies Quote:
|
|
![]() |
![]() |
![]() |
#8 |
The Fumbler
![]() Posts: 66
Karma: 10
Join Date: Jun 2015
Device: android 4.2/fbreader
|
You are right, it makes no sense to have 25 stars when 1 would do. Probably this happened because the book was scaned and then converted to ebook using a program that didn't know any better. I would search for all reference to a "star" and replace a with one single "star". For example, using regex, search all text:
search: star[0-9][0-9]\.jpeg replace: star01.jpeg With this you will have changed all reference to star01.jpeg. Now you can deleted star02.jpeg through star25.jpeg as they are not used. Why? Because the world will be a better place. Remember - Keep It Simple Stupid! |
![]() |
![]() |
![]() |
#9 | |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Quote:
Where you live My mother tongue is German. And if I am not wrong, the question should be in correct English: Where do you live? (With question mark.) So far! The rest will be commented later. Last edited by chaot; 10-26-2015 at 02:56 PM. Reason: add complete quote |
|
![]() |
![]() |
![]() |
#10 | |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Quote:
Documentation follows. Last edited by chaot; 10-27-2015 at 08:47 AM. |
|
![]() |
![]() |
![]() |
#11 | ||
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Important Back-up the book before starting experiments.
(Save to disk→Save to disk in a single directory (which is to get established). E.g. my one is called Library#backed-up_experiments) Rename one image, e.g. star01.jpeg to rats.jpeg Files browser Images (rats.jpeg) Files Browser Text (S with star\d+ & R with rats)(S with star[0-9][0-9]\.jpeg also functions) Differences wetween books Files Browser Images (Delete the 24 selected file(s) Rename rats.jpeg to star.jpeg Result Files Browser Images (star.jpeg) (Check Book is okay) Job done! ![]() Quote:
Quote:
Of course, even though I had understood the methodology of approach, the regexes I had not known. These simplify the procedure considerably. ![]() OT: Sometimes it is quite difficult to understand you. May I ask if English is your primary language. My Denglish seems me often not so bad. Last edited by chaot; 10-27-2015 at 03:00 PM. Reason: add [LINE]900[/LINE] |
||
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() (this is where everyone expects the others to be well versed in the subject being discussed ![]() Your English is fine. Technical discussions can get lost when different languages and backgrounds are involved. |
|
![]() |
![]() |
![]() |
#13 | ||
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
With the fixes you just did, you now have one (1) star image. But you could remove that as well, and replace it with a text star: Code:
* I've always been more than happy with the following CSS+HTML instead of using images for change of scene: Code:
# CSS .scenebreak { text-align: center; text-indent: 0%; margin: 1em; } # HTML <p class="scenebreak">* * *</p> |
||
![]() |
![]() |
![]() |
#14 | |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
We got similar background.
Too much school (also High School) + maritime experiences up to the top (Captain Patent). Self-taught on software with the help of fine gents como tú. Honestly: Not even 10 years ago I thought there's something to turn on a PC like a light switch. Quote:
F B stylesheet.css S&R HTML-code F B Text Differences between books Check Book The file content_images_star.jpeg is not referenced [content_images_star.jpeg] Delete star.jpeg→Check Book OK. Just I see: @eschwartz has schmuggled me some 3 stars inside for change of scene (changeable in stylesheet.css) Code:
<p class="scenebreak">*</p> E-book viewer (* * *) Short and painless, ![]() Edit: Storage the codes (snippets) in a kind of archive (for easy access). (Edit book→Help→Preferences→Editor settings→Manage snippets) Last edited by chaot; 10-29-2015 at 03:28 PM. Reason: Formulations, time pressure yesterday! |
|
![]() |
![]() |
![]() |
#15 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stars | oldyellr | Feedback | 23 | 10-01-2012 01:49 AM |
Stars and Stripes | adoucette | Recipes | 0 | 05-12-2012 07:15 AM |
March to the Stars | leebase | Reading Recommendations | 2 | 05-26-2010 02:43 AM |
Where did my stars go? | motormanjh | Calibre | 5 | 07-25-2009 10:43 PM |