View Single Post
Old 05-04-2012, 11:47 AM   #243
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by kiwidude View Post
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+
I'm not a guru either, but the addition of the \s+ LOOKS harmless. If \s only matches space, tab, newline then it shouldn't remove anything vital

What could possibly go wrong?

Another opinion re: line-height...
I only zap some occurrences (manually, of course), those which affect main body text. I've had problems with long chapter headings if the font is large and the line-height isn't set to 1.3 or higher. Also in agreement about Dropcaps. If the setting isn't 'just right' for your chosen font, it can look terrible. Difficult to achieve a 'perfect' result automatically, I think. I don't suppose most people are this obsessive, though.
jackie_w is offline   Reply With Quote