Unidentified attackers target protesters as 40 pro-democracy activists appear in court.