The DIN/ISO standards, and JIS standards, at least, specify tolerances. These should be added to the paper info, and used by paperwithsize to allow non-exact matches.
An obvious question: what happens when multiple papers match (e.g. JIS A4 vs ISO A4, as I believe they are the same but with different tolerances)? Obvious answer: take the first match, and specify the papers in increasing order of tolerance. If it turns out that there exist unrelated paper sizes which overlap within their tolerances, we can think again.
The DIN/ISO standards, and JIS standards, at least, specify tolerances. These should be added to the paper info, and used by
paperwithsizeto allow non-exact matches.An obvious question: what happens when multiple papers match (e.g. JIS A4 vs ISO A4, as I believe they are the same but with different tolerances)? Obvious answer: take the first match, and specify the papers in increasing order of tolerance. If it turns out that there exist unrelated paper sizes which overlap within their tolerances, we can think again.