Open mmartin9684-sil opened 1 month ago
Note that these projects do not contain a Settings.xml file when they are downloaded. If a minimal Settings.xml file is created for them, it would look like this:
<ScriptureText>
<Versification>4</Versification>
<FileNamePostPart>.usfm</FileNamePostPart>
<FileNameBookNameForm>41-MAT</FileNameBookNameForm>
<LanguageIsoCode>hbo:::</LanguageIsoCode>
<BiblicalTermsListSetting>Major::BiblicalTerms.xml</BiblicalTermsListSetting>
<Naming PrePart="" PostPart=".usfm" BookNameForm="41-MAT" />
</ScriptureText>
But, although the BookNameForm is properly specified to match the USFM file names in the project folder, this file naming format is not properly handled and the files can't be opened for translation.
Door43 has its own metadata format for translations called resource containers. We should add support for extracting from Door43 resource containers.
Paratext-compatible projects downloaded from Door43 (e.g., https://git.door43.org/unfoldingWord/el-x-koine_ugnt) use the "-" book name format for naming the USFM files in the project. For example:
When the translate script is run with one of these projects as the source projects, the script will error out because it doesn't properly handle this book naming format: