0 голосов
186 просмотров

[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 от (149 очков) | 186 просмотров

2 Ответов

+1 голос
Лучший ответ

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.

Старое сообщение — показано на исходном языке
от
0 голосов

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.

Старое сообщение — показано на исходном языке
от (149 очков)

Похожие вопросы

0 голосов
3 ответов 283 просмотров
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 задал вопрос апр 11, 2017
0 голосов
1 ответ 233 просмотров
Уважаемые коллеги Я пытаюсь помочь команде с их маркерами параллельных ссылок \r, которые печатаются под ... использовал бы стандартные маркеры перекрестных ссылок. Спасибо Фил
anon913937 124 задал вопрос ноя 20, 2023
0 голосов
2 ответов 45 просмотров
Мне нужно преобразовать файл USX в USFM. Я вижу, что в Paratext есть опция для обратного преобразования, но не ... преобразование их в USFM поможет Proskomma лучше с ними работать.
yeti 109 задал вопрос мар 19
0 голосов
1 ответ 34 просмотров
Мы используем /xt в перекрёстных ссылках в сносках, настроенных на использование короткого названия книги. Но в глоссарии ... код USFM, который я мог бы использовать для этого?
Lenice 180 задал вопрос окт 7, 2025
0 голосов
0 ответов 51 просмотров
Существуют ли уже средства подсветки синтаксиса для USFM? Они могут быть в форме сопоставления по шаблонам ... бы обеспечить эту функциональность в других редакторах USFM.
Mercado 203 задал вопрос окт 24, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Accept the one whose faith is weak, without quarreling over disputable matters.
Romans 14:1
3,045 вопросов
6,005 ответов
5,671 комментариев
2,026 пользователей