Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2017, 04:21 PM   #1
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Question about lang errors in Flight Crew check

I was making some minor changes to an epub and Flight Crew turned up all these lang errors (that I didn't notice before!). See screenshot. There are ten or so errors and they all refer to the same Spanish issues as in the screenshot.

The epub passes Doitsu's epub check and it passes the Int'l Digital Publishing Forum's EPUB validator.

I'm hoping the book is fine as it is but I wanted to ask about these lang issues just in case I had to do anything about them. (I'm hesitant to make any changes because I've looked at my Kindle and the spanish stuff looks fine in there (it's just italicized) and the book is selling and no one's complained about anything so I don't want to screw things up.)

Thanks.
Attached Thumbnails
Click image for larger version

Name:	Selection_058.png
Views:	161
Size:	191.1 KB
ID:	154527  
Gregg Bell is offline   Reply With Quote
Old 01-26-2017, 04:40 PM   #2
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: 73,987
Karma: 128903378
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 Gregg Bell View Post
I was making some minor changes to an epub and Flight Crew turned up all these lang errors (that I didn't notice before!). See screenshot. There are ten or so errors and they all refer to the same Spanish issues as in the screenshot.
I have no idea where this code came from, but you should not be using anything like <i lang="es" xml:lang="es">. You should be using <i>.
JSWolf is offline   Reply With Quote
Advert
Old 01-26-2017, 06:09 PM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
He is trying to identify the words in a foreign language used in a book predominately in English. From what I understand, using span tag instead of an italic would probably be better, but FlightCrew checks epub2 not epub2.1 so the language attribute lang= is not recognized by Flightcrew but is now legal! The attribute xml:lang= is a recognized attribute by FlightCrew. That is why most books tell you to use both attributes.

I would check this with Doitsu's epubcheck plugin. It is probably all okay. If it passes epubcheck, I would ignore it in FlightCrew as adding the lang= attribute came after Flightcrew was designed.

KevinH
KevinH is online now   Reply With Quote
Old 01-26-2017, 06:54 PM   #4
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: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Is FlightCrew ever going to be updated? If not, just stick with epubcheck that does get updated (IMHO).
JSWolf is offline   Reply With Quote
Old 01-26-2017, 07:12 PM   #5
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by JSWolf View Post
I have no idea where this code came from, but you should not be using anything like <i lang="es" xml:lang="es">. You should be using <i>.
Thanks Jon. Using the <i> would definitely simplify things. I didn't come up with the lang stuff. A friend who knows a ton suggested it. I just found an old email where he explained some of the benefits. The main thing was that it would identify the words as Spanish and give the spellchecker the ability to utilize a Spanish dictionary so there would not be those squiggly lines under the word identifying it as mispelled. And he said that it could come into play somehow with text-to-speech stuff.
Gregg Bell is offline   Reply With Quote
Advert
Old 01-26-2017, 07:27 PM   #6
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by KevinH View Post
He is trying to identify the words in a foreign language used in a book predominately in English. From what I understand, using span tag instead of an italic would probably be better, but FlightCrew checks epub2 not epub2.1 so the language attribute lang= is not recognized by Flightcrew but is now legal! The attribute xml:lang= is a recognized attribute by FlightCrew. That is why most books tell you to use both attributes.

I would check this with Doitsu's epubcheck plugin. It is probably all okay. If it passes epubcheck, I would ignore it in FlightCrew as adding the lang= attribute came after Flightcrew was designed.

KevinH
Thanks for the explanation, Kevin. My epub did pass Doitsu's epubcheck plugin. At least the second to last one. (I don't have the updated version yet. That will be another question.) A friend did the code and said the advantages were allowing a spell-checker to go to the Spanish dictionary to check the word, so there would be no squiggly red lines under the word identifying it as misspelled. And he said it could come into play with text to speech editors.

Since it looks okay in my Kindle I'm going to leave it.
Gregg Bell is offline   Reply With Quote
Old 01-26-2017, 08:46 PM   #7
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: 29,807
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Gregg Bell View Post
Thanks for the explanation, Kevin. My epub did pass Doitsu's epubcheck plugin. At least the second to last one. (I don't have the updated version yet. That will be another question.) A friend did the code and said the advantages were allowing a spell-checker to go to the Spanish dictionary to check the word, so there would be no squiggly red lines under the word identifying it as misspelled. And he said it could come into play with text to speech editors.

Since it looks okay in my Kindle I'm going to leave it.
I like your friends answer AFAIK the code is valid
As you noticed, many checkers are behind and many 'publishing' houses will give you grief over this valid code
theducks is offline   Reply With Quote
Old 01-27-2017, 12:33 AM   #8
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Gregg Bell View Post
The epub passes Doitsu's epub check and it passes the Int'l Digital Publishing Forum's EPUB validator.
@Gregg Bell: Actually, they're both the same tool. All my plugin does is run an offline version of the IDPF validator embedded in the plugin.

Quote:
Originally Posted by JSWolf View Post
I have no idea where this code came from, but you should not be using anything like <i lang="es" xml:lang="es">. You should be using <i>.
@JSWolf: Actually, the IDPF recommends the very syntax that Gregg Bell used. You really might want to refrain from posting unfounded statements.
Doitsu is offline   Reply With Quote
Old 01-27-2017, 01:09 AM   #9
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by theducks View Post
I like your friends answer AFAIK the code is valid
As you noticed, many checkers are behind and many 'publishing' houses will give you grief over this valid code
Thanks ducks
Gregg Bell is offline   Reply With Quote
Old 01-27-2017, 01:10 AM   #10
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by Doitsu View Post
@Gregg Bell: Actually, they're both the same tool. All my plugin does is run an offline version of the IDPF validator embedded in the plugin.
Ha ha. So I've been double checking things! Thanks Doitsu.
Gregg Bell is offline   Reply With Quote
Old 01-27-2017, 04:33 AM   #11
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Gregg Bell View Post
Thanks for the explanation, Kevin. My epub did pass Doitsu's epubcheck plugin. At least the second to last one. (I don't have the updated version yet. That will be another question.) A friend did the code and said the advantages were allowing a spell-checker to go to the Spanish dictionary to check the word, so there would be no squiggly red lines under the word identifying it as misspelled. And he said it could come into play with text to speech editors.

Since it looks okay in my Kindle I'm going to leave it.
The other thing it should do is trigger the appropriate dictionary in the ereader. On the Kobo ereaders, selecting a word like this will show the meaning from the language dictionary or the translation dictionary
davidfor is offline   Reply With Quote
Old 01-27-2017, 05:21 AM   #12
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Doitsu View Post
Actually, the IDPF recommends the very syntax that Gregg Bell used. You really might want to refrain from posting unfounded statements.
Great find.

Quote:
Originally Posted by davidfor View Post
The other thing it should do is trigger the appropriate dictionary in the ereader. On the Kobo ereaders, selecting a word like this will show the meaning from the language dictionary or the translation dictionary
Have you actually tested similar code to this on a Kobo? Does it automatically select the Spanish dictionary or a Spanish -> English translation?

I would also be interested if any of the Android readers (or iBooks?) implement different voices for English/Spanish text-to-speech.

EPUB3 Note: I know EPUB3 also tried to introduce a lot of the CSS3 voice stuff (like specifying Male/Female)... but not too sure how prevalent this stuff is in actual reading systems:

https://idpf.github.io/a11y-guidelin...ts/speech.html

Also, some markup + lang/xml:lang code might also allow you to introduce text-to-speech with American English (Male/Female), British English (Male/Female), Spanish, [...]. I could see something like that being helpful in a play... or your typical book.

Last edited by Tex2002ans; 01-27-2017 at 05:29 AM.
Tex2002ans is offline   Reply With Quote
Old 01-27-2017, 05:26 AM   #13
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: 73,987
Karma: 128903378
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 Doitsu View Post
@JSWolf: Actually, the IDPF recommends the very syntax that Gregg Bell used. You really might want to refrain from posting unfounded statements.
That's for ePub 3. Is this ePub 3 or ePub 2?
JSWolf is offline   Reply With Quote
Old 01-27-2017, 06:32 AM   #14
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
That's for ePub 3. Is this ePub 3 or ePub 2?
Doesn't matter. His code is valid either way. It's your "not liking it" that's irrelevant.
DiapDealer is offline   Reply With Quote
Old 01-27-2017, 07:31 AM   #15
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Tex2002ans View Post
Great find.
Have you actually tested similar code to this on a Kobo? Does it automatically select the Spanish dictionary or a Spanish -> English translation?
Looks like I have to take that back. I am sure I have tested this in the past and it did work. But, digging out a book I knew I had done this for, it doesn't work now. I'll have to see if I have some notes on this and see if I can work out what's happening.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I have 3 errors running my ebook thru VALIDATE using Flight Crew, any advice??? ThatNativeThomas Sigil 3 11-16-2015 01:40 PM
Flight Crew ValidateEpub method davidnwelton Sigil 11 11-04-2013 10:28 AM
Help please with Flight Crew error message ??? wannabee ePub 9 08-10-2011 09:27 AM
Flight Crew report crutledge Sigil 4 01-13-2011 07:06 PM
Flight Crew Hitch Sigil 2 10-29-2010 05:28 AM


All times are GMT -4. The time now is 04:35 PM.


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