test/bookloupe/charset-latin1.tst
changeset 103 d22d8cd4f628
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/bookloupe/charset-latin1.tst	Sun Oct 27 17:01:47 2013 +0000
     1.3 @@ -0,0 +1,58 @@
     1.4 +**************** OPTIONS ****************
     1.5 +--charset=ISO-8859-1
     1.6 +**************** ENCODING ****************
     1.7 +WINDOWS-1252
     1.8 +**************** INPUT ****************
     1.9 +Where the character set declared is narrower than the character set
    1.10 +implied by the encoding as in this case (Windows-1252 is a superset
    1.11 +of the first latin alphabet defined in ECMA 94), then bookloupe should
    1.12 +warn about characters that are not in the declared character set but
    1.13 +should still recognise them and otherwise handle them as it would
    1.14 +normally do. We use the curved apostrophe as a test for this since
    1.15 +if bookloupe didn't recognise it then it would query the orphaned
    1.16 +letters from the genitives and abbreviations.
    1.17 +
    1.18 +John Hendricks was bear-leading at the time. He had originally studied
    1.19 +for Holy Orders, but had abandoned the Church later for private reasons
    1.20 +connected with his faith, and had taken to teaching and tutoring
    1.21 +instead. He was an honest, upstanding fellow of five-and-thirty,
    1.22 +incorruptible, intelligent in a simple, straightforward way. He played
    1.23 +games with his head, more than most Englishmen do, but he went through
    1.24 +life without much calculation. He had qualities that made boys like
    1.25 +and respect him; he won their confidence. Poor, proud, ambitious,
    1.26 +he realised that fate offered him a chance when the Secretary of
    1.27 +State for Scotland asked him if he would give up his other pupils
    1.28 +for a year and take his son, Lord Ernie, round the world upon an
    1.29 +educational trip that might make a man of him. For Lord Ernie was the
    1.30 +only son, and the Marquess’s influence was naturally great. To have
    1.31 +deposited a regenerated Lord Ernie at the castle gates might have
    1.32 +guaranteed Hendricks’ future. After leaving Eton prematurely the lad
    1.33 +had come under Hendricks’ charge for a time, and with such excellent
    1.34 +results--‘I’d simply swear by that chap, you know,’ the boy used
    1.35 +to say--that his father, considerably impressed, and rather as a
    1.36 +last resort, had made this proposition. And Hendricks, without much
    1.37 +calculation, had accepted it. He liked ‘Bindy’ for himself. It was
    1.38 +in his heart to ‘make a man of him,’ if possible. They had now been
    1.39 +round the world together and had come up from Brindisi to the Italian
    1.40 +Lakes, and so into Switzerland. It was middle October. With a week or
    1.41 +two to spare they were making leisurely for the ancestral halls in
    1.42 +Aberdeenshire.
    1.43 +**************** EXPECTED ****************
    1.44 +
    1.45 +only son, and the Marquess’s influence was naturally great. To have
    1.46 +    Line 22 column 27 - Non-ISO-8859-1 character 8217
    1.47 +
    1.48 +guaranteed Hendricks’ future. After leaving Eton prematurely the lad
    1.49 +    Line 24 column 21 - Non-ISO-8859-1 character 8217
    1.50 +
    1.51 +had come under Hendricks’ charge for a time, and with such excellent
    1.52 +    Line 25 column 25 - Non-ISO-8859-1 character 8217
    1.53 +
    1.54 +results--‘I’d simply swear by that chap, you know,’ the boy used
    1.55 +    Line 26 column 10 - Non-ISO-8859-1 character 8216
    1.56 +
    1.57 +calculation, had accepted it. He liked ‘Bindy’ for himself. It was
    1.58 +    Line 29 column 40 - Non-ISO-8859-1 character 8216
    1.59 +
    1.60 +in his heart to ‘make a man of him,’ if possible. They had now been
    1.61 +    Line 30 column 17 - Non-ISO-8859-1 character 8216