12.19 Mechanical file and record corrections
Eight corrections primarily address text representation and record layout: ascii, line_endings, tabs, trailing_space, wrap_lists, problem, sizes_first, and record_names. They often look mechanical, yet each generated change still deserves inspection.
Text normalization
ascii addresses a byte-order mark or non-ASCII characters. Transliteration can lose meaning in author names or scientific symbols, so examine the changed characters. line_endings makes newline style consistent. tabs replaces tab characters, and trailing_space removes invisible end-of-line whitespace. These three usually reduce cross-platform diffs without changing model meaning.
wrap_lists rewrites long record lists to respect the configured line-length limit. Confirm that separators, continuation rules, comments, and item order remain correct. A visually neat wrap is useful only if NM-TRAN reads the same tokens.
Record structure
problem inserts a missing $PROBLEM; in the worked example it adds $PROBLEM flawed. Replace a generic inferred description if a clearer scientific title is available. sizes_first moves $SIZES to the legal early position. Moving records can alter which problem they belong to in a multiproblem file, so review surrounding boundaries.
record_names expands abbreviated record names and is off by default. Expansion improves readability, but abbreviations can be context-dependent or deliberately mirror a validated source. Verify each expanded name before enabling it across a repository.
How to verify “mechanical” changes
Compare checksums of unchanged supporting files, review the unified diff, and run NM-TRAN/NONMEM using the corrected copy. If the intent is semantic equivalence, compare generated translation and numerical results, not only source text.
Common mistakes
- Treating character replacement as lossless without reading the affected line.
- Allowing list wrapping to detach an inline comment from its item.
- Accepting an inferred
$PROBLEMname as adequate documentation. - Enabling
record_namesglobally without testing all abbreviations.
Checklist
- Review every character and line-layout change.
- Confirm problem boundaries and record ownership.
- Check long lists token by token after wrapping.
- Compile the corrected control stream.
- Retain the diff and exact tool version.
Further reading
See file checks, record checks, and complete correction catalogue.