After the 127 tooth and -some other- gear compounded with it, every gear and every quick change gear, everything rotating downstream of that is "thinking" in metric. The 127 tooth "input" side of the gear is making the assembly, the compound gear, rotate a "metric number of revolutions". It'll be compounded with some gear that has some good factors for downstream gear changes to select different thread pitches. They'll all be metric pitches, even if you dial in an unusable thread pitch and get something silly like a 0.82mm thread, it'll be wrong in metric. Every ratio after that transposing gear is multiplying and/or dividing IN METRIC.
The way to wrap your head around it is not necessarily mathimaticallly correct, but it makes the lead screw "act" like it is metric. So if you make your leadscrew ACT like a 6mm pitch lead screw for example, you'd select gears (or tumblers) to get a 4 to 1 reduction, you're going to cut a 6mm/4 or 1.5mm thread.