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 (246 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.4k 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.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
2,653 questions
5,406 answers
5,074 comments
1,458 users