View Single Post
Old 05-04-2012, 10:44 AM   #241
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by jackie_w View Post
On the few epubs I've tested to remove the inline @font-faces, they are correctly removed but a blank line remains.
That was sort of intentional - as a cop-out to making sure I made the least intrusive change to the epub possible. Right now my regex for doing the replacement ends at the closing brace }. i.e.
Code:
@font\-face[^}]+?}
I guess the question for the regex gurus is what would be a "safe" addition to that, given the permutations of how styles might be laid out in the original file. Can I get away with this for instance?
Code:
@font\-face[^}]+?}\s+
Quote:
Originally Posted by jackie_w View Post
After modifying an epub, the calibre last_modified date column does not change. Is this deliberate? It may have always worked like this but I never noticed before.
There should be nothing new about that behaviour from previous versions. I'll see if I can figure out what it is supposed to do to get that field updated.
kiwidude is offline   Reply With Quote