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

Copy and paste lemmatized text selection in text editor part. #133

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

JKatzwinkel
Copy link
Contributor

@JKatzwinkel JKatzwinkel commented Nov 12, 2018

Description

feature 'copy with lemmata', i.e. copy and paste tokenized text, is pretty buggy in general.

Related redmine tickets

Proposed Fix

rewrite the entire copy-and-paste logic.

most significant commits for merge

  • d4eccac (Add new class representing a tokenized text selection)
  • 3c5a75f (avoid redundancies when copying editor textmodel elements sequence)
  • beb64e5 (Copy text item sequence: replace implementation)

Jakob Höper and others added 14 commits January 8, 2018 19:54
If a sentence object and all of its tokens are within a selection, its not
necessary to keep the tokens explicitly. If a sentence got among the
textmodel objects covered by the selection, but not all of its tokens,
then we can not copy the entire sentence.
implement text model element sequence insertion into editor contents more
robust and less copy-and-pasty.
@JKatzwinkel
Copy link
Contributor Author

TODO: changelog

Jakob Höper and others added 14 commits November 16, 2018 12:04
 Conflicts:
	org.bbaw.bts.ui.commons.corpus/src/org/bbaw/bts/ui/commons/corpus/events/BTSTextSelectionEvent.java
	org.bbaw.bts.ui.corpus.egy/src/org/bbaw/bts/ui/egy/parts/EgyTextEditorPart.java
Partially selected objects will no longer be included. This may be
slightly inconvenient in some cases, but is necessary to make
comments work on ambivalences. Otherwise, every selection inside an
ambivalence would also include the ambivalence itself.
...when creating comments or highlighting relevant comments in the
sidebar.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants