Adding 'Insert Text Before' highlight to a phrase instead of a word

Page 1 of 1 (7 items)
This post has 6 Replies | 1 Follower

Posts 283
Michel Pauw | Forum Activity | Posted: Fri, Oct 26 2018 3:38 PM

Trying to label all first attributive positions as such using a visual filter, a new created highlighting style, and the rule

[@D BEFORE 1 WORD @J BEFORE 1 WORD @n]

However, this is the result:

Is there a way to let '1st attr pos' come before the whole noun phrase, instead of before each part of that noun phrase?

Posts 8057
LogosEmployee

You're seeing those results because your query returns three separate search hits. (In a Search panel, they will each be indicated with a different colour.)

You can filter it down to just one hit (and one inserted text) by INTERSECTing those results with @D:

(@D BEFORE 1 WORD @J BEFORE 1 WORD @n) INTERSECTS @D

Posts 283
Michel Pauw | Forum Activity | Replied: Sat, Oct 27 2018 2:23 AM

Bradley Grainger (Faithlife):
(@D BEFORE 1 WORD @J BEFORE 1 WORD @n) INTERSECTS @D

That's neat, but I do want underline the whole noun phrase...

Posts 8057
LogosEmployee
Bradley Grainger (Faithlife) | Forum Activity | Replied: Sat, Oct 27 2018 10:15 AM

Hmm. Maybe create two separate VF highlighting rules?

Posts 283
Michel Pauw | Forum Activity | Replied: Sat, Oct 27 2018 2:55 PM

That sounds reasonable, but I can only highlight several separate words:

This is what I would like to see (image is manipulated):

Is there a way to highlight such a cluster of words? In other words: the noun phrase should return as a single hit. But that seems only possible with a clause or syntax search, both of which are not available in the visual filters.

If only quotes could do the trick:

  • "@D BEFORE 1 WORD @J BEFORE 1 WORD @N"
  • "(@D BEFORE 1 WORD @J BEFORE 1 WORD @N)"
  • "@D @J @N"

but unfortunately they don't.

Posts 8057
LogosEmployee

Michel Pauw:

If only quotes could do the trick:

You can use the “full” morph data type reference syntax within a quoted phrase:

"<LogosMorphGr ~ D???>  <LogosMorphGr ~ J????> <LogosMorphGr ~ N????>"

Posts 283
Michel Pauw | Forum Activity | Replied: Sun, Oct 28 2018 4:52 PM

Bradley Grainger (Faithlife):
You can use the “full” morph data type reference syntax within a quoted phrase:

"<LogosMorphGr ~ D???>  <LogosMorphGr ~ J????> <LogosMorphGr ~ N????>"

That's awesome. Is there any documentation on the use of this morph data type reference syntax? I would never have been able to come up with this myself...

Page 1 of 1 (7 items) | RSS