-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Citation refactoring #165
Comments
I think this makes sense. Certainly having a base citation class so that we can have citations that are not CTS specific is important. I'm not sure I understand how the match function on a citation would be used. If you already have a citation and you pass it a passageId to match, is it a test to see if the citation matches or does it find the child of the citation that matches? |
So, one of the thing that will be introduced is also a |
I updated the list of changes in the main commit and you can find a test of the MyCapytain/tests/common/test_reference/test_capitains_cts.py Lines 381 to 420 in 9c666ff
|
ohhh. I understand now. I think maybe the name "match" is what threw me off. I was thinking of it from the regex meaning of match. |
This will actually be the case for new citation object that will be created for the new guidelines. :) |
Adding a list of breaking change from : debe1a1
I am thinking to change the |
Pining @mromanello and @jtauber as they are user of the APIs who probably make use of this. |
Currently on https://github.com/Capitains/MyCapytain/tree/dts-retriever/MyCapytain/common/reference , I have started refactoring CTS Focused object. In this context, the original objects will retain their CTS specificity.
I have not changed the basic sense of most citations, keep in mind one of the objective is to prepare the arrival of the new guidelines : https://github.com/Capitains/guidelines#texts
I would really like to gather feedback on the current BaseCitation and if you have any wishes regarding these objects.
.match(passageId)
function.children
Property.depth
property (Not ported to CTS Citation object yet).__len__()
magic method.root
andis_root
properties to link back to the citation set (for match implementations).match(passageId)
methodThe text was updated successfully, but these errors were encountered: