0 votes
201 views

According to my old notes, I get the cleanest text via copy and paste, with my “View Setting” set to “unformatted”.

I need from PT8 entire chapters in plain text, UTF-8 with clean, original SFM (or USFM if you want) for post-processing with another tool.

I works mostly, but I get typical output like this, see the \p marker:

\c 2\zblo 7974\s1 Marii a ŋʊm Yeesu\p\v 1 Kaŋkǝlǝ́ nɖe na bʊtǝnyarɩ 'baya Ogʊsto a shee ganɔ wàà, ba tʊ̂r bʊtǝna mbʊɖee Room kǝbaja ba jɩ ma, kǝbɛrɛ baŋunii.\v 2 Ŋkǝlǝ́ nɖee ba lee ʊrɩtʊr ʊsǝbaka ɖe ma, Kiriniyɔsɩ a lee ka Nɖiyar ashee Sirii kaatǝna.

Can you see how my paragraph markers never carry any “closing space”. I believe this is against the definition of proper SFM data. I looked it up again in usfmReference2_4.pdf:

SFMs start with a backslash character “” and end with the next space.

For my other tool, working also with Regexes, it would be very very helpful if I could properly define each SFM as “backslash whatever closing-space”.

Please advise for the best way to get clean text with valid markers out of PT8.

Paratext by (934 points)
reshown | 201 views

1 Answer

+2 votes
Best answer

I would think that your cleanest text would come directly from the text file that Paratext uses.

by (9.8k points)

Thanks anon848905, I could never do this in Fieldworks/Flex, but I just had a look at the project data: Yes, I can copy chunks as needed from the raw data. For example I can easily grab one chapter at a time and “harvest” a book and be even faster then I would be when navigating inside PT8.

And yes, I promise, I will only work from copies… It is just too tempting to do cut and paste rather than copy and paste - because I can see what I have grabbed already. And just too routine to hit, YES, when closing the file and the editor goes “You have unsaved changes…”.

So thread closed, user happy. Thank you.

Related questions

+1 vote
3 answers 404 views
Exporting the Wordlist to HTML is a nice feature, except that for many users including me, working with HTML is ... that are currently marked as spelled correctly in PT? anon101508
anon101508 117 asked Mar 11, 2019
0 votes
1 answer 191 views
I seem to recall a way to change the text that is displayed in a Paratext window, without changing the underlying ... ? Am I even remembering this accurately? Thank you, james_post
[Moderator]
james_post
2.1k
asked Feb 4, 2022
0 votes
4 answers 719 views
In our team, we embarked on revising a published translation of the New Testament. In the beginning we were optimistic ... manually. The headers need a manual revision any way.
bit 495 asked Dec 2, 2020
0 votes
2 answers 85 views
I have a project that has come to me that has .SFC files. I would like to change them to .SFM files. What is the ... (Could I just change the file name and be done with it?)
Alex W. 191 asked Nov 27, 2024
0 votes
1 answer 194 views
I have a translator here in PNG whose Paratext project is saving the SFM files with a PT6 extension. I am ... the extension at all once the project has been created? anon469049
anon469049 120 asked Jan 14, 2021
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Make every effort to keep the unity of the Spirit through the bond of peace.
Ephesians 4:3
3,037 questions
5,994 answers
5,661 comments
2,022 users