Display issues with middle names and suffixes
Reported in https://github.com/wikitree/wikitree-browser-extension/issues/45#issue-1410111307 by eweddington:
I'm seeing issues with displays of names:
- Middle names. Some profiles I see nothing for a middle name. On other profiles I see a dot (.) displayed for the middle name when there should be nothing for those profiles.
- Suffixes not displayed. I have a number of male lines that have a suffix, like "Sr" or "Jr". I don't see these displayed, when it would be helpful to see them to differentiate people at a glance.
- Suffix sometimes displayed. I have a male line with the same name that goes up to 6 in a row, with roman numerals for the suffix. > For some odd reason, I do not see "VI" for one person's profile, but I see "V" on the other profile, but then nothing for "IV". I have confirmed that these are all in the Suffix field. You can see this if you start here (Cornelius Vanover VI): https://www.wikitree.com/wiki/Vanover-69 . It is also this line where I see the dot (.) for the middle name when there shouldn't be anything displayed. See below screenshot:
Comment from me:
Long names are shortened so they don't wrap.
But periods shouldn't be showing up if there isn't a middle name.
The function for shortening is getShortName() at https://github.com/wikitree/wikitree-dynamic-tree/blob/main/views/baseDynamicTree/WikiTreeDynamicTreeViewer.js#L601
There is code in my (now old branch) of the dynamic tree that reworked the name construction to some degree to fix some of these issues and improve the display, especially in the case where the middle name field is not used. You are welcome to use that code as a starting point.
On Sat, 15 Oct 2022, 22:39 Jamie Nelson, @.***> wrote:
Reported in wikitree/wikitree-browser-extension#45 (comment) https://github.com/wikitree/wikitree-browser-extension/issues/45#issue-1410111307 by eweddington:
I'm seeing issues with displays of names:
- Middle names. Some profiles I see nothing for a middle name. On other profiles I see a dot (.) displayed for the middle name when there should be nothing for those profiles.
- Suffixes not displayed. I have a number of male lines that have a suffix, like "Sr" or "Jr". I don't see these displayed, when it would be helpful to see them to differentiate people at a glance.
- Suffix sometimes displayed. I have a male line with the same name that goes up to 6 in a row, with roman numerals for the suffix. > For some odd reason, I do not see "VI" for one person's profile, but I see "V" on the other profile, but then nothing for "IV". I have confirmed that these are all in the Suffix field. You can see this if you start here (Cornelius Vanover VI): https://www.wikitree.com/wiki/Vanover-69 . It is also this line where I see the dot (.) for the middle name when there shouldn't be anything displayed. See below screenshot:
[image: image] https://user-images.githubusercontent.com/6730063/195979898-af12ac6d-aad9-4486-97e4-5d526ac0bdce.png
Comment from me:
Long names are shortened so they don't wrap.
But periods shouldn't be showing up if there isn't a middle name.
The function for shortening is getShortName() at https://github.com/wikitree/wikitree-dynamic-tree/blob/main/views/baseDynamicTree/WikiTreeDynamicTreeViewer.js#L601
— Reply to this email directly, view it on GitHub https://github.com/wikitree/wikitree-dynamic-tree/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZWMMSINTMCXTYJ5D2E5CTLWDMB5TANCNFSM6AAAAAARGBCXZE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I have created a PR that (hopefully) addresses this issue: https://github.com/wikitree/wikitree-dynamic-tree/pull/68
