0 votes

How can I export the TOC as a list without having to go in a copy/paste each item? Is this possible?

Paratext by (249 points)

1 Answer

0 votes
Best answer

One way is to use this Regex: search in the find dialog:
regex:\\toc[^\\]*
You can then save the list as a text file.

by (8.6k points)

Hi anon848905. That works well. I should have actually asked, “Is there a way to export the Scripture reference settings → Book List?” We don’t have books for some of the listed books so the regex for \toc misses those.

If you go to the project folder there should be a file called booknames.xml. This should give you what you are asking for. The format looks like this:

  <book code="GEN" abbr="Gén." short="Génesis" long="Li Hu Génesis" />
  <book code="EXO" abbr="Ex." short="Éxodo" long="Li Hu Éxodo" />
  <book code="LEV" abbr="Lev." short="Levítico" long="Li Hu Levítico" />

As always - be very careful doing any editing in any xml file if you are not sure what you are dong.

Hi anon848905.
This was really helpful. Thanks!
Clear7419

Related questions

0 votes
1 answer
Paratext Oct 27, 2018 asked by DVM (175 points)
0 votes
2 answers
Paratext Apr 1, 2023 asked by KimB (630 points)
0 votes
2 answers
0 votes
1 answer
0 votes
2 answers
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I appeal to you, brothers and sisters, in the name of our Lord Jesus Christ, that all of you agree with one another in what you say and that there be no divisions among you, but that you be perfectly united in mind and thought.
1 Corinthians 1:10
2,766 questions
5,597 answers
5,170 comments
1,593 users