Skip to content

Conversation

@benoit-pierre
Copy link
Member

@benoit-pierre benoit-pierre commented Nov 11, 2025

@benoit-pierre
Copy link
Member Author

Code size changes:

  • android-arm: +3.2 KB
  • android-arm64: +4.0 KB
  • emulator: +3.9 KB
  • kindlepw2: +2.1 KB

@Frenzie
Copy link
Member

Frenzie commented Nov 11, 2025

Table hunting API, huh.

Edit:

This isn't much clearer. :-)

/**
	Hunt for possible tables on a page, and update the stext with
	information.
*/
void fz_table_hunt(fz_context *ctx, fz_stext_page *page);

Edit 2:

Right underneath is clearer.

/**
	Interpret the bounded contents of a given stext page as
	a table.

	The page contents will be rewritten to contain a Table
	structure with the identified content in it.

	This uses the same logic as for fz_table_hunt, without the
	actual hunting. fz_table_hunt hunts to find possible bounds
	for multiple tables on the page; this routine just finds a
	single table contained within the given rectangle.

	Returns the stext_block list that contains the content of
	the table.
*/
fz_stext_block *
fz_find_table_within_bounds(fz_context *ctx, fz_stext_page *page, fz_rect bounds);

@Frenzie Frenzie merged commit ead9627 into koreader:master Nov 11, 2025
3 checks passed
@benoit-pierre benoit-pierre deleted the pr/mupdf_update branch November 11, 2025 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants