mitko / readable_climate_reports

Make climate reports machine readable, so they can be rendered in various inclusive ways
MIT License
4 stars 0 forks source link

`ami3` PDF reader cannot deal with hyperspaced text #11

Open petermr opened 2 years ago

petermr commented 2 years ago

Page 68 of main report contains:

Additional terms may also be used when appropriate, consistent with the IPCC uncertainty guidance:

but with many internal spaces to justify the text.

ami3 gets

be   ... used   ... hen   ... propriate,   ... sistent   ...    ...   ...   ... inty   ...  guidance: 

i.e. the offset mechanism is inappropriate.

Need to find publishers's strategy. May be able to detect this by comparing string length and coords length

mitko commented 2 years ago

Hm, could be the underlying PDF data encoding somehow? I'm thinking we'll need to do some post-processing, and trimming extra whitespaces, etc.