Using ssplit with jamal
There are three ways using SOURCE SPLIT v1.0 together with jamal:
- Apply jamal to the source then split.
- Split the source, then apply jamal to the fractions.
- Apply jamal to the source then split and apply jamal to the fractions.
When choosing a method consider the followings:
- Splitting is a fast action, jamal is somewhat slower because it performs more complex tasks.
Therefore using method 1. will put all the content through jamal, while 2. will only process
the content that was changed. The method 2. is usually faster.
- When you split the source the macros defined in the source file are available only whithin
the fractions created by the splitting process.
You should specify a jamal include file fraction
(usually with extension jim) and include it into all files.
This way the macro file is processed by jamal for each fraction processed. If this macro file
is large it might be faster to follow method 1.
- Method 3. is complex and needs the redefinition of the macro bracket characters recommended
for jamal experts only.
You may also write a j-SEX module that generate several files.