Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2022, 02:51 PM   #226
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
If the only remaining use for the <i> tag is the names of ships, then we may as well change our style for naming ships to roman.
bookman156 is offline   Reply With Quote
Old 07-20-2022, 03:00 PM   #227
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,522
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You should use <span class="ship">, <span xml:lang="fr">, etc.
Jellby is offline   Reply With Quote
Old 07-20-2022, 03:03 PM   #228
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
You should use <span class="ship">
Yeah, of course, that makes sense. I don't name ships often.
bookman156 is offline   Reply With Quote
Old 07-20-2022, 03:20 PM   #229
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
<span xml:lang="fr">
So you'd add a class to that to get your words italic. In what contexts does declaring the spanned phrase as French help?
bookman156 is offline   Reply With Quote
Old 07-20-2022, 03:28 PM   #230
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,468
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 bookman156 View Post
That one's often flagged up to use only in a legal context as some tend to misunderstand the meaning. But why wouldn't a barrister then use that phrase? It's from Latin after all. (Or, you mean they wouldn't get it wrong then. No, I guess not.)
B-bu-but, it's not only in a legal context. Gadzooks!

In that time period, a barrister had, presumably, trained in debate at the very least. In no universe would he mistakenly use "begs the question" to mean asks the question. It's unique to debating--and legal arguments (!!!)--and thus, essential to his core being. (I say his confidently, given the time period.)

At this point (she said, exasperated), I guess I should be grateful that they're not saying "beggars the question." (BLERGH! Talk about mooshing and bastardizing...)

Quote:
My favourite pet hate is 'centres around'/'centers around'. You can't centre around, you can only centre on. BBC News gets this wrong all the time.
I hate to admit, I've been guilty of centering "around." (Although I believe--or perhaps I'd just like to believe--that I mostly use "on.") It's an abuse and a bastardization and I should flog myself. One of the downsides to running your own biz and doing so without a lot of other folks around is that you start to get sloppy in your speech and writing. (And on the Net...well. How often do you get to have a decently intelligent conversation like this one? Not bloody often.)

Hitch
Hitch is offline   Reply With Quote
Old 07-20-2022, 03:43 PM   #231
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,522
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by bookman156 View Post
So you'd add a class to that to get your words italic. In what contexts does declaring the spanned phrase as French help?
I don't recall right now if you can style xml:lang="fr" directly or you'd need a class (if you want it italic or whatever). As for the language tag itself, it helps (or could help, if properly implemented) in text-to-speech, hyphenation, dictionary lookups...
Jellby is offline   Reply With Quote
Old 07-20-2022, 03:52 PM   #232
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
B-bu-but, it's not only in a legal context. Gadzooks!
Of course, I wouldn't follow that recommendation, but nonetheless it's what Godfrey Howard in The Macmillan Good English Handbook recommends. Most of his other recommendations are pretty good though.
bookman156 is offline   Reply With Quote
Old 07-20-2022, 03:58 PM   #233
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
"beggars the question."
That presumably is a mix-up with 'beggars belief'. Can't say as I've seen it used much.
bookman156 is offline   Reply With Quote
Old 07-20-2022, 04:04 PM   #234
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
I hate to admit, I've been guilty of centering "around."
I bet you won't be guilty of it any more. I had this one pointed out to me by the Chief Sub-editor of The Sun and I've never got it wrong since.
bookman156 is offline   Reply With Quote
Old 07-20-2022, 04:08 PM   #235
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Another favourite is the difference between 'the past ten years' and 'the last ten years'. This was pointed out to me by the managing editor of another newspaper when I got it wrong, who drew a timeline of ten years on a scrap of paper and then a doodle of a nuclear explosion. 'That's the last ten years,' she said.
bookman156 is offline   Reply With Quote
Old 07-20-2022, 04:46 PM   #236
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,468
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 bookman156 View Post
Of course, I wouldn't follow that recommendation, but nonetheless it's what Godfrey Howard in The Macmillan Good English Handbook recommends. Most of his other recommendations are pretty good though.
Okay, fair 'nuff. I'm sure Howard meant well. (LOL) As a former debater, dammit, I am unwilling to give up my "begs..."

Quote:
Originally Posted by bookman156 View Post
That presumably is a mix-up with 'beggars belief'. Can't say as I've seen it used much.
YES and to me, it beggars belief that it's been conflated, merged and mooshed.

Quote:
Originally Posted by bookman156 View Post
I bet you won't be guilty of it any more. I had this one pointed out to me by the Chief Sub-editor of The Sun and I've never got it wrong since.
You know the one that still stings me, to this day? Penultimate. I was called out on that, more years ago than I'd like to admit to, and sure 'nuff, I have to bite my tongue not to say something to folks today when they use it to me "most ultimate" (and don't say it! No modifiers, I know. I mean, that's wrong in two ways...)

Quote:
Originally Posted by bookman156 View Post
Another favourite is the difference between 'the past ten years' and 'the last ten years'. This was pointed out to me by the managing editor of another newspaper when I got it wrong, who drew a timeline of ten years on a scrap of paper and then a doodle of a nuclear explosion. 'That's the last ten years,' she said.
YES that's one of my faves, too. Oh, damn there was something that was buzzing 'round in my noggin the other day...that's been irking me lately with newscasters. Hmph. It will come to me.

Hitch
Hitch is offline   Reply With Quote
Old 07-20-2022, 06:06 PM   #237
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 bookman156 View Post
So you'd add a class to that to get your words italic. In what contexts does declaring the spanned phrase as French help?
Proper HTML lang markup helps with:
  • Dictionary
    • Highlighting the French word, a device may pop up a French->English dictionary instead.
  • Translation
    • French->English translate may occur.
  • Text-to-Speech (TTS)
    • Can speak in the correct accent/model.
  • Hyphenation
    • Different languages have completely different hyphenation rules.
  • Spellchecking
    • Red squigglies.

Current, real-life use-cases?
  • Dictionary
    • Press-and-hold on a French word, get the French->English dictionary.
    • Press-and-hold on an English word, get the English dictionary.
  • Translation
    • EPUB readers, such as PocketBook, have in-line translation.
      • Similar to Google Translate on a website, PocketBook can translate and substitute, on-the-fly, the converted-to-English words.
  • Text-to-Speech
    • EPUB readers such as Thorium are able to take advantage of this. (Along with Screen Readers.)
      • French will be spoken by French TTS, English will be spoken by English TTS.
  • Hyphenation
    • While most programs only handle language at the document-/book-level, Kindles (KFX format) can currently go down to per-word.
    • LaTeX/Word/LibreOffice can also take full advantage of this.
  • Spellchecking
    • Way less red squigglies!
    • If you Right-Click a misspelled word, you may get more accurate recommendations.
    • Sigil/Calibre have the fantastic Spellcheck Lists. (Sortable, searchable lists of all words in the book + their language.)
    • Word/LibreOffice can also take advantage of this.

I've written about each of these things extensively. Most recently, see 2021: "Add xml:lang to ePub".

There are always new tools/updates happening. Things have gotten MUCH better on each of these fronts, even within the past few years.

(For example, because of my consistent nudging since 2016, Multi-Language Spellchecking is now a thing in both Sigil/Calibre.)

If you marked your HTML languages properly, boom, you automatically benefit from each of these enhancements as they come along.

Last edited by Tex2002ans; 07-20-2022 at 08:37 PM.
Tex2002ans is offline   Reply With Quote
Old 07-20-2022, 07:21 PM   #238
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Cheers Tex2002ans, that's really interesting. I particularly like the idea of getting a French dictionary for French words, that's pretty cool.

I've never actually thought about tagging foreign phrases in English text before. I do a lot of stuff with traditional Chinese, I may well build that in, it's interesting.

This page just has:

You have:

Quote:
lang="de" xml:lang="de"
What's the difference, if any? Is it best to just have both all the time?

And just to confirm, you'd need to add a span class to get say French into italic? Or can you directly style the language declaration?

Last edited by bookman156; 07-20-2022 at 07:33 PM.
bookman156 is offline   Reply With Quote
Old 07-20-2022, 07:59 PM   #239
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 bookman156 View Post
Cheers Tex2002ans, that's really interesting. I particularly like the idea of getting a French dictionary for French words, that's pretty cool.


Quote:
Originally Posted by bookman156 View Post
What's the difference, if any? Is it best to just have both all the time?
Use both all the time.

I described the reasons why in 2021: "Search and Replace" (Post #11).
  • HTML = lang
  • XHTML (or XML) = xml:lang

Most programs recognize both types, but there may be tools out there that only support 1 of the 2.

Quote:
Originally Posted by bookman156 View Post
I've never actually thought about tagging foreign phrases in English text before. I do a lot of stuff with traditional Chinese, I may well build that in, it's interesting.
Fantastic. Your life is a hell of a lot easier then!

Finding "foreign words" in alternate alphabets (like Greek/Chinese/Japanese) is much easier because you can use Spellcheck Lists + Reports—after you sort all words alphabetically, the Chinese words pop right out!

See my amazing mini-tutorial in:

and my topic where I described all the ins/outs:

Finding all the French in an English book is pretty painstaking, because they both use the Latin alphabet... but tagging all Chinese? Easy peasy. (Or should I say "easier peasier"?)

Quote:
Originally Posted by bookman156 View Post
And just to confirm, you'd need to add a span class to get say French into italic? Or can you directly style the language declaration?
Use:

Code:
<i class="french" lang="fr" xml:lang="fr">
The class is optional, but allows you to easily use basic CSS (which will work on everything):

Code:
i.french {
	font-color: red;
}
With advanced CSS selectors, you're able to choose based on languages:

Code:
i:lang(fr) {
	font-color: red;
}
but support for that across devices/ebooks might not be the best.

(For more info, see MDN article on ":lang()".)

* * *

Anyway, this thread should really stick to discussion on Italics/Emphasis.

If you want more info on HTML lang, read all those previous linked topics (and then create a separate, new thread, so it'll be infinitely easier to find in the future).

Last edited by Tex2002ans; 07-20-2022 at 08:44 PM.
Tex2002ans is offline   Reply With Quote
Old 07-20-2022, 09:36 PM   #240
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Fantastic, that's useful.

By the way, if you set Chinese with English in books with InDesign here's a fantastic technique that's good to know about. It automatically finds the Chinese and puts it in your desired Chinese font using GREP (I prefer 'Noto Sans CJK TC' for traditional Chinese):

https://www.scammell.co.uk/2012/04/2...dobe-indesign/
bookman156 is offline   Reply With Quote
Reply

Tags
semantic markup


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Span Span Span Sigil cleaning up indesign blackest Sigil 31 12-06-2017 10:16 AM
Span Span Span Span MULTIVAC ePub 7 12-06-2014 08:58 AM
Nested Span? Turtle91 ePub 4 05-20-2013 02:47 PM
span in span: is this problematic? tbuyus ePub 8 03-31-2013 08:01 AM
Remove <br /> together with span, and only span Razzia Recipes 3 05-30-2011 06:55 PM


All times are GMT -4. The time now is 08:42 PM.


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