0 votes
186 vues

[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

Ancienne publication - affichée dans sa langue d'origine
Paratext par (149 points) | 186 vues

2 Réponses

+1 vote
Meilleure réponse

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.

Ancienne publication - affichée dans sa langue d'origine
par
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.

Ancienne publication - affichée dans sa langue d'origine
par (149 points)

Questions connexes

0 votes
3 réponses 283 vues
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 posée avr. 11, 2017
0 votes
1 réponse 233 vues
Chers collègues, J'essaie d'aider une équipe avec ses marqueurs de référence parallèle \r, qui sont imprimés ... problème les marqueurs de référence croisée standard. Merci Phil
anon913937 124 posée nov. 20, 2023
0 votes
2 réponses 45 vues
J'ai besoin de convertir un fichier USX en USFM. Je vois une option dans Paratext pour faire l'inverse, ... que leur conversion en USFM facilitera leur traitement par Proskomma.
yeti 109 posée mars 19
0 votes
1 réponse 34 vues
Nous utilisons /xt dans les renvois de notes de bas de page, configuré pour utiliser le nom court du livre. ... -il un code USFM différent que je pourrais utiliser pour cela ?
Lenice 180 posée oct. 7, 2025
0 votes
0 réponses 51 vues
Existe-t-il déjà des colorateurs syntaxiques pour USFM ? Ils pourraient prendre la forme de matchers de motifs ... de fournir cette fonctionnalité dans d'autres éditeurs USFM.
Mercado 203 posée oct. 24, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
3,045 questions
6,005 réponses
5,671 commentaires
2,026 utilisateurs