View Issue Details

IDProjectCategoryView StatusLast Update
0002878FreeCADFeaturepublic2017-05-31 17:40
ReporterFreeCadder Assigned To 
PrioritynormalSeveritytweakReproducibilityN/A
Status closedResolutionno change required 
Platformx64OSWindowsOS Version7
Product Version0.16 
Summary0002878: Configurable Unit Separator
DescriptionIt would be nice to have a configurable space between quantities and units.

Ideally, it would default to a narrow no-break space (NNBSP, U+202F) but also allow no-break space (NBSP, U+00A0) or space (SP, U+0020) for compatibility.

So "20 mm" would look like "20?mm" or "20 mm" (or an NBSP with size/width of 50%) instead.
Steps To ReproduceUnitSeparators = (
    u'\N{SPACE}', # SP = \u0020
    u'\N{NO-BREAK SPACE}', # NBSP = \u00a0
    u'\N{NARROW NO-BREAK SPACE}' # NNBSP = \u202f = ½ NBSP = 50% size NBSP
)

# Replace '\ ' pseudo escape sequences with NNBSPs
def unitsep(s): return s.replace('\ ', UnitSeparators[2])

unitsep('1" = 25.4 mm')
unitsep(u"1\N{DOUBLE PRIME} = 25.4\ mm") # Unicode inch
Tagsunits
FreeCAD Information

Activities

FreeCadder

2017-01-28 03:37

reporter   ~0008036

Last edited: 2017-01-29 02:13

Thanks.

Kunda1

2017-01-28 11:28

administrator   ~0008041

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=10&t=20307

Kunda1

2017-05-18 16:48

administrator   ~0009051

@freecadder please see thread for latest activity

Kunda1

2017-05-19 04:30

administrator   ~0009052

@FreeCadder unless you can convince the community the justification of this request without introducing a whole new set of problems, I've been advised to resolve ticket as 'no change required'.

Kunda1

2017-05-31 17:40

administrator   ~0009228

Closing

Issue History

Date Modified Username Field Change
2017-01-28 03:30 FreeCadder New Issue
2017-01-28 03:37 FreeCadder Note Added: 0008036
2017-01-28 11:28 Kunda1 Note Added: 0008041
2017-01-29 02:13 FreeCadder Note Edited: 0008036
2017-02-13 16:39 Kunda1 Tag Attached: units
2017-05-18 16:48 Kunda1 Note Added: 0009051
2017-05-19 04:30 Kunda1 Status new => resolved
2017-05-19 04:30 Kunda1 Resolution open => no change required
2017-05-19 04:30 Kunda1 Note Added: 0009052
2017-05-31 17:40 Kunda1 Status resolved => closed
2017-05-31 17:40 Kunda1 Note Added: 0009228