Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-22-2020, 09:04 AM   #1
libre75
Enthusiast
libre75 began at the beginning.
 
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>
libre75 is offline   Reply With Quote
Old 03-22-2020, 09:19 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is online now   Reply With Quote
Old 03-22-2020, 10:21 AM   #3
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,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>
Turtle91 is offline   Reply With Quote
Old 03-22-2020, 12:07 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 03-22-2020, 12:50 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
Quote:
Originally Posted by Turtle91 View Post
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.
Inline code is NEVER necessary. There's never any reason to use it.
JSWolf is offline   Reply With Quote
Old 03-22-2020, 12:58 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Old 03-22-2020, 02:03 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is online now   Reply With Quote
Old 03-22-2020, 09:41 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by DiapDealer View Post
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.
Bored? Kinda. I'm working from home and, in many ways, its even worse than the late shift when I went into work. The number of distractions there were fewer so I tended to concentrate.

That said, being bored is no real excuse for taking that boredom out on the OP.
DNSB is offline   Reply With Quote
Old 03-25-2020, 11:10 AM   #9
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by DiapDealer View Post
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.
I'm absolutely that bored. While my biz is still muttering along, the entire damn world feels like we're in a GradeC Made-for-SciFi movie. It's tedious as hell.

(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
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:13 PM.


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