Copy link to clipboard
Copied
Are there characters that are not allowed or length limits to keywords when trying to import from a file?
I have a list of the Birds of the World in .TXT format.
I've tried cutting down the 10K+ entries and it will import but if I try to import the entire file I keep getting a "Corrupt Data" error.
Any ideas?
Copy link to clipboard
Copied
Apparently you can't edit your own posts..
I figured this out - commas are not allowed anywhere in the file you are importing to LR.
Dashes, paranthesis, etc are fine just no commas.
Copy link to clipboard
Copied
Right, commas aren't allowed in keywords in general. Bugs in older versions of LR sometimes allowed keywords containing commas to be created, but those have been fixed.
Beware that the Keyword List panel and the Metadata browser's Keywords column can only display about 1500 lines. So if you try to display, say, 10K keywords, LR will misbehave without warning. The solution is to use hierarchical keywords and keep most of the hierarchy collapsed. (I assume your Birds Of The World file defines a detailed hierarchy.)
Copy link to clipboard
Copied
Thanks - The hierarchy problem is the challenge. Any existing Bird lists in that format are pretty dated. I've found some old infromation on "transforming" XML Bird Lists to LR format but they involve the use of programs that are even more dated and or not available.
https://github.com/rsjaffe/IOC-Bird-List-Lightroom-Keyword-Generator
https://saxon.sourceforge.net/
Manually converting these files to that hierarchy format is just too painful to undertake.
Copy link to clipboard
Copied
I was able to download and convert the list at worldbirdnames.org to a LR-compatible .txt file using the transformations you linked to:
https://github.com/rsjaffe/IOC-Bird-List-Lightroom-Keyword-Generator
(The author @rsjaffee is the developer of the LR plugin MIDI2LR, a very popular, sophisticated plugin for using MIDI controllers with LR.)
I floundered at first, not reading rsjafee carefully and thinking that Saxonica was going to cost £60.00, but then a little more careful searching revealed the free open-source version.
Detailed steps:
1. Downloaded the IOC-Bird-List-Lightroom-Keyword-Generator files into a folder.
2. Downloaded the XML version 13.2 of the IOC WOrld Bird List from here:
https://www.worldbirdnames.org/new/ioc-lists/master-list-2/
and placed "master_ioc-names_xml.xml" in the same folder as step 1.
3. Installed the open-source release of the Saxon 10.9 for Windows (SaxonHE10-9N-setup.exe), recommended by rsjaffee, from here:
https://github.com/Saxonica/Saxon-HE/releases
4. In the folder from step 1, edited the file "transform.bat" and changed the two references "SaxonHE9.9N" to "SaxonHE10.9N", to correspond with the version downloaded in step 3.
5. At a command prompt, did:
cd <path-to-folder-from-step-1>
.\transform.bat
which created "birdsfam.txt" and "birdsord.txt".
6. In LR, did Metadata > Import Keywords and selected "birdsfam.txt", producing this keyword hierarchy:
Copy link to clipboard
Copied
Step 3 is the key! Every reference pointed me to the newer Saxon deployments, which are Java, .Net, etc. No matter what version I installed I culd never find "Transform.exe".
I'll give it a whirl tonight - many, many thanks!
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy the lines from "transform.bat" here.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Looks like you somehow overwrote transform.bat with an XML file. It should contain:
"C:\Program Files\Saxonica\SaxonHE10.9N\bin\Transform.exe" -s:master_ioc-names_xml.xml -xsl:birdsbyfamily.xsl -o:birdsfam.txt
"C:\Program Files\Saxonica\SaxonHE10.9N\bin\Transform.exe" -s:master_ioc-names_xml.xml -xsl:birdsbyorder.xsl -o:birdsord.txt
Copy link to clipboard
Copied
Wierd - I downloaded it as is from the site. Let me try that - thanks!
Ignore the second question/file - figured it out.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
It looks like "birdsbyfamily.xsl" got overwritten too. Your screenshot shows it having a length of 135,499 bytes:
but it should be only 2024 bytes.
Maybe re-download the entire folder:
https://github.com/rsjaffe/IOC-Bird-List-Lightroom-Keyword-Generator
and keep that folder separate, rather than merging it with the Saxonica program folder. Don't forget to re-edit "transform.bat".
Copy link to clipboard
Copied
Here's my folder containing the rsjaffe folder, the modified "transform.bat", and downloaded "master_ioc-names_xml.xml", and the two generated LR keyword files, "birdsfam.txt" and "birdsord.txt":
Find more inspiration, events, and resources on the new Adobe Community
Explore Now