Macro-and micro-turbulent filter functions for weak lines in stellar atmospheres