Skip to content

Commit

Permalink
add demo code from show and tell
Browse files Browse the repository at this point in the history
  • Loading branch information
josecastillo committed Aug 16, 2019
1 parent aa42f5c commit e12c663
Show file tree
Hide file tree
Showing 7 changed files with 1,400 additions and 0 deletions.
157 changes: 157 additions & 0 deletions Examples/eBookWing-SystemTest/001.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
// I copied and pasted this (very brief)
// excerpt from Oprah's book club website.
// Please don't hurt me, I bought the book
// at Spoonbill & Sugartown in Brooklyn and
// loved it so much I had to include it in
// a selection of great literature for
// this demo.

const char * book001 [] = {
"When he woke in the woods in the dark",
"and the cold of the night he'd reach",
"out to touch the child sleeping",
"beside him. Nights dark beyond",
"darkness and the days more gray each",
"one than what had gone before. Like",
"the onset of some cold glaucoma",
"dimming away the world. His hand rose",
"and fell softly with each precious",
"breath. He pushed away the plastic",
"tarpaulin and raised himself in the",
"stinking robes and blankets and",
"looked toward the east for any light",
"but there was none. In the dream from",
"which he'd wakened he had wandered in",
"a cave where the child led him by the",
"hand. Their light playing over the",
"wet flowstone walls. Like pilgrims in",
"a fable swallowed up and lost among",
"the inward parts of some granitic",
"beast. Deep stone flues where the",
"water dripped and sang. Tolling in",
"the silence the minutes of the earth",
"and the hours and the days of it and",
"the years without cease. Until they",
"stood in a great stone room where lay",
"a black and ancient lake. And on the",
"far shore a creature that raised its",
"dripping mouth from the rimstone pool",
"and stared into the light with eyes",
"dead white and sightless as the eggs",
"of spiders. It swung its head low",
"over the water as if to take the",
"scent of what it could not see.",
"Crouching there pale and naked and",
"translucent, its alabaster bones cast",
"up in shadow on the rocks behind it.",
"Its bowels, its beating heart. The",
"brain that pulsed in a dull glass",
"bell. It swung its head from side to",
"side and then gave out a low moan and",
"turned and lurched away and loped",
"soundlessly into the dark.",
"",
"With the first gray light he rose and",
"left the boy sleeping and walked out",
"to the road and squatted and studied",
"the country to the south. Barren,",
"silent, godless. He thought the month",
"was October but he wasnt sure. He",
"hadnt kept a calendar for years. They",
"were moving south. There'd be no",
"surviving another winter here.",
"",
"When it was light enough to use the",
"binoculars he glassed the valley",
"below. Everything paling away into",
"the murk. The soft ash blowing in",
"loose swirls over the blacktop. He",
"studied what he could see. The",
"segments of road down there among the",
"dead trees. Looking for anything of",
"color. Any movement. Any trace of",
"standing smoke. He lowered the",
"glasses and pulled down the cotton",
"mask from his face and wiped his nose",
"on the back of his wrist and then",
"glassed the country again. Then he",
"just sat there holding the binoculars",
"and watching the ashen daylight",
"congeal over the land. He knew only",
"that the child was his warrant. He",
"said: If he is not the word of God",
"God never spoke.",
"",
"When he got back the boy was still",
"asleep. He pulled the blue plastic",
"tarp off of him and folded it and",
"carried it out to the grocery cart",
"and packed it and came back with",
"their plates and some cornmeal cakes",
"in a plastic bag and a plastic bottle",
"of syrup. He spread the small tarp",
"they used for a table on the ground",
"and laid everything out and he took",
"the pistol from his belt and laid it",
"on the cloth and then he just sat",
"watching the boy sleep. He'd pulled",
"away his mask in the night and it was",
"buried somewhere in the blankets. He",
"watched the boy and he looked out",
"through the trees toward the road.",
"This was not a safe place. They could",
"be seen from the road now it was day.",
"The boy turned in the blankets. Then",
"he opened his eyes. Hi, Papa, he",
"said.",
"",
"I'm right here.",
"",
"I know.",
"",
"An hour later they were on the road.",
"He pushed the cart and both he and",
"the boy carried knapsacks. In the",
"knapsacks were essential things. In",
"case they had to abandon the cart and",
"make a run for it. Clamped to the",
"handle of the cart was a chrome",
"motorcycle mirror that he used to",
"watch the road behind them. He",
"shifted the pack higher on his",
"shoulders and looked out over the",
"wasted country. The road was empty.",
"Below in the little valley the still",
"gray serpentine of a river.",
"Motionless and precise. Along the",
"shore a burden of dead reeds. Are you",
"okay? he said. The boy nodded. Then",
"they set out along the blacktop in",
"the gunmetal light, shuffling through",
"the ash, each the other's world",
"entire.",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""};
115 changes: 115 additions & 0 deletions Examples/eBookWing-SystemTest/002.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
const char * book002 [] = {
"PREMIER CHAPITRE",
"",
"Lorsque j'avais six ans j'ai vu, une",
"fois, une magnifique image, dans un",
"livre sur la Forêt Vierge qui",
"s'appelait \"Histoires Vécues\". Ca",
"représentait un serpent boa qui",
"avalait un fauve. Voilà la copie du",
"dessin.",
"",
"On disait dans le livre: \"Les",
"serpents boas avalent leur proie tout",
"entière, sans la mâcher. Ensuite ils",
"ne peuvent plus bouger et ils dorment",
"pendant les six mois de leur",
"digestion\".",
"",
"J'ai alors beaucoup réfléchi sur les",
"aventures de la jungle et, à mon",
"tour, j'ai réussi, avec un crayon de",
"couleur, à tracer mon premier dessin.",
"Mon dessin numéro 1. Il était comme",
"ça:",
"",
"J'ai montré mon chef d'oeuvre aux",
"grandes personnes et je leur ai",
"demandé si mon dessin leur faisait",
"peur.",
"",
"Elles m'ont répondu: \"Pourquoi un",
"chapeau ferait-il peur?\"",
"",
"Mon dessin ne représentait pas un",
"chapeau. Il représentait un serpent",
"boa qui digérait un éléphant. J'ai",
"alors dessiné l'intérieur du serpent",
"boa, afin que les grandes personnes",
"puissent comprendre. Elles ont",
"toujours besoin d'explications. Mon",
"dessin numéro 2 était comme ça:",
"",
"Les grandes personnes m'ont conseillé",
"de laisser de côté les dessins de",
"serpents boas ouverts ou fermés, et",
"de m'intéresser plutôt à la",
"géographie, à l'histoire, au calcul",
"et à la grammaire. C'est ainsi que",
"j'ai abandonné, à l'âge de six ans,",
"une magnifique carrière de peinture.",
"J'avais été découragé par l'insuccès",
"de mon dessin numéro 1 et de mon",
"dessin numéro 2. Les grandes",
"personnes ne comprennent jamais rien",
"toutes seules, et c'est fatigant,",
"pour les enfants, de toujours leur",
"donner des explications.",
"",
"J'ai donc dû choisir un autre métier",
"et j'ai appris à piloter des avions.",
"J'ai volé un peu partout dans le",
"monde. Et la géographie, c'est exact,",
"m'a beaucoup servi. Je savais",
"reconnaître, du premier coup d'oeil,",
"la Chine de l'Arizona. C'est utile,",
"si l'on est égaré pendant la nuit.",
"",
"J'ai ainsi eu, au cours de ma vie,",
"des tas de contacts avec des tas de",
"gens sérieux. J'ai beaucoup vécu chez",
"les grandes personnes. Je les ai vues",
"de très près. Ça n'a pas trop",
"amélioré mon opinion.",
"",
"Quand j'en rencontrais une qui me",
"paraissait un peu lucide, je faisait",
"l'expérience sur elle de mon dessin",
"no.1 que j'ai toujours conservé. Je",
"voulais savoir si elle était vraiment",
"compréhensive. Mais toujours elle me",
"répondait: \"C'est un chapeau.\" Alors",
"je ne lui parlais ni de serpents",
"boas, ni de forêts vierges, ni",
"d'étoiles. Je me mettais à sa portée.",
"Je lui parlais de bridge, de golf, de",
"politique et de cravates. Et la",
"grande personne était bien contente",
"de connaître un homme aussi",
"raisonnable.",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""};
Loading

0 comments on commit e12c663

Please sign in to comment.