0 votos
188 visualizações

[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

Publicação antiga - exibida no idioma original
Paratext por (149 pontos) | 188 visualizações

2 Respostas

+1 voto
Melhor resposta

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.

Publicação antiga - exibida no idioma original
por
0 votos

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.

Publicação antiga - exibida no idioma original
por (149 pontos)

Perguntas relacionadas

0 votos
3 respostas 286 visualizações
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 perguntada Abr 11, 2017
0 votos
1 resposta 233 visualizações
Caros colegas, Estou tentando ajudar uma equipe com seus marcadores de referência paralela \r, que são ... tranquilamente os marcadores padrão de referência cruzada. Obrigado Phil
anon913937 124 perguntada Nov 20, 2023
0 votos
2 respostas 45 visualizações
Preciso converter um arquivo USX para USFM. Vejo uma opção no Paratext para fazer o processo inverso, mas não ... convertê-los para USFM facilite o processamento pelo Proskomma.
yeti 109 perguntada Mar 19
0 votos
1 resposta 34 visualizações
Estamos usando /xt nas referências cruzadas de notas de rodapé, configurado para usar o 'nome curto' do livro. Mas ... Existe um código USFM diferente que eu possa usar para isso?
Lenice 180 perguntada Out 7, 2025
0 votos
0 respostas 51 visualizações
Já existem realçadores de sintaxe para USFM? Eles podem estar na forma de correspondência de padrões analisadores realce ... seria fornecer esse recurso em outros editores de USFM.
Mercado 203 perguntada Out 24, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
3,045 perguntas
6,005 respostas
5,671 comentários
2,026 usuários