Can I assume no one has any objections to this patch? I'm pretty sure this is fine, but just wanted to run it past people who might know the srcMapping code better.
Jamie On 30/07/2010 6:19 AM, James Teh wrote:
Hi all, If there are undefined characters in the input, the associated offsets in inputPositions/outputPositions are incorrect. For example, for the input string: "a\u2022b" The output string is: "a'\\x2022'b" inputPos is as follows: [0, 0, 0, 0, 0, 0, 0, 0, 0, 2] This is incorrect. It should be: [0, 1, 1, 1, 1, 1, 1, 1, 1, 2] outputPos is as follows: [0, 0, 9] This is incorrect. It should be: [0, 1, 9] The attached patch fixes this. I'm sending it here first before committing because I'm not quite sure how the new srcMapping stuff works and I'd appreciate someone who understands it taking a look in case I got it wrong. Thanks! Jamie
-- James Teh Vice President NV Access Inc, ABN 61773362390 Email: jamie@xxxxxxxxxxxx Web site: http://www.nvaccess.org/ For a description of the software and to download it go to http://www.jjb-software.com