platform-bible-utils
    Preparing search index...

    Type Alias UsjChapterLocation<TDocumentLocation>

    A verse ref and a location in USJ space that point to a specific location in USJ. The location in USJ space should be interpreted as starting from the start of the chapter specified.

    The USFM representation of the positions represented by this type are UsfmVerseLocation.

    The locations in USJ space are specified as UsjDocumentLocations, which, on their own, are relative to a specific USJ document. However, the other information in this type specifies which USJ document the document location is relative to, meaning this location is an absolute verse reference location.

    The JSONPaths in these USJ-based locations are specified relative to the USJ document that contains only the specified chapter in the specified book. If the chapter number is 1, the first content entry of the top-level USJ marker is the id marker of the book because the intro content before chapter 1 is part of chapter 1. If the chapter number is greater than 1, the first content entry of the top-level USJ marker is the c marker of the chapter.

    This type intends to represent USFM positions (UsfmVerseLocation) in USJ space. However, there are some USFM positions that are not currently representable with these types; see UsjDocumentLocation for more information.

    You can specify a particular kind of UsjDocumentLocation in the generic type TDocumentLocation, and that will narrow documentLocation to that specific kind of location.

    Note: some forms of this type are deprecated and will be removed eventually; see UsjFlatTextChapterLocation for details. Also note that UsjFlatTextChapterLocation can only be a marker- or text-based location and will not follow the generic type specified as TDocumentLocation.

    Type Parameters