View Single Post
Old 03-06-2012, 05:48 AM   #375
Yoths
Enthusiast
Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.
 
Posts: 30
Karma: 15142
Join Date: Sep 2010
Device: SONY PRS-T1
Quote:
Originally Posted by Kolenka View Post
Sony usually uses ADE-compatible annotations/highlights
Does anyone know how to decrypt the SONY's/ADE's text position declarations (e.g. point(/1/4/2/6/1/1:101))?

Theoretically, the numbers after slashes are "children in the DOM tree starting from the document node and counting both element and text nodes". But in practice they count in a very strange way... Or they use not the original document but the internal parsed tree...

Example:

Source document:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Preface</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div>
<h3>PREFACE.</h3>
<hr class="spacing" />
<p><em>The chief beauty of this book lies not, so much in its literary
style, or in the extent and usefulness of the information it conveys,
as in its simple truthfulness. Its pages form the record of events that
really happened. All that has been done is to colour them; and, for
this, no extra charge has been made. George and Harris and Montmorency
are not Poetic ideals, but things of flesh and blood &mdash; especially
George, who weighs about twelve stone. Other works may excel this in
depth of thought and knowledge of human nature: other books may rival
it in originality and size; but, for hopeless and incurable veracity,
nothing yet discovered can surpass it. This, more than all its other
charms, will, it is felt, make the volume precious in the eye of the
earnest reader; and will lend additional weight to the lesson that the
story teaches.</em></p>
<p>LONDON, August, 1889
</p>
</div>
</body></html>
Marked text:
Code:
The chief beauty of this book lies not, so much in its literary
style, or in the extent and usefulnes
SONY/ADE text position declaration:
Code:
start="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1)" end="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:101)

Last edited by Yoths; 03-06-2012 at 05:59 AM.
Yoths is offline   Reply With Quote