Manufacture of woven or tufted carpets and rugs