Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-12-2023, 12:52 AM   #16
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
In case of figure or div or svg parent of the img tag, shouldn't the id be added to that parent and not the img tag itself?
That's definitely the better approach.

Quote:
Originally Posted by KevinH View Post
Also a template_loi.xhtml might prove useful, don't you think?
Also a good idea, because it'd allow users to customize the LOI string.
Doitsu is offline  
Old 01-12-2023, 10:53 AM   #17
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Okay.

I still think it is important to give precedence to any title attribute on the figure tag over the figcaption and/or the alt for that image's descriptive string. I have many epubs with images where the captions are quite long and involved and the alt strings more describe the image than title it.

That way, a person can add a short title attribute value to the figure tag with a proper edited title so that if they have to re-run the loi plugin generator 2 or more times they do not have to constantly edit to shorten the alt or figcaption values. In other words it gives the editor the ability to control what is there without needing to shorten or edit either the alt or the figcaption.
KevinH is offline  
Advert
Old 01-12-2023, 03:05 PM   #18
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
I still think it is important to give precedence to any title attribute on the figure tag over the figcaption and/or the alt for that image's descriptive string. I have many epubs with images where the captions are quite long and involved and the alt strings more describe the image than title it.
OK.
Doitsu is offline  
Old 01-12-2023, 03:33 PM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by KevinH View Post
I'd say that standardepubs are a bit over the top with their "standardization".
If there's a more complicated way to format (HTML/CSS) eBooks with simple formatting, nobody will do it worse/more complicated then Standard Ebooks.

They feel that they have to use the latest code that doesn't work in a lot of cases. They just don't do it correctly. Some of their CSS doesn't work in ADE and causes the entire CSS to be ignored. It's a right mess.

Quote:
Lets first hear from others about what they think about the idea of a list of illustrations plugin for Sigil and how it should work if we made one.
As for a plugin to make a list of images, one thing the plugin cannot do is describe the images. That's something you would have to add in by hand to each image. Most eBooks don't have descriptive image names. And if you were to convert KF8 to ePub, if there ever were descriptive image names, they would be lost. So you would have to go through each image and manually put in a description of the image in the list. The easiest way to do it is for the plugin to display each image and allow you to type in the description. The plugin would have to look through the HTML code to see what the order is of the images. I cannot say how easy such a plugin would be to write. It's not a case of make a list of the images and done.
JSWolf is offline  
Old 01-12-2023, 03:35 PM   #20
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
The more I think about this, we need to screen out tiny/inline images used in place of symbols, or for drop caps, or for scene breaks, or ...

Here is standardebooks view on LOI:

Quote:
The LoI only contains links to images that are major structural components of the work.

An illustration is a major structural component if, for example: it is an illustration of events in the book, like a full-page drawing or end-of-chapter decoration; it is essential to the plot, like a diagram of a murder scene or a map; or it is a component of the text, like photographs in a documentary narrative.

An illustration is not a major structural components if, for example: it is a drawing used to represent a person’s signature, like an X mark; it is an inline drawing representing text in alien languages; it is a drawing used as a layout element to illustrate forms, tables, or diagrams.
So I think based on this we only include img tags who are direct children of figure or div tags
(and *not* children of inline tags or tags like p, h1-h6, span, etc.)

Once I get that working, we can expand the search to include svg tags with image tags as children (or even all svg tags).

The list of files to be processed will be limited to those in the spine and the loi will be built up in spine order from top to bottom of each file while skipping the cover and NAV files themselves.

I think sigil_bs4 would be best so we can use css selectors to identify the nodes, parents, and to find all values of id attributes already used in that file to prevent duplicates.

When I get something working roughly, I will post it here for people to test with.
KevinH is offline  
Advert
Old 01-12-2023, 03:38 PM   #21
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Doitsu View Post
[*]If no <figcaption> sibling exists or the <figcaption> string is empty, use the alt attribute value. [*]If no alt attribute exists or it's empty, use the image basename as the title.
This won't work. In many cases I've seen alt="image" or other stuff that's nothing to do with the images. And the filenames are less then helpful in most cases. It would be best if the plugin displayed the image and the the user type in the description. The figcaption text could be too long or not appropriate if there was such. Most eBooks don't have a figcaption. There's no way to fully automate the plugin so there is nothing for the user to do but run it.
JSWolf is offline  
Old 01-12-2023, 03:42 PM   #22
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by JSWolf View Post
As for a plugin to make a list of images, one thing the plugin cannot do is describe the images. That's something you would have to add in by hand to each image. Most eBooks don't have descriptive image names. And if you were to convert KF8 to ePub, if there ever were descriptive image names, they would be lost. So you would have to go through each image and manually put in a description of the image in the list. The easiest way to do it is for the plugin to display each image and allow you to type in the description. The plugin would have to look through the HTML code to see what the order is of the images. I cannot say how easy such a plugin would be to write. It's not a case of make a list of the images and done.
Actually it is not a list of images but a list of illustrations to be pedantic. And the descriptor generation algorithm was already described above and the use of the title attribute on the parent div or figure can be used to handle any customization of the description.

FWIW, Sigil's Access-Aide plugin already generates a list of images with thumbnails and allows the user to edit/generate "alt" descriptors quite easily. So all that has long existed using Sigil plugins.

So running this loi generator on an accessible epub (ie. with proper alt values) is easily handled with running the Access-Aide plugin first.

And the results may still need to be edited, and that is okay.

Last edited by KevinH; 01-12-2023 at 03:48 PM.
KevinH is offline  
Old 01-12-2023, 04:07 PM   #23
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
So I think based on this we only include img tags who are direct children of figure or div tags
(and *not* children of inline tags or tags like p, h1-h6, span, etc.)
IMHO, that's a good idea. I'm sure that some epub creators will complain about it, but wrapping <img> tags in <div> or <figure> tags can be easily done with a Saved Search.
Epub creators could also take advantage of this requirement by wrapping decorative images in dummy <span> tags to prevent them from being added to the List of Illustrations.
Doitsu is offline  
Old 01-12-2023, 04:13 PM   #24
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Doitsu View Post
IMHO, that's a good idea. I'm sure that some epub creators will complain about it, but wrapping <img> tags in <div> or <figure> tags can be easily done with a Saved Search.
Epub creators could also take advantage of this requirement by wrapping decorative images in dummy <span> tags to prevent them from being added to the List of Illustrations.
Agreed.

If need be we can use a plugin preferences settings to determine the set of allowed immediate parents (defaulting to div, and figure initially).

Last edited by KevinH; 01-12-2023 at 04:20 PM.
KevinH is offline  
Old 01-13-2023, 03:06 PM   #25
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
LOI Generator Debug / Proof of Concept ONLY

Okay, attached is a proof of concept LOI generator and the output generated by the Mutiny On the Bounty test epub linked in Doitsu's post in this thread (and attached below for convenience).

This plugin is just a proof of concept and is designed to FAIL so you can see the debug output in the Plugin Runner Window. It builds no loi.xhtml file by design and instead just prints the basic info needed for the loi.xhtml, book path to file, id, and what descriptor it found.

It seems how we identify the descriptor string still needs some work as well as identifying usable ids so new ones do not always need to be inserted.

I post it here as a tool for refining the algorithms used to determine which images to include, where to get good descriptors, and which ids are usable.

This is not ready for use but more to play around with to see if this tool can be useful when in its finished form. Any changes and improvements to the plugin.py welcomed.

Please give it a try on your favourite epubs with lists of illustrations so we can compare what is detected and try to improve on it to make a useful tool.

Thanks in advance


Edit: removed older version of LOI-Generator plugin. See later posts in this thread for newer versions.
Attached Files
File Type: epub pg69363-images-3.epub (2.99 MB, 353 views)

Last edited by KevinH; 01-14-2023 at 03:08 PM. Reason: removed old version of plugin
KevinH is offline  
Old 01-13-2023, 06:26 PM   #26
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Perhaps if no other description is found and the alt attribute on the image tag is missing, empty or just whitespace, that would be a good indicator that this is not an image suitable for a loi?
KevinH is offline  
Old 01-13-2023, 07:17 PM   #27
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,273
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I would agree with that conclusion.
DNSB is offline  
Old 01-14-2023, 06:16 AM   #28
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
Perhaps if no other description is found and the alt attribute on the image tag is missing, empty or just whitespace, that would be a good indicator that this is not an image suitable for a loi?
IMHO, using empty alt attributes to mark decorative images is a good approach, because that's exactly what DAISY recommends for decorative images.

I'd recommend the following approach for images without alt attributes:
  • exclude them from the loi, but also add the image information to an error log
  • add an alt="" attribute
  • optional: add a role="presentation" attribute, but only in epub3 books
  • display an error log listing all images without alt attributes
Doitsu is offline  
Old 01-14-2023, 09:26 AM   #29
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
I will make a change to leave out images with empty or missing alt attributes when no other descriptor is found.

But fixing missing alt attributes, and adding aria role information for epub3 are really the domain for other plugins as they have nothing directly to do with generating a loi. Especially when those images might later be used in a loi upon a second pass after editing by the epub developer, forcing them to delete the aria role from each.

I do agree that generating a log file of images that were not included is probably a good idea.
KevinH is offline  
Old 01-14-2023, 11:42 AM   #30
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
Okay with those changes in place, the output looks very reasonable:

Code:
OEBPS/3295685525714288644_69363-h-0.htm.xhtml i_frontis PITCAIRN ISLAND.
OEBPS/3295685525714288644_69363-h-6.htm.xhtml image_016 MOORLAND CLOSE, CUMBERLAND, THE BIRTHPLACE OF FLETCHER CHRISTIAN.
OEBPS/3295685525714288644_69363-h-6.htm.xhtml image_019 gourd and book
OEBPS/3295685525714288644_69363-h-7.htm.xhtml image_026 THE LANDING PLACE, BOUNTY BAY.
OEBPS/3295685525714288644_69363-h-8.htm.xhtml image_036 BOUNTY BAY FROM THE CLIFFS.
OEBPS/3295685525714288644_69363-h-8.htm.xhtml image_042 THURSDAY OCTOBER CHRISTIAN.
OEBPS/3295685525714288644_69363-h-8.htm.xhtml image_044 Breadfruit
OEBPS/3295685525714288644_69363-h-9.htm.xhtml image_048 PATH THROUGH COCOANUT GROVE.
OEBPS/3295685525714288644_69363-h-9.htm.xhtml image_050 FIGURES CUT IN THE ROCKS AT THE ROPE.
OEBPS/3295685525714288644_69363-h-9.htm.xhtml image_052  MORINDA CITRIFOLIA.
OEBPS/3295685525714288644_69363-h-10.htm.xhtml image_058  THE CHAPEL.
OEBPS/3295685525714288644_69363-h-10.htm.xhtml image_063 GROUP OF ISLAND MAIDENS.
OEBPS/3295685525714288644_69363-h-11.htm.xhtml image_070 ROSA YOUNG.    ARTHUR YOUNG.
OEBPS/3295685525714288644_69363-h-11.htm.xhtml image_075 Headstone
OEBPS/3295685525714288644_69363-h-12.htm.xhtml image_080 PITCAIRN AVENUE.
OEBPS/3295685525714288644_69363-h-13.htm.xhtml image_090  GROUP OF NATIVE MEN.
OEBPS/3295685525714288644_69363-h-13.htm.xhtml image_096 Stem of flowers
OEBPS/3295685525714288644_69363-h-14.htm.xhtml image_100 THE ISLAND SAWMILL.
OEBPS/3295685525714288644_69363-h-15.htm.xhtml image_110 PARLIAMENT OF PITCAIRN ISLAND.
OEBPS/3295685525714288644_69363-h-15.htm.xhtml image_118 native bush
OEBPS/3295685525714288644_69363-h-16.htm.xhtml image_124 GROUP OF NATIVE CHILDREN.
OEBPS/3295685525714288644_69363-h-16.htm.xhtml image_126 butterfly on flowers
OEBPS/3295685525714288644_69363-h-17.htm.xhtml image_130 THE “PITCAIRN” AND MAN-OF-WAR OFF PITCAIRN ISLAND
OEBPS/3295685525714288644_69363-h-18.htm.xhtml image_140 FAMILY GROUP OF NATIVES.
OEBPS/3295685525714288644_69363-h-18.htm.xhtml image_147 a Pitcairn cottage
OEBPS/3295685525714288644_69363-h-19.htm.xhtml image_151 BREADFRUIT.
OEBPS/3295685525714288644_69363-h-19.htm.xhtml image_155 CHILDREN AND WHEELBARROW.
OEBPS/3295685525714288644_69363-h-20.htm.xhtml image_159 a small island
OEBPS/3295685525714288644_69363-h-20.htm.xhtml image_160 POINT LOOKOUT.
OEBPS/3295685525714288644_69363-h-20.htm.xhtml image_165 GROUP OF YOUNG MEN.
OEBPS/3295685525714288644_69363-h-22.htm.xhtml image_180 SIMON YOUNG AND WIFE.
OEBPS/3295685525714288644_69363-h-23.htm.xhtml image_198 THE MISSION HOUSE.
OEBPS/3295685525714288644_69363-h-23.htm.xhtml image_205 creek running down from hill
OEBPS/3295685525714288644_69363-h-24.htm.xhtml image_212 GROUP OF WOMEN AND CHILDREN.
OEBPS/3295685525714288644_69363-h-25.htm.xhtml image_222 GIRLS IN BATHING COSTUME.
OEBPS/3295685525714288644_69363-h-27.htm.xhtml image_236 HATTIE ANDRE’S CLASS.
OEBPS/3295685525714288644_69363-h-28.htm.xhtml image_250 ROSA YOUNG’S CLASS.
OEBPS/3295685525714288644_69363-h-28.htm.xhtml image_259 sailing ship out at sea
With the following images that were properly wrapped in a div skipped because of empty alt and no discernible description information. These results seem quite consistent with the hand generated loi provided in the book.


Code:
Warning: Image Skipped -  1189670316845751299_i_012.jpg
Warning: Image Skipped -  1189670316845751299_i_020.jpg
Warning: Image Skipped -  1189670316845751299_i_031.jpg
Warning: Image Skipped -  1189670316845751299_i_045.jpg
Warning: Image Skipped -  1189670316845751299_i_055.jpg
Warning: Image Skipped -  1189670316845751299_i_065.jpg
Warning: Image Skipped -  1189670316845751299_i_066.jpg
Warning: Image Skipped -  1189670316845751299_i_076.jpg
Warning: Image Skipped -  1189670316845751299_i_087.jpg
Warning: Image Skipped -  1189670316845751299_i_097.jpg
Warning: Image Skipped -  1189670316845751299_i_108.jpg
Warning: Image Skipped -  1189670316845751299_i_119.jpg
Warning: Image Skipped -  1189670316845751299_i_127.jpg
Warning: Image Skipped -  1189670316845751299_i_138.jpg
Warning: Image Skipped -  1189670316845751299_i_148.jpg
Warning: Image Skipped -  1189670316845751299_i_158.jpg
Warning: Image Skipped -  1189670316845751299_i_170.jpg
Warning: Image Skipped -  1189670316845751299_i_176.jpg
Warning: Image Skipped -  1189670316845751299_i_177.jpg
Warning: Image Skipped -  1189670316845751299_i_192.jpg
Warning: Image Skipped -  1189670316845751299_i_193.jpg
Warning: Image Skipped -  1189670316845751299_i_206.jpg
Warning: Image Skipped -  1189670316845751299_i_219.jpg
Warning: Image Skipped -  1189670316845751299_i_220.jpg
Warning: Image Skipped -  1189670316845751299_i_228.jpg
Warning: Image Skipped -  1189670316845751299_i_229.jpg
Warning: Image Skipped -  1189670316845751299_i_233.jpg
Warning: Image Skipped -  1189670316845751299_i_234.jpg
Warning: Image Skipped -  1189670316845751299_i_242.jpg
These were mainly chapter headers showing the artwork at the start of each chapter taken from the original book that are not referenced or used in the book itself (just presentation)

So it appears, we can make this plugin useful.

But I will need a bunch of test cases to help make things robust. If you know of public domain epubs with lists of illustrations (loi) pages in them please post a link here. Even 3 or 4 good ones should help.

I will work on adding support for svg image tags just in case svg wrappers are being used.
KevinH is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools Script generate WordWise for all type of ebook xnohat Kindle Developer's Corner 22 04-01-2025 04:32 AM
plugin that can generate NCX/Guide for epub-2 e-readers? hobnail Calibre 4 11-29-2019 05:09 PM
PRS-T2 script to generate collections stegro Sony Reader Dev Corner 8 01-05-2018 03:58 AM
Conversion from xhtml to epub loose svg images pwessel Conversion 3 05-24-2015 11:29 PM
Script to generate thumbnails Jellby Bookeen 0 01-02-2010 11:51 AM


All times are GMT -4. The time now is 09:06 AM.


MobileRead.com is a privately owned, operated and funded community.