Skip to content

Commit

Permalink
Merge pull request #2 from DCLP/issue141
Browse files Browse the repository at this point in the history
expand Leiden+ grammar support for clear, but incomprehensible letters
  • Loading branch information
paregorios authored Jun 5, 2017
2 parents 5d60c53 + 1d63ba5 commit e579aea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions epidoc.xsg
Original file line number Diff line number Diff line change
Expand Up @@ -1059,3 +1059,7 @@ spaceitem
: "vac.ca." [NUM n] "lin" = <space quantity=[NUM n] unit="line" precision="low"></>
: "vac.ca." [NUM n] "lin(?) " = <space quantity=[NUM n] unit="line" precision="low"><certainty match=".." locus="name"></></>

// clear, but incomprehensible letters
// DCLP issue #141: https://github.com/DCLP/dclpxsltbox/issues/141
// !abc! == <orig>abc</orig>
: "!" [WORD a] "!" = <orig>[WORD a]</>
11 changes: 11 additions & 0 deletions test/test_grammar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,17 @@ def test_unicode_greek_reversibility

# DCLP tests begin here

def test_dclp_141
# clear, but incomprehensible letters
# https://github.com/DCLP/dclpxsltbox/issues/141
foo = '!abc!'
bar = '<orig>abc</orig>'
assert_equal_fragment_transform foo, bar
assert_equal_xml_fragment_to_non_xml_to_xml_fragment bar, bar
bar = '<lb n="11" break="no"/><orig>ν</orig> τὸ <orig>συλ</orig><gap reason="lost" quantity="1" unit="character"/><orig>φες</orig>'
assert_equal_xml_fragment_to_non_xml_to_xml_fragment bar, bar
end

def test_dclp_177
# specify corresp for a textpart div (e.g., fragment ID)
foo = '<S=.grc<D=.1.column.#FR365<=foo=>=D>'
Expand Down

0 comments on commit e579aea

Please sign in to comment.