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