Factory with semicontinuous dryer and airtight kiln