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

Ranged left text not lining up

Return to Member Forum

  • Author
    Posts
    • #14396270
      Aldo Carbonari
      Participant

      I have a headline with a date below :

      History Book
      1965 – 2024

      Within my InDesign document the “1” does not hug the left hand margin of the text box, there is a noticeable space – interestingly, this does snap in line when I outline the text – is there a way I can resolve this so I can keep the numerals editable?

      Thanks

    • #14396272
      Mike Rankin
      Keymaster

      Check out this post and download the script linked in the comments. https://creativepro.com/removing-space-along-left-edge/

    • #14396273
      Aldo Carbonari
      Participant

      Thanks Mike

    • #14396291

      Wow, so cool to see that script that was written for CS3 still works in CC 2023! Long live Dave Saunders. ;-)

      But it makes me nervous to see the gnarly workaround it uses lol … I think it could cause problems down the line when editing or exporting to epub and such.

      OP: If it’s only happening with numbers (the date range) you might try selecting that paragraph and choosing a different type of number glyph from the OpenType menu. It’s probably set to Default Figure Style, but I’ve found choosing Proportional Lining does the trick. It can be saved in the Paragraph Style (OpenType Features section) or made into a character style, and then used as a GREP style, if you want.

      • #14396329
        Aldo Carbonari
        Participant

        Thanks Anne-Marie,

        This is better, but not quite aligned.

        Thanks

    • #14396328

      Does setting Optical Margin Alignment (in the Story panel) make a difference?

      • #14396330
        Aldo Carbonari
        Participant

        That would work, if the first numeral in the date was not a “1” as this makes the top part of the number hang past the left hand margin …

    • #14396347

      … Using a very old Script written for a Client 6/7 years ago: just precise at 4,000%!

      Here, “black color” = before the Script, “red color” = after the Script, zoom at 1,102.3%:

      https://snipboard.io/jb72oI.jpg

      and for all the alphabet:

      https://snipboard.io/vCqNk8.jpg

      (^/) The Jedi

    • #14396363
      Peter Kahrel
      Participant

      I was never aware of Dave’s script. It’s a very clever solution, but for me the sidebearing showing up at the start of a line is a kerning problem, and my kerning script deals with it:

      https://creativepro.com/files/kahrel/indesign/kern.html

    • #14396382
      Aldo Carbonari
      Participant

      Thanks for this Peter,

      Sounds good to me, I will give this a try.

    • #14396385

      Hi Peter,

      I’ve studied Dave Saunder’s script and sure using the “DropCap” feature is really clever!

      But I don’t find explanation about these 3 last code lines:

      var normalizedKernAmount = (neededShift * 12/myChar.pointSize) + .5;
      myPara.insertionPoints[0].contents = SpecialCharacters.hairSpace;
      myPara.insertionPoints[1].kerningValue = normalizedKernAmount*-1000/12;

      I suppose “12” and “.5” are linked to the use of the special char “hairSpace” but Dave doesn’t give us more info!

      So, truly perplexe!

      (^/)

    • #14396386
    • #14396387
      Peter Kahrel
      Participant

      To translate a distance (in points) to a kerning value, you multiply that distance by (1000 / point size). So to add 6 points between two characters, you do

      app.selection[0].kerningValue = 6 * (1000 / app.selection[0].pointSize);

      I used that in the compose script (https://creativepro.com/files/kahrel/indesign/compose.html).

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