View Single Post
Old 02-10-2014, 11:22 AM   #29
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,149
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I consider both of those to be a 'short form'
I think REGEX done with 4 passes should catch all (not tested)
margin\: 1em 2em 3em 4em;

F: margin:\b(.+?)\b(.+?)\b(.+?)\b(.+?)\;*
R: margin-top:\1; margin-right:\2; margin-bottom: \3; margin-left:\4;

Note: the 'short form' is not limited to margin

I like Jellby's idea. Send it back as a 'defective EPUB reader'
theducks is offline   Reply With Quote