• Rewind
  • Restart
  • Bookmark
  • This story was created with Twine and is powered by TiddlyWiki
{\n\t"origin": [\n\t\t"#book-dead-faulkner# (Book of the Dead, Faulkner translation)", \n\t\t"#book-dead-quirke# (Going Forth In Daylight, Book of the Dead, Quirke translation)", \n\t\t"#book-dead-budge# (Book of the Dead, Budge translation)", \n\t\t"#offerings-gods-cauville# (Offerings to the Gods in Egyptian Temples, Sylvie Cauville)", \n\t\t"#ae-literature-lichtheim# (Ancient Egyptian Literature Vol. 1, Miriam Lichtheim)", \n\t\t"#pyramid-texts-faulkner# (The Ancient Egyptian Pyramid Texts, Faulkner translation)",\n\t\t"#wine-offerings# (Wine and Wine Offering in the Religon of Ancient Egypt, Mu-Chou Poo)"\n\t\t\t],\n\t"book-dead-faulkner": [\n\t\t"Hail to you, you having come as Khepri, even Khepri who is the creator of the gods.",\n\t\t"Your mother Nut shall use her arms on your behalf in making greeting.",\n\t\t"O all you gods of the Soul-mansion who judge sky and earth in the balance, who give food and provisions, O Tatanen, Unique One, creator of mankind; O Southern, Northern, Western, and Eastern Ennads, give praise to Re, Lord of the Sky, the Sovereign who made the gods.",\n\t\t"The Mansion of the Prince is in festival, the noise of shouting is in the Great Place, the gods are in joy, when they see Re in his appearing, his rays flooding the lands.",\n\t\t"May you be gracious to me when I see your beauty.",\n\t\t"May I smite the ass, may I drive off the rebel-serpent, may I destroy A/pep when he acts, for I have seen the abdju-fish in its moment of being and the bulti-fish piloting the canoe on its waterway.",\n\t\t"I have seen Horus as helmsman, with Thoth and Maat beside him, I have taken hold of the bow-warp of the Night-bark and the stern-warp of the Day-bark.",\n\t\t"May he grant that I see the sun-disc and behold the moon unceasingly every day.",\n\t\t"May my name be called out, may it be found at the board of offerings, may there be given to me loaves in the Presence like the Followers of Horus.",\n\t\t"King of Eternity, Lord of Everlasting, who passes millions of years in his lifetime first-born son of Nut, begotten of Geb, Heir, Lord of the Wereret-Crown, whose White Crown is tall, Sovereign of gods and men.",\n\t\t"May your heart which is in the desert land be glad, for your son Horus is firm on your throne, while you have appeared as Lord of Busiris, as the Ruler who is in Abydos.",\n\t\t"O Pillar of Myriads, broad of breast, kindly of countenance, who is in the Sacred Land, May you grant power in the sky, might on earth, and vindication in the realm of the dead.",\n\t\t"May there be given to me bread from the House of Cool Water and a table of offerings from Heliopolis, my toes being firm-planted in the Field of Rushes.",\n\t\t"Hail to you, Bull of the West.",\n\t\t"I am one of those gods who fashioned the Children of Nut, who slew the foes of Osiris and who imprisoned those who rebelled against him.",\n\t\t"I belong to your company, O Horus, I have fought for you and have watched over your name.",\n\t\t"I am Thoth who vindicated Osiris against his foes on that day of judgement in the great Mansion of the Prince which is in Heliopolis.",\n\t\t"He has taken possession of the sky, he has inherited the earth, and who shall take this sky and earth from him?",\n\t\t"He is Re, the eldest of the gods; his mother has suckled him, she has given to him a nurse who is in the horizon.",\n\t\t"I am he who fixed the limits of the flood and who judged between the Rivals.",\n\t\t"O you waxen one who take by robbery and who live on the inert ones, I will not be inert for you, I will not be weak for you, your poison shall not enter into my members, for my members are the members of Atum.",\n\t\t"I am Atum at the head of the Abyss, my protection is from the gods, the lords of eternity, I am He whose name is secret, more holy of throne than the Chaos-gods.",\n\t\t"I am hale, I am hale!",\n\t\t"I am Re who is with the gods and I will not perish.",\n\t\t"I open the Netherworld that I may see my father Osiris and drive away darkness, for I am beloved of him.",\n\t\t"I am noble, I am a spirit, I am equipped; O all you gods and all you spirits, prepare a path for me.",\n\t\t"I have dug up the sky, I have hacked up the horizon, I have traversed the earth to its fullest extent, I have taken possession of the spirits of the great ones, because I am one who equips a myriad with my magic.",\n\t\t"I have gone in as a falcon, I have come out as a phoenix, the god who worships Re.",\n\t\t"O you companions of the God of Justice, may this god be gracious to me, may my evil be removed for you.",\n\t\t"Hail to you, O Re, at your rising, O Atum-Horakhty! Your beauty is worshipped in my eyes when the sunshine comes into being over my breast.",\n\t\t"The voice goes forth, and the earth is inundated with silence, for the Sole One came into existence in the sky before the plains and the mountains existed.",\n\t\t"I breathe the air that comes out of your nose, the north wind which comes forth from your mother.",\n\t\t"Turn your face to the West that you may illumine the Two Lands with fine gold.",\n\t\t"I have come to you and I am with you in order to see your disc every day; I will not be restrained or repulsed, but my flesh will be renewed at seeing your beauty.",\n\t\t"Hail to you when you rise in your horizon as Re who is pleased with justice; when you cross the sky, all men see you, after your movements have been hidden from their sight.",\n\t\t"For you have passed through seasons of millions and hundreds of thousands of moments; when you have spent them you have gone to rest, you have also completed the hours of the night, and you have regulated and completed them according to your regular custom.",\n\t\t"Great Illuminator who shines forth from the Abyss, who knits his family together in the waters, who makes festal all estates, towns, and households, may your spirit be sustained with food and provisions.",\n\t\t"Here am I; I have come to you that you may drive out all the evil which is on me just as you did for those seven spirits who are in the suite of the Lord of Sepa.",\n\t\t"I have come to you spiritualized and pure.",\n\t\t"I have collected this magic in every place where it was, from the possession of anyone who possessed it, more speedily than a hound, more swiftly than a shadow.",\n\t\t"This heart belongs to one whose names are great, whose words are mighty, who possesses his members.",\n\t\t"I live by truth, in which I exist; I am Horus who is in hearts, he who is in the middle of what is in the body.",\n\t\t"The knot was tied about me by Seth, in whose power the Ennead were at first, before uproar had come into being, when he caused me to be hale.",\n\t\t"The knot was tied about me by Nut, when I first saw Maat, when the gods and the sacred images had not yet been born. I am a heavenborn, I am in the presence of the Great Gods.",\n\t\t"The doors of the sky are opened for me, the doors of the earth are opened for me, the door-bolts of Geb are opened for me, the shutters of the sky-windows are thrown open for me.",\n\t\t"A matter a million times true.",\n\t\t"Hail to you, you lords of pure offerings, whose thrones are secret! Hail to you, you lords of eternity, whose forms are hidden, whose shrines are secret, whose place is unknown!",\n\t\t"I am this pure lotus which went forth from the sunshine, which is at the nose of Re.",\n\t\t"I will have power and I will eat [my bread] under the branches of the tree of Hathor my mistress, who made offering of bread, beer and corn in Heliopolis.",\n\t\t"I am mightier than the Lord of Terror; I copulate and I have power over myriads.",\n\t\t"I have flown up like the primeval ones, I have become Khepri, I have grown as a plant, I have clad myself as a tortoise, I am the essence of every god, I am the seventh of those seven uraei who came into being in the west.",\n\t\t"May I guide the hearts of the gods, and may they protect me, may I be mighty among those who suspend themselves on high.",\n\t\t"May you be alert, may you make brightness, may you dispel your darkness, may you see the holiest of the Great Ones, may you live as he lives, may you give praise to Him who is in his sun-disc.",\n\t\t"Down on your faces, you evil snakes! Let me pass, for I am a mighty one, Lord of the mighty ones; I am a noble of the Lord of Righteousness, whom Wadjet made.",\n\t\t"Hail to you and praise to Re! The crew navigate the Sacred Bark and A/pep is felled.",\n\t\t"Hail to you and praise to Re! The shape of Khepri has been brought into being.",\n\t\t"Hail to you and praise to Re! Rejoice over him, for his enemies have been driven off.",\n\t\t"Hail to you and praise to Re! The heads of the Children of Impotence have been removed.",\n\t\t"I know you and I know your name; I know the names of the seven cows and their bull who give bread and beer, who are beneficial to souls and who provide daily portions; may you give bread and beer and make provision for me.",\n\t\t"I am pure, and pure are the recitations which come forth from my mouth. They are more pure than the fins and scales of the fish in the river, more than the image belonging to the Mansion of Natron; my recitations are pure.",\n\t\t"I am Thoth the skilled scribe whose hands are pure, a possessor of purity, who drives away evil, who writes what is true, who detests falsehood, whose pen defends the Lord of All; master of laws who interprets writings, whose words establish the Two Lands.",\n\t\t"I am the Lord of Justice, one truly precise to the gods, who judges a matter so that it may continue in being; who vindicates him whose voice is hushed; who dispels darkness and clears away the storm."\n\t\t\t],\n\t"book-dead-quirke": [\n\t\t"See me in your presence, lord of the gods, I have reached the pool of the two Goddesses Right, I am risen as a living god, shining in the Nine Gods amid the sky. I exist as one of them, raised in my paces in Kheraha.",\n\t\t"May you make the Primeval Waters well! May you not be turned away! May you see the lords, and smell the provisions of the Nine Gods! May you sit with them!",\n\t\t"Their greatest stands for him on their land. He is greater than the writers who are on their mats. He has rejoined the coloured snakes in Iunu.",\n\t\t"My protection is that of the gods, the lords of eternity. I am the secret-named, sacred-throned, beyond millions. I am amidst them, I have gone out with Atum. I am one who is, I have not counted, doubly healthy.",\n\t\t"I will not remain there. I am Seth, the one who is with the gods. I have not failed.",\n\t\t"Open to me all ways that are in the sky, that are on earth. I am the son, the beloved of his father. See me, ennobled, illumined, equipped. O every god, every illumined spirit, make way for me.",\n\t\t"Do I not make them fall by my arm? It is my enemy: He is given to me, he has not been rescued from me.",\n\t\t"O Lord of Offerings, as the greatly revered, see, I have brought you peace-offerings, that you may live on them, and I may live (on them.) (Be at peace with me,) Remove all fury that is in your heart against me.",\n\t\t"Ra lives, the criminal serpent dies.",\n\t\t"Jubilation for you, maker of the gods, raising the sky to the embrace of his eyes, maker of the earth to the breadth of his Light, to allow each man to sight his second, the night boat is in rejoicing, the day boat is in jubilation.",\n\t\t"The night boat is in rejoicing, the day boat is in jubilation, they have crossed the primeval waters for you, in peace, with your crew peaceful.",\n\t\t"You are the one who crafts your body, who gives birth to himself, not born to anyone, in the horizon, who rises in the upper sky.",\n\t\t"My mouth is given to me, my mouth is opened by Ptah, with this his chisel of meteor-metal, the one with which he opened the mouths of the gods.",\n\t\t"As for any word-power male or female, said against me, then the gods rise against them, my Nine Gods and their Nine Gods in unison.",\n\t\t"Back, rebel of his light! Your words are overthrown, your face capsized by the gods.",\n\t\t"Your will is done, your will is done, o Ra! Good is done, rejoicing is made.",\n\t\t"I am the son, Seth, who clears the turbulence of the storm circling within the horizon of the sky, like the crooked god.",\n\t\t"Come here, let us worship and rescue the great one who is in his shrine, he from whom the Nine Gods emerged, to whom good offerings are made, to whom worship is given.",\n\t\t"Come here, rescue the great one who is in his shrine that he may ferry himself across in solitude, Lord of All, who cannot be repelled.",\n\t\t"My hair is that of Nun, my face is that of Aten, my eyes are those of Hathor, my ears are those of Wepwawet, my nose of that of the Foremost of Khasu, my lips are those of Anubis, my teeth are those of Serqet, my neck is that of Isis the goddess.",\n\t\t"My arms are those of the Ba-soul lord of Djedet, my front is that of Neit lady of Sais, my back is that of Seth, my penis is that of Baba, my flesh is that of the lords of Kheraha, my chest is that of the god Great of Dignity.",\n\t\t"My stomach and spine are those of Sekhmet, my buttocks are those of the Eye of Horus, my thighs and flanks are those of Nut, my legs are those of Ptah, my toes are those of living falcons.",\n\t\t"<No limb> of mine is without a god.",\n\t\t"Thoth is the protection of all my flesh.",\n\t\t"I am the one who is in the wedjat-eye. Nothing can happen against me, evil, bad tumult, it will not be against me.",\n\t\t"I have cut my field in Djedu, my plants in Iunu. I live on bread of white emmer, my beer is of red barley.",\n\t\t"I am the bull of horns, leader of the sky, lord of appearances of the sky, the Great Illuminator, who goes out from the furnace, he who yokes the years, the extended one, Ruty.",\n\t\t"I stretch my coil, I join the ferryboat in the sky.",\n\t\t"O this sycamore of Nut, grant me the water (?) and air that are in you.",\n\t\t"The doors of the sky are opened for me, the doors of the cool waters are parted for me, by Thoth, by Hapy, who are the two sons of the great sky in the dawn-light.",\n\t\t"Gladden your ways for me, broaden your paths for me, that I may sail over earth by the plans of the sky.",\n\t\t"To Horus has been given his eye. His face is bright in the twilight of the earth.",\n\t\t"I have embraced the sycamore, the sycamore has sheltered me.",\n\t\t"My word-power is the strengthening of my flesh. My transfiguring power is the protection of my limbs. The crane cries out at the greeting. The Nine Gods stand at my say.",\n\t\t"My forms are the forms of Khepri, herbs of Atum, herbs of Atum.",\n\t\t"O one who arises as the Moon, who shines as the Moon, may you go outside with your multitude. May you release those who are in the sunlight.",\n\t\t"Allow Osiris to go out justified against Seth: conjurations of Seth aof the conjurations of the crocodile, doubly.",\n\t\t"Assign me to the life of the pronouncement of the year. May it give many years to my years of life. May it give many days to my days of life. May it give many nights to my nights of life, until I go out, and rise at my likeness, with air at my nose.",\n\t\t"Hail, lords of what is Right, free from evil, existing in life for eternity, to both time-limits of everlastingness.",\n\t\t"Grant me voice offerings, incense and ointment, all good and pure things on which a god lives, existing fixed for eternity, in any forms I wish.",\n\t\t"I unite with Isis the goddess, as she bars for me the face of the one who would harm me.",\n\t\t"I am the one who pacifies the beautiful god, Lord of the double lofty rearing cobra.",\t\n\t\t"I have come to remove the evil that is in your hearts. I have released the wickedness that attaches to you. I have brought you good, I have raised to you what is Right. I know you.",\n\t\t"I have flown up as a falcon, I have cackled as a goose, I have alighted on that far side of the mound of the great festival.",\n\t\t"I came into being of myself with Nun, in this my name of Khepri. I came into being as him every day. I am the lord of sunlight.",\n\t\t"See, I am the writer! Bring me the fluids from Osiris, that I may write with them, and put down the speech of the great god, the good, every day, as the good deeds that you decreed to me, Horakhty.",\n\t\t"Hail, my ka, my lifetime, see I am come before you, I am risen, powerful, ensouled, mighty. I have brought you natron and incense so that I may purify you ith them, so that I may purify your fluids with them.",\n\t\t"I furnish this Marsh of yours, O god Offerings, with what you love, with what you make, Lord of winds.",\n\t\t"I have given bread to the hungry, beer to the thirsty, clothes to the naked, a ferry to the boatless. I have offered divine offerings to the gods, and voice offerings to the blessed dead.",\n\t\t"The eye of Horus is your protection, Osiris foremost of westerners. It selects its protection over you, it overthrows all your enemies for you. Your enemies are overthrown for you.",\n\t\t"I am judged, my voice is true, I am powerful over my enemies, who are given the treatment that they did against me.",\n\t\t"Make a way for me, I know you, I know your name, I know the name of the god guarding you.",\n\t\t"A matter a million times true.",\n\t\t"Hail, lion of strength, tall of plumes, lord of the Great Crown, equipped with the flail. You are the lord of the phallus, firm in rising, of sunlight, without the burden of the earth.",\n\t\t"Hail, Sekhmet-Bast, who gives the Nine Gods, and ties the headband, lady of the red cloth, Mistress of the White and Red Crowns, great in the terror of your father, She over whom no gods, none, can become overlord, great in word-power in the boat of millions.",\n\t\t"Wedjat-eye, Sekhmet, Great Goddess, mistress of the gods is her name.",\n\t\t"Your beauty is that of the flood-wave at rest, like the flood-water when it has flowed north. Your beauty is that of the broad court in festival, in which every god of his is raised high.",\n\t\t"Your face shines more than the Temple of the Moon. Your upper part is of lapis-lazuli, and your hair is blacker than the approach of the underworld. The night-dark of your hair is starred with the lapis at your face.",\n\t\t"Your neck is adorned with gold, overlain in silver-gold.",\n\t\t"Your windpipe is that of Anubis, your chest is broad with gold, your breasts are two eggs of carnelian, which Horus has streaked with lapis. Your forearms glisten as glass, your shoulders are firm in their protection, your heart is gladdened every day.",\n\t\t"The sky at rest is your belly, your navel is a star, transgressor of the Western Desert who foretells sunlight in the night, and whose offerings are of ankh-imy plants.",\n\t\t"I am that lotus shining in the earth, I am pure, I am taken by the maker of my place at the nose of the great power.",\n\t\t"Nut has spread herself over you, in her name of lake-lady of the sky. She causes you to be in the following of the great god.",\n\t\t"I am Thoth, excellent writer, pure of arms,lord of horns, he who repels evil, writer of what is Right, he whose abomination is falsehood,he whose reed is protection for the Lord to the limit, lord of law-books,who makes documents speak, whose words establish the riverbanks.",\n\t\t"Your heart is glad, lord of the gods, every heart is elated before you. The Black Land and the Red Land are at peace, labouring for your Crown-goddess.",\n\t\t"O! You are beautiful, the rising cobra on your head, they raise up breath to your nose.",\n\t\t"O! the Nile-flood surges for you at his time, to make your offerings grow, to make your offerings grow."\n\t\t\t],\n"book-dead-budge": [\n\t\t"I, even I, am pure, I, even I, am mighty.",\n\t\t"Shall worship thee the beings of the heights, shall worship thee the beings of the depths.",\n\t\t"Mayest thou be at peace with me, may I see thy beauties, may I advance upon the earth, may I smite the ass, may I crush the evil one.",\n\t\t"Beautiful one, becoming young at thy time as the disk within the hand of thy mother Hathor.",\n\t\t"O god of life, lord of love, live all peoples (when) thou shinest, O crowned as the king of the gods.",\n\t\t"The cycle of the gods is in rejoicing at thy rising; the earth is in gladness seeing thy rays; come forth the ancestors with cries of joy to see thy beauties every day.",\n\t\t"Golden of limbs, blue of head, emerald upon both of his sides.",\n\t\t"In very truth is weighed the heart of Osiris, is his soul standing as a witness for him; his sentence is right upon the scales great.",\n\t\t"I am Yesterday, I know Tomorrow.",\n\t\t"Eternity it is and Everlastingness, Eternity is the day, Everlastingness is the night.",\n\t\t"I know my heart, I have gained power over my heart, I have gained power over my two hands and arms, I have gained power over my feet, I have gained the power to do what pleaseth my Ka.",\n\t\t"I am the lord of light.",\n\t\t"I am their bull, becoming strong moment by moment, I copulate, I have gained strength for millions of years.",\n\t\t"Sailing among them I have come, I am crowned, I am glorious, I am mighty, I am strong among the gods.",\n\t\t"I am pure of mouth, pure of hands."\n\t\t\t],\n"offerings-gods-cauville": [\n\t\t"I present to you the ewers filed with primordial waters, I pour the libation to water your face.",\n\t\t"I take the table with three vases containing the water of youth; I pour it on the altar of your ka. This libation comes from the two caverns, the gods live from its exudations.",\n\t\t"Greetings to you, primordial water; greetings to you, river; greetings to you, flood, you, the father of the gods.",\n\t\t"I make the flood flow for you in its time; it flods the fields at the right time.",\n\t\t"O Hathor, your altar is cleansed by the water; your altar is purified by the incense; you are cleansed by Horus; you are purified by Thoth.",\n\t\t"I give you the Nile that has risen; it inundates the country without there being a year of famine.",\n\t\t"Khnum fashions living beings, shapes humans on his wheel, brings creatures into being, fowl and livestock; he is invoked in the birth house. He gives the breath of life to the bricks of birth, he saves the shipwrecked-one from the flood.",\n\t\t"Take the vase filled with the emanations of your ka; it is what comes out of you.",\n\t\t"Take the jar, this mysterious image; it contains that which arises from the First of the nomes, you drink it, you live from it, that is pure.",\n\t\t"I make the flood flow for you, bringing barley and wheat so that you enrich the altars of the gods.",\n\t\t"Incense approaches, it permeates your nostrils, it censes your chapel with its perfume. I pour for you the primordial water to satisfy your statue; your heart is revived by the waters of youth.",\n\t\t"Take the incense, ram of rams; it pricks up your phallus. Ram ejaculator transcended by the odour of incense, you inseminate the women, you create an embryo for the infertile woman.",\n\t\t"The beetle flies towards your nostrils, it makes the perfume of the chapel of Memphis.",\n\t\t"I give the inhabitants of the land of spices who bring you their tribute.",\n\t\t"I receive your incense that you place upon the flame; I install your terror in foreign lands.",\n\t\t"With the first pellet you are powerful, the second is on your incense vase, the third drives away impurities, the fourth is needed to obstruct the miasma, the fifth removes hostile forces.",\n\t\t"Natron purifies your body from evil, your lips are pure as those of the calf the day its mother gave birth to it.",\n\t\t"The juice is flowing from the grapes in greater quantities than sand; it is pressed into wine for your storehouse.",\n\t\t"The vineyard groans under the weight of bunches of grapes, their juice is more abundant than water in the river; they inudate Edfu of the green eye of Horus.",\n\t\t"Wine is poured onto the ground at Dendera; its bouquet fills your chapel. How pleasant is its aroma to the nose of the powerful ones.",\n\t\t"As for the vineyard, it is the framework that frames both eyes to protect them; as for the grape, it is the pupil of the eye of Horus; as for wine that is made, it is the tears of Horus.",\n\t\t"Seth, bearer of his vessels full of good wine from the vineyards of Bahariya, the kegs in his hand full of the new eye of Horus to rejoice your heart, you drink from it, those who are in your following drink from it as well, you rejoice, their hearts are happy.",\n\t\t"The inhabitants of Dendera are inebriated with wine, a garland of flowers on their heads; the people of Edfu are filled with joy, anointed with oil of dried myrrh of the highest quality, all the young people are intoxicated, whilst remaining lucid.",\n\t\t"I give you intoxication and inebriation, without sorrow for your ka.",\n\t\t"I give you drunkenness to rejoice your heart, evil cannot reach your heart.",\n\t\t"She is the lady of drunkenness, the queen of the dance. She stabs the enemy, drives back the rebels, kills off the enemies in the place of internment; she is Sekhmet the great, who has power over the masses--the countless crowd trembles upon seeing her.",\n\t\t"I give you daily joy; I drive away the evil in your heart.",\n\t\t"I give you drunkenness without unpleasantness; I trouble the hearts of the rebels.",\n\t\t"I bring you the menu-beverage that gives brilliance to your ka.",\n\t\t"It is prepared for the goddesses according to you; its almonds are fresh, its dates tender, its wort is bound together by grinding, its sediment is an aromatic substance mixed with ochre, the fragrance from the mixture is destined for your nostrils.",\n\t\t"What he abhors is the sadness of Hathor, what he abhors is hunger and thirst, what he abhors is the misfortune of the feminine solar disk.",\n\t\t"I bring you the milk coming from the Cow, the milk of the great Cow, because you're the mother of the god, who makes her child live, who places her son Horus on the throne of his father.",\n\t\t"This liquid of the life force is for your ka; you live, you are strong thanks to it. This white beverage, it protects you; the protection that resides in it provides you with thousands of jubilee festivals, it descends into your stomach, it makes your body stronger.",\n\t\t"The great offering filled with all good things, tens of thousands, a thousand loafs, an infinity before it, great quantities behind it, hundredfold and tenfold in the midst of it, consisting of bread, meat, beer, which provisions the altars with food.",\n\t\t"Enunciating the menu: Take the loaves of bread, the cakes, the wine, the milk, the pieces of meat and the honey. The composition of the offering is complete so that you may nourish yourself with it.",\n\t\t"I give you all the things that the sky produces and that the earth yields, all things that exist on earth.",\n\t\t"I give you your storehouses, remarkable for their abundance in grain.",\n\t\t"Take the four recipients full of all good things, which I present to your beautiful face--bread, beer, water, meat--you eat of it as much as you desire.",\n\t\t"The bread is perfect, the bread is warm, well-risen; the bread, golden, is baked to perfection, the delicacies are a pleasure in my hands.",\n\t\t"The altars are piled with various kinds of bread, beer, mulled wine, incense and myrrh, cuts of meat and geese.",\n\t\t"I come near you, venerable snake who has emerged from the lotus. I bring the food and provisions for your subsistence. You are the venerable god who impregnates women.",\n\t\t"The mat is laden with loaves of bread: bread of various grains, well-baked bread, bread split down the middle, the whole production of the bakery! There are no hungry people, the breads make people live.",\n\t\t"Offering the honey cake to Great Parturient Nut who gives birth to the gods: You eat from it, you are satisfied with it, you are strong because of it.",\n\t\t"Take the cuts of beef, ox, gazelle, oryx and ibex, Your heart is satisfied with the pieces of these enemies who are unfaithful to Your Majesty.",\n\t\t"Sekhmet the Great who has power over hearts, her heart is satisfied with the pieces; she is the flame and the great one who devours the enemies, she massacres her enemies.",\n\t\t"I roast the hearts of your enemies.",\n\t\t"Your altar is adorned with all good things, white bread, beer, mulled wine, myrrh, incense, meat namely oxen, oryx, ibex, gazelles.",\n\t\t"I weigh down the branches of your tree with fruit.",\n\t\t"I make your enemies fall in the place of execution; their names shall never again be uttered on earth.",\n\t\t"I make my face glow fiery red to drive away your enemies; I make fierce the pupil of my eye against those who are unfaithful to you.",\n\t\t"The countryside is for you, Horus, the boundaries of the territory of Your Majesty are in the south, to the limits of the wind, in the north to the edge of the darkness of the shadows, to the west, to where the solar disk sets, to the east, to where it rises.",\n\t\t"Those are the fields bending under their produce, resplendent without drought; their crops are as opulent as could be desired without weeds. They collect their crops for your shine to inundate your granaries with provisions.",\n\t\t"Take the green plants that come from you; they flower in the fields that you have created, these grasses grow on your banks.",\n\t\t"This bouquet, properly bound, endowed with all the flowers that grow in the gardens.",\n\t\t"A flower among them is made of gold and lapis lazuli, the bouquet is made of sweet scented plants.",\n\t\t"I give you tracts of water covered with flowers and lotus buds.",\n\t\t"I plant the willow in front of you the first month of the harvest season, they will be the branches of life at Dendera.",\n\t\t"O Horus, take your beautiful plant on which you have ejaculated your semen that is concealed within it. The effeminate Seth has swallowed it, he has been impregnated by it, he has given birth to a male embryo that emerged from his forehead on the day of judgement.",\n\t\t"Take lettuce, mysterious herb, issued by you; it is seepage from your body, its discharge comes from your flesh, it is the seminal fluid of Your Majesty.",\n\t\t"This beautiful plant is before you, held by Thoth; it is your living phallus, you ejaculate and you allow births.",\n\t\t"Receive this god who resides on his lake, it is the throne of Your Majesty since the very beginning. It opens its petals with the beauty of your ka, you appear there as you would appear in the morning barque, your limbs are intact because of its rays.",\n\t\t"Harsomtus, the child who shines in the lotus, is the first one created, before the other gods, he chases away the darkness from the moment he emerges from the lotus, he opens his eyes and illuminates the country, he separates night from day.",\n\t\t"Take this god in the middle of his lake, the beautiful golden lotus, whose petals are lapis lazuli, who is enriched with precious stones; he is similar to the one who has emerged from the Great Lake.",\n\t\t"Hathor, daughter of the Creator, brought forth from the very beginning along with the great Nun: my physical body comes from the beginning of time. From the moment Re emerges from the primordial lotus, he illuminates the country that was in darkness.",\n\t\t"Her perfume comes from Punt, her fragrance from the Land-of-the-Gods, her perfume is superior to that of the summer lotus, superior to that of the best oil of the royal perfumer, to that of myrrh in the bottle, the perfume of her scent comes from the perfumer's laboratory.",\n\t\t"Papyrus strengthens your body; Horus of the papyrus is your name. You appear as a falcon on its crest, you are Horus, the heir of Sekhmet, the master of the papyrus thickets in his appearance of the fowler in Khemmis.",\n\t\t"Offering the lotus and papyrus: Take the lotus that I present before you; as for the papyrus, it makes your body young, the thicket of papyrus preserves your body.",\n\t\t"These bouquets of life, they come from cemeteries; the dead awaken in their graves.",\n\t\t"Presenting the receptacle of dates: take the emanations of Geb, the secret substances from your body gather together and protect you.",\n\t\t"The figs are for your ka, the breasts of Horus are before you, you appreciate their taste.",\n\t\t"Take the figs to make your body live, the beer to rejoice your heart.",\n\t\t"Sweet is the truth.",\n\t\t"The god Re wept and the secretions of his eye fell on the ground and changed into a bee. When the bee had been created, its activity was exerted on the flowers, so wax and honey were created.",\n\t\t"The purple cloth dyed with fresh juniper, the green cloth dyed with the foam of the red bath, the red cloth dyed with the resin of the liquid ambar, dry myrrh and wine. The blue lapis-lauli cloth is dyed with the isatis-plant and rinsed in water of the river.",\n\t\t"Take the cloth impregnated with lotus oil, called eye-of-Re; it protects you, it adjusts to your flesh, it preserves your body, you are bright as Re.",\n\t\t"A happy year, year of joy, year of health, eternal year, infinite year.",\n\t\t"Take the vase filled with myrrh, sweet is the venerable ointment of the laboratory; the oil is for the flesh.",\n\t\t"I place the myrrh on the flame; your chapel is steeped in perfume.",\n\t\t"Myrrh is for your hair; the aromatic oil is for your tresses.",\n\t\t"I give you the cobra appearing on your forehead; it protects your body along with the venerable vulture.",\n\t\t"Take the four divine feathers for Your Majesty, your prestige is great thanks fo them; the four winds, I present them before you.",\n\t\t"I tie the amulets for you, it is Isis who protects you; they are of faience and gold as is fitting.",\n\t\t"The divine scarab, it protects your ka, the mysterious image of Re protects your body from evil.",\n\t\t"Take the necklace, fashioned in gold, provided with many precious stones, welcome it to your chest, you are incarnate thanks to it, you shine everywhere.",\n\t\t"Take these bracelets that are your adornment, the rings are for the extremities of your limbs, receive them and put them in their place.",\n\t\t"I present the divine scarab, it protects your body from evil, it is the reprsentation of your ka in your appearance as Khepri who emerges from the nun and rises to the sky.",\n\t\t"Take the sign of life, Living lord, venerable sol who makes infinity live, you are the one who gives life to all people, who makes the living live by your work.",\n\t\t"I give you the uraeus placed on your forehead; it spits its flame against your enemies.",\n\t\t"Ihy, the revered child, how sweet he is to love, whose legs are nimble in the dance, whose lips are soft in song and who dispels the wrath of his mother.",\n\t\t"I celebrate the ritual feast in the palace; I lift up the sistrum at the appearance of the goddess.",\n\t\t"The sistrum is in my right hand, he dispels your wrath; the menit-necklace is in my left hand to push away your violence.",\n\t\t"Take the menit-necklace of faience for your neck, its beads form a protection for the ancestors. Receive it, put it around your neck; your heart rejoices upon seeing it.",\n\t\t"The papyrus-shaped amulet is for you, Uraeus who protects her son; you keep him alive with your body.",\n\t\t"Her chapel is fumigated with myrrh and incense, ducks and geese are cut up on her altars; sparkling gold and faience powder are scattered on the ground amidst cereals, wine is sprinkled around her domain, music and joy!",\n\t\t"Your Maat is for you, judge and scribe who decides the truth; it is the raison d'etre of Your Majesty, it is in front of you, it emerges from your lips, it cuts your tongue. You judge the country with great accuracy.",\n\t\t"Take your beloved daughter; she loves you, she does not withdraw from Your Majesty. She is your throat that fills your body, your gullet that leads the food to your stomach; your beautiful Maat, you live from her.",\n\t\t"I place Maat in your heart to do well for the gods and goddesses.",\n\t\t"You shine in the sky in the form of the moon, you are the master of the new moon, which appears at full moon, you illuminate the country during the night.",\n\t\t"Your left eye is for the night, it lights the darkness, you are the moon that illuminates the darkness, illuminating the night like day.",\n\t\t"Your soul flutters in the wind that you are; one hears the noise but does not see it. You fill the throat with breath, you open the nose with the north wind.",\n\t\t"I stride around this country, my arms carry the libation vase, I run round my possessions in the country, the vase is filled with water.",\n\t\t"I give you a phallus-obelisk erect as is fitting, large as it should be."\n\t\t\t],\n\t"ae-literature-lichtheim": [\n\t\t"I was excellent in his majesty's heart; I was rooted in his majesty's heart; his majesty's heart was filled with me. (Autobiography of Weni)",\n\t\t"I have come here from my city, I have descended from my nome; I have built a house, set up (its) doors, I have dug a pool, planted sycamores. (Autobiography of Harkhuf)",\n\t\t"I was one worthy --- One beloved of his father, praised by his mother, whom all his brothers loved. (Autobiography of Harkuf)",\n\t\t"I gave bread to the hungry, clothing to the naked, I brought the boatless to land. (Autobiography of Harkuf)",\n\t\t"Grown are his falcon wings, plumes of the holy hawk; His power has brought him, his magic has equipped him! (Pyramid Texts)",\n\t\t"Unas eats their magic, swallows their spirits: their big ones are for his morning meal, their middle ones for his evening meal, their little ones for his night meal, and the oldest males and females for his fuel. (Pyramid Texts)",\n\t\t"Hail, o Re, in your beauty, your splendor, on your thrones, in your radiance! (Pyramid Texts)",\n\t\t"Do bring Teti milk of Isis, flowing water from Nephthys, flood of the lake, surge of the sea, life, prosperity, health, and joy, bread, beer, and clothing, things on which Teti may live! (Pyramid Texts)",\n\t\t"If you love life, O Horus, upon his life staff of truth, do not lock the gates of heaven, do not bolt its doors. (Pyramid Texts)",\n\t\t"Reed and papyrus were placed on the double door of the House of Ptah. That means Horus and Seth, pacified and united. They fraternized so as to cease quarreling n whatever place they might be, being united in the House of Ptah. (Memphite Theology)",\n\t\t"There took shape in the heart, there took shape on the tongue the form of Atum. For the very great one is Ptah, who gave (life) to all the gods and their kas through this heart and through this tongue. (Memphite Theology)",\n\t\t"Sight, hearing, breathing--they report to the heart, and it makes every understanding come forth. As to the tongue, it repeats what the heart has devised. Thus all the gods were born and the Ennead was completed. (Memphite Theology)",\n\t\t"But the Ennead is the teeth and lips in this mouth which pronounced the name of every thing, from which Shu and Tefnut came forth, and which gave birth to the Ennead. (Memphite Theology)",\n\t\t"Thus it is said of Ptah: 'He who made all and created the gods.' And he is Ta-tenen, who gave birth to the gods, and from whom every thing came forth, foods, provisions, divine offerings, all good things. (Memphite Theology)",\n\t\t"Thus it is recognized and understood that he is the mightiest of the gods. Thus Ptah was satisfied after he had made all things and all divine words. (Memphite Theology)",\n\t\t"When you prosper, found your household, take a hearty wife, a son will be born you. It is for your son you build a house, when you make a place for yourself. (Instruction of Prince Hardjedef)",\n\t\t"The respectful man prospers, praised is the modest one, the tent is open to the silent, the seat of the quiet is spacious. (Instruction Addressed to Kageni)",\n\t\t"A mouthful of herbs strengthens the heart; one good thing stands for goodness, a little something stands for much. (Instruction Addressed to Kageni)",\n\t\t"Don't be proud of your knowledge, consult the ignorant and the wise; the limits of art are not reached, no artist's skills are perfect; good speech is more hidden than greenstone, yet may be found among maids at the grindstones. (Instruction of Ptahhotep)",\n\t\t"Follow your heart as long as you live, do no more than is required, do not shorten the time of 'follow-the-heart', trimming its moment offends the ka. (Instruction of Ptahhotep)",\n\t\t"Don't waste time on daily cares beyond providing for your household; when wealth has come, follow your heart, wealth does no good if one is glum! (Instruction of Ptahhotep)",\n\t\t"Not all one pleads for can be granted, but a good hearing soothes the heart. (Instruction of Ptahhotep)",\n\t\t"If you want a perfect conduct, to be free from every evil, guard against the vice of greed: a grievous sickness without cure, there is no treatment for it. (Instruction of Ptahhotep)",\n\t\t"Sustain your friends with what you have, you have it by the grace of god; of him who fails to sustain his friends one says, 'A selfish ka'. (Instruction of Ptahhotep)",\n\t\t"Speak when you know you have a solution, it is the skilled who should speak in council; speaking is harder than all other work, he who understands it makes it serve. (Instruction of Ptahhotep)",\n\t\t"If you are mighty, gain respect through knowledge and through gentleness of speech. (Instruction of Ptahhotep)",\n\t\t"He who steps gently, his path is paved. He who frets all day has no happy moment, he who's gay all day can't keep house. (Instruction of Ptahhotep)",\n\t\t"Oh you lords of the western sky, o you gods of the western sky, o you who rule the shores of the western sky, who rejoice at Hathor's coming, who love to see her beauty rise! (Stela of King Wanankh Intef II)",\n\t\t"I am he who makes the singer waken music for Hathor, every day at any hour she wishes. (Stela of King Wanankh Intef II)",\n\t\t"May your heart be at peace with music, may you proceed in goodly peace, may you rejoice in life and gladness with Horus who loves you, who feasts with you on your foods, who eats with you of your offerings, may you admit me to it every day! (Stela of King Wanankh Intef II)",\n\t\t"Copy your fathers, your ancestors, see, their words endure in books, open, read them, copy their knowledge, he who is taught becomes skilled. (Instruction of Merikare)",\n\t\t"Don't be evil, kindness is good, make your memorial last through love of you. (Instruction of Merikare)",\n\t\t"Not righteous is one who says 'I wish I had', he inclines to one who will pay him. (Instruction of Merikare)",\n\t\t"Do not prefer the wellborn to the commoner, choose a man on account of his skills. (Instruction of Merikare)",\n\t\t"If one has no grain to give, be kind, since they are humble before you. (Instruction of Merikare)",\n\t\t"Hu is in your mouth, Sia is behind you, O King! (Inscription of Seostris I)",\n\t\t"I made the four winds, that every man might breathe in his time. This is one of the deeds. (Coffin Texts)",\n\t\t"I made the great inundation, that the humble might benefit by it like the great. This is one of the deeds. (Coffin Texts)",\n\t\t"I made every man like his fellow; and I did not command that they do wrong. It is their hearts that disobey what I have said. This is one of the deeds. (Coffin Texts)",\n\t\t"I made that their hearts are not disposed to forget the West, in order that sacred offerings be made to the gods of the nomes. This is one of the deeds. (Coffin Texts)",\n\t\t"I have created the gods from my sweat, and the people from the tears of my eye. (Coffin Texts)",\n\t\t"It is however good when men's hands build tombs, when ponds are dug and orchards made for the gods. It is however good when people get drunk, when they drink miyet with happy hearts. (Admonition of Ipuwer)",\n\t\t"What my ba said to me: 'Are you not a man? Are you not alive? What do you gain by complaining about life like a man of wealth?' (Dispute Between a Man and his Ba)",\n\t\t"If you avert your face from violence, who then shall punish wrongdoing? (The Eloquent Peasant)",\n\t\t"Do justice for the Lord of Justice, the justice of whose justice is real! Pen, papyrus, palette of Thoth, keep away from wrongdoing! When goodness is good it is truly good, for justice is for eternity; it enters the graveyard with its doer. (The Eloquent Peasant)",\n\t\t"Hence rejoice in your heart! Forgetfulness profits you, follow your heart as long as you live. Put myrrh on your head, dress in fine linen, anoint yourself with oils fit for a god. (Song from the Tomb of King Intef)",\n\t\t"Do your things on earth as your heart commands! When there comes to you that day of mourning, the Weary-Hearted hears not their mourning, wailing saves no man from the pit! (Song from the Tomb of King Intef)",\n\t\t"Hail to you, Hapy, sprung from earth, come to nourish Egypt! (Hymn to Hapy)",\n\t\t"When he floods, earth rejoices, every belly jubilates, every jawbone takes on laughter, every tooth is bared. (Hymn to Hapy)",\n\t\t"Food provider, bounty maker, who creates all that is good! Lord of awe, sweetly fragrant, gracious when he comes. Who makes herbage for the herds, gives sacrifice for every god. (Hymn to Hapy)",\n\t\t"He has no shrines, no portions, no service of his choice; but youths, his children, hail him, one greets him like a king. (Hymn to Hapy)"\n\t\t\t],\n\t"pyramid-texts-faulkner": [\n\t\t"Recitation by Nut the Great Fruitful One: The King my son is my beloved; I have given to him the two horizons that he may have power in them as Harakhti.",\n\t\t"Recitation by Nut: I enfold your beauty within this soul of mine for all life, permanence, dominion and health for the King--may he live forever!",\n\t\t"I give you your head, I fasten your head to your bones for you.",\n\t\t"<Horus has opened the mouth of this King, Horus has split open the mouth of this King> with that wherewith he split open the mouth of his father, with that wherewish he split open the mouth of Osiris, with the iron which issued from Seth.",\n\t\t"Someone has gone with his double, Horus has gone with his double, Seth has gone with his double, Thoth has gone with his double, Dun-Anwy has gone with his double, Osiris has gone with his double, Khent-Irty has gone with his double, you also having gone with your double.",\n\t\t"O Horus who is Osiris the King, take the Eye of Horus to yourself, even the Eye of Horus which he has diffused abroad by means of its perfume.",\n\t\t"O King, take this cold water of yours, for you have coolness with Horus in your name of Him who issued from cold water; take the efflux which issued from you.",\n\t\t"Zmin*, zmin, which splits open your mouth! O King, taste its taste in front of them of the God's Booth. What Horus spits out is zmin, what Seth spits out is zmin, what reconciles the Two Gods is zmin. \sn \sn (*possibly cream?)",\n\t\t"Your purification is the purification of Horus, your purification is the purification of Seth, your purification is the purification of Thoth, your purification is the purification of Dun-Anwy, and your purification is also among them.",\n\t\t"... and your purificiation is also among them. Your mouth is the mouth of a sucking calf on the day it was born.",\n\t\t"Your purification is the purification of your double, your purification is the purification of your purification, and this purification of yours also is among your brethren the gods.",\n\t\t"Re in the sky is gracious to you, and he conciliates the Two Lords for you. Night is gracious to you, the Two Ladies are gracious to you. Graciousness is what has been brought to you, graciousness is what you see, graciousness is what you hear.",\n\t\t"O King, take the Eye of Horus, which was wrested from Seth and saved for you, your mouth is split open with it.",\n\t\t"O King, take the Eye of Horus, rescued for you; it will never escape from you.",\n\t\t"O Osiris the King, take the finger of Seth which causes the white Eye of Horus to see.",\n\t\t"O Osiris the King, take the white Eye of Horus which illumines the tip of the finger of Seth.",\n\t\t"Ointment, Ointment, where are you? O you who should be on the brow of Horus, where are you? If you are on the brow of Horus, I will put you on the brow of this King, that you may give pleasure to him who has you, that you may make a spirit of him who has you.",\n\t\t"Give him the Eye of Horus, that he may be satisfied with it.",\n\t\t"Lift up your face, O Osiris; lift up your face, O King, whose spirit goes! Lift up your face, O King, be strong and effective.",\n\t\t"O Osiris the King, Horus has put his Eye into your hand for you.",\n\t\t"O King, I am your son, I am Horus; I have come and bring to you Horus' own Eyes; seize them and join them to yourself. I have joined them to you and have united them to you, for they are complete.",\n\t\t"O Osiris the King, take the Eye of Horus; prevent him from having pain in it.",\n\t\t"O Osiris the King, take the Eye of Horus which he has pulled out.",\n\t\t"O Osiris the King, take the Eye of Horus, for it will not be sundered from you.",\n\t\t"O Osiris the King, take the Eye of Horus, the water in which he has squeezed out.",\n\t\t"O Osiris the King, take the Eye of Horus, for little is that which Seth has eaten of it.",\n\t\t"O Osiris the King, provide yourself with the ferment(?) which issued from you.",\n\t\t"Take the pupil of the Eye of Horus which they have licked--I give Horus to you.",\n\t\t"O Osiris the King, this Eye of Horus is sweet; make it come back to you.",\n\t\t"O Osiris the King, this Eye of Horus is strong, I give it to you that you may be strong and that your foe may fear you; the morning bread is in its due time.",\n\t\t"Hail to you, Incense! Hail to you, Brother of the God! Hail to you, Marrow(?) which is in the limbs of Horus! Be great, my father, extend yourself in your name of 'Pellet'. May your perfume be on the King, may your savour(?) be on the King.",\n\t\t"O you who are over the baked foods, O you who are concerned with the supplies of drink, the King is committed to Fetket the butler of Ra, for Ra himself has committed him to him, and Re commits to him who is over the catering for this year.",\n\t\t"A meal for me, O butcher! A meal for me, O butcher! A meal, O you who are in the eye of Ra! A meal for me, O fowler who is in the Eye of the God! O butler, bring water and light the fire, for the calf of leg is with the roast meat.",\n\t\t"My detestation is hunger, and I will never eat it. My detestation is thirst, and I will never drink it. It is indeed I who will give bread to those who exist, for my foster-mother is Iat, and it is she who nourishes me, it is indeed she who bore me.",\n\t\t"I was conceived in the night, I was born in the night, I belong to those who are in the suite of Ra, who are before the Morning Star. I was conceived in the Abyss, I was born in the Abyss; I have come and I have brought to you the bread which I found there.",\n\t\t"O King, you have not departed dead, you have departed alive; sit upon the throne of Osiris, your sceptre in your hand, that you may give orders to the living; your lotus-bud sceptre in your hand, that you may give orders to those whose seats are hidden.",\n\t\t"The messengers of your double come for you, the messengers of your father come for you, so go after your sun and cleanse yourself, for your bones are those of divine falcons who are in the sky.",\n\t\t"Your hands are Hapy and Duamutef-- \sn You demand that you ascend to the sky and you shall ascend-- \sn Your feet are Imsety and Kebkhsenuf-- \sn You demand that you descend to the Lower Sky and you shall descend.",\n\t\t"You shall not perish and your double shall not perish, for *you* are a double.",\n\t\t"Orion is swallowed up by the Netherworld, pure and living in the horizon. Sothis is swallowed up by the Netherworld, pure and living in the horizon. I am swallowed up by the Netherworld, pure and living in the horizon.",\n\t\t"I am swallowed up by the Netherworld, pure and living in the horizon. It is well with me and with them, it is pleasant for me and for them, within the arms of my father, within the arms of Atum.",\n\t\t"Your body is the body of this King, your flesh is the flesh of this King, your bones are the bones of this King; when you go, this King goes (also), and when this King goes, you go (also).",\n\t\t"If Ikhet the Great has borne you, Ikhet the Serpent has adorned you; if Ikhet the Serpent has borne you, Ikhet the Great has adorned you, because you are Horus encircled with the protection of his Eye.",\n\t\t"Ascend &descend; descend with Re, sink into the darkness with Ndi. Ascend &descend; ascend with Re, rise with the Great Float-user. Ascend &descend; descend with Nephthys, sink into darkness with the Night-Bark. Ascend &descend; ascend with Isis, rise with the Day-Bark.",\n\t\t"May you have power in your body, for you have no hindrance; you are born for Horus, you are conceived for Seth. Be pure in the Western nome, receive your purification in the Heliopolitan nome, receive your purification in the Heliopolitan nome with your father, with Atum.",\n\t\t"Awake! Turn yourself about! So shout I. O King, stand up and sit down to a thousand of bread, a thousand of beer, roast meat of your rib-joints from the slaughter-house, and ith-bread from the Broad Hall.",\n\t\t"How happy is your condition! Your Spirit, O King, is among your brothers the gods. How changed it is, how changed it is! Protect your children and beware of this boundary of yours which is on earth.",\n\t\t"Your garment is the leopard-skin, your garment is the kilt; may you walk in your sandals, may you slaughter an ox, may you go in the Wadj-An bark wherever you may be in all your dignities.",\n\t\t"May you go in the Wadj-An bark wherever you may be in all your dignities, with your lotus-bud sceptre at the head of the living and your staff at the head of the spirits.",\n\t\t"The male serpent is bitten by the female serpent, the female serpent is bitten by the male serpent; the sky is enchanted, the earth is enchanted, (...) the god whose head is blind is enchanted, and you yourself are enchanted, O you scorpion here!",\n\t\t"Fall, O serpent which came forth from the earth! Fall, O flame which came forth from the Abyss! Fall down, crawl away!",\n\t\t"O spittle which has come to naught(?), which is in the dust(?), which has fled into your mother's house: O monster, lie down!",\n\t\t"I come to you, O Nut, I come to you, O Nut I hav cast my father to the earth, I have left Horus behind me, my wings have grown into thos of a falcon, my two plumes are those of a sacred falcon, my soul has brought me and its magic has equipped me.",\n\t\t"Open up your place in the sky among the stars of the sky, for you are the Lone Star, the companion of Hu; look down upon Osiris when he governs the spirits, for you stand far off from him, you are not among them and you shall not be among them.",\n\t\t"See among whom this King stands, the horns on his head being those of two wild bulls, for you are a black ram, the son of a black ewe, whom a white ewe bore, whom the four teats(?) suckled.",\n\t\t"The blue-eyed Horus comes against you, beware of the red-eyed Horus, violent of power, whose might none can withstand! His messengers go, his couriers run, they bear tidings to Him whose arm is raised in the East of the going of this One in you.",\n\t\t"Stand at the doors of the horizon, open the doors of the firmament, that you may stand at the head of them like Geb at the head of his Ennead.",\n\t\t"Someone stands behind you, your brother stands behind you, your relative stands behind you, and you shall not perish, you shall not come to an end, but your name shall endure(?) among men and your name shall come into being among the gods.",\n\t\t"I have come into the Island of Fire, I have set Right in it in the place of Wrong, and I am on my way to the linen garments which the uraei guard on the night of the great flood which came forth from the Great One.",\n\t\t"That which removes trouble from before the Bull, which cases those who are in darkness to quake, is the strong horn which is behind the great god.",\n\t\t"Someone has bathed in the Field of Rushes, Re has bathed in the Field of Rushes, Someone has bathed in the Field of Rushes, this King has bathed in the Field of Rushes. This King's hand is in Re's hand. O Nut, take his hand! O Shu, lift him up! O Shu, lift him up!",\n\t\t"O you female apes who cut off heads, I will escape safely from you; I have affixed my head to my neck, and my neck is on my trunk in this my name of Affixer-of-Heads, by means of which I affixed the head of Apis on that day when the ox was lassoed.",\n\t\t"I am stronger than they, having reappeared upon my shore; their hearts fall to my fingers, their entrails are for the denizens of the sky, their blood is for the denizens of the earth.",\n\t\t"But I am happy, happy, for I am the Unique One, the Bull of the sky, I have crushed those who would do this aganst me and I have annihilated their survivors.",\n\t\t"There is tumult in the sky; 'We see something new', say the primeval gods. O you Ennead, Horus is in the sunlight, the possessors of forms make salutation to him, all the Two Enneads serve him, for he sits on the throne of the Lord of All.",\n\t\t"O Geb, Bull of the sky, I am Horus, my father's heir. I have gone and returned, the fourth of these four gods who have brought water, who have administered purification, who have rejoiced in the strength of their fathers.",\n\t\t"My refuge is my Eye, my protection is my Eye, my strength is my Eye, my power is my Eye. O you southern, northern, western, and eastern gods, honour me and fear me for I have seated myself in the awning(?) of the Two Courtyards.",\n\t\t"I detest travelling in darkness, for then I cannot see, but fall upside down; I go forth today that I may bring justice, for it is with me, and I will not be given over to your flame, you gods.",\n\t\t"Be not unaware of me, O God, if you know me, I will know you.",\n\t\t"It is well with me and my double, I live with my double, my panther-skin is on me, my sceptre is in my arm, my baton is in my hand, and I rule(?) for myself those who have gone to it.",\n\t\t"Lo, I stand up as this star which is on the underside of the sky, I give judgement as a god, having tried cases as a magistrate.",\n\t\t"The fire is laid, the fire shines; the incense is laid on the fire, the incense shines. Your perfume comes to me, O Incense; may my perfume come to you, O Incense. Your perfume comes to me, you goes; may my perfume come to you, O gods.",\n\t\t"May I be with you, you gods; may you be with me, you gods; may you live with me, you gods. I love you, you gods; may you love me, you gods.",\n\t\t"Awake in peace!",\n\t\t"The sky is overcast, the stars are darkened, the celestial expanses quiver, the bones of the earth-gods tremble, the planets(?) are stilled, for they have seen the King appearing in power as a god who lives on his fathers and feeds on his mothers.",\n\t\t"It is the King who eats their magic and gulps down their spirits; their bigs ones are for his morning meal, their middle-sized ones are for his evening meal, their little ones are for his night meal, their old men and their old women are for his incense-burning.",\n\t\t"He enjoys himself when their magic is in his belly; the King's dignities shall not be taken away from him, for he has swallowed the intelligence of every god.",\n\t\t"Arise, O great float-user, as Wepwawet, filled with your power, having gone up from the horizon!",\n\t\t"I will ascend to the sky to you, O Re, for my face is that of falcons, my wings are those of ducks, my talons are the fangs of Him of the Cerastes-Mountain. There is no word against me on earth among men, there is no accusation in the sky among the gods.",\n\t\t"Wepwawet has caused me to fly up to the sky among my brethren the gods.",\n\t\t"The spirit is bound for the sky, the corpse is bound for the earth, and what men receive when they are buried is its thousand of bread and its thousand of beer upon the altar of the Foremost of Westerners.",\n\t\t"If I be cursed, then will Atum be cursed; if I be reviled, then will Atum be reviled; if I be smitten, then will Atum be smitten; If I be hindered on the road, then will Atum be hindered, for I am Horus, I have come following my father, I have come following Osiris.",\n\t\t"The phallus of Babi is drawn back, the doors of the sky are opened, the King has opened <the doors of the sky> because of the furnace-heat which is beneath what the gods pour out.",\n\t\t"I have come today from out of the waters of the flood; I am Sobk, green of plume, watchful of face, raised of brow, the raging one who came forth from the shank and tail of the Great One who is in the sunshine.",\n\t\t"I have come to my waterways which are in the bank of the flood of the Great Inundation, to the place of contentment, green of fields, which is in the horizon. I make green the herbage which is on the banks of the horizon, that I may bring greenness to the Eye of the Great One.",\n\t\t"The king is a serpent, the Bull of the Ennead, who swallowed his seven uraei so that they might become his seven neck-vertebrae, and the Enneads are those who were aforetime, who heard the affairs of HIm who was.",\n\t\t"The King is the Bull with radiance in the midst of his eye, the King's mouth is hale through the fiery blast and the King's head through the horns of the Lord of Upper Egypt.",\n\t\t"The King has cleared the night, the King has dispatched the hours; the Powers appear and ennoble the King as Babi.",\n\t\t"The sky is opened, the earth is opened, the doors of Sat(y) are opened for Horus, the lotus-doors are thrown open for Seth. Turn yourself about for me, O you who are in your fortress; I have passed by you as Atum.",\n\t\t"The doors of the sky <are opened>, the doors of the firmament are thrown open at dawn for Horus of the Gods. He goes up into the Field of Rushes, he bathes in the Field of Rushes.",\n\t\t"The doors of the sky are opened, the doors of the firmament are thrown open at dawn for me myself. I go up into the Field of Rushes, I bathe in the Field of Rushes.",\n\t\t"The messenger of Horus loves me and has brought his eye; the mesenger of Seth loves me and has brought his testicles; the messenger of Thoth loves me and has brought his arm, and the Two Enneads have trembled at them.",\n\t\t"I am a holy one who is in the forefront, who lifts the brow, a star to whom the gods bow, at whom the Two Enneads tremble, and it is my hand which will raise me up.",\n\t\t"I ascend to the sky upon the shedshed which is in the space which separates(?), and I grasp her sandal. I am a nose which breathes, this face of mine sees my uplifting.",\n\t\t"The sky thunders, the earth quakes, because of the dread of you, O Osiris, when you ascend. O you milch-cows who are here, you nursing cows who are here, go round about him, beweep him, lament him, mourn him when he ascends and goes to the sky.",\n\t\t"My hunger is from the hand of Shu, my thirst is from the hand of Tefenet, but I live on the morning-bread which comes in due season. I live on that whereon Shu lives, I eat of that whereof Tefenet eats.",\n\t\t"O you who stride out greatly, strewing green-stone, malachite, turquoise of(?) the stars, if you are green then will the King be green, (even as) a living rush is green.",\n\t\t"The Great Maiden who dwells in On has placed for you her hands on you, because there is no mother of yours among men who could bear you, because there is no father of yours among men who could beget you.",\n\t\t"A boon which Anubis, Foremost of the Westerners, grants! Your thousand of bread, your thousand of beer, your thousand of ointment, your thousand of alabaster, your thousand of clothing, your thousand of cattle!",\n\t\t"O King, be aware, take this god's-offering of yours with which you are content every day, a thousand of bread, a thousand of beer, a thousand of oxen, a thousand of fowl, a thousand of all sweet things, a thousand of every kind of clothing.",\n\t\t"You are the daughter, mighty in her mother, who appeared as a bee; make the King a spirit within yourself, for he has not died.",\n\t\t"The earth is hacked up, the offering is presented to you before you. May you go on that road whereon the gods go. Turn yourself about that you may see this offering which the King has made for you, which the Foremost of Westerners has made for you.",\n\t\t"Behold, he has come as Orion, behold, Osiris has come as Orion, Lord of Wine in the Wag-festival. 'My beautiful one!' said his mother; 'My heir!' said his father (of) him whom the sky conceived and the dawn-light bore.",\n\t\t"Someone has gone to his double, Osiris has gone to his double, Seth has gone to his double, Khent-Irty has gone to his double, you also have gone to your double.",\n\t\t"Have a soul, having a soul; be strong, being strong.",\n\t\t"O King, may you be pure, may your double be pure, may your power which is among the spirits be pure, may your soul which is among the gods be pure.",\n\t\t"The canals are filled, the waterways are flooded by means of the purification which issued from Osiris.",\n\t\t"Raise yourself, O King, receive your water, gather together your bones, stand on your feet, being a spirit at the head of the spirits; raise yourself to this bread of your which knows no mouldness and your beer which knows no sourness, that you may have a soul thereby.",\n\t\t"O King whose form is as mysterious as that of Anubis, receive your jackal-face. The Herdsman waits upon you, (even you) who are at the head of the Conclaves as Anubis who presides over the God's Booth, and you make the Followers of Horus content.",\n\t\t"I am the essence of a god, the son of a god, the messenger of a god; I have come that I may bathe in the Field of Rushes and that I may go down to the Field of Kenzet.",\n\t\t"The sky quivers, the earth quakes before me, for I am a magician, I possess magic. I have come that I may glorify Orion, that I may set Osiris at the head, that I may set the gods upon their thrones.",\n\t\t"The sky is pure for Re, the earth is pure for Horus, every god who is between them cleanses me, and I worship the god.",\n\t\t"You shall ascend to the sky, you shall become Wepwawet, your son Horus will lead you on the celestial ways; the sky is given to you, the earth is given to you, the Field of Rushes is given to you in company with these two great gods who come out of On.",\n\t\t"If I die, <my> double shall have power, <for I am the third of those two gods who ascend to the sky as a pair of falcons, and I ascend on their wings; who descend to the earth> as a pair of serpents, and I descend on <their> coils.",\n\t\t"<The sky> is complete, the earth is complete, the caverns are complete, and what is in them is complete before these four gods in their goings forth.",\n\t\t"The sky is opened, the earth is opened, the apertures of the celestial windows are opened, the movements of the Abyss are revealed(?), the movements of the sunlight are released, by that One who endures every day.",\n\t\t"I take possession of the sky, its pillars and its stars. The gods come to me bowing, the spirits serve me because of my power; they have broken their staffs and smashed their weapons, because I am a great one, the son of a great one, whom Nut bore.",\n\t\t"O you who ferry over the righteous boatless as the ferryman of the Field of Rushes, I am deemed righteous in the sky and on earth, I am deemed righteous in this Island of Earth to which I have swum and arrived, which is between the thighs of Nut.",\n\t\t"Behold the two who are upon the throne of the great god and who summon me; they are Prosperity and Health.",\n\t\t"The djed-pillar of the Day-bark is released for its lord, the djed-pillar of the Day-bark is released for its protector. Isis comes and Nephthys comes, one of them from the west and one of them from the east, one of them as a 'screecher', one of them as a kite.",\n\t\t"Raise yourself, O spirit of this King, sit down and eat; may your double sit down and eat bread and beer with you without cessation for ever and ever.",\n\t\t"My ropes are knotted, my ferry-boats are made ready for the son of Atum, who is hungry and thirsty, thirsty and hungry on this southern side of the Winding Waterway.",\n\t\t"I escape my day of death just as Seth escaped his day of death.I escape my halfmonths of death just asSeth escaped his halfmonths of death.I escape my months of death just as Seth escaped his months of death.I escape my year of death just asSeth escaped his year of death.",\n\t\t"May you wake in peace, O Purified, in peace! \sn May you wake in peace, O Horus of the East, in peace! \sn May you wake in peace, O Soul of the East, in peace! \sn May you wake in peace, O Harakhti, in peace!",\n\t\t"May you shine as Re; repress wrongdoing, cause Ma'at to stand behind Re, shine every day for him who is in the horizon of the sky. Open the gates which are in the Abyss.",\n\t\t"You have ascended to the portal, having appeared as King and gone on high as Wepwawet; he will give support and will not tire.",\n\t\t"The reed-floats of the sky are set down for this King that he may cross on them to the horizon, to the place where <the gods> were born, where he was born with them.",\n\t\t"Awake for Horus! Stand up for Seth! Raise yourself, you eldest son of Geb, at whom the Two Enneads tremble! Stand up, O Herdsman, for whom the three-day festival is celebrated! May you appear for the monthly festival, may you be pure for the New Moon Festival.",\n\t\t"I have put my brother together, I have reassembled his members.",\n\t\t"Spread your protection over those who survive you that they may celebrate your festivals.",\n\t\t"The waters of life which are in the sky come, the waters of life which are in the earth come, the sky is aflame for you, the earth quakes at you before the god's birth; the two mountains are split apart, the god comes into being, the god has power in his body.",\n\t\t"O King, raise yourself upon your iron bones and golden members, for this body of yours belongs to a god; it will not grow mouldy, it will not be destroyed, it will not putrefy.",\n\t\t"The warmth which is on your mouth is the breath which issued from the nostrils of Seth, and the winds of the sky will be destroyed if the warmth which is on your mouth be destroyed; the skil will be deprived of its stars if the warmth which is on your mouth be lacking."\n\t\t\t],\n\t"wine-offerings": [\n\t\t"Ushering the officials and the common soldiers to the palace in order to supply (them) with bread, beef, wine, cake, all kinds of vegetables, and all good things for satisfying the heart before the good god. (Tomb of Pḥ-sw-ḫr)",\n\t\t"To your health! Drink this good wine, celebrate a festive day with what your Lord has given you! (Tomb of Nakhet, associated with the Valley Festival)",\n\t\t"Take, drink, and make holiday within your house of eternity. (Tomb of Ipuki and Nebamun)",\n\t\t"I spent my lifetime in heart's delight, without worry, without illness, I made my days festive with wine and myrrh. (Tomb of Nebneteru)",\n\t\t"Let him fill his mouth with food offerings, for he spoke truth in his service, let him drink your (Amon's) gift, for he loved drunkenness... (Tomb of Harsies, Second Prophet of Amon)",\n\t\t"I was a over of drink, a lord (i.e. a possessor) of the festive day,... singers and maidens gathered together and made acclaim like that of Meret,... All together drunk with the Green Horus Eye (i.e. wine). (Biography of Wennofer)",\n\t\t"When you speak, nonsense comes out of your mouth; if you fall down and your limb breaks, no one will give you help. (Instruction of Anii about drunkenness)",\n\t\t"Do not go drunk, lest you go mad. (Ankhseshonq)",\n\t\t"He who eats too much bread will suffer illness, he who drinks too much wine lies down in a stupor. (Papyrus Insinger)",\n\t\t"Wine, women, and food give gladness to the heart; he who uses them without loud shouting is not reproached in the street. (Papyrus Insinger)",\n\t\t"O my brother, my husband, friend, high priest, your heart shall not be weary by means of drink, eat, drunkenness, and lust. Celebrate the holiday, follow your heart day and night, do not place care into your heart, value the years spent on earth. (Biography of Taimhotep)",\n\t\t"Wine and libation for the ka of the Mistress of the Two Lands, Sekhmet of Sahure.",\n\t\t"Words spoken by Amon Kamutef, foremost of Karnak: I have given all life, stability, and luck to my son Kheper-Ka-Ra of my body, my beloved, given life.",\n\t\t"Behind Amon: All protection, life, stability, luck and health are behind him.",\n\t\t"Behdety, the Great God, variegated of feathers, Lord of Heaven, may he give life.",\n\t\t"Offering wine, so that he may make life to be given like Re('s).",\n\t\t"I have given to you life, stability, and luck; your years are like the sand of the bank.",\n\t\t"I have given to you all the valor and all the victory.",\n\t\t"I have given to you valor against the south, strength against the north, and I give the fear of you in the heart of the Nine-Bows.",\n\t\t"I have given to you the ocean under your sandals.",\n\t\t"I have given to you eternity as king of the Two Lands.",\n\t\t"I have given to you the life-time of Re and the years of Atum.",\n\t\t"I have given to you numerous jubilees.",\n\t\t"I have given to you your monumen, established in heaven forever.",\n\t\t"Offering wine to the lady of the Two Lands, so that she may act like Re.",\n\t\t"Offering wine to the Lord of the sacred Land (t3-ḏsr, i.e. cemetery) forever and ever.",\n\t\t"Offering wine to the Lord of Eternity, so that he may act like Re Every day.",\n\t\t"Offering wine, presenting nmst-jar.",\n\t\t"This beautiful gate of the Great Seat (i.e. Edfu) is to supply the altar of the Lord of gods with all the beautiful things which come from Nepyt: A thousand of bread, tens of thousand of food which come from the store-house, for every 'Open-the-face' ceremony.",\n\t\t"Likewise are presented iw3-beef, wnḏw-beef, birds. They are fattened for the altars of He-of-the-dappled-plumages, to permeate his residence with their fragrance, to fill for him the altar with wine and šdḥ-drink, to present to him oil,...",\n\t\t"The sanctuary is supplied with all the good things by His Majesty: water, bread, beer, Green-Horus-Eye (i.e. wine), milk, cake, šdḥ-drink, without number.",\n\t\t"Take to yourself the Eye of Horus which has been freed from Seth! You shall take (it) to your mouth, you shall open your mouth with it.",\n\t\t"May all the vineyards prosper as you wish, may the inundation rejoice at what is in it. I fill for you the Eye of Horus with wine. It is pure!",\n\t\t"Take to yourself wine which came from Bahria, the Eye of Horus which came from Khargeh, which I have offered to your ka. May you be powerful through it; indeed, those who are in your following rejoice.",\n\t\t"Take to yourself wine which came from your field, and the vines which flourish in your vineyard.",\n\t\t"Take to yourself the Eye of Horus. May your mouth be opened with it.",\n\t\t"Take to yourself wine—the Green Horus Eye. May you rejoice at what you have created, may you drink your beer; may you drink your wine; may your limbs be purified by your libation.",\n\t\t"Take to yourself wine from your favorite place, the divine efflux, which I offered to you from the field, I will fill the Eye of Horus for you with pure wine. May you drink at your wish.",\n\t\t"Take to yourself the Green Horus Eye, I appease your heart with what is created for you; I fill the Sound Eye for you with what came out from it...",\n\t\t"Take to yourself wine, in order to please your heart. May the mouth of your ka be opened with the Green Horus Eye.",\n\t\t"Take to yourself the strong wine from your place, and the wine which is presented (lit. came) to you.",\n\t\t"Take to yourself the Green Horus Eye from Bahria and Khargeh. May your heart reckon the product of Khargeh; may your divine ka rejoice with its sweet smell of the Mistress of drunkenness; repeat drinking, as one begins to celebrate for your divine ka.",\n\t\t"Take to yourself wine, which I have offered to your ka. O Ruler, how beautiful is your beauty. May you drink it; may your heart rejoice; may anger be removed from your face.",\n\t\t"Take to yourself wine. O Hathor in ... May you be filled with it as you wish; may you be powerful through it; may you drink it; may Your Majesty drink together with your company.",\n\t\t"The vineyard prospers in the district of Edfu, indeed, it flourishes in your favorite place. It sprouts with leaves, bends down with its load, and burdens under the grapes. One comes to you and offers the Eye of Horus in your presence, namely, wine.",\n\t\t"The vineyard prospers in the district of your throne, flourishing in your favorite place. The grape-vines bend under the load, ... like Hapy. May you drink it; may you be powerful through it as the entire land rejoices.",\n\t\t"The vineyard flourishes in the district of the Noble One. ...with their load, they bear fruit, with grapes more than sand. They are made into wine for your storage, for their Mistress, for the great Hathor, Mistress of I3m. They are presented in the town of your ka.",\n\t\t"The vineyard prospers in the district of Edfu; it flourishes in your favorite place. It sprouts with leaves, burdens with grapes, bends down loaded for you. One offers in front of you with produce from it. May your mouth be opened with wine.",\n\t\t"The vineyard prospers in the district of Dendera, flourishing indeed in your favorite place. It sprouts with leaves, bends down with grapes, as your food everyday.",\n\t\t"They bear fruit with great quantity of grapes. Their wine is presented as your provision, may your mouth be opened with it; may your heart be free from grief (evil), the Eye of Horus with its wine. It is pure.",\n\t\t"The inundation rejoices at the vines in it; they bear fruit with more grapes than sand. They are made into wine for your storage. May your mouth be opened with it; may you be powerful through it; may you drink it. It is pure.",\n\t\t"All the vineyards you like prosper. O Isis the Great, mother of the gods, Mistress of Philae. May the inundation rejoice in what is in you; the son of Re Ptolemy fils for you the Eye of Horus with its wine. It is pure.",\n\t\t"The wine is for your ka, O Noble One, Mistress of the goddesses. It (the vineyard) produces wine for your place, May your Majesty drink it. It is pure, O Lady!",\n\t\t"The wine is for your throat, O Noble One, Mistress. May your limbs rejoice by means of it.",\n\t\t"The wine is for your ka, O Horus son of Osiris, this Eye of Horus is for Your Majesty. May you drink it; may your heart be happy; may your ka drink that which comes from you; I offer it before you daily in order to please your heart with what you love.",\n\t\t"The wine is for your joy (lit. belly), Mistress, drink to your satisfaction with the Eye of Horus, the wine which is produced in your vineyards, they have more wine than water.",\n\t\t"The wine is for your statues, O Falcon, Lord of wine. May your throat receive it as provision; may your courtiers go around you carrying the gifts of Khargeh. Receive it to your bosom, for I brought your wine.",\n\t\t"This wine is offered to you from the land of sweet odor.",\n\t\t"This wine which I have brought as tribute and gift upon my hands is offered as intoxication for the land of Dendera. It is mixed before your temple. How sweet is its taste (lit. beauty) to the nose of the Leader of the gods, Sekhmet, in happiness.",\n\t\t"May you be dignified with wine; may you be rejuvenated with wine; the Eye of Horus has removed your evil; may you drink Pelusium wine; may you sieze Imet; Egypt submits before you.",\n\t\t"May your heart be happy; may you receive the dignity; may you drink what is made for you as you wish.",\n\t\t"I have come to you, O Amon-Re, August god, who begot everything, I cause the vineyard to flourish in the place where you like, and the inundation in your favorite place.",\n\t\t"I offer to you drunkenness, O Golden One, Mistress of drunkenness, I appease your ka with the Green Horus Eye. May your majesty rejoice over what you desire; may your face be happy with what you love; rejoice in the four faces of Re (when) he sees with them.",\n\t\t"I come to you; my arms are carrying wine. I pour for you the best of it (wine), at its prime moment, may you drink with what your hearts rejoice in.",\n\t\t"The vineyards thrive; their grapes are excellent; their juice is clear in its substance. May you drink it; may you rejoice (lit. shine) daily.",\n\t\t"Your vineyards prosper; they flourish before your beautiful face.",\n\t\t"The king is one of those four gods, the children of Geb, who traverse Upper Egypt, who traverse Lower Egypt, who stand with their staff, who are anointed with the best unguent, who are clad in red linen, who live on figs and drink wine. (Pyramid Texts)",\n\t\t"He (the king) shall make his meal from figs and wine which are in the garden of the god. (Pyramid Texts)",\n\t\t"The drunk-supply of the king is from the field of offerings; his food offering is among you, you gods, the water (i.e. drink) of the king is wine, like that of Re. (Pyramid Texts)",\n\t\t"It is Sothis, your daughter whom you love, who has made your fresh plants in this her name of Fresh One (rnpt), who leads this king when he comes to you. (Pyramid Texts)",\n\t\t"It is Shesmu, red of timbers (i.e. the poles of the winepress which were stained with red grape-juice) who slaughters them for me. (Coffin Texts)",\n\t\t"<The King> fills the Eye of Horus with its blood, who pours Inmt (i.e. wine) for the ka of the Lord of Heaven.",\n\t\t"The king has come to you, O Horus of Edfu, Great God, Lord of Heaven. He brought to you Seth with his wine, from among the best of the vineyards of Khargeh, Ip3-jar in his hand, containing the Green Horus Eye (wine) in order to please your heart through it.",\n\t\t"Seth will be irrestrainable when he wishes to conquer the heart in this his name of beer. He confuses the heart to conquer the heart of the enemy, the evildoer, the male and female dead person.",\n\t\t"May Your Majesty eat, may your face be happy, may your heart be satisfied (ḥtp). All the gods live on incense burning, she (Hathor) lives on drunkenness.",\n\t\t"May you be dignified through wine; may you be rejuvenated through wine.",\n\t\t"The heir of Re, who makes the vineyard prosperous in his favorite place, who makes his vineyard rejoice with what is in it, who fills the Eye of Horus with its blood (wtr), who pours wine (inmt) for the ka of the Lord of Heaven.",\n\t\t"Take to yourself wine—the Green Horus Eye, may your ka be inundated with what you have created.",\n\t\t"I give you drunkenness upon drunkenness and delight without end to it."\n\t\t\t],\n\n\n\n\n\n\n\n\n\n\n\t"amun": [\n\t\t"Let him fill his mouth with food offerings, for he spoke truth in his service, let him drink your (Amon's) gift, for he loved drunkenness... (Tomb of Harsies, Second Prophet of Amon) (WWO)",\n\t\t"Words spoken by Amon Kamutef, foremost of Karnak: I have given all life, stability, and luck to my son Kheper-Ka-Ra of my body, my beloved, given life. (WWO)",\n\t\t"Behind Amon: All protection, life, stability, luck and health are behind him. (WWO)",\n\t\t"I have come to you, O Amon-Re, August god, who begot everything, I cause the vineyard to flourish in the place where you like, and the inundation in your favorite place. (WWO)"\n\t\t\t],\n\t"anup": [\n\t\t"A boon which Anubis, Foremost of the Westerners, grants! Your thousand of bread, your thousand of beer, your thousand of ointment, your thousand of alabaster, your thousand of clothing, your thousand of cattle! (PTF)",\n\t\t"O King whose form is as mysterious as that of Anubis, receive your jackal-face. The Herdsman waits upon you, (even you) who are at the head of the Conclaves as Anubis who presides over the God's Booth, and you make the Followers of Horus content. (PTF)",\n\t\t"Offering wine to the Lord of the sacred Land (t3-ḏsr, i.e. cemetery) forever and ever. (WWO)"\n\t\t\t],\n\t"aset": [\n\t\t"I unite with Isis the goddess, as she bars for me the face of the one who would harm me. (BDQ)",\n\t\t"I bring you the milk coming from the Cow, the milk of the great Cow, because you're the mother of the god, who makes her child live, who places her son Horus on the throne of his father. (OGC)",\n\t\t"I tie the amulets for you, it is Isis who protects you; they are of faience and gold as is fitting. (OGC)",\n\t\t"Do bring Teti milk of Isis, flowing water from Nephthys, flood of the lake, surge of the sea, life, prosperity, health, and joy, bread, beer, and clothing, things on which Teti may live! (Pyramid Texts) (ALL)",\n\t\t"Ascend &descend; descend with Re, sink into the darkness with Ndi. Ascend &descend; ascend with Re, rise with the Great Float-user. Ascend &descend; descend with Nephthys, sink into darkness with the Night-Bark. Ascend &descend; ascend with Isis, rise with the Day-Bark. (PTF)",\n\t\t"The djed-pillar of the Day-bark is released for its lord, the djed-pillar of the Day-bark is released for its protector. Isis comes and Nephthys comes, one of them from the west and one of them from the east, one of them as a 'screecher', one of them as a kite. (PTF)",\n\t\t"All the vineyards you like prosper. O Isis the Great, mother of the gods, Mistress of Philae. May the inundation rejoice in what is in you; the son of Re Ptolemy fils for you the Eye of Horus with its wine. It is pure. (WWO)"\n\t\t\t],\n\t"atum": [\n\t\t"O you waxen one who take by robbery and who live on the inert ones, I will not be inert for you, I will not be weak for you, your poison shall not enter into my members, for my members are the members of Atum. (BDF)",\n\t\t"I am Atum at the head of the Abyss, my protection is from the gods, the lords of eternity, I am He whose name is secret, more holy of throne than the Chaos-gods. (BDF)",\n\t\t"Hail to you, O Re, at your rising, O Atum-Horakhty! Your beauty is worshipped in my eyes when the sunshine comes into being over my breast. (BDF)",\n\t\t"My protection is that of the gods, the lords of eternity. I am the secret-named, sacred-throned, beyond millions. I am amidst them, I have gone out with Atum. I am one who is, I have not counted, doubly healthy. (BDQ)",\n\t\t"My forms are the forms of Khepri, herbs of Atum, herbs of Atum. (BDQ)",\n\t\t"There took shape in the heart, there took shape on the tongue the form of Atum. For the very great one is Ptah, who gave (life) to all the gods and their kas through this heart and through this tongue. (Memphite Theology) (ALL)",\n\t\t"I am swallowed up by the Netherworld, pure and living in the horizon. It is well with me and with them, it is pleasant for me and for them, within the arms of my father, within the arms of Atum. (PTF)",\n\t\t"May you have power in your body, for you have no hindrance; you are born for Horus, you are conceived for Seth. Be pure in the Western nome, receive your purification in the Heliopolitan nome, receive your purification in the Heliopolitan nome with your father, with Atum. (PTF)",\n\t\t"If I be cursed, then will Atum be cursed; if I be reviled, then will Atum be reviled; if I be smitten, then will Atum be smitten; If I be hindered on the road, then will Atum be hindered, for I am Horus, I have come following my father, I have come following Osiris. (PTF)",\n\t\t"The sky is opened, the earth is opened, the doors of Sat(y) are opened for Horus, the lotus-doors are thrown open for Seth. Turn yourself about for me, O you who are in your fortress; I have passed by you as Atum. (PTF)",\n\t\t"I have given to you the life-time of Re and the years of Atum. (WWO)"\n\t\t\t],\n\t"bast": [\n\t\t"Hail, Sekhmet-Bast, who gives the Nine Gods, and ties the headband, lady of the red cloth, Mistress of the White and Red Crowns, great in the terror of your father, She over whom no gods, none, can become overlord, great in word-power in the boat of millions. (BDQ)"\n\t\t\t],\n\t"djehwty": [\n\t\t"I have seen Horus as helmsman, with Thoth and Maat beside him, I have taken hold of the bow-warp of the Night-bark and the stern-warp of the Day-bark. (BDF)",\n\t\t"I am Thoth who vindicated Osiris against his foes on that day of judgement in the great Mansion of the Prince which is in Heliopolis. (BDF)",\n\t\t"I am Thoth the skilled scribe whose hands are pure, a possessor of purity, who drives away evil, who writes what is true, who detests falsehood, whose pen defends the Lord of All; master of laws who interprets writings, whose words establish the Two Lands. (BDF)",\n\t\t"I am the Lord of Justice, one truly precise to the gods, who judges a matter so that it may continue in being; who vindicates him whose voice is hushed; who dispels darkness and clears away the storm. (BDF)",\n\t\t"Thoth is the protection of all my flesh. (BDQ)",\n\t\t"The doors of the sky are opened for me, the doors of the cool waters are parted for me, by Thoth, by Hapy, who are the two sons of the great sky in the dawn-light. (BDQ)",\n\t\t"I am Thoth, excellent writer, pure of arms,lord of horns, he who repels evil, writer of what is Right, he whose abomination is falsehood,he whose reed is protection for the Lord to the limit, lord of law-books,who makes documents speak, whose words establish the riverbanks. (BDQ)",\n\t\t"O Hathor, your altar is cleansed by the water; your altar is purified by the incense; you are cleansed by Horus; you are purified by Thoth. (OGC)",\n\t\t"This beautiful plant is before you, held by Thoth; it is your living phallus, you ejaculate and you allow births. (OGC)",\n\t\t"Do justice for the Lord of Justice, the justice of whose justice is real! Pen, papyrus, palette of Thoth, keep away from wrongdoing! When goodness is good it is truly good, for justice is for eternity; it enters the graveyard with its doer. (The Eloquent Peasant) (ALL)",\n\t\t"Someone has gone with his double, Horus has gone with his double, Seth has gone with his double, Thoth has gone with his double, Dun-Anwy has gone with his double, Osiris has gone with his double, Khent-Irty has gone with his double, you also having gone with your double. (PTF)",\n\t\t"Your purification is the purification of Horus, your purification is the purification of Seth, your purification is the purification of Thoth, your purification is the purification of Dun-Anwy, and your purification is also among them. (PTF)",\n\t\t"The messenger of Horus loves me and has brought his eye; the mesenger of Seth loves me and has brought his testicles; the messenger of Thoth loves me and has brought his arm, and the Two Enneads have trembled at them. (PTF)"\n\t\t\t],\n\t"geb": [\n\t\t"Presenting the receptacle of dates: take the emanations of Geb, the secret substances from your body gather together and protect you. (OGC)",\n\t\t"Stand at the doors of the horizon, open the doors of the firmament, that you may stand at the head of them like Geb at the head of his Ennead. (PTF)",\n\t\t"O Geb, Bull of the sky, I am Horus, my father's heir. I have gone and returned, the fourth of these four gods who have brought water, who have administered purification, who have rejoiced in the strength of their fathers. (PTF)"\n\t\t\t],\n\t"hapy": [\n\t\t"The doors of the sky are opened for me, the doors of the cool waters are parted for me, by Thoth, by Hapy, who are the two sons of the great sky in the dawn-light. (BDQ)",\n\t\t"Hail to you, Hapy, sprung from earth, come to nourish Egypt! (Hymn to Hapy) (ALL)",\n\t\t"When he floods, earth rejoices, every belly jubilates, every jawbone takes on laughter, every tooth is bared. (Hymn to Hapy) (ALL)",\n\t\t"Food provider, bounty maker, who creates all that is good! Lord of awe, sweetly fragrant, gracious when he comes. Who makes herbage for the herds, gives sacrifice for every god. (Hymn to Hapy) (ALL)",\n\t\t"He has no shrines, no portions, no service of his choice; but youths, his children, hail him, one greets him like a king. (Hymn to Hapy) (ALL)",\n\t\t"Stand at the doors of the horizon, open the doors of the firmament, that you may stand at the head of them like Geb at the head of his Ennead. (PTF)",\n\t\t"The vineyard prospers in the district of your throne, flourishing in your favorite place. The grape-vines bend under the load, ... like Hapy. May you drink it; may you be powerful through it as the entire land rejoices. (WWO)"\n\t\t\t],\n\t"hetheru": [\n\t\t"I will have power and I will eat [my bread] under the branches of the tree of Hathor my mistress, who made offering of bread, beer and corn in Heliopolis. (BDF)",\n\t\t"Beautiful one, becoming young at thy time as the disk within the hand of thy mother Hathor. (BDB)",\n\t\t"O Hathor, your altar is cleansed by the water; your altar is purified by the incense; you are cleansed by Horus; you are purified by Thoth. (OGC)",\n\t\t"What he abhors is the sadness of Hathor, what he abhors is hunger and thirst, what he abhors is the misfortune of the feminine solar disk. (OGC)",\n\t\t"I bring you the milk coming from the Cow, the milk of the great Cow, because you're the mother of the god, who makes her child live, who places her son Horus on the throne of his father. (OGC)",\n\t\t"Hathor, daughter of the Creator, brought forth from the very beginning along with the great Nun: my physical body comes from the beginning of time. From the moment Re emerges from the primordial lotus, he illuminates the country that was in darkness. (OGC)",\n"Her perfume comes from Punt, her fragrance from the Land-of-the-Gods, her perfume is superior to that of the summer lotus, superior to that of the best oil of the royal perfumer, to that of myrrh in the bottle, the perfume of her scent comes from the perfumer's laboratory. (OGC)",\n\t\t"Her chapel is fumigated with myrrh and incense, ducks and geese are cut up on her altars; sparkling gold and faience powder are scattered on the ground amidst cereals, wine is sprinkled around her domain, music and joy! (OGC)",\n\t\t"Oh you lords of the western sky, o you gods of the western sky, o you who rule the shores of the western sky, who rejoice at Hathor's coming, who love to see her beauty rise! (Stela of King Wanankh Intef II) (ALL)",\n\t\t"I am he who makes the singer waken music for Hathor, every day at any hour she wishes. (Stela of King Wanankh Intef II) (ALL)",\n\t\t"May your heart be at peace with music, may you proceed in goodly peace, may you rejoice in life and gladness with Horus who loves you, who feasts with you on your foods, who eats with you of your offerings, may you admit me to it every day! (Stela of King Wanankh Intef II) (ALL)",\n\t\t"O you who stride out greatly, strewing green-stone, malachite, turquoise of(?) the stars, if you are green then will the King be green, (even as) a living rush is green. (PTF)",\n\t\t"Offering wine to the lady of the Two Lands, so that she may act like Re. (WWO)",\n\t\t"Take to yourself wine. O Hathor in ... May you be filled with it as you wish; may you be powerful through it; may you drink it; may Your Majesty drink together with your company. (WWO)",\n\t\t"I offer to you drunkenness, O Golden One, Mistress of drunkenness, I appease your ka with the Green Horus Eye. May your majesty rejoice over what you desire; may your face be happy with what you love; rejoice in the four faces of Re (when) he sees with them. (WWO)",\n\t\t"May Your Majesty eat, may your face be happy, may your heart be satisfied (ḥtp). All the gods live on incense burning, she (Hathor) lives on drunkenness. (WWO)"\n\t\t\t],\n\t"heru": [\n\t\t"I belong to your company, O Horus, I have fought for you and have watched over your name. (BDF)",\n\t\t"I have seen Horus as helmsman, with Thoth and Maat beside him, I have taken hold of the bow-warp of the Night-bark and the stern-warp of the Day-bark. (BDF)",\n\t\t"Their greatest stands for him on their land. He is greater than the writers who are on their mats. He has rejoined the coloured snakes in Iunu. (BDQ)",\n\t\t"I live by truth, in which I exist; I am Horus who is in hearts, he who is in the middle of what is in the body. (BDF)",\n\t\t"To Horus has been given his eye. His face is bright in the twilight of the earth. (BDQ)",\n\t\t"See, I am the writer! Bring me the fluids from Osiris, that I may write with them, and put down the speech of the great god, the good, every day, as the good deeds that you decreed to me, Horakhty. (BDQ)",\n\t\t"The eye of Horus is your protection, Osiris foremost of westerners. It selects its protection over you, it overthrows all your enemies for you. Your enemies are overthrown for you. (BDQ)",\n\t\t"O Hathor, your altar is cleansed by the water; your altar is purified by the incense; you are cleansed by Horus; you are purified by Thoth. (OGC)",\n\t\t"As for the vineyard, it is the framework that frames both eyes to protect them; as for the grape, it is the pupil of the eye of Horus; as for wine that is made, it is the tears of Horus. (OGC)",\n\t\t"I bring you the milk coming from the Cow, the milk of the great Cow, because you're the mother of the god, who makes her child live, who places her son Horus on the throne of his father. (OGC)",\n\t\t"The countryside is for you, Horus, the boundaries of the territory of Your Majesty are in the south, to the limits of the wind, in the north to the edge of the darkness of the shadows, to the west, to where the solar disk sets, to the east, to where it rises. (OGC)",\n\t\t"O Horus, take your beautiful plant on which you have ejaculated your semen that is concealed within it. The effeminate Seth has swallowed it, he has been impregnated by it, he has given birth to a male embryo that emerged from his forehead on the day of judgement. (OGC)",\n\t\t"Harsomtus, the child who shines in the lotus, is the first one created, before the other gods, he chases away the darkness from the moment he emerges from the lotus, he opens his eyes and illuminates the country, he separates night from day. (OGC)",\n\t\t"Papyrus strengthens your body; Horus of the papyrus is your name. You appear as a falcon on its crest, you are Horus, the heir of Sekhmet, the master of the papyrus thickets in his appearance of the fowler in Khemmis. (OGC)",\n\t\t"The figs are for your ka, the breasts of Horus are before you, you appreciate their taste. (OGC)",\n\t\t"If you love life, O Horus, upon his life staff of truth, do not lock the gates of heaven, do not bolt its doors. (Pyramid Texts) (ALL)",\n\t\t"Reed and papyrus were placed on the double door of the House of Ptah. That means Horus and Seth, pacified and united. They fraternized so as to cease quarreling n whatever place they might be, being united in the House of Ptah. (Memphite Theology) (ALL)",\n\t\t"<Horus has opened the mouth of this King, Horus has split open the mouth of this King> with that wherewith he split open the mouth of his father, with that wherewish he split open the mouth of Osiris, with the iron which issued from Seth. (PTF)",\n\t\t"Someone has gone with his double, Horus has gone with his double, Seth has gone with his double, Thoth has gone with his double, Dun-Anwy has gone with his double, Osiris has gone with his double, Khent-Irty has gone with his double, you also having gone with your double.",\n\t\t"O Horus who is Osiris the King, take the Eye of Horus to yourself, even the Eye of Horus which he has diffused abroad by means of its perfume. (PTF)",\n\t\t"O King, take this cold water of yours, for you have coolness with Horus in your name of Him who issued from cold water; take the efflux which issued from you. (PTF)",\n\t\t"Zmin*, zmin, which splits open your mouth! O King, taste its taste in front of them of the God's Booth. What Horus spits out is zmin, what Seth spits out is zmin, what reconciles the Two Gods is zmin. (PTF) \sn \sn (*possibly cream?)",\n\t\t"Your purification is the purification of Horus, your purification is the purification of Seth, your purification is the purification of Thoth, your purification is the purification of Dun-Anwy, and your purification is also among them. (PTF)",\n\t\t"O Osiris the King, Horus has put his Eye into your hand for you. (PTF)",\n\t\t"O King, I am your son, I am Horus; I have come and bring to you Horus' own Eyes; seize them and join them to yourself. I have joined them to you and have united them to you, for they are complete. (PTF)",\n\t\t"May you have power in your body, for you have no hindrance; you are born for Horus, you are conceived for Seth. Be pure in the Western nome, receive your purification in the Heliopolitan nome, receive your purification in the Heliopolitan nome with your father, with Atum. (PTF)",\n\t\t"The blue-eyed Horus comes against you, beware of the red-eyed Horus, violent of power, whose might none can withstand! His messengers go, his couriers run, they bear tidings to Him whose arm is raised in the East of the going of this One in you. (PTF)",\n\t\t"There is tumult in the sky; 'We see something new', say the primeval gods. O you Ennead, Horus is in the sunlight, the possessors of forms make salutation to him, all the Two Enneads serve him, for he sits on the throne of the Lord of All. (PTF)",\n\t\t"The sky is opened, the earth is opened, the doors of Sat(y) are opened for Horus, the lotus-doors are thrown open for Seth. Turn yourself about for me, O you who are in your fortress; I have passed by you as Atum. (PTF)",\n\t\t"The messenger of Horus loves me and has brought his eye; the mesenger of Seth loves me and has brought his testicles; the messenger of Thoth loves me and has brought his arm, and the Two Enneads have trembled at them. (PTF)",\n\t\t"The sky is pure for Re, the earth is pure for Horus, every god who is between them cleanses me, and I worship the god. (PTF)",\n\t\t"You shall ascend to the sky, you shall become Wepwawet, your son Horus will lead you on the celestial ways; the sky is given to you, the earth is given to you, the Field of Rushes is given to you in company with these two great gods who come out of On. (PTF)",\n\t\t"May you wake in peace, O Purified, in peace! \sn May you wake in peace, O Horus of the East, in peace! \sn May you wake in peace, O Soul of the East, in peace! \sn May you wake in peace, O Harakhti, in peace! (PTF)",\n\t\t"Behdety, the Great God, variegated of feathers, Lord of Heaven, may he give life. (WWO)",\n\t\t"This beautiful gate of the Great Seat (i.e. Edfu) is to supply the altar of the Lord of gods with all the beautiful things which come from Nepyt: A thousand of bread, tens of thousand of food which come from the store-house, for every 'Open-the-face' ceremony (WWO).",\n\t\t"Likewise are presented iw3-beef, wnḏw-beef, birds. They are fattened for the altars of He-of-the-dappled-plumages, to permeate his residence with their fragrance, to fill for him the altar with wine and šdḥ-drink, to present to him oil,... (WWO)",\n\t\t"The wine is for your ka, O Horus son of Osiris, this Eye of Horus is for Your Majesty. May you drink it; may your heart be happy; may your ka drink that which comes from you; I offer it before you daily in order to please your heart with what you love. (WWO)",\n\t\t"The king has come to you, O Horus of Edfu, Great God, Lord of Heaven. He brought to you Seth with his wine, from among the best of the vineyards of Khargeh, Ip3-jar in his hand, containing the Green Horus Eye (wine) in order to please your heart through it. (WWO)"\n\t\t\t],\n\t"ihy": [\n\t\t"Ihy, the revered child, how sweet he is to love, whose legs are nimble in the dance, whose lips are soft in song and who dispels the wrath of his mother. (OGC)"\n\t\t\t],\n\t"khepri": [\n\t\t"Hail to you, you having come as Khepri, even Khepri who is the creator of the gods (BDF).",\n\t\t"I have flown up like the primeval ones, I have become Khepri, I have grown as a plant, I have clad myself as a tortoise, I am the essence of every god, I am the seventh of those seven uraei who came into being in the west. (BDF)",\n\t\t"My forms are the forms of Khepri, herbs of Atum, herbs of Atum. (BDQ)",\n\t\t"I came into being of myself with Nun, in this my name of Khepri. I came into being as him every day. I am the lord of sunlight. (BDQ)",\n\t\t"I present the divine scarab, it protects your body from evil, it is the reprsentation of your ka in your appearance as Khepri who emerges from the nun and rises to the sky. (OGC)"\n\t\t\t],\n\t"khnum": [\n\t\t"Khnum fashions living beings, shapes humans on his wheel, brings creatures into being, fowl and livestock; he is invoked in the birth house. He gives the breath of life to the bricks of birth, he saves the shipwrecked-one from the flood. (OGC)"\n\t\t\t],\n\t"maat": [\n\t\t"I have seen Horus as helmsman, with Thoth and Maat beside him, I have taken hold of the bow-warp of the Night-bark and the stern-warp of the Day-bark. (BDF)",\n\t\t"The knot was tied about me by Nut, when I first saw Maat, when the gods and the sacred images had not yet been born. I am a heavenborn, I am in the presence of the Great Gods. (BDF)",\n\t\t"Your Maat is for you, judge and scribe who decides the truth; it is the raison d'etre of Your Majesty, it is in front of you, it emerges from your lips, it cuts your tongue. You judge the country with great accuracy. (OGC)",\n\t\t"Take your beloved daughter; she loves you, she does not withdraw from Your Majesty. She is your throat that fills your body, your gullet that leads the food to your stomach; your beautiful Maat, you live from her. (OGC)",\n\t\t"I place Maat in your heart to do well for the gods and goddesses. (OGC)",\n\t\t"May you shine as Re; repress wrongdoing, cause Ma'at to stand behind Re, shine every day for him who is in the horizon of the sky. Open the gates which are in the Abyss. (PTF)"\n\t\t\t],\n\t"nebethet": [\n\t\t"Do bring Teti milk of Isis, flowing water from Nephthys, flood of the lake, surge of the sea, life, prosperity, health, and joy, bread, beer, and clothing, things on which Teti may live! (Pyramid Texts) (ALL)",\n\t\t"Ascend &descend; descend with Re, sink into the darkness with Ndi. Ascend &descend; ascend with Re, rise with the Great Float-user. Ascend &descend; descend with Nephthys, sink into darkness with the Night-Bark. Ascend &descend; ascend with Isis, rise with the Day-Bark. (PTF)",\n\t\t"The djed-pillar of the Day-bark is released for its lord, the djed-pillar of the Day-bark is released for its protector. Isis comes and Nephthys comes, one of them from the west and one of them from the east, one of them as a 'screecher', one of them as a kite. (PTF)"\n\t\t ],\n\t"nut": [\n\t\t"Your mother Nut shall use her arms on your behalf in making greeting. (BDF)",\n\t\t"The knot was tied about me by Nut, when I first saw Maat, when the gods and the sacred images had not yet been born. I am a heavenborn, I am in the presence of the Great Gods. (BDF)",\n\t\t"Nut has spread herself over you, in her name of lake-lady of the sky. She causes you to be in the following of the great god. (BDQ)",\n\t\t"Offering the honey cake to Great Parturient Nut who gives birth to the gods: You eat from it, you are satisfied with it, you are strong because of it. (OGC)",\n\t\t"Recitation by Nut the Great Fruitful One: The King my son is my beloved; I have given to him the two horizons that he may have power in them as Harakhti. (PTF)",\n\t\t"Recitation by Nut: I enfold your beauty within this soul of mine for all life, permanence, dominion and health for the King--may he live forever! (PTF)",\n\t\t"Someone has bathed in the Field of Rushes, Re has bathed in the Field of Rushes, Someone has bathed in the Field of Rushes, this King has bathed in the Field of Rushes. This King's hand is in Re's hand. O Nut, take his hand! O Shu, lift him up! O Shu, lift him up! (PTF)"\n\t\t\t],\n\t"ptah": [\n\t\t"My mouth is given to me, my mouth is opened by Ptah, with this his chisel of meteor-metal, the one with which he opened the mouths of the gods. (BDQ)",\n\t\t"Reed and papyrus were placed on the double door of the House of Ptah. That means Horus and Seth, pacified and united. They fraternized so as to cease quarreling n whatever place they might be, being united in the House of Ptah. (Memphite Theology) (ALL)",\n\t\t"There took shape in the heart, there took shape on the tongue the form of Atum. For the very great one is Ptah, who gave (life) to all the gods and their kas through this heart and through this tongue. (Memphite Theology) (ALL)",\n\t\t"Sight, hearing, breathing--they report to the heart, and it makes every understanding come forth. As to the tongue, it repeats what the heart has devised. Thus all the gods were born and the Ennead was completed. (Memphite Theology) (ALL)",\n\t\t"But the Ennead is the teeth and lips in this mouth which pronounced the name of every thing, from which Shu and Tefnut came forth, and which gave birth to the Ennead. (Memphite Theology) (ALL)",\n\t\t"Thus it is said of Ptah: 'He who made all and created the gods.' And he is Ta-tenen, who gave birth to the gods, and from whom every thing came forth, foods, provisions, divine offerings, all good things. (Memphite Theology) (ALL)",\n\t\t"Thus it is recognized and understood that he is the mightiest of the gods. Thus Ptah was satisfied after he had made all things and all divine words. (Memphite Theology) (ALL)"\n\t\t\t],\n\t"sekhmet": [\n\t\t"Hail, Sekhmet-Bast, who gives the Nine Gods, and ties the headband, lady of the red cloth, Mistress of the White and Red Crowns, great in the terror of your father, She over whom no gods, none, can become overlord, great in word-power in the boat of millions. (BDQ)",\n\t\t"Wedjat-eye, Sekhmet, Great Goddess, mistress of the gods is her name. (BDQ)",\n\t\t"She is the lady of drunkenness, the queen of the dance. She stabs the enemy, drives back the rebels, kills off the enemies in the place of internment; she is Sekhmet the great, who has power oer the masses--the countless crowd trembles upon seeing her. (OGC)",\n\t\t"Sekhmet the Great who has power over hearts, her heart is satisfied with the pieces; she is the flame and the great one who devours the enemies, she massacres her enemies. (OGC)",\n\t\t"Papyrus strenghtens your body; Horus of the papyrus is your name. You appear as a falcon on its crest, you are Horus, the heir of Sekhmet, the master of the papyrus thickets in his appearance of the fowler in Khemmis. (OGC)",\n\t\t"Wine and libation for the ka of the Mistress of the Two Lands, Sekhmet of Sahure. (WWO)",\n\t\t"This wine which I have brought as tribute and gift upon my hands is offered as intoxication for the land of Dendera. It is mixed before your temple. How sweet is its taste (lit. beauty) to the nose of the Leader of the gods, Sekhmet, in happiness. (WWO)"\n\t\t\t],\n\t"set": [\n\t\t"The knot was tied about me by Seth, in whose power the Ennead were at first, before uproar had come into being, when he caused me to be hale. (BDF)",\n\t\t"I will not remain there. I am Seth, the one who is with the gods. I have not failed. (BDQ)",\n\t\t"I am the son, Seth, who clears the turbulence of the storm circling within the horizon of the sky, like the crooked god. (BDQ)",\n\t\t"Seth, bearer of his vessels full of good wine from the vineyards of Bahariya, the kegs in his hand full of the new eye of Horus to rejoice your heart, you drink from it, those who are in your following drink from it as well, you rejoice, their hearts are happy. (OGC)",\n\t\t"Reed and papyrus were placed on the double door of the House of Ptah. That means Horus and Seth, pacified and united. They fraternized so as to cease quarreling n whatever place they might be, being united in the House of Ptah. (Memphite Theology) (ALL)",\n\t\t"<Horus has opened the mouth of this King, Horus has split open the mouth of this King> with that wherewith he split open the mouth of his father, with that wherewish he split open the mouth of Osiris, with the iron which issued from Seth. (PTF)",\n\t\t"Someone has gone with his double, Horus has gone with his double, Seth has gone with his double, Thoth has gone with his double, Dun-Anwy has gone with his double, Osiris has gone with his double, Khent-Irty has gone with his double, you also having gone with your double. (PTF)",\n\t\t"Zmin*, zmin, which splits open your mouth! O King, taste its taste in front of them of the God's Booth. What Horus spits out is zmin, what Seth spits out is zmin, what reconciles the Two Gods is zmin. (PTF) \sn \sn (*possibly cream?)",\n\t\t"Your purification is the purification of Horus, your purification is the purification of Seth, your purification is the purification of Thoth, your purification is the purification of Dun-Anwy, and your purification is also among them. (PTF)",\n\t\t"May you have power in your body, for you have no hindrance; you are born for Horus, you are conceived for Seth. Be pure in the Western nome, receive your purification in the Heliopolitan nome, receive your purification in the Heliopolitan nome with your father, with Atum. (PTF)",\n\t\t"The sky is opened, the earth is opened, the doors of Sat(y) are opened for Horus, the lotus-doors are thrown open for Seth. Turn yourself about for me, O you who are in your fortress; I have passed by you as Atum. (PTF)",\n\t\t"The messenger of Horus loves me and has brought his eye; the mesenger of Seth loves me and has brought his testicles; the messenger of Thoth loves me and has brought his arm, and the Two Enneads have trembled at them. (PTF)",\n\t\t"I escape my day of death just as Seth escaped his day of death.I escape my halfmonths of death just asSeth escaped his halfmonths of death.I escape my months of death just asSeth escaped his months of death.I escape my year of death just as Seth escaped his year of death. (PTF)",\n\t\t"The warmth which is on your mouth is the breath which issued from the nostrils of Seth, and the winds of the sky will be destroyed if the warmth which is on your mouth be destroyed; the skil will be deprived of its stars if the warmth which is on your mouth be lacking. (PTF)",\n\t\t"The king has come to you, O Horus of Edfu, Great God, Lord of Heaven. He brought to you Seth with his wine, from among the best of the vineyards of Khargeh, Ip3-jar in his hand, containing the Green Horus Eye (wine) in order to please your heart through it. (WWO)",\n\t\t"Seth will be irrestrainable when he wishes to conquer the heart in this his name of beer. He confuses the heart to conquer the heart of the enemy, the evildoer, the male and female dead person. (WWO)"\n\t\t\t],\n\t"shu": [\n\t\t"Your soul flutters in the wind that you are; one hears the noise but does not see it. You fill the throat with breath, you open the nose with the north wind. (OGC)",\n\t\t"But the Ennead is the teeth and lips in this mouth which pronounced the name of every thing, from which Shu and Tefnut came forth, and which gave birth to the Ennead. (Memphite Theology) (ALL)",\n\t\t"Someone has bathed in the Field of Rushes, Re has bathed in the Field of Rushes, Someone has bathed in the Field of Rushes, this King has bathed in the Field of Rushes. This King's hand is in Re's hand. O Nut, take his hand! O Shu, lift him up! O Shu, lift him up! (PTF)",\n\t\t"My hunger is from the hand of Shu, my thirst is from the hand of Tefenet, but I live on the morning-bread which comes in due season. I live on that whereon Shu lives, I eat of that whereof Tefenet eats. (PTF)"\n\t\t\t],\n\t"sobek": [\n\t\t"I have come today from out of the waters of the flood; I am Sobk, green of plume, watchful of face, raised of brow, the raging one who came forth from the shank and tail of the Great One who is in the sunshine.",\n\t\t"I have come to my waterways which are in the bank of the flood of the Great Inundation, to the place of contentment, green of fields, which is in the horizon. I make green the herbage which is on the banks of the horizon, that I may bring greenness to the Eye of the Great One."\n\t\t\t],\n\t"tefnut": [\n\t\t"But the Ennead is the teeth and lips in this mouth which pronounced the name of every thing, from which Shu and Tefnut came forth, and which gave birth to the Ennead. (Memphite Theology) (ALL)",\n\t\t"My hunger is from the hand of Shu, my thirst is from the hand of Tefenet, but I live on the morning-bread which comes in due season. I live on that whereon Shu lives, I eat of that whereof Tefenet eats. (PTF)"\n\t\t\t],\n\t"wesir": [\n\t\t"I open the Netherworld that I may see my father Osiris and drive away darkness, for I am beloved of him. (BDF)",\n\t\t"King of Eternity, Lord of Everlasting, who passes millions of years in his lifetime first-born son of Nut, begotten of Geb, Heir, Lord of the Wereret-Crown, whose White Crown is tall, Sovereign of gods and men. (BDF)",\n\t\t"May your heart which is in the desert land be glad, for your son Horus is firm on your throne, while you have appeared as Lord of Busiris, as the Ruler who is in Abydos. (BDF)",\n\t\t"O Pillar of Myriads, broad of breast, kindly of countenance, who is in the Sacred Land, May you grant power in the sky, might on earth, and vindication in the realm of the dead. (BDF)",\n\t\t"Allow Osiris to go out justified against Seth: conjurations of Seth aof the conjurations of the crocodile, doubly. (BDQ)",\n\t\t"The eye of Horus is your protection, Osiris foremost of westerners. It selects its protection over you, it overthrows all your enemies for you. Your enemies are overthrown for you. (BDQ)",\n\t\t"In very truth is weighed the heart of Osiris, is his soul standing as a witness for him; his sentence is right upon the scales great. (BDB)",\n\t\t"<Horus has opened the mouth of this King, Horus has split open the mouth of this King> with that wherewith he split open the mouth of his father, with that wherewish he split open the mouth of Osiris, with the iron which issued from Seth. (PTF)",\n\t\t"Someone has gone with his double, Horus has gone with his double, Seth has gone with his double, Thoth has gone with his double, Dun-Anwy has gone with his double, Osiris has gone with his double, Khent-Irty has gone with his double, you also having gone with your double.",\n\t\t"O Horus who is Osiris the King, take the Eye of Horus to yourself, even the Eye of Horus which he has diffused abroad by means of its perfume. (PTF)",\n\t\t"The sky thunders, the earth quakes, because of the dread of you, O Osiris, when you ascend. O you milch-cows who are here, you nursing cows who are here, go round about him, beweep him, lament him, mourn him when he ascends and goes to the sky.",\n\t\t"Behold, he has come as Orion, behold, Osiris has come as Orion, Lord of Wine in the Wag-festival. 'My beautiful one!' said his mother; 'My heir!' said his father (of) him whom the sky conceived and the dawn-light bore. (PTF)",\n\t\t"The canals are filled, the waterways are flooded by means of the purification which issued from Osiris. (PTF)",\n\t\t"Offering wine to the Lord of Eternity, so that he may act like Re Every day. (WWO)"\n\t\t\t],\n\t"wepwawet": [\n\t\t"Arise, O great float-user, as Wepwawet, filled with your power, having gone up from the horizon! (PTF)",\n\t\t"Wepwawet has caused me to fly up to the sky among my brethren the gods.",\n\t\t"I ascend to the sky upon the shedshed which is in the space which separates(?), and I grasp her sandal. I am a nose which breathes, this face of mine sees my uplifting.",\n\t\t"You shall ascend to the sky, you shall become Wepwawet, your son Horus will lead you on the celestial ways; the sky is given to you, the earth is given to you, the Field of Rushes is given to you in company with these two great gods who come out of On. (PTF)",\n\t\t"You have ascended to the portal, having appeared as King and gone on high as Wepwawet; he will give support and will not tire. (PTF)"\n\t\t\t],\n\t"ra": [\n\t\t"O all you gods of the Soul-mansion who judge sky and earth in the balance, who give food and provisions, O Tatanen, Unique One, creator of mankind; O Southern, Northern, Western, and Eastern Ennads, give praise to Re, Lord of the Sky, the Sovereign who made the gods. (BDF)",\n\t\t"Hail to you when you rise in your horizon as Re who is pleased with justice; when you cross the sky, all men see you, after your movements have been hidden from their sight. (BDF)",\n\t\t"I have come to you and I am with you in order to see your disc every day; I will not be restrained or repulsed, but my flesh will be renewed at seeing your beauty. (BDF)",\n\t\t"The Mansion of the Prince is in festival, the noise of shouting is in the Great Place, the gods are in joy, when they see Re in his appearing, his rays flooding the lands. (BDF)",\n\t\t"He is Re, the eldest of the gods; his mother has suckled him, she has given to him a nurse who is in the horizon. (BDF)",\n\t\t"I am Re who is with the gods and I will not perish. (BDF)",\n\t\t"I have gone in as a falcon, I have come out as a phoenix, the god who worships Re. (BDF)",\n\t\t"Hail to you, O Re, at your rising, O Atum-Horakhty! Your beauty is worshipped in my eyes when the sunshine comes into being over my breast. (BDF)",\n\t\t"The voice goes forth, and the earth is inundated with silence, for the Sole One came into existence in the sky before the plains and the mountains existed. (BDF)",\n\t\t"For you have passed through seasons of millions and hundreds of thousands of moments; when you have spent them you have gone to rest, you have also completed the hours of the night, and you have regulated and completed them according to your regular custom. (BDF)",\n\t\t"Great Illuminator who shines forth from the Abyss, who knits his family together in the waters, who makes festal all estates, towns, and households, may your spirit be sustained with food and provisions. (BDF)",\n\t\t"Ra lives, the criminal serpent dies. (BDQ)",\n\t\t"Jubilation for you, maker of the gods, raising the sky to the embrace of his eyes, maker of the earth to the breadth of his Light, to allow each man to sight his second, the night boat is in rejoicing, the day boat is in jubilation. (BDQ)",\n\t\t"The night boat is in rejoicing, the day boat is in jubilation, they have crossed the primeval waters for you, in peace, with your crew peaceful. (BDQ)",\n\t\t"Your will is done, your will is done, o Ra! Good is done, rejoicing is made. (BDQ)",\n\t\t"Hathor, daughter of the Creator, brought forth from the very beginning along with the great Nun: my physical body comes from the beginning of time. From the moment Re emerges from the primordial lotus, he illuminates the country that was in darkness. (OGC)",\n\t\t"The god Re wept and the secretions of his eye fell on the ground and changed into a bee. When the bee had been created, its activity was exerted on the flowers, so wax and honey were created. (OGC)",\n\t\t"The divine scarab, it protects your ka, the mysterious image of Re protects your body from evil. (OGC)",\n\t\t"Hail, o Re, in your beauty, your splendor, on your thrones, in your radiance! (Pyramid Texts) (ALL)",\n\t\t"Re in the sky is gracious to you, and he conciliates the Two Lords for you. Night is gracious to you, the Two Ladies are gracious to you. Graciousness is what has been brought to you, graciousness is what you see, graciousness is what you hear. (PTF)",\n\t\t"O you who are over the baked foods, O you who are concerned with the supplies of drink, the King is committed to Fetket the butler of Ra, for Ra himself has committed him to him, and Re commits to him who is over the catering for this year. (PTF)",\n\t\t"Ascend and descend;descend with Re,sink into the darkness with Ndi.Ascend and descend;ascend with Re,rise with the Great Float-user.Ascend and descend;descend with Nephthys,sink into darkness with the Night-Bark.Ascend and descend;ascend with Isis,rise with the Day-Bark. (PTF)",\n\t\t"Someone has bathed in the Field of Rushes, Re has bathed in the Field of Rushes, Someone has bathed in the Field of Rushes, this King has bathed in the Field of Rushes. This King's hand is in Re's hand. O Nut, take his hand! O Shu, lift him up! O Shu, lift him up! (PTF)",\n\t\t"I will ascend to the sky to you, O Re, for my face is that of falcons, my wings are those of ducks, my talons are the fangs of Him of the Cerastes-Mountain. There is no word against me on earth among men, there is no accusation in the sky among the gods. (PTF)",\n\t"The sky is pure for Re, the earth is pure for Horus, every god who is between them cleanses me, and I worship the god. (PTF)",\n\t\t"May you shine as Re; repress wrongdoing, cause Ma'at to stand behind Re, shine every day for him who is in the horizon of the sky. Open the gates which are in the Abyss. (PTF)",\n\t\t"Offering wine, so that he may make life to be given like Re('s). (WWO)",\n\t\t"I have given to you the life-time of Re and the years of Atum. (WWO)",\n\t\t"I have come to you, O Amon-Re, August god, who begot everything, I cause the vineyard to flourish in the place where you like, and the inundation in your favorite place. (WWO)"\n\t\t\t]\n}\n\n
v.2016-09-05
//requires jquery\n\n// input: an array of objects\n//\t\t a property that each of those object have\n// output: an array of the properties of all the objects\nwindow.skimObjectArray = function(objectArray, property){\n\tconsole.log("skimObjectArray(", "objectArray", objectArray, "property", property, ")")\n\tvar values = [];\n\n\tfor (var i = 0; i < objectArray.length; i++) {\n\t\tvar thingToAdd = objectArray[i][property];\n\t\tif(typeof thingToAdd === "object"){\n\t\t\t// i hope to god this works\n\t\t\tthingToAdd = objectArray[i][property].join("\sn")\n\t\t}\n\t\tvalues.push( thingToAdd );\n\t};\n\n\tvalues = values.join("\sn");\n\tvalues = values.split("\sn")\n\n\treturn values;\n}\n\nStory.prototype.appendCorpora = function(){\n\tvar corporaToAppend = tale.lookup("tags", "corpus");\n\tif(!corporaToAppend.length) return;\n\n\tfor(var i in corporaToAppend){\n\t\tvar currentPassage = corporaToAppend[i].title;\n\n\t\t// the rules are the concatenation of each symbol in this passage\n\t\tvar rules = [];\n\t\tvar lines = tale.passages[currentPassage].text.split("\sn")\n\t\tfor(var j in lines){\n\t\t\tvar line = lines[j];\n\t\t\tvar location = line.split("#");\n\t\t\tconsole.log("location: ", location);\n\t\t\tvar corpusLocation = location[0];\n\n\t\t\t// fetch me that sweet sweet boy\n\t\t\tvar corpus = $.ajax({\n\t\t\t\tdataType: "json",\n\t\t\t\turl: corpusLocation,\n\t\t\t\tasync: false\n\t\t\t});\n\t\t\tcorpus = corpus.responseJSON;\n\n\t\t\t// drill down to the array we want\n\t\t\tfor (var i = 1; i < location.length; i++) {\n\t\t\t\tconsole.log("corpus: ", corpus);\n\t\t\t\t// if there's a ! at the beginning of a location, skim the objArray for that property\n\t\t\t\tif(location[i][0] === "!"){\n\t\t\t\t\tcorpus = skimObjectArray(corpus, location[i].substring(1));\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tcorpus = corpus[ location[i] ]\n\t\t\t};\n\n\t\t\tconsole.log("corpus: ", corpus);\n\t\t\t// add this into the symbol-in-progress\n\t\t\trules = rules.concat(corpus);\n\t\t\tconsole.log("rules: ", rules)\n\t\t}\n\n\t\t// the name of this symbol is the name of the passage\n\t\tvar finalJSON = "{ \s"" + currentPassage + "\s": " + JSON.stringify(rules) + " }";\n\n\t\t// save our dark deeds to the passage\n\t\ttale.passages[currentPassage].text = finalJSON;\n\n\t\t//tag this as JSON so it gets appended in the next step\n\t\ttale.passages[currentPassage].tags.push("JSON")\n\t}\n\n\tconsole.log("corpora loaded")\n}\n\nStory.prototype.appendJSON = function() {\n\tvar JSONtoAppend = tale.lookup("tags", "JSON");\n\tif(!JSONtoAppend.length) return;\n\n\tfor(i in JSONtoAppend){\n\t\tvar newJSON = JSON.parse(JSONtoAppend[i].text);\n\t\t$.extend(this.data, newJSON);\n\t}\n\tconsole.log("JSON appended");\n}\n\nfunction Story(){\n\tvar grammars = tale.lookup("tags", "grammar", "title");\n\tthis.data = {};\n\n\tvar links = /(\s[\s[\sb)(.+?)(\sb\s]\s])/g;\n\tvar sublinks = /([^\s[\s]]+)*(.+)/\n\n\tfunction convertSyntax(match, p1, p2, p3){\n\t\t// If a passage is invoked that's tagged as a grammar, change Twine links into Tracery symbols.\n\t\t// e.g.: [[animal]] => #animal#\n\t\t// e.g.: [[animal][capitalize]] => #animal.capitalize#\n\n\t\t// p1 is left brackets, p3 is right brackets\n\t\tvar targetLink = p2.split("][")[0];\n\t\tvar modifiers = p2.split("][").slice(1, p2.length).join(".");\n\t\tmodifiers = modifiers?("." + modifiers):"";\n\t\t\n\t\tvar trace = "#" + targetLink + modifiers + "#";\n\t\t\n\t\tvar linkIsGrammar = false;\n\t\tvar tags = tale.get(targetLink).tags\n\t\tfor(var i = 0; i < tags.length; i++){\n\t\t\tif(tags[i] == "grammar" || tags[i] == "corpus"){\n\t\t\t\tlinkIsGrammar = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn linkIsGrammar?trace:match;\n\t}\n\n\tfor(var i in grammars){\n\t\tif(grammars[i] == undefined) continue;\n\n\t\t// Passage names become grammar names, Passage text becomes grammar text. \n\t\tvar newSymbol = grammars[i].title\n\t\tvar newText = grammars[i].text\n\n\t\tvar link = /(\s[\s[\sb)(.+?)(\sb\s]\s])/g;\n\t\tnewText = newText.replace(link, convertSyntax);\n\t\t// Get everything that's being linked to.\n\n\t\tthis.data[newSymbol] = newText.split('\sn');\n\t}\n\n\tthis.appendCorpora();\n\tthis.appendJSON();\n\tconsole.log("Story: ", this);\n}\nStory.prototype.constructor = Story;\n\n// Append this to the tale object because I don't know where else to put it.\nTale.prototype.story = new Story();\n\nStory.prototype.toHTML = function() {\n\tvar output = [];\n\tvar tab = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";\n\tvar beg = '\sn' + tab + "\s"<span class=\s"grammarContents\s">{{{"\n\tvar end = "}}}</span>\s""\n\n\tfor(var i in this.data){\n\t\tvar gram = "<span class=\s"grammarTitle\s">\s"" + i + "\s"</span>: [";\n\t\tgram += beg + this.data[i].join(end + ',' + beg) + end;\n\t\tgram += "]";\n\t\toutput.push(gram);\n\t}\n\treturn "{\sn" + output.join(",\sn") + "\sn}";\n}\n\nTale.prototype.JSONtoTwee = function() {\n\tvar JSONtoConvert = tale.lookup("tags", "JSON");\n\tvar combinedJSON = ""\n\n\tfor (var i in JSONtoConvert){\n\t\tcombinedJSON += JSONtoConvert[i].text;\n\t}\n\n\t// Note the {{{}}} delimiters in textPost. This is intended for display in Twine, so\n\t// if you're just running these raw they aren't necessary.\n\tvar regex = {titlesPre: /\st"(.+)": \s[/g, titlesPost: "<br>:: $1 [grammar]",\n\t\t\t\t textPre: /\st*"(.+)",*(?:\sn\st)?(?:\s],)*\sn/g, textPost: "{{{$1}}}<br>"}\n\n\tvar tweeOutput = combinedJSON.replace(regex.titlesPre, regex.titlesPost);\n\ttweeOutput = tweeOutput.replace(regex.textPre, regex.textPost);\n\ttweeOutput = tweeOutput.replace(/({\sn)|(]\sn})/g, "")\n\n\treturn tweeOutput;\n}
window.tracery = {\n utilities : {}\n};\n\n(function () {/**\n * @author Kate Compton\n */\n\nfunction inQuotes(s) {\n return '"' + s + '"';\n};\n\nfunction parseAction(action) {\n return action;\n};\n\n// tag format\n// a thing to expand, plus actions\n\nfunction parseTag(tag) {\n var errors = [];\n var prefxns = [];\n var postfxns = [];\n\n var lvl = 0;\n var start = 0;\n\n var inPre = true;\n\n var symbol,\n mods;\n\n function nonAction(end) {\n if (start !== end) {\n var section = tag.substring(start, end);\n if (!inPre) {\n errors.push("multiple possible expansion symbols in tag!" + tag);\n } else {\n inPre = false;\n var split = section.split(".");\n symbol = split[0];\n mods = split.slice(1, split.length);\n }\n\n }\n start = end;\n };\n\n for (var i = 0; i < tag.length; i++) {\n var c = tag.charAt(i);\n\n switch(c) {\n case '[':\n if (lvl === 0) {\n nonAction(i);\n }\n\n lvl++;\n break;\n case ']':\n lvl--;\n if (lvl === 0) {\n var section = tag.substring(start + 1, i);\n if (inPre)\n prefxns.push(parseAction(section));\n else\n postfxns.push(parseAction(section));\n start = i + 1;\n }\n break;\n\n default:\n if (lvl === 0) {\n\n }\n break;\n\n }\n }\n nonAction(i);\n\n if (lvl > 0) {\n var error = "Too many '[' in rule " + inQuotes(tag);\n errors.push(error);\n\n }\n\n if (lvl < 0) {\n var error = "Too many ']' in rule " + inQuotes(tag);\n errors.push(error);\n\n }\n\n return {\n preActions : prefxns,\n postActions : postfxns,\n symbol : symbol,\n mods : mods,\n raw : tag,\n errors : errors,\n };\n};\n\n// Split a rule into sections\nfunction parseRule(rule) {\n var sections = [];\n var errors = [];\n if (!( typeof rule == 'string' || rule instanceof String)) {\n errors.push("Cannot parse non-string rule " + rule);\n sections.errors = errors;\n return sections;\n }\n\n if (rule.length === 0) {\n return [];\n }\n\n var lvl = 0;\n var start = 0;\n var inTag = false;\n\n function createSection(end) {\n var section = rule.substring(start, end);\n if (section.length > 0) {\n if (inTag)\n sections.push(parseTag(section));\n else\n sections.push(section);\n }\n inTag = !inTag;\n start = end + 1;\n\n }\n\n for (var i = 0; i < rule.length; i++) {\n var c = rule.charAt(i);\n\n switch(c) {\n case '[':\n lvl++;\n break;\n case ']':\n lvl--;\n break;\n case '#':\n if (lvl === 0) {\n createSection(i);\n }\n break;\n default:\n break;\n\n }\n\n }\n\n if (lvl > 0) {\n var error = "Too many '[' in rule " + inQuotes(rule);\n errors.push(error);\n\n }\n\n if (lvl < 0) {\n var error = "Too many ']' in rule " + inQuotes(rule);\n errors.push(error);\n\n }\n\n if (inTag) {\n var error = "Odd number of '#' in rule " + inQuotes(rule);\n errors.push(error);\n }\n\n createSection(rule.length);\n sections.errors = errors;\n return sections;\n};\n\nfunction testParse(rule, shouldFail) {\n console.log("-------");\n console.log("Test parse rule: " + inQuotes(rule) + " " + shouldFail);\n var parsed = parseRule(rule);\n if (parsed.errors && parsed.errors.length > 0) {\n for (var i = 0; i < parsed.errors.length; i++) {\n console.log(parsed.errors[i]);\n }\n }\n \n\n}\n\nfunction testParseTag(tag, shouldFail) {\n console.log("-------");\n console.log("Test parse tag: " + inQuotes(tag) + " " + shouldFail);\n var parsed = parseTag(tag);\n if (parsed.errors && parsed.errors.length > 0) {\n for (var i = 0; i < parsed.errors.length; i++) {\n console.log(parsed.errors[i]);\n }\n }\n}\n\ntracery.testParse = testParse;\ntracery.testParseTag = testParseTag;\ntracery.parseRule = parseRule;\ntracery.parseTag = parseTag;\n\n\nfunction spacer(size) {\n var s = "";\n for (var i = 0; i < size * 3; i++) {\n s += " ";\n }\n return s;\n}\n\n/* Simple JavaScript Inheritance\n * By John Resig http://ejohn.org/\n * MIT Licensed.\n */\n\nfunction extend(destination, source) {\n for (var k in source) {\n if (source.hasOwnProperty(k)) {\n destination[k] = source[k];\n }\n }\n return destination;\n}\n\n// Inspired by base2 and Prototype\n(function() {\n var initializing = false,\n fnTest = /xyz/.test(function() { xyz;\n }) ? /\sb_super\sb/ : /.*/;\n\n // The base Class implementation (does nothing)\n this.Class = function() {\n };\n\n // Create a new Class that inherits from this class\n Class.extend = function(prop) {\n var _super = this.prototype;\n\n // Instantiate a base class (but only create the instance,\n // don't run the init constructor)\n initializing = true;\n var prototype = new this();\n initializing = false;\n\n // Copy the properties over onto the new prototype\n for (var name in prop) {\n // Check if we're overwriting an existing function\n prototype[name] = typeof prop[name] == "function" && typeof _super[name] == "function" && fnTest.test(prop[name]) ? (function(name, fn) {\n return function() {\n var tmp = this._super;\n\n // Add a new ._super() method that is the same method\n // but on the super-class\n this._super = _super[name];\n\n // The method only need to be bound temporarily, so we\n // remove it when we're done executing\n var ret = fn.apply(this, arguments);\n this._super = tmp;\n\n return ret;\n };\n })(name, prop[name]) : prop[name];\n }\n\n // The dummy class constructor\n function Class() {\n // All construction is actually done in the init method\n if (!initializing && this.init)\n this.init.apply(this, arguments);\n }\n\n // Populate our constructed prototype object\n Class.prototype = prototype;\n\n // Enforce the constructor to be what we expect\n Class.prototype.constructor = Class;\n\n // And make this class extendable\n Class.extend = arguments.callee;\n\n return Class;\n };\n})();\n\n/**\n * @author Kate\n */\n\nvar Rule = function(raw) {\n this.raw = raw;\n this.sections = parseRule(raw);\n\n};\n\nRule.prototype.getParsed = function() {\n if (!this.sections)\n this.sections = parseRule(raw);\n\n return this.sections;\n};\n\nRule.prototype.toString = function() {\n return this.raw;\n};\n\nRule.prototype.toJSONString = function() {\n return this.raw;\n};\n\n/**\n * @author Kate\n */\n\nvar RuleWeighting = Object.freeze({\n RED : 0,\n GREEN : 1,\n BLUE : 2\n});\n\nvar RuleSet = function(rules) {\n // is the rules obj an array? A RuleSet, or a string?\n if (rules.constructor === Array) {\n // make a copy\n rules = rules.slice(0, rules.length);\n } else if (rules.prototype === RuleSet) {\n // clone\n } else if ( typeof rules == 'string' || rules instanceof String) {\n var args = Array.prototype.slice.call(arguments);\n rules = args;\n } else {\n console.log(rules);\n throw ("creating ruleset with unknown object type!");\n }\n\n // create rules and their use counts\n\n this.rules = rules;\n this.parseAll();\n\n this.uses = [];\n this.startUses = [];\n this.totalUses = 0;\n for (var i = 0; i < this.rules.length; i++) {\n this.uses[i] = 0;\n this.startUses[i] = this.uses[i];\n this.totalUses += this.uses[i];\n }\n\n};\n\n//========================================================\n// Iterating over rules\n\nRuleSet.prototype.parseAll = function(fxn) {\n for (var i = 0; i < this.rules.length; i++) {\n if (this.rules[i].prototype !== Rule)\n this.rules[i] = new Rule(this.rules[i]);\n }\n\n};\n\n//========================================================\n// Iterating over rules\n\nRuleSet.prototype.mapRules = function(fxn) {\n return this.rules.map(function(rule, index) {\n return fxn(rule, index);\n });\n};\n\nRuleSet.prototype.applyToRules = function(fxn) {\n for (var i = 0; i < this.rules.length; i++) {\n fxn(this.rules[i], i);\n }\n};\n//========================================================\nRuleSet.prototype.get = function() {\n var index = this.getIndex();\n\n return this.rules[index];\n};\n\nRuleSet.prototype.getRandomIndex = function() {\n return Math.floor(this.uses.length * Math.random());\n};\n\nRuleSet.prototype.getIndex = function() {\n // Weighted distribution\n // Imagine a bar of length 1, how to divide the length\n // s.t. a random dist will result in the dist we want?\n\n var index = this.getRandomIndex();\n // What if the uses determine the chance of rerolling?\n\n var median = this.totalUses / this.uses.length;\n\n var count = 0;\n while (this.uses[index] > median && count < 20) {\n index = this.getRandomIndex();\n count++;\n }\n\n // reroll more likely if index is too much higher\n\n return index;\n};\n\nRuleSet.prototype.decayUses = function(pct) {\n this.totalUses = 0;\n for (var i = 0; i < this.uses; i++) {\n\n this.uses[index] *= 1 - pct;\n this.totalUses += this.uses[index];\n }\n};\n\nRuleSet.prototype.testRandom = function() {\n console.log("Test random");\n var counts = [];\n for (var i = 0; i < this.uses.length; i++) {\n counts[i] = 0;\n }\n\n var testCount = 10 * this.uses.length;\n for (var i = 0; i < testCount; i++) {\n\n var index = this.getIndex();\n this.uses[index] += 1;\n\n counts[index]++;\n this.decayUses(.1);\n }\n\n for (var i = 0; i < this.uses.length; i++) {\n console.log(i + ":\st" + counts[i] + " \st" + this.uses[i]);\n }\n};\n\nRuleSet.prototype.getSaveRules = function() {\n var jsonRules = this.rules.map(function(rule) {\n return rule.toJSONString();\n });\n\n return jsonRules;\n};\n\n/**\n * @author Kate Compton\n */\n\nvar Action = function(node, raw) {\n\n this.node = node;\n this.grammar = node.grammar;\n this.raw = raw;\n\n};\n\nAction.prototype.activate = function() {\n\n var node = this.node;\n node.actions.push(this);\n\n // replace any hashtags\n this.amended = this.grammar.flatten(this.raw);\n\n var parsed = parseTag(this.amended);\n var subActionRaw = parsed.preActions;\n if (subActionRaw && subActionRaw.length > 0) {\n this.subactions = subActionRaw.map(function(action) {\n return new Action(node, action);\n });\n\n }\n\n if (parsed.symbol) {\n var split = parsed.symbol.split(":");\n\n if (split.length === 2) {\n this.push = {\n symbol : split[0],\n\n // split into multiple rules\n rules : split[1].split(","),\n };\n // push\n node.grammar.pushRules(this.push.symbol, this.push.rules);\n\n } else\n throw ("Unknown action: " + parsed.symbol);\n }\n\n if (this.subactions) {\n for (var i = 0; i < this.subactions.length; i++) {\n this.subactions[i].activate();\n }\n }\n\n};\n\nAction.prototype.deactivate = function() {\n if (this.subactions) {\n for (var i = 0; i < this.subactions.length; i++) {\n this.subactions[i].deactivate();\n }\n }\n\n if (this.push) {\n this.node.grammar.popRules(this.push.symbol, this.push.rules);\n }\n};\n\n/**\n * @author Kate Compton\n */\n\nvar isConsonant = function(c) {\n c = c.toLowerCase();\n switch(c) {\n case 'a':\n return false;\n case 'e':\n return false;\n case 'i':\n return false;\n case 'o':\n return false;\n case 'u':\n return false;\n\n }\n return true;\n};\n\nfunction endsWithConY(s) {\n if (s.charAt(s.length - 1) === 'y') {\n return isConsonant(s.charAt(s.length - 2));\n }\n return false;\n};\n\nvar universalModifiers = {\n capitalizeAll : function(s) {\n return s.replace(/(?:^|\ss)\sS/g, function(a) {\n return a.toUpperCase();\n });\n\n },\n\n capitalize : function(s) {\n return s.charAt(0).toUpperCase() + s.slice(1);\n\n },\n\n inQuotes : function(s) {\n return '"' + s + '"';\n },\n\n comma : function(s) {\n var last = s.charAt(s.length - 1);\n if (last === ",")\n return s;\n if (last === ".")\n return s;\n if (last === "?")\n return s;\n if (last === "!")\n return s;\n return s + ",";\n },\n\n beeSpeak : function(s) {\n // s = s.replace("s", "zzz");\n\n s = s.replace(/s/, 'zzz');\n return s;\n },\n\n a : function(s) {\n if (!isConsonant(s.charAt()))\n return "an " + s;\n return "a " + s;\n\n },\n\n s : function(s) {\n\n var last = s.charAt(s.length - 1);\n\n switch(last) {\n case 'y':\n\n // rays, convoys\n if (!isConsonant(s.charAt(s.length - 2))) {\n return s + "s";\n }\n // harpies, cries\n else {\n return s.slice(0, s.length - 1) + "ies";\n }\n break;\n\n // oxen, boxen, foxen\n case 'x':\n return s.slice(0, s.length - 1) + "en";\n case 'z':\n return s.slice(0, s.length - 1) + "es";\n case 'h':\n return s.slice(0, s.length - 1) + "es";\n\n default:\n return s + "s";\n };\n\n },\n\n ed : function(s) {\n\n var index = s.indexOf(" ");\n var s = s;\n var rest = "";\n if (index > 0) {\n rest = s.substring(index, s.length);\n s = s.substring(0, index);\n\n }\n\n var last = s.charAt(s.length - 1);\n\n switch(last) {\n case 'y':\n\n // rays, convoys\n if (isConsonant(s.charAt(s.length - 2))) {\n return s.slice(0, s.length - 1) + "ied" + rest;\n\n }\n // harpies, cries\n else {\n return s + "ed" + rest;\n }\n break;\n case 'e':\n return s + "d" + rest;\n\n break;\n\n default:\n return s + "ed" + rest;\n };\n }\n};\n/**\n * @author Kate Compton\n */\n\n// A tracery expansion node\nvar nodeCount = 0;\n\nvar ExpansionNode = Class.extend({\n init : function() {\n this.depth = 0;\n this.id = nodeCount;\n nodeCount++;\n this.childText = "[[UNEXPANDED]]";\n },\n\n setParent : function(parent) {\n if (parent) {\n this.depth = parent.depth + 1;\n this.parent = parent;\n this.grammar = parent.grammar;\n }\n },\n\n expand : function() {\n // do nothing\n return "???";\n },\n\n expandChildren : function() {\n\n if (this.children) {\n this.childText = "";\n for (var i = 0; i < this.children.length; i++) {\n this.children[i].expand();\n this.childText += this.children[i].finalText;\n }\n this.finalText = this.childText;\n }\n\n },\n\n createChildrenFromSections : function(sections) {\n var root = this;\n this.children = sections.map(function(section) {\n\n if ( typeof section == 'string' || section instanceof String) {\n // Plaintext\n return new TextNode(root, section);\n } else {\n return new TagNode(root, section);\n }\n });\n }\n});\n\nvar RootNode = ExpansionNode.extend({\n init : function(grammar, rawRule) {\n this._super();\n this.grammar = grammar;\n this.parsedRule = parseRule(rawRule);\n },\n\n expand : function() {\n var root = this;\n this.createChildrenFromSections(this.parsedRule);\n\n // expand the children\n this.expandChildren();\n },\n});\n\nvar TagNode = ExpansionNode.extend({\n init : function(parent, parsedTag) {\n this._super();\n\n if (!(parsedTag !== null && typeof parsedTag === 'object')) {\n if ( typeof parsedTag == 'string' || parsedTag instanceof String) {\n console.warn("Can't make tagNode from unparsed string!");\n parsedTag = parseTag(parsedTag);\n\n } else {\n console.log("Unknown tagNode input: ", parsedTag);\n throw ("Can't make tagNode from strange tag!");\n\n }\n }\n\n this.setParent(parent);\n $.extend(this, parsedTag);\n },\n\n expand : function() {\n if (tracery.outputExpansionTrace)\n console.log(r.sections);\n\n this.rule = this.grammar.getRule(this.symbol);\n\n this.actions = [];\n\n // Parse the rule if it hasn't been already\n this.createChildrenFromSections(this.rule.getParsed());\n\n // Do any pre-expansion actions!\n for (var i = 0; i < this.preActions.length; i++) {\n var action = new Action(this, this.preActions[i]);\n action.activate();\n }\n\n // Map each child section to a node\n if (!this.rule.sections)\n console.log(this.rule);\n\n this.expandChildren();\n\n for (var i = 0; i < this.actions.length; i++) {\n\n this.actions[i].deactivate();\n }\n\n this.finalText = this.childText;\n for (var i = 0; i < this.mods.length; i++) {\n this.finalText = this.grammar.applyMod(this.mods[i], this.finalText);\n }\n\n },\n\n toLabel : function() {\n return this.symbol;\n },\n toString : function() {\n return "TagNode '" + this.symbol + "' mods:" + this.mods + ", preactions:" + this.preActions + ", postactions" + this.postActions;\n }\n});\n\nvar TextNode = ExpansionNode.extend({\n isLeaf : true,\n init : function(parent, text) {\n this._super();\n\n this.setParent(parent);\n\n this.text = text;\n\n this.finalText = text;\n },\n expand : function() {\n // do nothing\n },\n\n toLabel : function() {\n return this.text;\n }\n});\n\n/**\n * @author Kate Compton\n */\n\nfunction Symbol(grammar, key) {\n this.grammar = grammar;\n this.key = key;\n this.currentRules = undefined;\n this.ruleSets = [];\n\n};\n\nSymbol.prototype.loadFrom = function(rules) {\n\n rules = this.wrapRules(rules);\n this.baseRules = rules;\n\n this.ruleSets.push(rules);\n this.currentRules = this.ruleSets[this.ruleSets.length - 1];\n\n};\n\n//========================================================\n// Iterating over rules\n\nSymbol.prototype.mapRules = function(fxn) {\n\n return this.currentRules.mapRules(fxn);\n};\n\nSymbol.prototype.applyToRules = function(fxn) {\n this.currentRules.applyToRules(fxn);\n};\n\n//==================================================\n// Rule pushpops\nSymbol.prototype.wrapRules = function(rules) {\n if (rules.prototype !== RuleSet) {\n if (Array.isArray(rules)) {\n return new RuleSet(rules);\n } else if ( typeof rules == 'string' || rules instanceof String) {\n return new RuleSet(rules);\n } else {\n throw ("Unknown rules type: " + rules);\n }\n }\n // already a ruleset\n return rules;\n};\n\nSymbol.prototype.pushRules = function(rules) {\n rules = this.wrapRules(rules);\n this.ruleSets.push(rules);\n this.currentRules = this.ruleSets[this.ruleSets.length - 1];\n};\n\nSymbol.prototype.popRules = function() {\n var exRules = this.ruleSets.pop();\n\n if (this.ruleSets.length === 0) {\n //console.warn("No more rules for " + this + "!");\n }\n this.currentRules = this.ruleSets[this.ruleSets.length - 1];\n};\n\n// Clear everything and set the rules\nSymbol.prototype.setRules = function(rules) {\n\n rules = this.wrapRules(rules);\n this.ruleSets = [rules];\n this.currentRules = rules;\n\n};\n\nSymbol.prototype.addRule = function(rule) {\n this.currentRules.addRule(seed);\n};\n\n//========================================================\n// selection\n\nSymbol.prototype.select = function() {\n this.isSelected = true;\n\n};\n\nSymbol.prototype.deselect = function() {\n this.isSelected = false;\n};\n\n//==================================================\n// Getters\n\nSymbol.prototype.getRule = function(seed) {\n return this.currentRules.get(seed);\n};\n\n//==================================================\n\nSymbol.prototype.toString = function() {\n return this.key + ": " + this.currentRules + "(overlaying " + (this.ruleSets.length - 1) + ")";\n};\nSymbol.prototype.toJSON = function() {\n\n var rules = this.baseRules.rules.map(function(rule) {\n return '"' + rule.raw + '"';\n });\n return '"' + this.key + '"' + ": [" + rules.join(", ") + "]";\n};\n\nSymbol.prototype.toHTML = function(useSpans) {\n var keySpan = '"' + this.key + '"';\n if (useSpans)\n keySpan = "<span class='symbol symbol_" + this.key + "'>" + keySpan + "</span>";\n\n var rules = this.baseRules.rules.map(function(rule) {\n var s = '"' + rule.raw + '"';\n if (useSpans)\n s = "<span class='rule'>" + s + "</span>";\n return s;\n });\n return keySpan + ": [" + rules.join(", ") + "]";\n};\n\n/**\n * @author Kate Compton\n */\n\nfunction Grammar() {\n this.clear();\n};\n\nGrammar.prototype.clear = function() {\n // Symbol library\n this.symbols = {};\n \n this.errors = [];\n \n // Modifier library\n this.modifiers = {};\n\n // add the universal mods\n for (var mod in universalModifiers) {\n if (universalModifiers.hasOwnProperty(mod))\n this.modifiers[mod] = universalModifiers[mod];\n }\n};\n//========================================================\n// Loading\n\nGrammar.prototype.loadFrom = function(obj) {\n var symbolSrc;\n\n this.clear();\n\n if (obj.symbols !== undefined) {\n symbolSrc = obj.symbols;\n } else {\n symbolSrc = obj;\n }\n\n // get all json keys\n var keys = Object.keys(symbolSrc);\n\n this.symbolNames = [];\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n this.symbolNames.push(key);\n\n this.symbols[key] = new Symbol(this, key);\n this.symbols[key].loadFrom(symbolSrc[key]);\n }\n\n};\n\nGrammar.prototype.toHTML = function(useSpans) {\n // get all json keys\n var keys = Object.keys(this.symbols);\n\n this.symbolNames = [];\n\n var lines = [];\n\n var count = 0;\n for (var i = 0; i < keys.length; i++) {\n\n var key = keys[i];\n var symbol = this.symbols[key];\n\n if (symbol && symbol.baseRules) {\n\n lines.push(" " + this.symbols[key].toHTML(useSpans));\n\n }\n };\n\n var s;\n s = lines.join(",</p><p>");\n s = "{<p>" + s + "</p>}";\n return s;\n};\n\nGrammar.prototype.toJSON = function() {\n // get all json keys\n var keys = Object.keys(this.symbols);\n\n this.symbolNames = [];\n\n var lines = [];\n\n var count = 0;\n for (var i = 0; i < keys.length; i++) {\n\n var key = keys[i];\n var symbol = this.symbols[key];\n\n if (symbol && symbol.baseRules) {\n\n lines.push(" " + this.symbols[key].toJSON());\n\n }\n };\n\n var s;\n s = lines.join(",\sn");\n s = "{\sn" + s + "\sn}";\n return s;\n};\n\n//========================================================\n// selection\n\nGrammar.prototype.select = function() {\n this.isSelected = true;\n};\n\nGrammar.prototype.deselect = function() {\n this.isSelected = false;\n};\n\n//========================================================\n// Iterating over symbols\n\nGrammar.prototype.mapSymbols = function(fxn) {\n var symbols = this.symbols;\n return this.symbolNames.map(function(name) {\n return fxn(symbols[name], name);\n });\n};\n\nGrammar.prototype.applyToSymbols = function(fxn) {\n for (var i = 0; i < this.symbolNames.length; i++) {\n var key = this.symbolNames[i];\n fxn(this.symbols[key], key);\n }\n};\n\n//========================================================\nGrammar.prototype.addOrGetSymbol = function(key) {\n if (this.symbols[key] === undefined)\n this.symbols[key] = new Symbol(key);\n\n return this.symbols[key];\n};\n\nGrammar.prototype.pushRules = function(key, rules) {\n var symbol = this.addOrGetSymbol(key);\n symbol.pushRules(rules);\n};\n\nGrammar.prototype.popRules = function(key, rules) {\n var symbol = this.addOrGetSymbol(key);\n var popped = symbol.popRules();\n\n if (symbol.ruleSets.length === 0) {\n // remove symbol\n this.symbols[key] = undefined;\n }\n};\n\nGrammar.prototype.applyMod = function(modName, text) {\n if (!this.modifiers[modName]) {\n console.log(this.modifiers);\n throw ("Unknown mod: " + modName);\n }\n return this.modifiers[modName](text);\n};\n\n//============================================================\nGrammar.prototype.getRule = function(key, seed) {\n var symbol = this.symbols[key];\n if (symbol === undefined) {\n var r = new Rule("{{" + key + "}}");\n\n r.error = "Missing symbol " + key;\n return r;\n }\n\n var rule = symbol.getRule();\n if (rule === undefined) {\n var r = new Rule("[" + key + "]");\n console.log(r.sections);\n r.error = "Symbol " + key + " has no rule";\n return r;\n }\n\n return rule;\n};\n\n//============================================================\n// Expansions\nGrammar.prototype.expand = function(raw) {\n\n // Start a new tree\n var root = new RootNode(this, raw);\n\n root.expand();\n\n return root;\n};\n\nGrammar.prototype.flatten = function(raw) {\n\n // Start a new tree\n var root = new RootNode(this, raw);\n\n root.expand();\n\n return root.childText;\n};\n\n//===============\n\nGrammar.prototype.analyze = function() {\n this.symbolNames = [];\n for (var name in this.symbols) {\n if (this.symbols.hasOwnProperty(name)) {\n this.symbolNames.push(name);\n }\n }\n\n // parse every rule\n\n for (var i = 0; i < this.symbolNames.length; i++) {\n var key = this.symbolNames[i];\n var symbol = this.symbols[key];\n // parse all\n for (var j = 0; j < symbol.baseRules.length; j++) {\n var rule = symbol.baseRules[j];\n rule.parsed = tracery.parse(rule.raw);\n // console.log(rule);\n\n }\n }\n\n};\n\nGrammar.prototype.selectSymbol = function(key) {\n console.log(this);\n var symbol = this.get(key);\n};\n/**\n * @author Kate Compton\n\n */\n\ntracery.createGrammar = function(obj) {\n var grammar = new Grammar();\n grammar.loadFrom(obj);\n return grammar;\n};\n\ntracery.test = function() {\n\n console.log("==========================================");\n console.log("test tracery");\n\n // good\n tracery.testParse("", false);\n tracery.testParse("fooo", false);\n tracery.testParse("####", false);\n tracery.testParse("#[]#[]##", false);\n tracery.testParse("#someSymbol# and #someOtherSymbol#", false);\n tracery.testParse("#someOtherSymbol.cap.pluralize#", false);\n tracery.testParse("#[#do some things#]symbol.mod[someotherthings[and a function]]#", false);\n tracery.testParse("#[fxn][fxn][fxn[subfxn]]symbol[[fxn]]#", false);\n tracery.testParse("#[fxn][#fxn#][fxn[#subfxn#]]symbol[[fxn]]#", false);\n tracery.testParse("#hero# ate some #color# #animal.s#", false);\n tracery.testParseTag("[action]symbol.mod1.mod2[postAction]", false);\n\n // bad\n tracery.testParse("#someSymbol# and #someOtherSymbol", true);\n tracery.testParse("#[fxn][fxn][fxn[subfxn]]symbol[fxn]]#", true);\n\n // bad\n tracery.testParseTag("stuff[action]symbol.mod1.mod2[postAction]", true);\n tracery.testParseTag("[action]symbol.mod1.mod2[postAction]stuff", true);\n\n tracery.testParse("#hero# ate some #color# #animal.s#", true);\n tracery.testParse("#[#setPronouns#][#setOccupation#][hero:#name#]story#", true);\n\n};\n \n})();
jquery:on\nhash:off\nbookmark:on\nmodernizr:off\nundo:on\nobfuscate:off\nexitprompt:off\nblankcss:off\n
<<silently>>\nUses the parameter if one was passed. Then, checks for the $symbol variable. If neither is present, uses "origin". Clears $symbol at the end.\n\n<<if parameter(0)>>\n\t<<set $symbol to parameter(0)>>\n<<else>><<if $symbol>>\n\tNo need to do anything.\n<<else>>\n\t<<set $symbol to "origin">>\n<<endif>><<endif>>\n\n<<endsilently>><<print console.log("trace " + $symbol)>><<print tale.grammar.flatten("#" + $symbol + "#")>><<forget $symbol>>
// Returns an array of traces, each different from the one preceding it unless retrace() maxes out attempts.\n\nwindow.traceArray = function(symbol, num){\n\tvar output = [];\n\toutput.push( trace(symbol) );\n\n\tfor (var i = 1; i < num; i++) {\n\t\toutput.push( retrace(symbol, output[i-1]) );\n\t};\n\n\treturn output;\n}
<<twineceryInit>>\n<<traceryInit>>
String.prototype.contains = function(substring){\n\tif (substring.constructor === Array){\n\t\tfor (var i = 0; i < substring.length; i++){\n\t\t\tif(this.contains(substring[i])){\n\t\t\t\treturn substring[i]; // Non-empty string evaluates to true\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t} else {\n\t\treturn this.indexOf(substring) > 0;\n\t}\n}
// Returns a new version of a given expansion.\nwindow.retrace = function(symbol, old, maxAttempts){\n\tif(maxAttempts === undefined){\n\t\tmaxAttempts = 32;\n\t}\n\tif(!(maxAttempts > 1)){\n\t\tmaxAttempts = 1;\n\t}\n\t\n\tvar output = "", attempts = 0;\n\tdo{\n\t\toutput = trace(symbol);\n\t\tattempts++;\n\t}while(output == old && attempts < maxAttempts)\n\n//\tconsole.log("retrace:"\n//\t\t\t\t+ "\sn\stold: " + old\n//\t\t\t\t+ "\sn\stnew: " + output\n//\t\t\t\t+ "\sn\stattempts: " + attempts)\n\treturn output;\n}
<<tracelink "origin">>\n
body {\n margin: 2%;\n}\n#passages{\n margin: 0;\n padding: 0;\n border: 0;\n width:96%;\n margin: auto;\n}\n.passage {\n font-size:4em; \n color: #888;\n text-shadow: #888 0 0 0.05em;\n}\n@media screen and (max-width: 960px) {\n .passage {\n font-size: 4em;\n }\n}\n@media screen and (max-width: 640px) {\n .passage {\n font-size: 3em;\n }\n}\na.internalLink, a.externalLink {\n color: #eee;\n text-shadow: #eee 0 0 0.07em;\n}\na.internalLink:hover, a.externalLink:hover {\n color: #fff;\n text-decoration: none;\n text-shadow: #fff 0 0 0.09em;\n}\n#sidebar {\n\tdisplay:none;\n}\nbody\n{\n background-color: #483D8B;\n}
window.grammar = function(rule){\n\treturn tale.get(rule).text.split('\sn');\n}
// Expands a symbol and returns the output.\nwindow.trace = function(symbol){\n\tif(symbol === undefined){\n\t\tsymbol = "origin";\n\t}\n\tif(tale.grammar === undefined){\n\t\tconsole.log("Couldn't find the grammar object.");\n\t\treturn "ERROR: Grammar object not found.";\n\t}\n\n\tvar output = tale.grammar.flatten("#" + symbol + "#")\t\n//\tconsole.log(symbol + " expands to:\sn" + output);\n\treturn output;\n}
// This is a slightly modified version of Leon Arnott's cyclinglink macro.\n\nversion.extensions.tracelinkMacro = {\n\tmajor: 0,\n\tminor: 1,\n\trevision: 0\n};\nmacros.tracelink = {\n\thandler: function(a, b, c) {\n\t\tvar rl = "traceLink";\n\n\t\tfunction toggleText(w) {\n\t\t\tw.classList.remove("traceLinkInit");\n\t\t\tw.classList.toggle(rl + "Enabled");\n\t\t\tw.classList.toggle(rl + "Disabled");\n\t\t\tw.style.display = ((w.style.display == "none") ? "inline" : "none")\n\t\t}\n\t\tswitch (c[c.length - 1]) {\n\t\t\tcase "end":\n\t\t\t\tvar end = true;\n\t\t\t\tc.pop();\n\t\t\t\tbreak;\n\t\t\tcase "out":\n\t\t\t\tvar out = true;\n\t\t\t\tc.pop();\n\t\t\t\tbreak\n\t\t}\n\t\tvar v = "";\n\t\tif (c.length && c[0][0] == "$") {\n\t\t\tv = c[0].slice(1);\n\t\t\tc.shift()\n\t\t}\n\t\tvar h = state.history[0].variables;\n\t\tif (out && h[v] === "") {\n\t\t\treturn\n\t\t}\n\t\tvar l = Wikifier.createInternalLink(a, null);\n\t\tl.className = "internalLink cyclingLink";\n\t\tl.setAttribute("data-cycle", 0);\n\n\t\t// Prebake a bunch of traces and use those as our links to cycle through.\n\t\tc = traceArray(c[0], 64);\n\n\t\tfor (var i = 0; i < c.length; i++) {\n\t\t\tvar on = (i == Math.max(c.indexOf(h[v]), 0));\n\t\t\tvar d = insertElement(null, "span", null, "traceLinkInit traceLink" + ((on) ? "En" : "Dis") + "abled");\n\t\t\tif (on) {\n\t\t\t\th[v] = c[i];\n\t\t\t\tl.setAttribute("data-cycle", i)\n\t\t\t} else {\n\t\t\t\td.style.display = "none"\n\t\t\t}\n\t\t\tinsertText(d, c[i]);\n\t\t\tif (on && end && i == c.length - 1) {\n\t\t\t\tl.parentNode.replaceChild(d, l)\n\t\t\t} else {\n\t\t\t\tl.appendChild(d)\n\t\t\t}\n\t\t}\n\t\tl.onclick = function() {\n\t\t\tvar t = this.childNodes;\n\t\t\tvar u = this.getAttribute("data-cycle") - 0;\n\t\t\tvar m = t.length;\n\t\t\ttoggleText(t[u]);\n\t\t\tu = (u + 1);\n\t\t\tif (!(out && u == m)) {\n\t\t\t\tu %= m;\n\t\t\t\tif (v) {\n\t\t\t\t\th[v] = c[u]\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\th[v] = ""\n\t\t\t}\n\t\t\tif ((end || out) && u == m - (end ? 1 : 0)) {\n\t\t\t\tif (end) {\n\t\t\t\t\tvar n = this.removeChild(t[u]);\n\t\t\t\t\tn.className = rl + "End";\n\t\t\t\t\tn.style.display = "inline";\n\t\t\t\t\tthis.parentNode.replaceChild(n, this)\n\t\t\t\t} else {\n\t\t\t\t\tthis.parentNode.removeChild(this);\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\treturn\n\t\t\t}\n\t\t\ttoggleText(t[u]);\n\t\t\tthis.setAttribute("data-cycle", u)\n\t\t}\n\t}\n};
Egyptian Prayer Bot
Egyptian Prayerbot by Kiya Nicoll\nTwine code based on British Town Name Generator by\nNora Reed with Tracery help from Vin Tanner
<<if !tale.grammar>>\n\t<<if tracery>>\n\t\t<<set tale.grammar = tracery.createGrammar(tale.story.data)>>\n\t\t<<print console.log("grammar: ", tale.grammar)>>\n\t<<else>>\n\t\t<<print console.log("grammar instantiation failed")>>\n\t<<endif>>\n<<endif>>