Problem with updating SFM files

Just recently I can’t update the text files within SAB.

if I change a file eg: 01GENlbj.SFM and place it into the folder which I have been using for SAB to update from “Scripture-latest” I could update from it to SAB. However now if I ask SAB to update the file from source it doesn’t do it.

If I go to SAB to Books > XXXXX if I double click on གོ༌ཟུག༌ (GEN) which is on the left hand side, on the right hand side of SAB I get the following page: XXXXX Bible: གོ༌ཟུག༌ (GEN) if I click on the “Book File” Tab I get the following below (See screen shot)

Chapter 1

Project /App Projects/XXX-XXXXX Bible/XXX-XXXXXX Bible_data/books/C01/01GENlbj.SFM

Source /home/XXXXX/App Builder/Scripture-Latest/01GENlbj.SFM (Not found)

How can I reset the source or point it to the location on my hard drive.?

Hi Steve,

I think I’m following what you are saying. If I am, you are encountering what we see fairly regularly because we don’t have access to the original content creators computer and that is usually where they get the files from. We have to ask them for the files, OR they should be able to be located in the “AppData > Books” folder. Then we can copy them to a location on our computer and / or just drag the book into the Book Collection to add it. This should reset the "

So, to change the “Source” shown here from your /home/stevelilley/App Builder/…:

I copied the GEN book from the data “books” folder to a “sourcefiles” folder located in the project folder: IE: lbj-Ladakhi / sourcefiles / … (Project folder/sourcefiles folder that sits next to the AppData folder and appdef file.) IE:

This “sourcefiles” folder doesn’t get upload to Scriptoria - Scriptoria Admins don’t want these files. Using this method for my build of the lbj app, I have to remove the GEN book from the collection and then re-add it to the build from my source location. When I do that I get an updated “Source”. Here’s the proof using the GEN book only and now its pointing to my External SSD where all my builds are kept; /Volumes/1 TB Apps/…

Hope that helps.

Will that loose the timings for the books which have audio?

In my case it would be all the NT and 6 OT books

When the location of SFM files changes, I typically have to remove all affected SFM books (which removes all associated audio and timing files). Then I have to re-add SFM, Audio and Timing files. Timing files are stored in the project folder, but you should verify they are present before removing the SFM books, and that you have the audio.

I agree this can be very cumbersome.
The ability to update the SFM and Audio Location would be a HUGE benefit to us.

Yes, I beleive the timings are lost. What I have done to get around this, is before deleting the books, go into the data folder, and make a copy of the audio and timing files. Then delete and re-add the books. Then, add the audio and timing files back from the copied / backed up folder.

If you are comfortable editing the .appDef file, it is possible to change the source directory, e.g.:

<book id="1TI">
      <name>1 Timothy</name>
      <abbrev>1Ti</abbrev>
      <group>NT</group>
      <sub-group>PaulineEpistle</sub-group>

      <font-choice type="book-collection" />
      <filename>84-1TIengBBE.usfm</filename>
      <source>C:\Users\Windows\Documents\Kalaam Media\Scripture Apps\source files\zyb\engBBE_usfm.zip</source>
    </book>

Replace the directories in the tags with the location of the file on your computer, for each book. you can do a search for each book name and you should find it in the file. I think you want to close the project in SAB first, and reopen it after your editing.
As always, backup your project before trying editing like this!