]> git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-17/sample-text.txt
don't use strlen() to verify the length of the string as it can contain embedded...
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-17 / sample-text.txt
1 THE BROTHERS GRIMM
2 FAIRY TALES
3
4
5
6 THE GOLDEN BIRD
7
8 A certain king had a beautiful garden, and in the garden stood a tree
9 which bore golden apples. These apples were always counted, and about
10 the time when they began to grow ripe it was found that every night
11 one of them was gone. The king became very angry at this, and ordered
12 the gardener to keep watch all night under the tree. The gardener set
13 his eldest son to watch; but about twelve o'clock he fell asleep, and
14 in the morning another of the apples was missing. Then the second son
15 was ordered to watch; and at midnight he too fell asleep, and in the
16 morning another apple was gone. Then the third son offered to keep
17 watch; but the gardener at first would not let him, for fear some harm
18 should come to him: however, at last he consented, and the young man
19 laid himself under the tree to watch. As the clock struck twelve he
20 heard a rustling noise in the air, and a bird came flying that was of
21 pure gold; and as it was snapping at one of the apples with its beak,
22 the gardener's son jumped up and shot an arrow at it. But the arrow
23 did the bird no harm; only it dropped a golden feather from its tail,
24 and then flew away. The golden feather was brought to the king in the
25 morning, and all the council was called together. Everyone agreed that
26 it was worth more than all the wealth of the kingdom: but the king
27 said, 'One feather is of no use to me, I must have the whole bird.'
28
29 Then the gardener's eldest son set out and thought to find the golden
30 bird very easily; and when he had gone but a little way, he came to a
31 wood, and by the side of the wood he saw a fox sitting; so he took his
32 bow and made ready to shoot at it. Then the fox said, 'Do not shoot
33 me, for I will give you good counsel; I know what your business is,
34 and that you want to find the golden bird. You will reach a village in
35 the evening; and when you get there, you will see two inns opposite to
36 each other, one of which is very pleasant and beautiful to look at: go
37 not in there, but rest for the night in the other, though it may
38 appear to you to be very poor and mean.' But the son thought to
39 himself, 'What can such a beast as this know about the matter?' So he
40 shot his arrow at the fox; but he missed it, and it set up its tail
41 above its back and ran into the wood. Then he went his way, and in the
42 evening came to the village where the two inns were; and in one of
43 these were people singing, and dancing, and feasting; but the other
44 looked very dirty, and poor. 'I should be very silly,' said he, 'if I
45 went to that shabby house, and left this charming place'; so he went
46 into the smart house, and ate and drank at his ease, and forgot the
47 bird, and his country too.
48
49 Time passed on; and as the eldest son did not come back, and no
50 tidings were heard of him, the second son set out, and the same thing
51 happened to him. He met the fox, who gave him the good advice: but
52 when he came to the two inns, his eldest brother was standing at the
53 window where the merrymaking was, and called to him to come in; and he
54 could not withstand the temptation, but went in, and forgot the golden
55 bird and his country in the same manner.
56
57 Time passed on again, and the youngest son too wished to set out into
58 the wide world to seek for the golden bird; but his father would not
59 listen to it for a long while, for he was very fond of his son, and
60 was afraid that some ill luck might happen to him also, and prevent
61 his coming back. However, at last it was agreed he should go, for he
62 would not rest at home; and as he came to the wood, he met the fox,
63 and heard the same good counsel. But he was thankful to the fox, and
64 did not attempt his life as his brothers had done; so the fox said,
65 'Sit upon my tail, and you will travel faster.' So he sat down, and
66 the fox began to run, and away they went over stock and stone so quick
67 that their hair whistled in the wind.
68
69 When they came to the village, the son followed the fox's counsel, and
70 without looking about him went to the shabby inn and rested there all
71 night at his ease. In the morning came the fox again and met him as he
72 was beginning his journey, and said, 'Go straight forward, till you
73 come to a castle, before which lie a whole troop of soldiers fast
74 asleep and snoring: take no notice of them, but go into the castle and
75 pass on and on till you come to a room, where the golden bird sits in
76 a wooden cage; close by it stands a beautiful golden cage; but do not
77 try to take the bird out of the shabby cage and put it into the
78 handsome one, otherwise you will repent it.' Then the fox stretched
79 out his tail again, and the young man sat himself down, and away they
80 went over stock and stone till their hair whistled in the wind.
81
82 Before the castle gate all was as the fox had said: so the son went in
83 and found the chamber where the golden bird hung in a wooden cage, and
84 below stood the golden cage, and the three golden apples that had been
85 lost were lying close by it. Then thought he to himself, 'It will be a
86 very droll thing to bring away such a fine bird in this shabby cage';
87 so he opened the door and took hold of it and put it into the golden
88 cage. But the bird set up such a loud scream that all the soldiers
89 awoke, and they took him prisoner and carried him before the king. The
90 next morning the court sat to judge him; and when all was heard, it
91 sentenced him to die, unless he should bring the king the golden horse
92 which could run as swiftly as the wind; and if he did this, he was to
93 have the golden bird given him for his own.
94
95 So he set out once more on his journey, sighing, and in great despair,
96 when on a sudden his friend the fox met him, and said, 'You see now
97 what has happened on account of your not listening to my counsel. I
98 will still, however, tell you how to find the golden horse, if you
99 will do as I bid you. You must go straight on till you come to the
100 castle where the horse stands in his stall: by his side will lie the
101 groom fast asleep and snoring: take away the horse quietly, but be
102 sure to put the old leathern saddle upon him, and not the golden one
103 that is close by it.' Then the son sat down on the fox's tail, and
104 away they went over stock and stone till their hair whistled in the
105 wind.
106
107 All went right, and the groom lay snoring with his hand upon the
108 golden saddle. But when the son looked at the horse, he thought it a
109 great pity to put the leathern saddle upon it. 'I will give him the
110 good one,' said he; 'I am sure he deserves it.' As he took up the
111 golden saddle the groom awoke and cried out so loud, that all the
112 guards ran in and took him prisoner, and in the morning he was again
113 brought before the court to be judged, and was sentenced to die. But
114 it was agreed, that, if he could bring thither the beautiful princess,
115 he should live, and have the bird and the horse given him for his own.
116
117 Then he went his way very sorrowful; but the old fox came and said,
118 'Why did not you listen to me? If you had, you would have carried away
119 both the bird and the horse; yet will I once more give you counsel. Go
120 straight on, and in the evening you will arrive at a castle. At twelve
121 o'clock at night the princess goes to the bathing-house: go up to her
122 and give her a kiss, and she will let you lead her away; but take care
123 you do not suffer her to go and take leave of her father and mother.'
124 Then the fox stretched out his tail, and so away they went over stock
125 and stone till their hair whistled again.
126
127 As they came to the castle, all was as the fox had said, and at twelve
128 o'clock the young man met the princes going to the bath and gave her
129 the kiss, and she agreed to run away with him, but begged with many
130 tears that he would let her take leave of her father. At first he
131 refused, but she wept still more and more, and fell at his feet, till
132 at last he consented; but the moment she came to her father's house
133 the guards awoke and he was taken prisoner again.
134
135 Then he was brought before the king, and the king said, 'You shall
136 never have my daughter unless in eight days you dig away the hill that
137 stops the view from my window.' Now this hill was so big that the
138 whole world could not take it away: and when he had worked for seven
139 days, and had done very little, the fox came and said. 'Lie down and
140 go to sleep; I will work for you.' And in the morning he awoke and the
141 hill was gone; so he went merrily to the king, and told him that now
142 that it was removed he must give him the princess.
143
144 Then the king was obliged to keep his word, and away went the young
145 man and the princess; and the fox came and said to him, 'We will have
146 all three, the princess, the horse, and the bird.' 'Ah!' said the
147 young man, 'that would be a great thing, but how can you contrive it?'
148
149 'If you will only listen,' said the fox, 'it can be done. When you
150 come to the king, and he asks for the beautiful princess, you must
151 say, "Here she is!" Then he will be very joyful; and you will mount
152 the golden horse that they are to give you, and put out your hand to
153 take leave of them; but shake hands with the princess last. Then lift
154 her quickly on to the horse behind you; clap your spurs to his side,
155 and gallop away as fast as you can.'
156
157 All went right: then the fox said, 'When you come to the castle where
158 the bird is, I will stay with the princess at the door, and you will
159 ride in and speak to the king; and when he sees that it is the right
160 horse, he will bring out the bird; but you must sit still, and say
161 that you want to look at it, to see whether it is the true golden
162 bird; and when you get it into your hand, ride away.'
163
164 This, too, happened as the fox said; they carried off the bird, the
165 princess mounted again, and they rode on to a great wood. Then the fox
166 came, and said, 'Pray kill me, and cut off my head and my feet.' But
167 the young man refused to do it: so the fox said, 'I will at any rate
168 give you good counsel: beware of two things; ransom no one from the
169 gallows, and sit down by the side of no river.' Then away he went.
170 'Well,' thought the young man, 'it is no hard matter to keep that
171 advice.'
172
173 He rode on with the princess, till at last he came to the village
174 where he had left his two brothers. And there he heard a great noise
175 and uproar; and when he asked what was the matter, the people said,
176 'Two men are going to be hanged.' As he came nearer, he saw that the
177 two men were his brothers, who had turned robbers; so he said, 'Cannot
178 they in any way be saved?' But the people said 'No,' unless he would
179 bestow all his money upon the rascals and buy their liberty. Then he
180 did not stay to think about the matter, but paid what was asked, and
181 his brothers were given up, and went on with him towards their home.
182
183 And as they came to the wood where the fox first met them, it was so
184 cool and pleasant that the two brothers said, 'Let us sit down by the
185 side of the river, and rest a while, to eat and drink.' So he said,
186 'Yes,' and forgot the fox's counsel, and sat down on the side of the
187 river; and while he suspected nothing, they came behind, and threw him
188 down the bank, and took the princess, the horse, and the bird, and
189 went home to the king their master, and said. 'All this have we won by
190 our labour.' Then there was great rejoicing made; but the horse would
191 not eat, the bird would not sing, and the princess wept.
192
193 The youngest son fell to the bottom of the river's bed: luckily it was
194 nearly dry, but his bones were almost broken, and the bank was so
195 steep that he could find no way to get out. Then the old fox came once
196 more, and scolded him for not following his advice; otherwise no evil
197 would have befallen him: 'Yet,' said he, 'I cannot leave you here, so
198 lay hold of my tail and hold fast.' Then he pulled him out of the
199 river, and said to him, as he got upon the bank, 'Your brothers have
200 set watch to kill you, if they find you in the kingdom.' So he dressed
201 himself as a poor man, and came secretly to the king's court, and was
202 scarcely within the doors when the horse began to eat, and the bird to
203 sing, and princess left off weeping. Then he went to the king, and
204 told him all his brothers' roguery; and they were seized and punished,
205 and he had the princess given to him again; and after the king's death
206 he was heir to his kingdom.
207
208 A long while after, he went to walk one day in the wood, and the old
209 fox met him, and besought him with tears in his eyes to kill him, and
210 cut off his head and feet. And at last he did so, and in a moment the
211 fox was changed into a man, and turned out to be the brother of the
212 princess, who had been lost a great many many years.
213