![]() |
#1 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
|
Duplicate id
Hi Guys, the validator signals me an error while reading "duplicate '_s'
I don't understand what this duplication is, I don't see it, can you help me? Here is the code: <div style="clear:both; mso-break-type:section-break; page-break-before:auto"><p style="font-size:16pt; line-height:150%; page-break-before:always"><span style="font-family:Arial, sans-serif; font-size:16pt; font-weight:bold">Prima </span><a id="_s"></a><span style="font-family:Arial, sans-serif; font-size:16pt; font-weight:bold">settimana</span></p> |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,572
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It means that some other element in the same file has the id "_s". That's not allowed.
|
![]() |
![]() |
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,353
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
|
Just a piece of, unasked for, advice:
Try not to use inline styles unless it is absolutely necessary. It bloats your code, making it much harder to edit, and longer for the device/app to load and render. Instead, use a CSS file. Your HTML code will look something like this: Code:
instead of: <div style="clear:both; mso-break-type:section-break; page-break-before:auto"> <p style="font-size:16pt; line-height:150%; page-break-before:always"> <span style="font-family:Arial, sans-serif; font-size:16pt; font-weight:bold">Prima </span> <a id="_s"></a> <span style="font-family:Arial, sans-serif; font-size:16pt; font-weight:bold">settimana</span></p> use CSS: h3 {font-size:2em; font-family:Arial, sans-serif; font-weight:bold} and HTML: <h3>Prima settimana</h3> |
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Another piece of unasked for advice, if you are creating an ebook that will be read by others, do not force fonts. Fonts which look good on your LCD monitor are very often not as good looking on a smaller device or an e-Ink display. You may also want to consider that fonts such as Arial which is owned by Monotype and has a cost associated with embedding are a bad choice when producing books for others to read.
Two other items are specifying fonts sizes in absolute values (16pt in your sample) is not a good idea and you might also want to remove the Microsoft specific bits since there is no guarantee that your renderer will understand it (a renderer is the software that translates your work into pixels) or handle a failure to understand it correctly. Last edited by DNSB; 03-22-2020 at 12:13 PM. |
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Inline code is NEVER necessary. There's never any reason to use it.
|
![]() |
![]() |
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Yet another piece of unasked for advice.
Take the Word document and remove all formatting and use styles properly. If you use styles, you will avoid a lot of that very messy code that you have in your Word document. That will make your ePub a lot neater and easier to edit. If you don't understand styles or want to see how to use styles, have a look at this video. Last edited by JSWolf; 03-22-2020 at 01:01 PM. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,572
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
OK folks. Enough of the unasked for advice. It's starting to feel a bit like the OP is being ganged up on. Are we really THAT bored that we have to completely dissect a code snippet that was posted instead of just answering the simple question asked? One thing at a time.
This place can be intimidating enough for neophytes. No need for the information overload. |
![]() |
![]() |
![]() |
#8 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
That said, being bored is no real excuse for taking that boredom out on the OP. |
|
![]() |
![]() |
![]() |
#9 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
(Altho I do agree, ganging up is not needed for any purpose. Forums...it's always the way...everybody does it, albeit here typically well-intentioned...) Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't See Any Way to Duplicate a Book... | MarjaE | Library Management | 6 | 09-12-2016 08:35 AM |
Have many duplicate files | Jaejae | Calibre | 10 | 04-26-2016 08:16 PM |
Duplicate books?? | Robocop | Amazon Kindle | 3 | 07-24-2014 06:21 PM |
Duplicate Titles | Fbone | Calibre | 4 | 04-07-2014 12:52 PM |
Best way to choose which duplicate to keep? | collin8579 | Calibre | 3 | 03-27-2012 12:02 AM |