Preparation from dyes containing in o-postion a hydroxyl group and in o'-position hydroxyl, alkoxy, carboxyl, amino or keto groups