"Names could not be generated"

mk
mkimball
Posts: 3
Joined: Fri Apr 07, 2017 10:18 pm
Platform: Mac

Mon Jul 06, 2020 4:57 pm Post

When I try to get a list of "Hindi & Indian Names," I receive the following error message: "No forename lists are selected for inclusion in name generation so no names can be generated. Use the table in the options to select some forename lists to include." There appears to be no way to select a forename list as the only ones that are available are "Hindi & Indian Names (Female)" and "Hindi & Indian Names (Male)."

NameGeneratorError.png
NameGeneratorError.png (524.06 KiB) Viewed 221 times

User avatar
TromboneAl
Posts: 1045
Joined: Sun Jan 19, 2014 2:17 pm
Platform: Mac

Wed Jul 08, 2020 6:54 pm Post

I've dealt with this issue and concluded that the Indian and Hindi name list is broken. Here's the thread: viewtopic.php?f=2&t=58522&p=297762&hilit=name#p297762

I've got a love/hate thing going with the name generator.
Al Macy
I usually have the latest Scrivener and Scapple versions.
Let me copy/paste the version from the About box, and I will add it to my signature.

mc
mcgreig
Posts: 3
Joined: Sat May 02, 2015 1:38 pm
Platform: Mac

Wed Jul 15, 2020 7:10 am Post

I came across the same issue and worked out the problem. The xml file that contains the names has an error in it: the ampersand in the title is a special character that should use the code & instead. This is why in the name generator you will see that unlike the other name lists, there is no female/male symbol associated with it, only a grey circle, like for surnames.
It is easy to fix if you are confident to edit xml files:
- right-click on the Scrivener app in your applications folder
- go to this folder: /Applications/Scrivener.app/Contents/Resources/Default Support Folder/NameLists
- copy the two Hindi & Indian xml files to your desktop or a temporary folder
- open the female namelist file in a plain text editor (not Word or other WP)
- change the title from: <string>Hindi & Indian Names (Female)</string> to <string>Hindi &amp; Indian Names (Female)</string>
- repeat for the male list
- save the files and copy them to this folder: Library/Application Support/Scrivener/NameLists
(if you don't know how to get to your user library: in the Finder, click the Go menu and hold down the option key. The location will appear)
- restart Scrivener
- Alternatively, if you don't want to edit the xml files yourself, I've attached them below. Simply copy them to your Library/Application Support/Scrivener/NameLists folder and restart Scrivener
Hope this helps
Attachments
Hindi & Indian Names (Male) - corrected.xml
(7.41 KiB) Downloaded 11 times
Hindi and Indian Names (Female) - corrected.xml
(4.86 KiB) Downloaded 9 times

User avatar
TromboneAl
Posts: 1045
Joined: Sun Jan 19, 2014 2:17 pm
Platform: Mac

Sun Aug 16, 2020 5:01 pm Post

Thanks, MC. I copied your files into the folder and it works now.

Note that this didn't make sense to me (why right-click on Scrivener.app?), probably because of my ignorance:

- right-click on the Scrivener app in your applications folder
- go to this folder: /Applications/Scrivener.app/Contents/Resources/Default Support Folder/NameLists

But I chose Go/Go to Folder... in the finder then pasted in the string above.

I copied your files into that folder (no renaming necessary) and deleted the two bad-boy files.

Thanks again.
Al Macy
I usually have the latest Scrivener and Scapple versions.
Let me copy/paste the version from the About box, and I will add it to my signature.