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

Superscript with underline

Return to Member Forum

  • Author
    Posts
    • #93938
      Anonymous
      Inactive

      Old problem: Anybody knows a quick way to underline a superscript character the same thickness and position than the rest of the underlined text?

      https://dl.dropboxusercontent.com/u/5070024/Underline%20and%20Superscript.pdf

    • #93942

      I assume, the font has no ordinal-characters? First idea: Insert a space after, give the space the underline and negativ kerning between h and the space.

      Edit: Second idea: create a character style with strikethrough and offset, disable underline. Third idea: simply create a new character style with underline ;-)

    • #93944

      What a interesting question!

      Some thoughts: If you create a underline, this is calculated based on the size of the font. E.G.

      fontsize: 36 pt
      Preferences Superscript – Size: 60% and Position: 30%

      Underline-weight will give us for the normal characters 1,8 pt and for the ordinals 1,8 pt too. But it is clear, that the underline for the ordinals is smaller.

      To change the size of the ordinal-underline:
      Every other value instead of standard, in this case (1,8 pt) > e.g. 2 pt will set both to the same thickness

      To bring the line down, it seems to be inaccurate to calculate with the shifted value, so:
      1. Draw a character “M” with the same fontsize, fit the frame
      2. Copy this frame with shift, enter a “h” and click on superscript > note draw not “th”
      3. If you try to fit the character to the frame, this will not work, cause superscript is only an effect
      4. Convert the “h” to outlines
      5. Flip the h-frame from top to bottom till the bottom edge is aligning with the bottom edge of the M-frame >> this is your offset and in my example 10,8 pt!

      Hopefully the steps are understandable. To built a right style with exact values, it should not take longer than a minute.

      Kai

    • #93945
      Anonymous
      Inactive

      I’ve been using a character style with a different value for the underline and its position, which seems to be the easiest way to apply the correction. But you need to create a new style for each font and size, and I was wondering if there was maybe a trick to automate the process, no matter what font you use. A GREP about underline, maybe?

    • #93954

      This isn’t possible with grep, cause as I described above, if you use percentages, you will get
      a) no correct value
      b) percentages are converted to mm or pt
      c) only values in () are dynamic and doesn’t help in your case

      As I said above: You will not have those problems, if you choose a font with a glyph-set that can display correct ordinals.
      Otherwise it is good practice, not to underline everything. So it should not be that problem, to create one character style for body text with my above mentioned steps. An yes, you can then includ this style with a grepstyle to your para style, e.g. (\d\Kth)

      Kai

      • #93961
        Anonymous
        Inactive

        Kai,

        I produce a history magazine and I cannot change the font of an article just because an author wants to underline part of a quote to support a point he’s making. In this case, the quotes are from an 18th century manuscript where the numerous abreviations are indicated with superscript in the original text. I personally do not agree with the use of underline (the Mac is not a typewriter) but it’s not my place to argue with the author and the editor.

        I find the technique you describe a bit too complex and not really applicable in my case (the quotes are italic, so the use of a text box to contain the superscript would place it to far to the right). Obviously, I’ve managed to underline superscript so far by creating a character style; I’m just looking for a better and more efficient way to do it.

        Obi-wan,

        Thanks. I’m curious; where’s that script?

      • #93968

        Why do I have the feeling, that you didn’t understand my way, cause I use a character style too ;-) Of course, if this should work with different fontsizes, Michels way with the script is a good idea.

      • #93986
        Anonymous
        Inactive

        Kai,

        Are you doing the “M in the text box” steps only to find the value of the shift for the underline?

      • #93988

        Yes.

      • #93989
        Anonymous
        Inactive

        Kai,

        OK, I understand now. I still think it’s simpler to get it right with hits and misses and to save the result as a character style. After all, we have thousandths of points to work with; just need to be patient… until we get a script to automate the whole process. :)

      • #93993

        Sure, you can automate this process, either with character styles or as local overrides. So a script could find all superscripts with a underline and set the underline to the correct position as Michel showed in his video.

      • #94006

        Kai,

        Personally, no scripts for free now!
        If somebody wants to save time (and money) using a script, it’s time for him (or her) to pay for Scripters’ knowledge!

        (^/)

      • #94016

        Michel, I’ve been very annoyed at this special facebook post last week (a guy find $5 to expensive for a script) and see this as you (maybe with minor exeptions).

        In Germany scripters take between 70-150 Euro per hour. So if someone spent his time, he should also be paid for it. In the past, a lot of scripters provide their scripts for free (me too). In hindsight, we have thus destroyed the market. That should end.

        Kai

      • #94040

        Kai, I totally agree!

        A very important point: They don’t want to pay … but they no more want to search if such a script has already been written by somebody!!
        So I’ve decided now not to give code for free and … not to indicate them where they can find a free script!!!

        I know people will find I’m not cool! … but I don’t care and I remain a Jedi!

        (^/) ;-)

    • #93960

      I love this kind of answer: If you don’t want to have a problem, don’t do it! =D

      Based on default settings, I do it in 1 click for all the doc, regardless fonts/sizes [to be parametered in the script].

      2 char styles: “Underlined” & “Underlined_Superscript”.

      (^/)
      [Script not for free! — Beta]

    • #93969

      (^/) ;-)

    • #93985
      Anonymous
      Inactive

      Obi-wan,

      I see many other of your scripts that would be very useful. How do we get those? (je n’ai vu aucun lien pour les atteindre à partir de Facebook).

      Linda

    • #94086

      When I’ve discovered I wrote ~90 scripts since the beginning of the year, I’ve thought it was time for me to begin a “second life”!
      So I’m working on a web site to sell them (~200 original scripts).

      Email me if you want: obiwankenobiearth@gmail.com
      I’m actually on Earth!

      (^/)

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