test/bookloupe/partial-underlining.tst
author ali <ali@juiblex.co.uk>
Sat Nov 02 09:05:10 2013 +0000 (2013-11-02)
changeset 215 c98e93d9a07f
permissions -rw-r--r--
Update documentation for 2.0.68
ali@214
     1
**************** INPUT ****************
ali@214
     2
Bookloupe understands simple underlining, for example, a _bd_ word as
ali@214
     3
well as old-school underlining, for example, _a_pr_word_.
ali@214
     4
ali@214
     5
It also understands partial underlining, as in l'_Adthima_, Abag_ae_l,
ali@214
     6
_ph_antasm, and even _ph_antasi_z_e.
ali@214
     7
ali@214
     8
While warnings about missing spaces around underscores are generally
ali@214
     9
suppressed, partial underlining with_an odd number of un_der_scor_es
ali@214
    10
will still be warned about.
ali@214
    11
ali@214
    12
Then just a couple of special cases we need to check for: first _simple_
ali@214
    13
underlining with an underscore at the end of the line and a solitary _
ali@214
    14
should both be handled correctly.
ali@214
    15
**************** WARNINGS ****************
ali@214
    16
<expected>
ali@214
    17
  <error>
ali@214
    18
    <at line="1" column="57"/>
ali@214
    19
    <text>Query word bd - not reporting duplicates</text>
ali@214
    20
  </error>
ali@214
    21
  <error>
ali@214
    22
    <at line="2" column="48"/>
ali@214
    23
    <text>Query word pr - not reporting duplicates</text>
ali@214
    24
  </error>
ali@214
    25
  <error>
ali@214
    26
    <at line="8" column="37"/>
ali@214
    27
    <text>Missing space or underscore?</text>
ali@214
    28
  </error>
ali@214
    29
  <error>
ali@214
    30
    <at line="8" column="66"/>
ali@214
    31
    <text>Missing space or underscore?</text>
ali@214
    32
  </error>
ali@214
    33
  <error>
ali@214
    34
    <at line="12" column="70"/>
ali@214
    35
    <text>Missing space or underscore?</text>
ali@214
    36
  </error>
ali@214
    37
  <error>
ali@214
    38
    <at line="12" column="70"/>
ali@214
    39
    <text>Spaced punctuation?</text>
ali@214
    40
  </error>
ali@214
    41
  <error>
ali@214
    42
    <at line="14"/>
ali@214
    43
    <text>Mismatched underscores?</text>
ali@214
    44
  </error>
ali@214
    45
</expected>