Skip to main content

[SortingBlocksParams] INI file section

The [SortingBlocksParams] INI file section controls how layout blocks are grouped by proximity when determining reading order. Blocks are sorted by position (left to right, then top to bottom) and blocks that are spatially close together are treated as part of the same logical group.


Gap

KeyTypeDefault
GapInteger0

Sets the maximum allowed distance between two adjacent blocks for them to be treated as part of the same logical group. If the distance between two blocks exceeds this value, they belong to separate groups. The default value of 0 means no additional grouping is applied beyond the default sorting order.


GapMeasurementUnit

KeyTypeDefault
GapMeasurementUnitGapMeasurementUnitEnumGMU_PercentOfMinimumFontSize

Defines the unit used to measure the distance between blocks when evaluating the Gap threshold.

GapMeasurementUnitEnum

  • GMU_Pixel: The gap is measured in pixels.
  • GMU_PercentOfMinimumFontSize: The gap is measured as a percentage of the minimum font size of the text in two adjacent blocks.
  • GMU_Twip: The gap is measured in twips (1/1440 of an inch).