Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

controlling how long numbers break

Return to Member Forum

  • Author
    Posts
    • #74028

      Here’s the sentence: ‘Even with only 52 cards, there is a mind-blowing number of possible ways to arrange them—the answer is a 68 digit number: 80,658,175,170,943,878,571,660,636,856,403,766,975,289,505,440,883,277,824,000,000,000,000.’ This is in a paragraph with hyphenation turned on. The number is breaking, without a hyphen, thus: …66 | 0,…

      — applying No Break to ‘660’ does nothing.
      — applying No Break to ‘660,’ gives …660 | ,…
      — applying No Break to ‘660,6’ gives …660, | 636…, an acceptable result but not logcial behaviour; if para. is edited or tracked, the error recurs in another part of the number.

      Fiddling with the tracking also produces odd breaks. I would expect that ID would see the numerals between commas as short words. Evidently not. As far as I can tell, one has to catch this by eye. Turning off hyphenation and justification doesn’t help.

      Bug? Or, have I missed something obvious?

      Thanks,
      Lindsey

    • #74032

      Would adding a “discretionary line break” after each comma help – see also
      https://creativepro.com/discretionary-line-breaks.php
      and (part way down)
      https://helpx.adobe.com/indesign/using/editing-text.html

      Chris.

    • #74035
      David Blatner
      Keymaster

      Yup. You could use a GREP find/change to search for ,(?=\d) and replace with ,~k
      That will find all combinations of a comma followed immediately by a digit and replace it with a comma followed by a discretionary line break.

    • #74043

      Chris, David,

      Thank you. That helps, esp. as DLBs are stripped out upon export to epub.
      I’m going to report it as a bug though.

      Lindsey

Viewing 3 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads