Opened 3 years ago

Last modified 8 days ago

#2696 assigned defect

Some unit attributes in XML have non-ASCII space characters

Reported by: Steve Loveless Owned by: Simon Cox
Priority: major Milestone:
Component: unit definitions Keywords:
Cc:

Description

Some unit names in XML have non-ASCII space characters, and in some cases mix ASCII and non-ASCII space characters. The use of non-ASCII space characters seems incorrect (and can lead to unexpected behavior when dealing with the text). The following contain such:

In name:

  • "Queen Anne's wine gallon" (first space is non-ASCII)
  • "calorie at 15 °C" (space after the 15)
  • "calorie at 20 °C" (space after the 20)
  • "British thermal unit at 39 °F" (space after the 39)
  • "British thermal unit at 59 °F" (space after the 59)
  • "British thermal unit at 60 °F" (space after the 60)

In printSymbol:

  • "m H<sub><r>2</r></sub>O"
  • "m Hg"
  • "in H<sub><r>2</r></sub>O"
  • "in Hg"

Attachments (1)

ucum-essence.xml (82.3 KB) - added by Simon Cox 8 days ago.
ucum-essence with non-ascii space symbols &#160; replaces by ascii #20

Download all attachments as: .zip

Change History (4)

comment:1 Changed 2 years ago by Gunther Schadow

Milestone: Version 2.2

comment:2 Changed 10 days ago by Brenée Mitchell

Owner: set to Simon Cox
Status: newassigned

Changed 8 days ago by Simon Cox

Attachment: ucum-essence.xml added

ucum-essence with non-ascii space symbols &#160; replaces by ascii #20

comment:3 Changed 8 days ago by Simon Cox

See attached version with the non-ascii space characters replaced. Propose to replace https://ucum.org/ucum-essence.xml with this file.

Note: See TracTickets for help on using tickets.