Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2015, 03:49 AM   #1
rip222
Junior Member
rip222 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2015
Device: none
Help me with the CSS code please

So was trying to edit a book in calibre and when I checked the book for errors it found a lot of errors. One of them is the following:
Spoiler:
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: none;">

<tr>
<td style="width: 3.2pt; border: solid windowtext 1pt; padding: 0 5.4pt 0 5.4pt;">
<p class="MsoNormal" align="center" style="text-align: center;">
<b><span style="font-family: &quot;Arial&quot;, sans-serif;">Способ</span></b></p>
</td>
<td style="width: 0.75in; border: solid windowtext 1pt; border-left: none; padding: 0 5.4pt 0 5.4pt;">
<p class="MsoNormal" align="center" style="margin-top: 6.25pt; text-align: center; line-height: 12.7pt;">
<b><span style="font-family: &quot;Arial&quot;, sans-serif;">%</span></b></p>
</td>
</tr>

<tr>
<td valign="top" style="width: 3.2in; border: solid windowtext 1pt; border-top: none; padding: 0 5.4pt 0 5.4pt;">
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Гормональные
препараты</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Женская
стерилизация</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Мужская
стерилизация</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Презервативы</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Внутри
маточные
устройства</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Диафрагмы</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Химические
препараты</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Прерываемое
половое
сношение</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Физиологические
методы</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Другие
способы
предохранения
менее</span></p>
<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;, sans-serif;">Отсутствие
контрацептивных
мер</span></p>
</td>
<td style="width: 0.75in; border-top: none; border-left: none; border-bottom: solid windowtext 1pt; border-right: solid windowtext 1pt; padding: 0 5.4pt 0 5.4pt;">
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">27</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">19</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">13</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">12</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">6</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">5</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">4</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">3</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">2</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">0,5</span></p>
<p class="MsoNormal" align="center" style="text-align: center;"><span style="font-family: &quot;Arial&quot;, sans-serif;">8</span></p>
</td>
</tr>

</table>


However I can't get what's wrong with it. Please assist me on this issue.
rip222 is offline   Reply With Quote
Old 09-01-2015, 04:08 AM   #2
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,008
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
I humbly suggest to point out the actual error for us mortals. I for myself have absolutely no clue about what could be wrong and why you think that it is wrong.
DrChiper is offline   Reply With Quote
Advert
Old 09-01-2015, 05:10 AM   #3
rip222
Junior Member
rip222 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2015
Device: none
Quote:
Originally Posted by DrChiper View Post
I humbly suggest to point out the actual error for us mortals. I for myself have absolutely no clue about what could be wrong and why you think that it is wrong.
I attached a jpg. The error calibre book editor found is highlighted
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	192
Size:	156.5 KB
ID:	141577  
rip222 is offline   Reply With Quote
Old 09-01-2015, 05:14 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,229
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
windowtext is not a valid color. Replace it with black or currentColor
kovidgoyal is offline   Reply With Quote
Old 09-01-2015, 05:33 AM   #5
rip222
Junior Member
rip222 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2015
Device: none
Quote:
Originally Posted by kovidgoyal View Post
windowtext is not a valid color. Replace it with black or currentColor
Thank you very much. It seems like it worked. Is it possible to correct all of the mistakes automatically, putting currentColor instead of windowtext? Because manual correction is really time-consuming.

If not, you could implement such an option in future updates of Calibre (since I know you are the creator of this application).

Anyways, thank you very much for solution!
rip222 is offline   Reply With Quote
Advert
Old 09-01-2015, 05:39 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,229
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use search and replace, that's what it is there for
kovidgoyal is offline   Reply With Quote
Old 09-01-2015, 05:42 AM   #7
rip222
Junior Member
rip222 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2015
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Use search and replace, that's what it is there for
Yea I use that method)
rip222 is offline   Reply With Quote
Old 09-02-2015, 05:43 PM   #8
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,326
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
FWIW, I would also add that you should move all of that inline styling into a css file. It will vastly improve the readability while you are editing...make the file much smaller - improving the ease of reader rendering... and make it easier for you to find errors.

Lines should look something like this:

<p>Отсутствие контрацептивных мер</p>

css:
p {font-family: Arial, sans-serif}


Cheers,
Turtle91 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
css code ignored in conversion barrytatt Conversion 2 12-26-2014 06:41 AM
Please help me with CSS code...am really lost Iroc ePub 21 03-31-2013 05:42 PM
CSS code for different screen sizes? clemens14 ePub 2 09-12-2011 07:37 PM
css override code for margins? Amalthia Calibre 15 08-11-2009 07:20 PM
css override code for <h2> and <h1> tags Amalthia Calibre 2 03-29-2009 06:51 PM


All times are GMT -4. The time now is 03:45 AM.


MobileRead.com is a privately owned, operated and funded community.