How do you make an end-capped gear cable? I want to make my own gear cable of non-standard length. I have a cable with one end capped like the larger end-cap shown in the first picture; the other end is currently bare — I have trimmed the cable to the right length.

I need to create an end-cap on the bare end of the cable (after sliding through the ferrule), similar to the thinner end-cap in the first diagram. 

I have considered using the standard 1.6 mm cable caps but these aren't not going to work because:


I need a slender and well-rounded end-cap to fit inside the ferrule
A pinched cable tip fails because the force of a gear change is applied directly to the anchor (and it just gets torn off)




How are these end-capped cables manufactured and therefore how can I make my own?

My specific ferrule and indicator are here:
If this is a 3 speed Sturmey Archer or similar system you need a replacement cable. It will come complete with the cable and housing with the ends installed. There are universal replacement cables available (I have one on my 35 year old Raleigh). The shift adjuster ferrule has a clamp/pinch nut attached so a standard shift cable can be used. Checking several on line retailers shows most of the replacement cables (non NOS) use this universal setup