In Taipei, a city of 2.5 million people, firefighters battled blazes and construction cranes and fire ladders were used to rescue people trapped in the ruins of buildings.