![]() |
#16 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,356
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
|
|
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
I assume no one actually just writes those long numeric strings, they use an app that converts pen strokes or an image capture into that format? I also can't see where the xlink:href bits get used. they don't appear in the html code? <g style="fill:rgb(0%,0%,0%);fill-opacity:1;"> <use xlink:href="#glyph3-1" x="32.265" y="3.676"/> </g> |
|
![]() |
![]() |
![]() |
#18 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,356
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
It appears Sigil doesn't like the %, and won't display them properly....so it is at least a possibility that is the issue.
Also, when you make a change in the svg file you need to reselect the html file tab to reload the image in the preview window...it doesn't update automatically until you do. |
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
PS. I started the thread thinking that tweaking the book would be more fun that studying it- but I am starting to think the calculus would have been simpler to understand
![]() |
![]() |
![]() |
![]() |
#20 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,356
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
You may want to see if it is a size issue making it appear grey for being too thin. If that doesn't affect it try getting rid of the percentages. Make sure you are in the svg image file - not the html file. Select 'Current File' and 'Normal' in the regex Mode: Find: rgb(0%,0%,0%) Replace: rgb(0,0,0) |
|
![]() |
![]() |
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
And there is currently no way to run a search on ALL svg files in Sigil. All HTML Files, Selected HTML Files, and Current File are the only choices for S&R scope. So you would have to open each svg file individually and do the S&R with "Current File" as the scope.
|
![]() |
![]() |
![]() |
#22 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
thanks, but there are 485 .svg files in the book. I may do a few, one at a time, as a learning experience, but I ain't doing all 485 that way! Meanwhile, I opened up a different maths text and saw that in that one, all the actual math is stored as .png, and all looks solidly black. That's a more mainstream approach ? |
|
![]() |
![]() |
![]() |
#23 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,356
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
The 'symbols' are defined at the top. You would only need to define how unique symbols are drawn once...then you can use them multiple times in the same image: Code:
<symbol overflow="visible" id="glyph3-1">
<path style="stroke:none;" d="M 3.515625 -1.265625 L 3.28125 -1.265625 C 3.265625 -1.109375 3.1875 -0.703125 3.09375 -0.640625 C 3.046875 -0.59375 2.515625 -0.59375 2.40625 -0.59375 L 1.125 -0.59375 C 1.859375 -1.234375 2.109375 -1.4375 2.515625 -1.765625 C 3.03125 -2.171875 3.515625 -2.609375 3.515625 -3.265625 C 3.515625 -4.109375 2.78125 -4.625 1.890625 -4.625 C 1.03125 -4.625 0.4375 -4.015625 0.4375 -3.375 C 0.4375 -3.03125 0.734375 -2.984375 0.8125 -2.984375 C 0.96875 -2.984375 1.171875 -3.109375 1.171875 -3.359375 C 1.171875 -3.484375 1.125 -3.734375 0.765625 -3.734375 C 0.984375 -4.21875 1.453125 -4.375 1.78125 -4.375 C 2.484375 -4.375 2.84375 -3.828125 2.84375 -3.265625 C 2.84375 -2.65625 2.40625 -2.1875 2.1875 -1.9375 L 0.515625 -0.265625 C 0.4375 -0.203125 0.4375 -0.1875 0.4375 0 L 3.3125 0 Z M 3.515625 -1.265625 "/>
</symbol>
Then at the bottom it uses the href to reference which symbol to place at coordinates x,y Code:
<g style="fill:rgb(0,0,0);fill-opacity:1;"> <use xlink:href="#glyph3-1" x="50.209" y="4.745"/> </g> |
|
![]() |
![]() |
![]() |
#24 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,356
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
If the % thing is the actual cause, then it would be super easy to open the ePub in a different editor, such as notepad++, and you could easily regex all the svg files in one go. The css/html files are easily edited in sigil with a couple regex. Personally, I would only have a few svg 'classes': 1) for equations that are inline with the paragraph, such as: span.inlineEQ img {height:1.2em} 2) for smaller equations on their own - like only a single line with numerator, denominator, exponents, etc, such as: div.smallblockEQ {text-align:center; margin:1em 0} div.smallblockEQ img {height:2em} 3) for larger equations on their own - like multi-line proofs, such as: div.largeblockEQ {text-align:center; margin:1em 0} div.largeblockEQ img {height:10em} Then you would only need a specific class for the truly freaky equations. edit: Having said all that about svg being better....I think there are some, older, readers/devices that don't like svg within the body of the html...they only play well with an svg wrapped jpg/png/gif/etc as a cover image. Someone else around here could probably tell you which devices still struggle in that regard. Last edited by Turtle91; 09-18-2020 at 02:41 PM. |
|
![]() |
![]() |
![]() |
#25 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Anyway, there's little point pursuing this difference of opinion. |
|
![]() |
![]() |
![]() |
#26 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#27 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
ok folks another test, another question ( about conformance with epub specs)
i sent the book with the svg stuff in it to Kobo forma, via dropbox. i.e. as an epub, bypassing any epub -> kepub processing. its like with ADE2, blank spaces where the svg defined equations are supposed to appear. ( i do see the large graphs though - because they are stored as .png. new question : is the book out of spec in expecting all epub devices to handle its .svg content, or what ? why can't ADE, kobo cope at all . Perhaps JSWolf can explain why Moon reader ( which he hates and) hugely outperforms his beloved Kobo devices in this case. lets try the various checkers built into sigil... incidentally this book sometimes completely fails to open in sigil task manager confirms sigil has gone awol - or takes 2 -3 minute to open in Sigil on a 2nd try - on a fast PC ... and then it appears twice! well the f7 check says no problems. that seems to be the only check now bundled into Sigil. I will go see is calibre editor has additional ones but I suspect it will pass whatever tester i find. untried for now: an epub->kepub conversion any later version of ADE ( i use the old v2 that plays nicely with ALFs tools) bookari on tablets Last edited by stumped; 09-19-2020 at 08:00 AM. |
![]() |
![]() |
![]() |
#28 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
When there's a compatibility issue, it's usually safer to assume that it's the reading system falling down and ignoring epub spec, rather than the epub failing to comply (though that's possible too). The problem with compliance is that every reading system out there has a different interpretation of the IDPF's wishy-washy "may/might/should" wording. Last edited by DiapDealer; 09-19-2020 at 09:07 AM. |
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
ok thanks.
to further thicken the plot re this book. I see that Kobo store actually sells an epub3 version. Looked at the preview but the couple of equations within that seem to have been separated out into not-inline images. there's probably a multi step way to grab the kobo store preview, de-drm it and open it up to see what they have done, but I am not that motivated. calculus in 5 hours is in kobo store ( UK or USA) its definitely time to change textbooks. I am persevering with this one only to better understand the whole .svg issue. looking back at what I'd been doing. I discovered that had started with an epub3 version and reduced it to epub2. so i got my epub3 version onto the forma, only for it to freeze and reboot the device almost every time i try to open it ! and when I did get it to open on the forma, the equations were still missing. |
![]() |
![]() |
![]() |
#30 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,643
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
With EPUB3, they could have gone full-blown MathML to display the formulas. How did you do your EPUB3 to 2 "reduction"? It's fairly easy to go the other direction, but 3 to 2 can get quite involved if it's anything other than a vanilla, text-only book.
Last edited by DiapDealer; 09-19-2020 at 09:42 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura ONE Any way to enlarge titles font in My books list view? | kim1406 | Kobo Developer's Corner | 2 | 08-16-2020 02:32 PM |
Libra Enlarge image | Valkrider | Kobo Reader | 10 | 03-10-2020 08:12 AM |
Hacks kindle 3.4 Font size enlarge | dawniefitzgerald | Amazon Kindle | 0 | 10-05-2012 04:59 PM |
KindleGen - Enlarge pictures in lanscape orientation? | _Abahd_ | Kindle Formats | 0 | 09-17-2012 05:22 AM |
How to enlarge font size of mobi dictionary | redmayfair | General Discussions | 3 | 07-14-2012 05:07 AM |