Quote:
Originally Posted by JSWolf
I know 80 files to edit can seem like a lot, but it's not as difficult as it seems. Besides, doyou really want to change the code and make it harder should you want to edit something?
|
Editing 80 similar, but not exactly the same, blocks of code, I'm bound to get bored and quite likely make mistakes.
Anyway, I've already done the Calibre conversion and as I said, there is no noticeable collateral damage.
Calibre, as its wont, changed the names of some styles, but that was easily fixed when I reviewed the styles, which I could only do after they were all consolidated in the css file. The previous style names were just as arbitrary. But now they are consistent and all defined in one place.
The whole point was to make a file that was easier to edit, and it is.
I'm not destroying carefully and logically laid out book, I'm trying to make one from one rather sloppily created. Only started doing it because the quote marks were typewriter style. That shows the level of professionalism. Nitpicks to most but things I care about.
Please give an example of the kind of damage you think this has done and I will look into it.
Have you actually ever done a Calibre epub-epub conversion?
Other products of Calibre conversion may be bloated piles of spaghetti, but this one at least seems quite clean.
Example:
BEFORE
Quote:
<p class="p6 sgc-2">June 26, 1996</p>
<p class="p5"></p>
<p class="p6">Arthur Gordon stood in the darkness by the bank of the Rogue River, having walked a dozen yards away from his house and family and guests, momentarily weary of company. He stood six feet two inches in height, losing no more than an inch to a slight stoop. His hair was a dusty brown color, his eyebrows a lighter shade of the same. He had a well-proportioned frame and a sufficient amount of muscle, but he lacked any trace of fat; his muscles showed clearly beneath the skin, giving him an appearance of thinness.</p>
|
AFTER
Quote:
<p class="p5">June 26, 1996</p>
<p class="p4"></p>
<p>Arthur Gordon stood in the darkness by the bank of the Rogue River, having walked a dozen yards away from his house and family and guests, momentarily weary of company. He stood six feet two inches in height, losing no more than an inch to a slight stoop. His hair was a dusty brown color, his eyebrows a lighter shade of the same. He had a well-proportioned frame and a sufficient amount of muscle, but he lacked any trace of fat; his muscles showed clearly beneath the skin, giving him an appearance of thinness.</p>
|
In the original, "sgc-2" meant something different in each file. In the converted one, "p5" means bold throughout, and I can safely rename it to that. I had already renamed whatever the body text class was to just p after moving the definitions around.