lib/isodoc/presentation_function/math.rb in isodoc-2.10.2 vs lib/isodoc/presentation_function/math.rb in isodoc-2.10.3

- old
+ new

@@ -77,15 +77,15 @@ locale end def parse_localize_number @localizenumber or return {} - m = %r{(?<group>[^#])?(?<groupdigits>#+0)(?<decimal>.)(?<fractdigits>#+)(?<fractgroup>[^#])?} + m = %r{(?<grp>[^#])?(?<grpdig>#+0)(?<decpt>.)(?<frdig>#+)(?<frgrp>[^#])?} .match(@localizenumber) or return {} - ret = { decimal: m[:decimal], group_digits: m[:groupdigits].size, - fraction_group_digits: m[:fractdigits].size, - group: m[:group] || "", - fraction_group: m[:fractgroup] || "" }.compact + ret = { decimal: m[:decpt], group_digits: m[:grpdig].size, + fraction_group_digits: m[:frdig].size, + group: m[:grp] || "", + fraction_group: m[:frgrp] || "" }.compact %i(group fraction_group).each { |x| ret[x] == " " and ret[x] = "\u00A0" } ret end def asciimath_dup(node)