Kase/Range Bars Calculation

Does anyone know how a range/kase bare is calculated from normal OHLC data?
Is it possible to calculate and plot range bars manually?