liàng tǐ cái yī
lit. to cut cloth according to the body (idiom)
fig. to act according to actual circumstances
量
liàng
capacity
体
tǐ
body
裁
cái
to cut out (as a dress)
衣
yī
clothes