Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customised report prose should 'flow' #525

Open
carlhiggs opened this issue Mar 3, 2025 · 0 comments
Open

Customised report prose should 'flow' #525

carlhiggs opened this issue Mar 3, 2025 · 0 comments

Comments

@carlhiggs
Copy link
Collaborator

Our reports are based on fixed templates that specify the locations of specific content (e.g. headers, and the text that goes beneath these).

When translated to different languages, or customised using alternative prose, those locations do not change --- except in a few circumstances where basic rules are worked into the code to achieve this in a programmatic way.

Ideally however, layout would 'flow' to fit the fluctuations in prose length. If text represented in a certain language, or customised in a certain way, is shorter or longer, the subsequent text would ideally be positioned to retain the natural gap between elements. This doesn't happen though, so in some sections (particulary the 'context' section on p3) there are unnatural gaps, despite efforts to minimise these.

For example, for the example region, if its set to publication ready and the demographics and health equity section isn't customised, there remains a large gap where that section would go, due to the fixed placement of elements:

Image

Were this issue addressed, the prose would flow normally and there wouldn't be gaps like in the above image between the text sections on that page.

This may not be achievable using the current template approach with FPDF, but broadly could be achievable using text flow regions.

I don't think this is something we can necessarily achieve any time soon; but it would be a nice improvement on our current reports, improving the layout when customised by users for different settings.

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

No branches or pull requests

1 participant