Having been prompted by Mr Magnetoman and being able to pop out the KTB size so readily as I was just tackling this exact problem, I went out to the shop, where first I had to discuss with Mr Covid the suitability of my functionality for engaging in this process, As I am getting an upper hand on him and his army of terrorists, I decided I was good to go.
I recently acquired a job lot of perhaps a dozen of these style of gearboxes. All in various states or (dis)repair. One lovely brand new brass tach drive with original protectors on the thread, all the way down to a very sad speedo drive with signs of very significant abuse. The first one I tackled was a nice looking one but with the hub drive shaft pretty much worn the housing oval shaped, remarkably the rest of it including the gears appeared to be in good nick. I took it all apart and mounted the housing in the lathe and bored out the housing until it was a clean bore, quite significant I might add, Made a sleeve in 7075 T6 to fit the housing and bored it for the gear shaft at 5/16. Pressed it in with a light press fit and some red loctite, finish reamed the hole and all is well again. That wasn't so hard.
the next one I picked was just as Gary was seeking advice on my next problem, hence already having the thread size ensconced in the covid fog.
As MM questions everything, as one should I went out there today and collected up 1/2 dozen of these housings. Now None of my 3 or 4 thread gauges have a 26 tpi gauge, so I went up a step and got out my 1/2-26 BSC tap (one need this of course if one messes with Brampton forks, also in 7/16, and of course LH and RH threads, but I digress). I tried the tap on all the housings, and thinking I must be missing something I also got out my 12 X 1 metric tap. Nope not missing anything, they do fit much better in the 26 tpi than the 1mm pitch. Now I wont go into thread forms---------.
I also raided my rather large box of used and abused cables and pulled out three of the female connectors. After cleaning them I ran a 1/2 - 26 bottoming tap and found that no material, apart from a little bit of greasy dirt was removed from the fitting itself.
So I set about turning the threads off the housing to about .415 dia, Next, back the the 7075 T6 and made a sleeve threaded 1/2 -26 OD and drilled 13/32. A few minutes of "dusting" the bore to a size for size fit, some more red loctite and it all went together. once setup for it, it's easy peasy.
My conclusion is that although doing all this is a bit fiddly, I won't drive down the road dreading impending speedo cable doom.
Have at it