Code Monkey home page Code Monkey logo

stemmatology's People

Contributors

castaway avatar edenc avatar jorisvanzundert avatar tla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

shadowcat-mst

stemmatology's Issues

make_tradition.pl script shouldn't create empty traditions

The make_tradition script flags an error if the given input type doesn't exist, but a tradition is still created (and put in the database, if applicable.) This may also happen when an error is thrown. Either way the empty tradition should not be created.

TEI parser can break if run twice in the same Perl invocation

If the TEI parser has to parse a file with namespaces more than once (or, presumably, a file without namespaces after a file with), it will break with an error like this:

XPath error : Invalid expression
//tei:tei:listWit/tei:tei:witness
         ^ at /opt/local/lib/perl5/site_perl/5.16.1/Text/Tradition/Parser/TEI.pm line 128.

Need to deal with Moose exceptions being objects

The exception raising mechanism in Text::Tradition::Error tends to assume that whatever error it is asked to raise is a string. Moose has turned all of its exceptions into objects, which causes an exception if we try to treat it as a string when throwing an exception (confused yet?) We need to add a check for this.

Failing Collation.pm test on Text::Tradition

t/text_tradition_collation.t .................... 9/? 
#   Failed test 'Reading r7.5 correctly removed'
#   at t/text_tradition_collation.t line 89.
#          got: ''
#     expected: '1'

#   Failed test 'Reading r7.6 correctly retained'
#   at t/text_tradition_collation.t line 89.
#          got: '1'
#     expected: ''
t/text_tradition_collation.t .................... 159/? # Looks like you failed 2 tests of 171.
t/text_tradition_collation.t .................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/171 subtests 

Failing POD test on Text::Tradition

#   Failed test 'POD test for blib/lib/Text/Tradition/Collation.pm'
#   at /opt/perl-5.21.5/lib/site_perl/5.21.5/Test/Pod.pm line 186.
# blib/lib/Text/Tradition/Collation.pm (653): Non-ASCII character seen before =encoding in ''Mü11475''. Assuming UTF-8
# Looks like you failed 1 test of 18.
t/02pod.t ....................................... 
Dubious, test returned 1 (wstat 256, 0x100)`

Failing POD coverage test on Text::Tradition

not ok 2 - Pod coverage on Text::Tradition::Parser::CTE
#   Failed test 'Pod coverage on Text::Tradition::Parser::CTE'
#   at t/03podcoverage.t line 29.
# Coverage for Text::Tradition::Parser::CTE is 50.0%, with 1 naked subroutine:
#   do_warn

Make decent workaround for Graph::Reader::Dot

The Graph::Reader::Dot module fails to parse name tokens with characters outside the ASCII \w range unless the tokens are wrapped in double-quotes. Various hacks exist but this needs a real workaround.

CollateX format

I realise that there hasn't been much development on this in the last decade, but I'm still interested as a perl user of 25 years and working on the text editing and analysis tool at menotag.ku.dk

I'm putting in CollateX JSON output but running into two problems: CollateX may have changed its format since this tool was updated, because (when using the JSON string):

Can't use an undefined value as an ARRAY reference at /usr/local/share/perl5/Text/Tradition/Parser/JSON.pm line 160, line 41.

Additionally, I'm using string input because Text::Tradition won't read the JSON file:

malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/local/share/perl5/Text/Tradition/Parser/JSON.pm line 117.

Where the JSON file is perfectly fine.

Reading duplication can cause invalid graphs

It seems that the duplicate_reading function can, if used unwisely, lead to a bad graph. There needs to be a check to ensure that neither the new reading nor the old reading will get dissociated from the graph, which is to say, they both need to have at least one witness afterward.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.