Skip to content

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

Open
JKatzwinkel wants to merge 29 commits into
thesaurus-linguae-aegyptiae:masterfrom
JKatzwinkel:4623-copy_lemmatized_text
Open

Copy and paste lemmatized text selection in text editor part.#133
JKatzwinkel wants to merge 29 commits into
thesaurus-linguae-aegyptiae:masterfrom
JKatzwinkel:4623-copy_lemmatized_text

Conversation

@JKatzwinkel

@JKatzwinkel JKatzwinkel commented Nov 12, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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