A dougrain extension to generate HAL forms