View Single Post
Old 09-14-2014, 11:00 AM   #15
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,137
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 am a little (Time zone) late jumping in.

SGC # are per file (as you discovered) and are defined in between the <style> tags in the file <head>

SGC # are assigned in order of usage need (Thus the seeming randomness of assignments)

A little tedious way to unify/walk styles into a (Book) single stylesheet

Copy the first files <styles> section contents to a new stylesheet ( start with the file with the most SGC's defined)

Rename the style names from SGC # to something 'meaningful' (leave the old SGC# in comments /* SGC_3 */ as a reminder)

Then Replace all the old SGC # in the book file with their new names


Using the same NEW STYLE name, locate other book files that have a EXACT matching definition and ALSO change their defined name (remember to use : 'current file' in replace) to the new name .

( let the replace change the name inside the <style> as well. When there are no more SGC's in that <style>, it can be deleted)

Add another files <style> to the main stylesheet (remove any of the the new name definitions that appear before the copy)

repeat the copy-renaming sequence until done
Once you get on a roll, it will probably take less than 30 minutes
remember to link your new stylesheet to the files

WARNING: If any SGC # are greater than 9, do those FIRST (Extra care is needed not to change SGC-1n's along with SGC-1)
theducks is offline   Reply With Quote