Skip to content
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

urn:cts:latinLit:stoa0040.stoa062.opp-lat1 automatic chunking is problematic #5

Open
PonteIneptique opened this issue Jun 26, 2017 · 0 comments
Assignees
Labels

Comments

@PonteIneptique
Copy link

Hi there,
Looking at urn:cts:latinLit:stoa0040.stoa062.opp-lat1 Nemo Git, we have an issue of uneven levels.

It means we need to specify this scheme here specifically in the chunker https://github.com/OpenGreekAndLatin/cts_leipzig_ui/blob/master/cts_leipzig_ui/__init__.py#L69

eg :

def scheme_grouper(text, getreffs):

    level = len(text.citation)
    groupby = 5
    types = [citation.name for citation in text.citation]

    # New Line
    if str(text.id) == "urn:cts:latinLit:stoa0040.stoa062.opp-lat1"
        level, groupby = 1, 2
    # if became elif
    elif types == ["book", "poem", "line"]:
        level, groupby = 2, 1
...

And then update the server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants