0 votes
184 views

[reposting from another list - TCOP]

I occasionally concatenate USFM files into a complete Bible text file in order to process them outside of Paratext. This consists of all of the files copied into one text file in sequential order.

One of the cumbersome manual steps in this process has been to separate them back into individual book files for long term storage.

Today, when I am importing a processed file back into Paratext, I haven’t separated the file properly: Each book file exists, but the text file Mark also contains John to Revelation instead of ending with Mark 16. Paratext recognized this as “multiple files contain information about the same book.”

When I try to import only the concatenated file which contains the books Mark-Rev, I get all these books in Paratext, with no apparent loss or added information.

This is foundationally different than the USFM I know, where 1 Bible book == 1 text file. Is this {Bible Book Aggregation|File concatenation} a feature? Does Paratext support importing concatenated files officially?

Taking it one step further: my post processing usually includes file concatenation. Aggregating is to a degree part of our local implementation of USFM. Is book aggregation actually part of the USFM specification? (and if not, could it be?)

I might owe someone a coffee if this is true … 1 bible = 1 text file would save so so much file manipulation time for me.

Thanks,

Michael Hart
Senior Publishing Services Specialist
Bible League International

Paratext by (149 points) | 184 views

2 Answers

+1 vote
Best answer

I believe that an attempt was made to many years ago to allow importing multiple USFM books from a single file. Most people don’t know about this and it is (I believe) it is rarely done so I can’t guarantee that you won’t find some way to break it.

Another thing that is probably mostly unknown is that you can import USX.

by
0 votes

After I posted this I did more research and discovered the linux/unix command csplit provides most of the functionality I need to restore a concatenated USFM file into it’s component pieces. That is, the linux command

$csplit -k /\\id\ / {1,100} *.sfm

breaks a joined file into SFM compatible files that still need naming properly.

Is there a windows equivalent to csplit? That is a known way to split a file by its contents from the command line?

Note that I"m working with American English files. In the past, I’ve had problem with Chinese characters being corrupted during the join step using the linux command line in some systems, even those that claimed POSIX compliance. If you try this at home and are working with unicode < Ux2100, I’d like to hear how it works.

by (149 points)

Related questions

0 votes
3 answers 282 views
I see that Paratext 8.0.100.1 comes with USFM v. 2.502. According to http://ubsicap.github.io/usfm/ it looks as if 3. ... version. Why is that version not used for PT 8.0.100.1?
anon716631 346 asked Apr 11, 2017
0 votes
1 answer 233 views
Dear colleagues I'm trying to help a team with their \r parallel reference markers, which are printed under ... could happily use the standard cross-reference markers. Thanks Phil
anon913937 124 asked Nov 20, 2023
0 votes
2 answers 45 views
I need to convert a USX file to USFM. I can see an option Paratext to do the reverse, but I don't see one ... them to USFM will make it easier for Proskomma to handle them.
yeti 109 asked Mar 19
0 votes
1 answer 34 views
We're using /xt in footnote cross-references, set to use 'short name' of book. But in the glossary I'd like to use ... name, is there a different USFM code I could use for that?.
Lenice 180 asked Oct 7, 2025
0 votes
0 answers 51 views
Do there already exist any syntax highlighters for USFM? These could be in the forms of pattern matchers parsers ... d be to provide this functionality in other USFM editors.
Mercado 203 asked Oct 24, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
If anyone destroys God’s temple, God will destroy that person; for God’s temple is sacred, and you together are that temple.
1 Corinthians 3:17
3,045 questions
6,005 answers
5,671 comments
2,026 users