From a12404dc3efedfea25dd288631b66f8407ed2a3a Mon Sep 17 00:00:00 2001 From: Oleksandr Danylchenko Date: Mon, 1 Jul 2024 19:52:38 +0300 Subject: [PATCH 1/2] Added height-based underline offset handling --- .../text-annotator/src/highlight/span/spansRenderer.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/text-annotator/src/highlight/span/spansRenderer.ts b/packages/text-annotator/src/highlight/span/spansRenderer.ts index b6026726..705e06ee 100644 --- a/packages/text-annotator/src/highlight/span/spansRenderer.ts +++ b/packages/text-annotator/src/highlight/span/spansRenderer.ts @@ -2,7 +2,7 @@ import type { ViewportState } from '@annotorious/core'; import { colord } from 'colord'; import { dequal } from 'dequal/lite'; import type { Rect, TextAnnotatorState } from '../../state'; -import { paint, type HighlightPainter } from '../HighlightPainter'; +import { type HighlightPainter, paint } from '../HighlightPainter'; import type { ViewportBounds } from '../viewport'; import { createBaseRenderer, type RendererImplementation } from '../baseRenderer'; import type { Highlight } from '../Highlight'; @@ -71,12 +71,10 @@ const createRenderer = (container: HTMLElement): RendererImplementation => { span.style.width = `${rect.width}px`; span.style.height = `${rect.height}px`; - const backgroundColor = colord(style?.fill || DEFAULT_STYLE.fill) + span.style.backgroundColor = colord(style?.fill || DEFAULT_STYLE.fill) .alpha(style?.fillOpacity === undefined ? DEFAULT_STYLE.fillOpacity : style.fillOpacity) .toHex(); - span.style.backgroundColor = backgroundColor; - if (style.underlineStyle) span.style.borderStyle = style.underlineStyle; @@ -87,7 +85,7 @@ const createRenderer = (container: HTMLElement): RendererImplementation => { span.style.borderBottomWidth = `${style.underlineThickness}px`; if (style.underlineOffset) - span.style.paddingBottom = `${style.underlineOffset}px`; + span.style.height = `${rect.height + style.underlineOffset}px` highlightLayer.appendChild(span); } From dfdaeb99b40b110956fa834386f7bff41673e2cb Mon Sep 17 00:00:00 2001 From: Oleksandr Danylchenko Date: Mon, 1 Jul 2024 20:01:49 +0300 Subject: [PATCH 2/2] Added `box-sizing: border-box` definition to the examples --- packages/extension-tei/test/index.html | 134 ++-- packages/text-annotator-react/test/index.html | 80 +- packages/text-annotator/test/index.html | 751 +++++++++--------- 3 files changed, 489 insertions(+), 476 deletions(-) diff --git a/packages/extension-tei/test/index.html b/packages/extension-tei/test/index.html index 13624dfe..e0c2247b 100644 --- a/packages/extension-tei/test/index.html +++ b/packages/extension-tei/test/index.html @@ -6,83 +6,87 @@ -
-
+
+
+ + + anno.on('viewportIntersect', (annotations) => { + console.log('viewport', annotations); + }); + }); + }; + - \ No newline at end of file + diff --git a/packages/text-annotator-react/test/index.html b/packages/text-annotator-react/test/index.html index f0508218..f9076606 100644 --- a/packages/text-annotator-react/test/index.html +++ b/packages/text-annotator-react/test/index.html @@ -5,49 +5,53 @@ RecogitoJS React -
- - +
+ + - \ No newline at end of file + diff --git a/packages/text-annotator/test/index.html b/packages/text-annotator/test/index.html index 18db98c0..ad9055d3 100644 --- a/packages/text-annotator/test/index.html +++ b/packages/text-annotator/test/index.html @@ -5,395 +5,400 @@ RecogitoJS 3 - - - -
- - -
- -
-

Homer: The Odyssey

- -

- Tell me, O muse, of that ingenious hero who travelled far and wide after he had sacked the famous town of Troy. - Many cities did he visit, and many were the nations with whose manners and customs he was acquainted; moreover - he suffered much by sea while trying to save his own life and bring his men safely home; but do what he might he - could not save his men, for they perished through their own sheer folly in eating the cattle of the Sun-god - Hyperion; so the god prevented them from ever reaching home. Tell me, too, about all these things, O daughter of - Jove, from whatsoever source you may know them. -

- -
- Parent not annotabtale! - And its sub-element -
- -

- So now all who escaped death in battle or by shipwreck had got safely home except Ulysses, and he, though he was - longing to return to his wife and country, was detained by the goddess Calypso, who had got him into a large - cave and wanted to marry him. But as years went by, there came a time when the gods settled that he should go - back to Ithaca; even then, however, when he was among his own people, his troubles were not yet over; - nevertheless all the gods had now begun to pity him except Neptune, who still persecuted him without ceasing and - would not let him get home. -

- -
- Parent annotatable! - But its sub-element is not! -
- -

- Now Neptune had gone off to the Ethiopians, who are at the world's end, and lie in two halves, the one looking - West and the other East. He had gone there to accept a hecatomb of sheep and oxen, and was enjoying himself at - his festival; but the other gods met in the house of Olympian Jove, and the sire of gods and men spoke first. At - that moment he was thinking of Aegisthus, who had been killed by Agamemnon's son Orestes; so he said to the - other gods: -

- -
-

Not annotatable block!

-

- "See now, how men lay blame upon us gods for what is after all nothing but their own folly. Look at Aegisthus; - he must needs make love to Agamemnon's wife unrighteously and then kill Agamemnon, though he knew it would be - the death of him; for I sent Mercury to warn him not to do either of these things, inasmuch as Orestes would be - sure to take his revenge when he grew up and wanted to return home. Mercury told him this in all good will but - he would not listen, and now he has paid for everything in full." -

-
- -

- Then Minerva said, "Father, son of Saturn, King of kings, it served Aegisthus right, and so it would any one - else who does as he did; but Aegisthus is neither here nor there; it is for Ulysses that my heart bleeds, when I - think of his sufferings in that lonely sea-girt island, far away, poor man, from all his friends. It is an - island covered with forest, in the very middle of the sea, and a goddess lives there, daughter of the magician - Atlas, who looks after the bottom of the ocean, and carries the great columns that keep heaven and earth - asunder. This daughter of Atlas has got hold of poor unhappy Ulysses, and keeps trying by every kind of - blandishment to make him forget his home, so that he is tired of life, and thinks of nothing but how he may once - more see the smoke of his own chimneys. You, sir, take no heed of this, and yet when Ulysses was before Troy did - he not propitiate you with many a burnt sacrifice? Why then should you keep on being so angry with him?" -

- -

- And Jove said, "My child, what are you talking about? How can I forget Ulysses than whom there is no more - capable man on earth, nor more liberal in his offerings to the immortal gods that live in heaven? Bear in mind, - however, that Neptune is still furious with Ulysses for having blinded an eye of Polyphemus king of the - Cyclopes. Polyphemus is son to Neptune by the nymph Thoosa, daughter to the sea-king Phorcys; therefore though - he will not kill Ulysses outright, he torments him by preventing him from getting home. Still, let us lay our - heads together and see how we can help him to return; Neptune will then be pacified, for if we are all of a mind - he can hardly stand out against us." -

- -

- And Minerva said, "Father, son of Saturn, King of kings, if, then, the gods now mean that Ulysses should get - home, we should first send Mercury to the Ogygian island to tell Calypso that we have made up our minds and that - he is to return. In the meantime I will go to Ithaca, to put heart into Ulysses' son Telemachus; I will embolden - him to call the Achaeans in assembly, and speak out to the suitors of his mother Penelope, who persist in eating - up any number of his sheep and oxen; I will also conduct him to Sparta and to Pylos, to see if he can hear - anything about the return of his dear father- for this will make people speak well of him." -

- -

- Tell me, O muse, of that ingenious hero who travelled far and wide after he had sacked the famous town of Troy. - Many cities did he visit, and many were the nations with whose manners and customs he was acquainted; moreover - he suffered much by sea while trying to save his own life and bring his men safely home; but do what he might he - could not save his men, for they perished through their own sheer folly in eating the cattle of the Sun-god - Hyperion; so the god prevented them from ever reaching home. Tell me, too, about all these things, O daughter of - Jove, from whatsoever source you may know them. -

- -

- So now all who escaped death in battle or by shipwreck had got safely home except Ulysses, and he, though he was - longing to return to his wife and country, was detained by the goddess Calypso, who had got him into a large - cave and wanted to marry him. But as years went by, there came a time when the gods settled that he should go - back to Ithaca; even then, however, when he was among his own people, his troubles were not yet over; - nevertheless all the gods had now begun to pity him except Neptune, who still persecuted him without ceasing and - would not let him get home. -

+ *, *:before, *:after { + box-sizing: border-box; + } -

- Now Neptune had gone off to the Ethiopians, who are at the world's end, and lie in two halves, the one looking - West and the other East. He had gone there to accept a hecatomb of sheep and oxen, and was enjoying himself at - his festival; but the other gods met in the house of Olympian Jove, and the sire of gods and men spoke first. At - that moment he was thinking of Aegisthus, who had been killed by Agamemnon's son Orestes; so he said to the - other gods: -

+ html, body { + background: #e2e2e2; + padding: 0; + margin: 0; + display: flex; + flex-direction: row; + justify-content: center; + } -

- "See now, how men lay blame upon us gods for what is after all nothing but their own folly. Look at Aegisthus; - he must needs make love to Agamemnon's wife unrighteously and then kill Agamemnon, though he knew it would be - the death of him; for I sent Mercury to warn him not to do either of these things, inasmuch as Orestes would be - sure to take his revenge when he grew up and wanted to return home. Mercury told him this in all good will but - he would not listen, and now he has paid for everything in full." -

+ #content { + max-width: 800px; + background-color: #fff; + padding: 40px; + border-style: solid; + border-color: #cfcfcf; + border-width: 0 1px; + } -

- Then Minerva said, "Father, son of Saturn, King of kings, it served Aegisthus right, and so it would any one - else who does as he did; but Aegisthus is neither here nor there; it is for Ulysses that my heart bleeds, when I - think of his sufferings in that lonely sea-girt island, far away, poor man, from all his friends. It is an - island covered with forest, in the very middle of the sea, and a goddess lives there, daughter of the magician - Atlas, who looks after the bottom of the ocean, and carries the great columns that keep heaven and earth - asunder. This daughter of Atlas has got hold of poor unhappy Ulysses, and keeps trying by every kind of - blandishment to make him forget his home, so that he is tired of life, and thinks of nothing but how he may once - more see the smoke of his own chimneys. You, sir, take no heed of this, and yet when Ulysses was before Troy did - he not propitiate you with many a burnt sacrifice? Why then should you keep on being so angry with him?" -

+ #content .not-annotatable { + color: dimgray; + border: 3px solid wheat; + } -

- And Jove said, "My child, what are you talking about? How can I forget Ulysses than whom there is no more - capable man on earth, nor more liberal in his offerings to the immortal gods that live in heaven? Bear in mind, - however, that Neptune is still furious with Ulysses for having blinded an eye of Polyphemus king of the - Cyclopes. Polyphemus is son to Neptune by the nymph Thoosa, daughter to the sea-king Phorcys; therefore though - he will not kill Ulysses outright, he torments him by preventing him from getting home. Still, let us lay our - heads together and see how we can help him to return; Neptune will then be pacified, for if we are all of a mind - he can hardly stand out against us." -

+ h1 { + margin: 0; + padding: 0 0 20px 0; + } -

- And Minerva said, "Father, son of Saturn, King of kings, if, then, the gods now mean that Ulysses should get - home, we should first send Mercury to the Ogygian island to tell Calypso that we have made up our minds and that - he is to return. In the meantime I will go to Ithaca, to put heart into Ulysses' son Telemachus; I will embolden - him to call the Achaeans in assembly, and speak out to the suitors of his mother Penelope, who persist in eating - up any number of his sheep and oxen; I will also conduct him to Sparta and to Pylos, to see if he can hear - anything about the return of his dear father- for this will make people speak well of him." -

+ p { + font-size: 17px; + line-height: 160%; + } -

- Tell me, O muse, of that ingenious hero who travelled far and wide after he had sacked the famous town of Troy. - Many cities did he visit, and many were the nations with whose manners and customs he was acquainted; moreover - he suffered much by sea while trying to save his own life and bring his men safely home; but do what he might he - could not save his men, for they perished through their own sheer folly in eating the cattle of the Sun-god - Hyperion; so the god prevented them from ever reaching home. Tell me, too, about all these things, O daughter of - Jove, from whatsoever source you may know them. -

+ #buttons { + position: fixed; + top: 10px; + left: 10px; + z-index: 1; + } -

- So now all who escaped death in battle or by shipwreck had got safely home except Ulysses, and he, though he was - longing to return to his wife and country, was detained by the goddess Calypso, who had got him into a large - cave and wanted to marry him. But as years went by, there came a time when the gods settled that he should go - back to Ithaca; even then, however, when he was among his own people, his troubles were not yet over; - nevertheless all the gods had now begun to pity him except Neptune, who still persecuted him without ceasing and - would not let him get home. -

+ #debug { + position: fixed; + top: 0; + left: 0; + width: 100%; + text-align: right; + background-color: rgba(0, 0, 0, 0.75); + } -

- Now Neptune had gone off to the Ethiopians, who are at the world's end, and lie in two halves, the one looking - West and the other East. He had gone there to accept a hecatomb of sheep and oxen, and was enjoying himself at - his festival; but the other gods met in the house of Olympian Jove, and the sire of gods and men spoke first. At - that moment he was thinking of Aegisthus, who had been killed by Agamemnon's son Orestes; so he said to the - other gods: -

+ #debug p { + padding: 0; + margin: 0; + font-size: 0.8em; + color: #fff; + } + + + +
+ + +
+ +
+

Homer: The Odyssey

+ +

+ Tell me, O muse, of that ingenious hero who travelled far and wide after he had sacked the famous town of Troy. + Many cities did he visit, and many were the nations with whose manners and customs he was acquainted; moreover + he suffered much by sea while trying to save his own life and bring his men safely home; but do what he might he + could not save his men, for they perished through their own sheer folly in eating the cattle of the Sun-god + Hyperion; so the god prevented them from ever reaching home. Tell me, too, about all these things, O daughter of + Jove, from whatsoever source you may know them. +

+ +
+ Parent not annotabtale! + And its sub-element +
+ +

+ So now all who escaped death in battle or by shipwreck had got safely home except Ulysses, and he, though he was + longing to return to his wife and country, was detained by the goddess Calypso, who had got him into a large + cave and wanted to marry him. But as years went by, there came a time when the gods settled that he should go + back to Ithaca; even then, however, when he was among his own people, his troubles were not yet over; + nevertheless all the gods had now begun to pity him except Neptune, who still persecuted him without ceasing and + would not let him get home. +

+ +
+ Parent annotatable! + But its sub-element is not! +
+ +

+ Now Neptune had gone off to the Ethiopians, who are at the world's end, and lie in two halves, the one looking + West and the other East. He had gone there to accept a hecatomb of sheep and oxen, and was enjoying himself at + his festival; but the other gods met in the house of Olympian Jove, and the sire of gods and men spoke first. At + that moment he was thinking of Aegisthus, who had been killed by Agamemnon's son Orestes; so he said to the + other gods: +

+ +
+

Not annotatable block!

"See now, how men lay blame upon us gods for what is after all nothing but their own folly. Look at Aegisthus; he must needs make love to Agamemnon's wife unrighteously and then kill Agamemnon, though he knew it would be - the death of him; for I sent Mercury to warn him not to do either of these things, inasmuch as Orestes would be + the death of him; for I sent Mercury to warn him not to do either of these + things, inasmuch as Orestes would be sure to take his revenge when he grew up and wanted to return home. Mercury told him this in all good will but he would not listen, and now he has paid for everything in full."

- -

- Then Minerva said, "Father, son of Saturn, King of kings, it served Aegisthus right, and so it would any one - else who does as he did; but Aegisthus is neither here nor there; it is for Ulysses that my heart bleeds, when I - think of his sufferings in that lonely sea-girt island, far away, poor man, from all his friends. It is an - island covered with forest, in the very middle of the sea, and a goddess lives there, daughter of the magician - Atlas, who looks after the bottom of the ocean, and carries the great columns that keep heaven and earth - asunder. This daughter of Atlas has got hold of poor unhappy Ulysses, and keeps trying by every kind of - blandishment to make him forget his home, so that he is tired of life, and thinks of nothing but how he may once - more see the smoke of his own chimneys. You, sir, take no heed of this, and yet when Ulysses was before Troy did - he not propitiate you with many a burnt sacrifice? Why then should you keep on being so angry with him?" -

- -

- And Jove said, "My child, what are you talking about? How can I forget Ulysses than whom there is no more - capable man on earth, nor more liberal in his offerings to the immortal gods that live in heaven? Bear in mind, - however, that Neptune is still furious with Ulysses for having blinded an eye of Polyphemus king of the - Cyclopes. Polyphemus is son to Neptune by the nymph Thoosa, daughter to the sea-king Phorcys; therefore though - he will not kill Ulysses outright, he torments him by preventing him from getting home. Still, let us lay our - heads together and see how we can help him to return; Neptune will then be pacified, for if we are all of a mind - he can hardly stand out against us." -

- -

- And Minerva said, "Father, son of Saturn, King of kings, if, then, the gods now mean that Ulysses should get - home, we should first send Mercury to the Ogygian island to tell Calypso that we have made up our minds and that - he is to return. In the meantime I will go to Ithaca, to put heart into Ulysses' son Telemachus; I will embolden - him to call the Achaeans in assembly, and speak out to the suitors of his mother Penelope, who persist in eating - up any number of his sheep and oxen; I will also conduct him to Sparta and to Pylos, to see if he can hear - anything about the return of his dear father- for this will make people speak well of him." -

- +

+ Then Minerva said, "Father, son of Saturn, King of kings, it served Aegisthus right, and so it would any one + else who does as he did; but Aegisthus is neither here nor there; it is for Ulysses that my heart bleeds, when I + think of his sufferings in that lonely sea-girt island, far away, poor man, from all his friends. It is an + island covered with forest, in the very middle of the sea, and a goddess lives there, daughter of the magician + Atlas, who looks after the bottom of the ocean, and carries the great columns that keep heaven and earth + asunder. This daughter of Atlas has got hold of poor unhappy Ulysses, and keeps trying by every kind of + blandishment to make him forget his home, so that he is tired of life, and thinks of nothing but how he may once + more see the smoke of his own chimneys. You, sir, take no heed of this, and yet when Ulysses was before Troy did + he not propitiate you with many a burnt sacrifice? Why then should you keep on being so angry with him?" +

+ +

+ And Jove said, "My child, what are you talking about? How can I forget Ulysses than whom there is no more + capable man on earth, nor more liberal in his offerings to the immortal gods that live in heaven? Bear in mind, + however, that Neptune is still furious with Ulysses for having blinded an eye of Polyphemus king of the + Cyclopes. Polyphemus is son to Neptune by the nymph Thoosa, daughter to the sea-king Phorcys; therefore though + he will not kill Ulysses outright, he torments him by preventing him from getting home. Still, let us lay our + heads together and see how we can help him to return; Neptune will then be pacified, for if we are all of a mind + he can hardly stand out against us." +

+ +

+ And Minerva said, "Father, son of Saturn, King of kings, if, then, the gods now mean that Ulysses should get + home, we should first send Mercury to the Ogygian island to tell Calypso that we have made up our minds and that + he is to return. In the meantime I will go to Ithaca, to put heart into Ulysses' son Telemachus; I will embolden + him to call the Achaeans in assembly, and speak out to the suitors of his mother Penelope, who persist in eating + up any number of his sheep and oxen; I will also conduct him to Sparta and to Pylos, to see if he can hear + anything about the return of his dear father- for this will make people speak well of him." +

+ +

+ Tell me, O muse, of that ingenious hero who travelled far and wide after he had sacked the famous town of Troy. + Many cities did he visit, and many were the nations with whose manners and customs he was acquainted; moreover + he suffered much by sea while trying to save his own life and bring his men safely home; but do what he might he + could not save his men, for they perished through their own sheer folly in eating the cattle of the Sun-god + Hyperion; so the god prevented them from ever reaching home. Tell me, too, about all these things, O daughter of + Jove, from whatsoever source you may know them. +

+ +

+ So now all who escaped death in battle or by shipwreck had got safely home except Ulysses, and he, though he was + longing to return to his wife and country, was detained by the goddess Calypso, who had got him into a large + cave and wanted to marry him. But as years went by, there came a time when the gods settled that he should go + back to Ithaca; even then, however, when he was among his own people, his troubles were not yet over; + nevertheless all the gods had now begun to pity him except Neptune, who still persecuted him without ceasing and + would not let him get home. +

+ +

+ Now Neptune had gone off to the Ethiopians, who are at the world's end, and lie in two halves, the one looking + West and the other East. He had gone there to accept a hecatomb of sheep and oxen, and was enjoying himself at + his festival; but the other gods met in the house of Olympian Jove, and the sire of gods and men spoke first. At + that moment he was thinking of Aegisthus, who had been killed by Agamemnon's son Orestes; so he said to the + other gods: +

+ +

+ "See now, how men lay blame upon us gods for what is after all nothing but their own folly. Look at Aegisthus; + he must needs make love to Agamemnon's wife unrighteously and then kill Agamemnon, though he knew it would be + the death of him; for I sent Mercury to warn him not to do either of these things, inasmuch as Orestes would be + sure to take his revenge when he grew up and wanted to return home. Mercury told him this in all good will but + he would not listen, and now he has paid for everything in full." +

+ +

+ Then Minerva said, "Father, son of Saturn, King of kings, it served Aegisthus right, and so it would any one + else who does as he did; but Aegisthus is neither here nor there; it is for Ulysses that my heart bleeds, when I + think of his sufferings in that lonely sea-girt island, far away, poor man, from all his friends. It is an + island covered with forest, in the very middle of the sea, and a goddess lives there, daughter of the magician + Atlas, who looks after the bottom of the ocean, and carries the great columns that keep heaven and earth + asunder. This daughter of Atlas has got hold of poor unhappy Ulysses, and keeps trying by every kind of + blandishment to make him forget his home, so that he is tired of life, and thinks of nothing but how he may once + more see the smoke of his own chimneys. You, sir, take no heed of this, and yet when Ulysses was before Troy did + he not propitiate you with many a burnt sacrifice? Why then should you keep on being so angry with him?" +

+ +

+ And Jove said, "My child, what are you talking about? How can I forget Ulysses than whom there is no more + capable man on earth, nor more liberal in his offerings to the immortal gods that live in heaven? Bear in mind, + however, that Neptune is still furious with Ulysses for having blinded an eye of Polyphemus king of the + Cyclopes. Polyphemus is son to Neptune by the nymph Thoosa, daughter to the sea-king Phorcys; therefore though + he will not kill Ulysses outright, he torments him by preventing him from getting home. Still, let us lay our + heads together and see how we can help him to return; Neptune will then be pacified, for if we are all of a mind + he can hardly stand out against us." +

+ +

+ And Minerva said, "Father, son of Saturn, King of kings, if, then, the gods now mean that Ulysses should get + home, we should first send Mercury to the Ogygian island to tell Calypso that we have made up our minds and that + he is to return. In the meantime I will go to Ithaca, to put heart into Ulysses' son Telemachus; I will embolden + him to call the Achaeans in assembly, and speak out to the suitors of his mother Penelope, who persist in eating + up any number of his sheep and oxen; I will also conduct him to Sparta and to Pylos, to see if he can hear + anything about the return of his dear father- for this will make people speak well of him." +

+ +

+ Tell me, O muse, of that ingenious hero who travelled far and wide after he had sacked the famous town of Troy. + Many cities did he visit, and many were the nations with whose manners and customs he was acquainted; moreover + he suffered much by sea while trying to save his own life and bring his men safely home; but do what he might he + could not save his men, for they perished through their own sheer folly in eating the cattle of the Sun-god + Hyperion; so the god prevented them from ever reaching home. Tell me, too, about all these things, O daughter of + Jove, from whatsoever source you may know them. +

+ +

+ So now all who escaped death in battle or by shipwreck had got safely home except Ulysses, and he, though he was + longing to return to his wife and country, was detained by the goddess Calypso, who had got him into a large + cave and wanted to marry him. But as years went by, there came a time when the gods settled that he should go + back to Ithaca; even then, however, when he was among his own people, his troubles were not yet over; + nevertheless all the gods had now begun to pity him except Neptune, who still persecuted him without ceasing and + would not let him get home. +

+ +

+ Now Neptune had gone off to the Ethiopians, who are at the world's end, and lie in two halves, the one looking + West and the other East. He had gone there to accept a hecatomb of sheep and oxen, and was enjoying himself at + his festival; but the other gods met in the house of Olympian Jove, and the sire of gods and men spoke first. At + that moment he was thinking of Aegisthus, who had been killed by Agamemnon's son Orestes; so he said to the + other gods: +

+ +

+ "See now, how men lay blame upon us gods for what is after all nothing but their own folly. Look at Aegisthus; + he must needs make love to Agamemnon's wife unrighteously and then kill Agamemnon, though he knew it would be + the death of him; for I sent Mercury to warn him not to do either of these things, inasmuch as Orestes would be + sure to take his revenge when he grew up and wanted to return home. Mercury told him this in all good will but + he would not listen, and now he has paid for everything in full." +

+ +

+ Then Minerva said, "Father, son of Saturn, King of kings, it served Aegisthus right, and so it would any one + else who does as he did; but Aegisthus is neither here nor there; it is for Ulysses that my heart bleeds, when I + think of his sufferings in that lonely sea-girt island, far away, poor man, from all his friends. It is an + island covered with forest, in the very middle of the sea, and a goddess lives there, daughter of the magician + Atlas, who looks after the bottom of the ocean, and carries the great columns that keep heaven and earth + asunder. This daughter of Atlas has got hold of poor unhappy Ulysses, and keeps trying by every kind of + blandishment to make him forget his home, so that he is tired of life, and thinks of nothing but how he may once + more see the smoke of his own chimneys. You, sir, take no heed of this, and yet when Ulysses was before Troy did + he not propitiate you with many a burnt sacrifice? Why then should you keep on being so angry with him?" +

+ +

+ And Jove said, "My child, what are you talking about? How can I forget Ulysses than whom there is no more + capable man on earth, nor more liberal in his offerings to the immortal gods that live in heaven? Bear in mind, + however, that Neptune is still furious with Ulysses for having blinded an eye of Polyphemus king of the + Cyclopes. Polyphemus is son to Neptune by the nymph Thoosa, daughter to the sea-king Phorcys; therefore though + he will not kill Ulysses outright, he torments him by preventing him from getting home. Still, let us lay our + heads together and see how we can help him to return; Neptune will then be pacified, for if we are all of a mind + he can hardly stand out against us." +

+ +

+ And Minerva said, "Father, son of Saturn, King of kings, if, then, the gods now mean that Ulysses should get + home, we should first send Mercury to the Ogygian island to tell Calypso that we have made up our minds and that + he is to return. In the meantime I will go to Ithaca, to put heart into Ulysses' son Telemachus; I will embolden + him to call the Achaeans in assembly, and speak out to the suitors of his mother Penelope, who persist in eating + up any number of his sheep and oxen; I will also conduct him to Sparta and to Pylos, to see if he can hear + anything about the return of his dear father- for this will make people speak well of him." +

+
+ +