Closed Vuizur closed 7 months ago
The short definition strings are created from the Proficiency repo : https://github.com/xxyzz/Proficiency/blob/7aa6f8ce270d662bf84eb6ebdb71f31ddb0f4116/src/proficiency/util.py#L19-L32
It's better to split commas at there.
Definitions that are too long are currently not displayed and have to be clicked on. This PR tries to make more definitions directly visible in the text by taking the definitions that are split by commas and removing what's right to the the rightmost comma.
I tested it a bit with my the current French ebook and found it to be a clear improvement. At least with English glosses the error rate seems to be pretty low, I couldn't find one yet, maybe with other language pairs it's more problematic.
(Of course I understand if you want to do it some other way.)