test/bookloupe/charset-latin1.tst
author ali <ali@juiblex.co.uk>
Sun Oct 27 17:01:47 2013 +0000 (2013-10-27)
changeset 103 d22d8cd4f628
permissions -rw-r--r--
Fix bug #13: Character sets
     1 **************** OPTIONS ****************
     2 --charset=ISO-8859-1
     3 **************** ENCODING ****************
     4 WINDOWS-1252
     5 **************** INPUT ****************
     6 Where the character set declared is narrower than the character set
     7 implied by the encoding as in this case (Windows-1252 is a superset
     8 of the first latin alphabet defined in ECMA 94), then bookloupe should
     9 warn about characters that are not in the declared character set but
    10 should still recognise them and otherwise handle them as it would
    11 normally do. We use the curved apostrophe as a test for this since
    12 if bookloupe didn't recognise it then it would query the orphaned
    13 letters from the genitives and abbreviations.
    14 
    15 John Hendricks was bear-leading at the time. He had originally studied
    16 for Holy Orders, but had abandoned the Church later for private reasons
    17 connected with his faith, and had taken to teaching and tutoring
    18 instead. He was an honest, upstanding fellow of five-and-thirty,
    19 incorruptible, intelligent in a simple, straightforward way. He played
    20 games with his head, more than most Englishmen do, but he went through
    21 life without much calculation. He had qualities that made boys like
    22 and respect him; he won their confidence. Poor, proud, ambitious,
    23 he realised that fate offered him a chance when the Secretary of
    24 State for Scotland asked him if he would give up his other pupils
    25 for a year and take his son, Lord Ernie, round the world upon an
    26 educational trip that might make a man of him. For Lord Ernie was the
    27 only son, and the Marquess’s influence was naturally great. To have
    28 deposited a regenerated Lord Ernie at the castle gates might have
    29 guaranteed Hendricks’ future. After leaving Eton prematurely the lad
    30 had come under Hendricks’ charge for a time, and with such excellent
    31 results--‘I’d simply swear by that chap, you know,’ the boy used
    32 to say--that his father, considerably impressed, and rather as a
    33 last resort, had made this proposition. And Hendricks, without much
    34 calculation, had accepted it. He liked ‘Bindy’ for himself. It was
    35 in his heart to ‘make a man of him,’ if possible. They had now been
    36 round the world together and had come up from Brindisi to the Italian
    37 Lakes, and so into Switzerland. It was middle October. With a week or
    38 two to spare they were making leisurely for the ancestral halls in
    39 Aberdeenshire.
    40 **************** EXPECTED ****************
    41 
    42 only son, and the Marquess’s influence was naturally great. To have
    43     Line 22 column 27 - Non-ISO-8859-1 character 8217
    44 
    45 guaranteed Hendricks’ future. After leaving Eton prematurely the lad
    46     Line 24 column 21 - Non-ISO-8859-1 character 8217
    47 
    48 had come under Hendricks’ charge for a time, and with such excellent
    49     Line 25 column 25 - Non-ISO-8859-1 character 8217
    50 
    51 results--‘I’d simply swear by that chap, you know,’ the boy used
    52     Line 26 column 10 - Non-ISO-8859-1 character 8216
    53 
    54 calculation, had accepted it. He liked ‘Bindy’ for himself. It was
    55     Line 29 column 40 - Non-ISO-8859-1 character 8216
    56 
    57 in his heart to ‘make a man of him,’ if possible. They had now been
    58     Line 30 column 17 - Non-ISO-8859-1 character 8216