02-28-2011, 12:13 PM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
what is this code supposed to do ?
found in several places in an epub that I've been tweaking:
Code:
<address class="calibre11" w:st="on"> Unseelie Court </address> & an address tag makes no sens in an e-book context ? the calibre style just adds italics. .calibre11 { display: block; font-style: italic } |
02-28-2011, 01:05 PM | #2 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
If I'm not mistaken, "w:st" would mean "the 'st' property from the 'w' namespace which was defined previously). But anyway, as you say, <address> is not in the supported tag set of ePUB, so it shouldn't be there at all.
|
Advert | |
|
02-28-2011, 01:21 PM | #3 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
I suspect they are leftovers from some other format - maybe MSword ? I don't get the namespace concept at all here ? the only namespace mention in css is @namespace h "http://www.w3.org/1999/xhtml"; |
|
02-28-2011, 04:26 PM | #4 | |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
In conversions, it should be only rendered as italic, what happens, is it causes unwanted line breaks. Code:
<p> Jason went to</p< <address>El Camino Real"</address> <p> to catch the 22 bus.</p> |
|
02-28-2011, 04:36 PM | #5 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
so what would your example code do on a web page, or in a document - it has no attached URL so I don't get the point of it, still ? is it just a style thing ? |
|
Advert | |
|
02-28-2011, 07:51 PM | #6 | |
Well trained by Cats
Posts: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
There is no URL in the book (HTML version) |
|
03-01-2011, 08:46 AM | #7 | ||
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
03-01-2011, 09:46 PM | #8 | |
Enquiring Mind
Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Quote:
The <address> tag is really meant to code something as a meaningful address, such as the address of the author of a page, or the company whose website it is, etc. It's not intended for web addresses with URLs - it's meant for use with bricks and mortar addresses. In theory, the software being used to access the web page could then extract the info and present it to the user on request. In practice, the <address> tag is hardly ever used, and I don't know of any software that makes use of it to extract the information. |
|
03-03-2011, 10:23 PM | #9 |
Grand Sorcerer
Posts: 6,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
If I'm not mistaken those <address> tags have been created when saving an MSWord document to HTML. The option SaveAs Webpage has been used, rather than the preferable Webpage-filtered. I believe they are Word "smart tags" and that the w:st="on" bit probably means that the Word smart tags feature was set to "on" when the original .doc was saved to HTML.
|
03-04-2011, 01:51 AM | #10 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I know I am not supposed to create multiple libraries, but . . . | Sydney's Mom | Calibre | 10 | 09-02-2010 10:42 AM |
Kindle books supposed to be cheaper? | freezer2k | Amazon Kindle | 35 | 08-26-2010 06:12 PM |
how is the dictionary of OI supposed to work? | humore | OpenInkpot | 2 | 07-11-2010 07:00 AM |
Let's create a source code repository for DR 800 related code? | jraf | iRex | 3 | 03-11-2010 12:26 PM |
Supposed linux code for Kindle | Dragoro | Amazon Kindle | 2 | 03-17-2009 06:25 AM |