Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 09-10-2019, 08:44 AM   #1
AliceWonder
Connoisseur
AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.
 
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
Possible bug but maybe not

To place text precisely over an image, I am using an svg node within xhtml.

A style node within that svg node doesn't let me specify fonts, but I can define the rules within a CSS file referenced in the xhtml head and it works.

For example:

Code:
text.title {
  font-family: 'Liberation Mono', monospace;
  font-weight: bold;
}
tspan.tblue {
  fill: red;
}
text.tagline {
  font-family: 'Liberation Sans', sans-serif;
  font-style: italic;
  font-weight: bold;
}
text.code {
  font-family: 'Liberation Mono', monospace;
  font-weight: bold;
  fill: lightgray;
}
text.aut {
  font-family: 'Liberation Mono', monospace;
  font-weight: bold;
  fill: red;
}
When I run the "run check" from the Calibre Editor it gives me warning because fill is not a CSS name that has any meaning to HTML but it does have meaning in SVG.

It works in readers (including Calibre) I have tried.

What I do not know is if the warning is a bug in Calibre (e.g. it should allow SVG names too) or if it is intentional because some readers may ignore SVG specific CSS names.

Just mentioning it in case it is considered a bug.
AliceWonder is offline   Reply With Quote
Old 09-10-2019, 10:38 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It wont work on some readers, it will on most modern ones though.
kovidgoyal is offline   Reply With Quote
Advert
Reply

Tags
css, svg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[BUG] - M96 out of memory - [BUG] Alf77 Onyx Boox 5 02-05-2015 11:47 AM
DR800 Help, I've got a bug!! A bug on my screen!! Franky iRex 4 06-21-2011 11:45 AM
Embedded font bug or CSS bug in ADE JSWolf ePub 10 06-11-2011 02:34 PM
Possible bug? Lexicon Sigil 17 08-01-2010 03:23 PM
PRS-505 bug or eBookLib bug? porkupan Sony Reader 3 10-07-2007 10:44 PM


All times are GMT -4. The time now is 07:13 PM.


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