diff -r 000000000000 -r a6d93c9932ac test/bookloupe/charset-latin1.tst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/bookloupe/charset-latin1.tst Sun Sep 29 09:18:05 2013 +0100 @@ -0,0 +1,58 @@ +**************** OPTIONS **************** +--charset=ISO-8859-1 +**************** ENCODING **************** +WINDOWS-1252 +**************** INPUT **************** +Where the character set declared is narrower than the character set +implied by the encoding as in this case (Windows-1252 is a superset +of the first latin alphabet defined in ECMA 94), then bookloupe should +warn about characters that are not in the declared character set but +should still recognise them and otherwise handle them as it would +normally do. We use the curved apostrophe as a test for this since +if bookloupe didn't recognise it then it would query the orphaned +letters from the genitives and abbreviations. + +John Hendricks was bear-leading at the time. He had originally studied +for Holy Orders, but had abandoned the Church later for private reasons +connected with his faith, and had taken to teaching and tutoring +instead. He was an honest, upstanding fellow of five-and-thirty, +incorruptible, intelligent in a simple, straightforward way. He played +games with his head, more than most Englishmen do, but he went through +life without much calculation. He had qualities that made boys like +and respect him; he won their confidence. Poor, proud, ambitious, +he realised that fate offered him a chance when the Secretary of +State for Scotland asked him if he would give up his other pupils +for a year and take his son, Lord Ernie, round the world upon an +educational trip that might make a man of him. For Lord Ernie was the +only son, and the Marquess’s influence was naturally great. To have +deposited a regenerated Lord Ernie at the castle gates might have +guaranteed Hendricks’ future. After leaving Eton prematurely the lad +had come under Hendricks’ charge for a time, and with such excellent +results--‘I’d simply swear by that chap, you know,’ the boy used +to say--that his father, considerably impressed, and rather as a +last resort, had made this proposition. And Hendricks, without much +calculation, had accepted it. He liked ‘Bindy’ for himself. It was +in his heart to ‘make a man of him,’ if possible. They had now been +round the world together and had come up from Brindisi to the Italian +Lakes, and so into Switzerland. It was middle October. With a week or +two to spare they were making leisurely for the ancestral halls in +Aberdeenshire. +**************** EXPECTED **************** + +only son, and the Marquess’s influence was naturally great. To have + Line 22 column 27 - Non-ISO-8859-1 character 8217 + +guaranteed Hendricks’ future. After leaving Eton prematurely the lad + Line 24 column 21 - Non-ISO-8859-1 character 8217 + +had come under Hendricks’ charge for a time, and with such excellent + Line 25 column 25 - Non-ISO-8859-1 character 8217 + +results--‘I’d simply swear by that chap, you know,’ the boy used + Line 26 column 10 - Non-ISO-8859-1 character 8216 + +calculation, had accepted it. He liked ‘Bindy’ for himself. It was + Line 29 column 40 - Non-ISO-8859-1 character 8216 + +in his heart to ‘make a man of him,’ if possible. They had now been + Line 30 column 17 - Non-ISO-8859-1 character 8216