Skip to content

Commit

Permalink
v.0.3.8: Text Selection Bug (Issue #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhbeals committed Oct 15, 2019
1 parent 5d8f75a commit aa237f3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Nisaba 0.3.7.1
# Nisaba 0.3.8

A tool for multi-modal annotation

## Most Recent Update

+ Fixed "Missing Description when no page number" bug
+ Fixed basic text selection bug when selection last word (Issue #18)

[Full Change Log](https://github.com/mhbeals/nisaba/blob/master/changelog.md) and [Development Roadmap](https://github.com/mhbeals/nisaba/blob/master/roadmap.md)

Expand Down
4 changes: 2 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Change Log

## Nisaba 0.3.7.1
## Nisaba 0.3.8

+ Fixed "Missing Description when no page number" bug
+ Fixed basic text selection bug when selection last word (Issue #18)

## Nisaba 0.3.7

Expand Down
2 changes: 1 addition & 1 deletion nisaba/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def option_switcher(switch):

# Setup Taxonomy Window
main_window = Tk()
main_window.title('Nisaba: Multi-Modal Annotation .1')
main_window.title('Nisaba: Multi-Modal Annotation v.0.3.8')

# Place Icon
# "Writing" by IQON from the Noun Project
Expand Down
4 changes: 3 additions & 1 deletion nisaba/database_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,11 @@ def segment_panels_displayer(self):

# Create Segmentation Binder
def text_selector(event):

try:
selection_index = self.database[self.collection_index]['items'][self.item_index]['transcription'][0].find(self.transcription_text.selection_get())
if selection_index == -1:
selection_index = self.database[self.collection_index]['items'][self.item_index]['transcription'][0].find(self.transcription_text.selection_get()[:-1])
except(TclError):
pass
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
README = (HERE / "README.md").read_text()

# The nisaba version
nisaba_version = "0.3.7.1"
nisaba_version = "0.3.8"

# This call to setup() does all the work
setup(
Expand Down

0 comments on commit aa237f3

Please sign in to comment.