Page MenuHomePhabricator

Visually separate gloss language from gloss text
Closed, ResolvedPublic


After language of gloss is displayed. It introduced problem in languages where language name can formulate sentence with text of the gloss. For example in Polish lexeme name of the language "polski" is in the same gender like gloss text "otrzymywany sztucznie, promieniotwórczy pierwiastek chemiczny" and visually creates new sentence "polski otrzymywany sztucznie, promieniotwórczy pierwiastek chemiczny". It is not visible that "polski" is language name.

gloss language.png (928×1 px, 174 KB)

Another sideeffect of current state with space for language name is that for longer language name it overwrites gloss text, see below image:

nynorsk over.png (960×1 px, 99 KB)

Related Objects

Event Timeline

The dirty way is to increase the space between "polish" and the gloss. The right way is to have a certain way of how language metadata is represented and have it look the same everywhere so it is easily recognized.

Ouch. I guess we could start with adapting the width of the area to the length of the text, and increase the space between language and gloss.

Also, I see we should have some behavior for breaking words to two lines if they are too long instead of just overlapping as in the second image.

image.png (83×389 px, 17 KB)
( ↑ the problematic section)

Any vertical element (like the bar between L… and the language) should grow with the largest height of the elements in the L-Language-Gloss-row

An alternative to breaking text to two or several lines would be having the elements grow horizontally, however, this easily makes the UI look messy. If we decide to do this, at least the elements should all have a min-width, so the mess only happens if needed.

This ticket is affected by the work done in T207401.

Lydia_Pintscher claimed this task.

This seems to be solved with the work done in T207401. \o/