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

Sorting does not work as I wanted #3

Open
derrikF opened this issue Jan 21, 2016 · 0 comments
Open

Sorting does not work as I wanted #3

derrikF opened this issue Jan 21, 2016 · 0 comments

Comments

@derrikF
Copy link

derrikF commented Jan 21, 2016

Hello

When you use the "expositor" script constantly showing errors, some of them contain information about the cause of the error, but it is often said about the team on which the error occurred, but not about text in xml that is causing the error. could do to show details on what line in the xml error? no, the xml file without mistake, a problem in numbering of ranges of verses... like such mistakes

INFO:study2osis:Fixing overlapping ranges
INFO:study2osis:... process overlapping verses
AssertionError()

e:\backup\building\sword_studybibles-expositor_old\study2osis\overlapping.py(150)_merge_into_previous_comment()
149 # some earlier, merged comment
--> 150 assert verses(existing_comment)[0] < new_verses[0]
151 verses_for_existing = verses(existing_comment)

but the conversation the main do not go about detailed error report, namely about this error ... I began to remove parts from xml ranges and thus calculated the cause of the error. the cause was the next range

div annotateType="commentary" annotateRef="Gen.1.1"
div annotateType="commentary" annotateRef="Gen.1.2"
div annotateType="commentary" annotateRef="Gen.1.2"
div annotateType="commentary" annotateRef="Gen.1.1-Gen.1.5"

first goes the figure 1, then 2, then 1 again, expositor and stumbles.
I'm in AndBible group asked you to make sorting ranges. you did, but something she did not understand how it works. whether it is possible to put sorting of ranges at the beginning of work of a script of expositor that it did them so

div annotateType="commentary" annotateRef="Gen.1.1"
div annotateType="commentary" annotateRef="Gen.1.1-Gen.1.5"
div annotateType="commentary" annotateRef="Gen.1.2"
div annotateType="commentary" annotateRef="Gen.1.2"

I put sorting in a script in the beginning

    logger.info('Fixing overlapping ranges')
    logger.info('... sort links')
    self._sort_links()
    logger.info('... process overlapping verses')
    self._process_overlapping_verses()
    if not self.options.no_nonadj:
        logger.info('... create empty comments for nonadjacent ranges (optional step)')
        self._create_empty_comments_for_nonadjancent_ranges()
    logger.info('... add reference links to strings')
    self._add_reference_links_to_comments()
    logger.info('... sort links')
    self._sort_links()

but sorting isn't made, and to understand I don't have enough knowledge... you couldn't help?

Gratefully,
Emet

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

No branches or pull requests

1 participant