Giter Site home page Giter Site logo

bible's People

Contributors

jajpater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bible's Issues

ModuleNotFoundError

I've installed according to your instructions (running on Arch Linux) and when I try to run the application I get the following:

Traceback (most recent call last):
File "/home/jman223/.local/bin/bible", line 5, in
from bible.main import main
File "/home/jman223/.local/lib/python3.9/site-packages/bible/main.py", line 6, in
from textwrap2 import wrap
ModuleNotFoundError: No module named 'textwrap2'

Suggestions?

Add `G` (jump to end) keybinding

Fixed. Unfortunately as a side effect, I had to remove the G (jump to end) vim-style keybinding because it isn't compatible with how the displayed item boundaries are managed.

Right now, the beginning and end boundaries should always have a difference between them equal to the height of the viewport, curses.LINES - 2, Otherwise, changing the book selection to one with more chapters would result in truncation.

Jumping to the end of the list and showing the last curses.LINES - 2 items may result in the beginning index becoming negative, depending on the length of the list, which would break the ListWindow.draw routine and further boundary changes.

Originally posted by @rwev in #5 (comment)

PyHyphen throws Exceptions for certain chunks of text

Traceback (most recent call last):
File "/usr/local/bin/bible", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 203, in main
curses.wrapper(Main)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 37, in __init__
self.start_input_loop()
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 199, in start_input_loop
self.update_text()
File "/usr/local/lib/python3.9/site-packages/bible/main.py", line 123, in update_text
wrap(
    File "/usr/local/lib/python3.9/site-packages/textwrap2/__init__.py", line 13, in wrap
return w.wrap(text)
File "/usr/local/Cellar/[email protected]/3.9.0_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/textwrap.py", line 354, in wrap
return self._wrap_chunks(chunks)
File "/usr/local/lib/python3.9/site-packages/textwrap2/python3.py", line 67, in _wrap_chunks
hyphenated_chunk = self.use_hyphenator.wrap(chunks[-1], width - cur_len)
File "/usr/local/lib/python3.9/site-packages/hyphen/hyphenator.py", line 123, in wrap
p = self.pairs(word)
File "/usr/local/lib/python3.9/site-packages/hyphen/hyphenator.py", line 81, in pairs
return self.apply(word, 1)
IndexError: list assignment index out of range

no module named 'reader'

Traceback (most recent call last):
File "/home/jajpater/.local/bin/bible", line 5, in
from bible.main import main
File "/home/jajpater/.local/lib/python3.8/site-packages/bible/main.py", line 3, in
from reader import Reader
ModuleNotFoundError: No module named 'reader'

Chapternumber should become visible when "cursor" is on them.

When a Biblebook has more chapters than numbers visible on the screen you can navigate to the chapternumber but the chapternumber will not become visible. For instance the book of Genesis has 50 chapters only numbers 1 to 47 are visible for me, I can reach 50 but I can't see the chapter number or the cursor.

trouble running the app

Hi, I'm very interested in your app but when I try to run the app, my terminal says "AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren' ". Is there something else I need to run this app? I have Python 3.9 if that's relevant. I dropped a picture of what my terminal spits out when I try to run the bible command.

TerminalBible

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.