0 votes

In “What is the specification for a Bible module”, I see this as a possible marker:

\mod
Include the content of one module in the content of another module. The module which contains the other is sometimes called a “parent” module, and the module included is sometimes called a “child” module. Example: \mod child_module.sfm

In what situation would this be applied, and how would it be implemented?

Thanks.

Paratext by (188 points)

5 Answers

0 votes
Best answer

It is also useful for very large modules. Paratext tends to become slower the larger the module, so sometimes it’s nice to be able to break it up so that you don’t have to view it all at once.

Another similar use is just for organization. It might be nice to be able to move large chunks of a module around just by moving a \mod line instead of moving the entire contents (e.g. if you have a bunch of Bible stories and you’re trying to figure out how to order them).

by [Expert]
(16.2k points)
0 votes
by (1.2k points)
0 votes
by (1.2k points)
0 votes

I’ve never used this feature, but here’s how I’ve considered using it. So this is untested by me, but should be a starting point and I think it would answer your question.

Say you have a series of stories from the Prophets, and you’ve created individual modules and published them as pamphlets over time. So you have a series of files in your Modules directory like:

adam.sfm
abraham.sfm
david.sfm
isaiah.sfm
etc

Now you want to create a book called “Lives of the Prophets”. Rather than create a new module where you copy and paste the contents of those independent files into the new module (and then have to keep two locations up-to-date in the future), you can simply create a new module which says

\mod adam.sfm
\mod abraham.sfm
\mod david.sfm
\mod isaiah.sfm

It would then create a book with each story one after another. You might add in some extra markers to create title pages or page breaks, but most of the work is already done by the original modules.

by (1.8k points)

I’m working on this sort of thing. Except in our project, we have other sections in between. For example, we have an abraham.sfm and a joseph.sfm that we’ll be published as individual booklets, but in between is info from Isaac & Jacob that will be included in a larger book. Just looked at what we did, and instead of putting all the intervening verses in /ref lines, we actually created a separate Isaac&Jacob.sfm.

0 votes

Thank you for all the replies. Very helpful.

by (188 points)

Related questions

0 votes
1 answer
0 votes
1 answer
Paratext Dec 5, 2022 asked by [Moderator]
james_post
(2.0k points)
0 votes
2 answers
Paratext Feb 1, 2022 asked by Shegnada (1.3k points)
0 votes
2 answers
0 votes
1 answer
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
2,606 questions
5,344 answers
5,034 comments
1,418 users