Signbank / Global-signbank

An online sign dictionary and sign database management system for research purposes. Developed originally by Steve Cassidy/ This repo is a fork for the Dutch version, previously called 'NGT-Signbank'.
http://signbank.cls.ru.nl
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

How to Display Senses as a String? #1247

Closed susanodd closed 3 months ago

susanodd commented 3 months ago

There is some inconsistency in the display of Senses. In the Gloss List View, they are displayed per Language. In the Gloss Detail View, they are displayed per Sense Number, then for each one, per language.

In the Revision History, it's using the following syntax in the display:

{ "nl": [["nederlands"],["woorden"]], "en": [["sense keywords", "more keywords"], ["another sense"]]}

This looks like computer code!!

How to display this in a user friendly way?

The revision history stores the values as "strings", old and new. It would be preferable if it was stored as an update "per sense" rather than as a huge dictionary of lists.

susanodd commented 3 months ago

Okay, I used a triple vertical bar to separate senses, and the already used single vertical bar to separate languages within a sense. This is what it looks like. An alternative would be to show each sense (API) update individually. (The API updates are already showing up in the Gloss History, so once there, they are stuck in the format.)

gloss-with-two-senses

gloss-with-two-senses-revision-history

susanodd commented 3 months ago

Pardon the silly example that is for illustration purposes.

Jetske commented 3 months ago

That does look better!