emojianlab

Choose Spaces That Keep a Label Together

Compare ordinary and narrow spaces in quantities and typographic notes.

By David

A small museum label has enough room for the name of a material and its mass. In a narrow version the number lands at the end of a line and the unit begins the next line. Nothing in the wording has changed. A reader still has to look across the line boundary to put the number and unit together. A carefully chosen space can make the pair travel as a group without deleting its visible gap.

Compare a break opportunity with the gap itself

An ordinary word space is U+0020. It provides a familiar gap and can allow line wrapping. A no break space at U+00A0 typically provides a visible gap while keeping the two sides together when the layout follows Unicode line breaking. A narrow no break space at U+202F does a similar job with a smaller intended gap. A thin space at U+2009 is a different value. Its name describes width. Do not infer that it keeps its neighbors together just because it is narrow.

Choose the property that solves the real problem. If a gap is too large in a typographic specimen then test a width appropriate to that setting. If the line must stay together then use a no break value or a real wrapping control in the destination. A printed design with set line breaks can use its layout controls without changing the underlying values. A copied text label will have to carry enough of the relevant boundary into each place it appears.

A controlled test for 20 kg

Make three lines containing the same number and unit. Put an ordinary space between 20 and kg in the first. Use Invisible Character Picker for one copy of the no break space in the second. Put one copy of the narrow no break space in the third. Keep your own note with the three U+ labels. The label belongs outside the specimen so it does not accidentally change the length of the test. Paste the same three visible phrases into the same destination.

Reduce the available width. Watch which line breaks between the number and unit. Notice where a whole pair shifts to the next row. You will often see the ordinary space break first. The grouped forms can preserve the relationship and need more room on that row. Some layouts use emergency wrapping to avoid overflow. They can still split a long grouped string when it cannot fit. Observe the actual saved document rather than making a claim from the value alone.

A table that keeps the examples testable

Value Put it in this context Observe separately
U+0020 An ordinary gap in the phrase 20 kg Which line it can break on
U+00A0 The same number and unit that should stay together How the whole pair moves when a line gets short
U+202F The same pair in a compact typographic label Whether the gap is narrower in the chosen font
U+2009 A visible thin gap in a text specimen Whether its wrapping differs from the no break version

An exact inspector can confirm which values reached each label. This is particularly useful when a text box shows ordinary and special spaces with the same width. Compare the saved output with the source note. If the value was converted after paste then test whether the box or a later export changed it. A different app may keep the same string and have a different approach to fitting it. Keep track of which fact you have observed.

Observe the punctuation choices of a particular publication

Some French typography uses a nonbreaking gap before certain high punctuation marks. The precise spacing customs can vary by region and publication. Use the style guide of the material you are editing. A designer may choose a narrow no break space in a place where a wider gap looks odd. Keep the punctuation next to its word if that is the intended rule. Write the actual phrase correctly before choosing how it breaks. If the text will be translated then base the spacing on the new language rather than carrying decorations from the first version.

A clean specimen can show a word and its punctuation with the chosen gap as a real character. Put a second specimen below it with the alternative. When a style editor reviews the two forms include their codes. They can say whether the output preserves a documented convention. If a browser or publishing system normalizes the space then record which choice it can retain. Use a correct supported rendering for the medium rather than adding multiple small gaps that may combine unpredictably.

Keep a short unit together without freezing a sentence

A weight near a material name is an understandable pair. A whole sentence full of no break spaces is hard for the layout to fit. Apply the rule where a nearby relationship would be confusing when separated. A title and its first word may have a typographic convention. A temperature label and unit may have a documented writing convention. Follow the project's actual style for those pairs. Do not insert a nonbreaking character between every word because only one property needs protection.

Test with actual values of different lengths. A label containing 20 kg can fit where a longer measurement cannot. Use the longest label that occurs in your real list rather than designing from one short placeholder. A utility can supply a gap character. It cannot shrink the words. If the layout is very constrained then reorganize the information into a hanging line or a dedicated value field. Keep the value and unit readable at normal size. A typographic space should help the layout rather than forcing the reviewer to make all letters smaller.

Use line breaks intentionally as a separate choice

A quantity might appear on a new standalone row after a descriptive title. Add a real line break in the intended position if the publication always wants that layout. The Line Break Tool can prepare the copied prose but should not be used to merge a row that needs its own value. A whitespace cleaner may standardize special separators if configured to do so. Check its options when repeating an edit on a series of labels. A deliberate nonbreaking gap belongs to the text for a reason and can be preserved when the edit is only about surplus spaces.

Plan the handoff beyond the first preview

A museum label may have a print edition and a web listing. In the source keep the actual number separately from its written unit and typography where the work calls for numeric storage. A spreadsheet can then handle the number as data. The display copy can join it with the chosen space afterward. If you give another editor the visual label alone they may paste it into a field intended for plain numbers. Document which string is a display specimen and which value should be stored.

Before publishing examine the smallest readable layout and then look at a saved copy. Check whether the surrounding text has the same gap. Search a plain version of the label if visitor search is important. A space can affect exact comparisons even when the phrase appears the same to a reader. Give the ordinary title or a documented search field a clear place. Preserve the special gap in the published specimen where it serves the reader.

Apply the rule to a small working series

Imagine a group of four object labels with a name and an ordinary quantity. Write all four first. Mark the number and unit pairs in the source. Choose one no break character that fits the publication and use it consistently in those spots. Do a real narrow preview beside an unmodified copy of each label. If the unmodified copy reads just as well and the publisher has no spacing requirement then ordinary spaces may be fine. Use the edition that actually works rather than choosing the rarest gap for its novelty.

One of the objects may use a longer unit name. Put that full wording on a dedicated row if the value can be misread when broken. The same type size and capitalization can make the labels feel related even when they use slightly different layouts. Tell the editor which features are important to preserve. Keep an exact example with a U+ label for each invisible value. A small deliberate vocabulary of spaces is easier to maintain than a set of invisible changes inferred from screenshots.

Keep one difficult case in the type specimen

The shortest label can pass for nearly any layout. Pick a pair with a value that almost reaches the end of the line. Compare a source typed in one editor with a saved display from the receiving editor. If the same text shifts after a font change then record the new wrap without blaming the gap choice. A second specimen with the full group on its own row can indicate a layout repair that preserves the intended text. Give both examples to the person reviewing the final design.

Tools mentioned

More from Unicode

Find Out Why a Copied Accent Looks DifferentSplit a real copying issue into composition and font and data questions.Hand Off a UTF 8 Text File with ConfidenceCheck the actual characters and file conventions before sending a text specimen.