-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(CtsReferenceSet/CtsReference) Breaking change and massive rework of …
…getReffs and getSiblings functions These changes are related to the needs behind MyCapytain adoption of upcoming DTS. Reuse of native object were prefered. - Introduction of `Reference` and `ReferenceSet` - `Reference` is a derivation tuple that have two properties (`start`, `end`) and one method `is_range()` - `start` and `end` are string or string-derivation - `ReferenceSet` is a list derivative and contains References - It has a `.citation` property about the structure of the current set - (Breaking) Resolver Prototype and derivation returns ReferenceSet objects now in `getReffs()` - (cts.Reference) Renamed CtsReference. - Parsing of sub-information is now on the fly on avoid performance hit with the move to ReferenceSet in `.getReffs()` - **Warning** : `len(CtsReference("1.1"))` should be replaced with `CtsReference("1.1").depth` - Supporting this new change, CtsReference is now a tuple. It still has a special `str(ref)` behavior as CTS URN do work with range-identifiers - `CtsReference.start` and `CtsReference.end` are now `CtsSinglePassageId` - (cts.Reference) Introduction of CtsSinglePassageId - `CtsSinglePassageId` is derivation of str - It has a `list` property to support former syntax : `CtsReference("1.1").start.list` and returns the same type - It has a `depth` and `len` which are equivalent in this specific case - `subreference` is now parsed on the fly as `CtsWordReference` - (cts.Reference) Introduction of `CtsWordReference` - Has `.word` and `.counter` properties for `@Achilles[1]` - Update examples - Update documentation
- Loading branch information
1 parent
162ee5a
commit 6f0c245
Showing
11 changed files
with
150 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.