The embodiment of the invention provides a
software content
layout data processing method and device, and the method comprises the steps: receiving template data,
annotation data and configuration data of a preset
software template, carrying out the
structural analysis of the template data according to a template analysis engine, determining a
structural analysis result, initializing the configuration data according to a
rule engine, and carrying out the
structural analysis of the configuration data. And determining a
rule engine instance, based on the
structure analysis result and the
rule engine instance, performing standardized preprocessing on the template data through a template preprocessing engine, determining a standardized template structure, and replacing the template content of the standardized template structure according to the
annotation data. According to the method and the device for replacing the small red book template, the template is replaced, the labeling
information recovery operation, the spacing deviation
recovery operation, the exceeding detection operation and the
layout adjustment operation are sequentially executed on the basis of the replaced template, and a final template structure is obtained for a user to use, so that the small red book template typesetting efficiency and quality can be improved.