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 (239 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.3k 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.
Accept the one whose faith is weak, without quarreling over disputable matters.
Romans 14:1
2,610 questions
5,346 answers
5,036 comments
1,420 users