How to fix the indices or false exhibitors, made with basic changes

Hi all.

There is a script on the Forum used to convert locally formatted to character styles - styles script to keep formatting local and CS4

It's a brilliant script, but as I suddenly discovered (and would have discovered if I read the post more in detail) are that no 'rigged' sub/exhibitors created with basic travel do not work. To quote the other thread:

The script search attributes such as 'exposing', 'index', 'small caps '. If the small capitals are rigged in the document with marquees in a smaller font, the script won't find them. If the exponent or index is rigged in the document with a smaller font size and a vertical offset, the script won't find them.

Initially I didn't this would never be a problem... I thought "that Devil would be a hint or an exhibitor how? wouldn't they just click on the buttons on the index or superscript? » ... Unfortunately, no!

I thought that a solution would be to do a GREP which could be added to a findchangebylist script bundled with InDesign. First thing to do would be to create a GREP to find any positive base change and change it by exposing. and a GREP for search all negative vertical offset and replace it with a clue. Sounds simple... until I tried to implement, as the dialog box will not take a + or - in itself... There must be a correct value.

Everyone has faced this problem, and if so, what was the solution and results?

Colin

OK, this last forum link I referred to as she had the thing... kind of. Just had to modify the script that was used.

The script below will find all vertical offset greater than 0 and apply a format local Exhibitor; and any reference pass less than 0 and apply a local index format.

for (var j = app.activeDocument.stories.length - 1; j >= 0; j--) {
myCharacters=app.activeDocument.stories[j].characters.everyItem().getElements()
var color = myCharacters[j].fillColor.name;
for (var h = myCharacters.length- 1; h >= 0; h--) {
  if (myCharacters[h].pageItems.length < 1){
      if (myCharacters[h].baselineShift > 0){
           myCharacters[h].baselineShift = 0;
           myCharacters[h].position=Position.SUPERSCRIPT
           }
      if (myCharacters[h].baselineShift < 0){
           myCharacters[h].baselineShift = 0;
           myCharacters[h].position=Position.SUBSCRIPT
           }
      }
   }
}

From here, the good ol 'preptext' script allows then track down the sub/supers and apply styles of character appropriate for them.

Hope others find it useful.

Colin

Tags: InDesign

Similar Questions

  • How you update the document in your model agreement with all changes made in Adobe sign?

    Hello

    I successfully Setup Adobe sign in my sandbox SFDC, created templates with merge mapping and mapping of data... it's all coming together nicely.

    I start sending an agreement, click on "Preview of the signed document or position fields", update all the fields in my agreement (define the length of field, drop down / drop-down list of values... etc.) and send my agreement must be signed. My question is: how to upgrade the document in the model to account for all of the updates I just did this document/contract? I do need to update the fields whenever I send the agreement?

    As long as a Salesforce administrator I was looking for in Salesforce for the answer, but I didn't know that you can add templates to Adobe sign on the dashboard. Once you add a template, you can change all the fields of the form (and the formulas, rules of validation... etc) from the tab 'manage '.

  • Just as a reference: how to FIX the annoying 'White Screen Of Death"with Silverlight and"Access denied"error with computer management.

    Well, I just hope that someone who has met these two mistakes will find my dose. It might save a lot of pointless research on the net.

    SYMPTOMS:
    -When you try to open a Silverlight application in your browser (Firefox, Chrome, IE, etc), your browser displays only a white area. When you right click on the white area, you can click on the Silverlight properties.
    -If you try to start "Computer management" by clicking on the 'My Computer' icon and select 'Manage', you get the following error: 'access denied '.

    CAUSE:
    The following errors are usually the result of a bad environment variable. In this case the "windir" environment variable does not work correctly. You can try running the management of the computer to start > run and entering:
    %windir%\system32\mmc.exe/s %windir%\system32\compmgmt.msc

    Notice the between the characters of percentage windir environment variable. If you run the above code, you will probably get an error saying that MMC cannot open the file. Look closely at the path, it's back!
    You will probably find any % somewhere.

    What actually happened here is the variable windir made reference to another variable: systemroot
    Why this creates problems, I'm not sure. Also, I don't understand what made then variable windir change.

    SOLUTION:
    -From your desktop or Explorer: right-click on "My computer" and select "Properties".
    -Click on the "Advanced" tab and then click "Environment Variables".

    http://pcauthorities.com/images/advanced-system-properties-XP.jpg

    -Did the windir variable. Together to "C:\Windows" do not think that it is already set to "C:\Windows", because windows then tells you. Double-click it to know for sure.

    http://www.adminxp.com/windowsvista/envvariabl.PNG

    -See, I told you! Change this to "C:\Windows".

    http://www.adminxp.com/windowsvista/editenvvar.PNG

    Hi Jooch,
     
    Thanks for posting such a detailed response, including symptoms, Cause, and resolution to "White Screen Of Death" with Silverlight and "Access denied" error with computer management"issues.
     
    I appreciate your time and effort to do the same. This could help other users of the forum as well.
  • Can someone tell me how to fix the error no.: o8oocccoe at with outlook express 6 e-mail

    I changed my provider and I can receive emails but cannot send them the error is not: 0800ccc0e any advice. Jenny

    Hi Jenny,

    1 you can send emails correctly earlier?

    2. have you done any hardware changes or software on your computer before this problem?

    You can follow this link & check if the problem persists:

    Troubleshooting error messages that you receive when you try to send and receive e-mail in Outlook and Outlook Express

    Hope the helps of information.
    Please post back and we do know.

  • How to fix the error with the code: 0xe7210001 failed to load powrprof, object: cls

    Hello

    Dose anyone know how to fix the error with the code: 0xe7210001, message: unable to load powrprof, object: CLSD-no-it is found;
    OR: Fingerprintsoftware OR error: replicas THotkey.exe message window and the computer freezes

    Maleware scanned and virus, also in safe mode, found no infection, reinstalled driver fingerprint, but nothing has changed.

    grateful for the help!

    Hello

    > message: unable to load powrprof, object: CLSD-no-it is found;
    In my view, this would mean that there is a problem with Toshiba Power Saver
    What laptop Toshiba, you have exactly?

    Maybe reinstall Power Saver could help. You can find it on the official website of Toshiba.

  • How to fix the main button to paste constantly

    How to fix the main button to paste constantly

    Short of getting a replacement from Apple or risk a repair third shop there is nothing you can do. How about a button on the home screen? Go to settings > general > accessibility > assistive touch > on.

  • How to fix the bug of 1970 on iPad mini 2

    How to fix the bug of 1970 on iPad mini 2

    It is not a bug. It is the result of a deliberate action by the user. However, some reported that the DFU restore, if it does not, then you must make an appointment at the Genius Bar at the Apple Store closest to him have supported. Apple is working on an update that will prevent users from doing it again. If you changed the date to May 1970 or earlier and he can't restart your iPhone, iPad or iPod touch - Apple Support

  • How to fix the microphone in Compaq Presario R3000

    Original thread title - how to fix the microphone in Compaq Presario R3000?

    Hello
    I have a laptop Compaq Presario R3000, and I tried to use Skype on it. Problem is that the other end can't hear me. I tried all the suggestions on the site of Skype to try and attach the microphone.  I tried the recorder (click programs, accessories, then entertainment to access), but when I record my voice, nothing, so I guess it has something to do with the microphone. Just to be sure - this model has an internal microphone? What I've read, it seems that it does. I downloaded the updated drivers, so I don't think that's the problem. Any suggestions? I'll try anything now, because I spent about 6 hours online trying to get the microphone to work and so far, nothing. Thank you! Patti

    Hello

    1. What problem is only on Skype?

    2. were you able to use this microphone earlier?

    3 have there been any changes made on the computer before the show?

    4. what operating system are you using on your computer?

    I suggest you to consult the steps mentioned below and check if it helps.

    Run the troubleshooter of sound recording
    Click on the link below and run the troubleshooter.
    http://Windows.Microsoft.com/en-us/Windows7/open-the-recording-audio-Troubleshooter

    See the following Help article.

    Tips for solving common audio problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    If the problem persists, then I suggest you to contact Skype to get help.

    https://support.Skype.com/

    It may be useful

  • Problems of updates Windows XP - how to fix the incorrect Windows XP updates KB2633952 keep asking to install?

    Problems of updates Windows XP - how to fix the incorrect Windows XP updates KB2633952 keep asking to install? True, it is that it is already installed on your computer. If hide us, an another previous KB2570791 arises in our updates of Windows and asked to install anything, that it was installed... of the questions repeated and very annoying.  Help, please!

    (Microsoft Answers just sent us message have deleted our previous thread, ask for help!) We are simply not that these problems are problems with Windows XP updates related to DST or not?)

    Nadia. PA supporter said that your computer is hacked. He may be right. I can't weigh because I don't know what led him to this conclusion. If your computer is hijacked, then you should address that more that you need to fix this minor update. However, under the resolution of your problem to update, you can try this:

    Assume Windows XP

    Check the C:\Windows\System32\ directory for the presence of the file tzchange.exe

    If the file is not present or if the version of the file is not 5.1.2600.6171 or newer...

    Download the update appropriate 2633952 for your platform here:

    http://support.Microsoft.com/kb/2633952

    Run with - extract switch (e.g., Start > run > "[path to the downloaded file] \WindowsXP-KB2633952-x86-ENU.exe"-x)

    Of course, replace [path to the downloaded file] with the path to the downloaded file.

    Citations may or may not be required depending on the path. Place the x - out the citations if you use them.

    Choose a location for the extracted files (a new folder is recommended)

    Locate the extracted files. File tzchange.exe you want and copy it into C:\windows\System32

    That rerun Windows Update detection to see if the problem is resolved.

  • How to fix the black screen of my hp pavilion g6

    How to fix the black screen of my hp pavilion g6

    Try a hard reset, works sometimes. Disconnect all external devices first.

    battery and power cord 1 / removal

    2 - Press the power button for 30 seconds

    3 reinstall only the power cord for the first start.

    4. turn on

  • G530 - how to fix the Novo key features?

    Hello guys!

    Some time ago I completely changed partitions configuration on my laptop, because I wanted to have two systems - Windows 7 (the default) and Ubuntu. Previously, I had an image of the LENOVO_PART (partition Lenovo recovery) by Paragon and burned on DVDs. Its contain images (a recovery key 7) OKR - mbr, boot partition and system (with default settings) file that contains information about the partition sizes and sectors. I deleted all the partitions and create new partitions.

    Now I want to restore the original scores, so I restored the partition recovery DVDs, and I put his ID 12 (PTEDIT32) and rebuilt the other partitions on the accuracy of a sector.

    Now, I have the following partitions: 1 - start (default is unnamed), 2 - system (default is unnamed), 3 - Lenovo, 4 - LENOVO_PART. Unfortunately the Lenovo System Restore does not start once I pressed the Novo key, so I put the active recovery partition and I can't restore the original mbr, boot, and system. Everything would be fine, but the Novo key doesn't work, then press start the normal system of Windows 7, not the recovery system.

    Could someone tell me how could fix the Novo key without the Lenovo service features?

    BTW, sorry for my bad English

    It should work properly. It seems that there is something wrong with the a key.

    at this point, I suggest you call lenovo support line and ship your laptop.

  • How to fix the position of the cmd window?

    I would like to know how to fix the position of the cmd window on the upper right corner instead of middle of anywhere in the window.

    Does anyone have any suggestions?
    Thanks in advance for your suggestions

    Hello!

    Open "Command Prompt", right-click the title bar and choose "Properties".

    Go to the Layout tab.

    In terms of the "Position of the window", uncheck "Let system position window.

    Change the Left and Top values to your preference - on my system (left = 290, Top = 0) are ok.

    On the same tab, look at the picture under "Overview of the window" to try different values - the window position changes after entering a value in the left text box and pressing the tab key.

    I hope that helps!

  • How to fix the rotation in application as apply just open land scrap only mode in Html5

    Dear team,

    I develop application using HTML5 for Z10.

    How to fix the rotation in application as apply just open land scrap only mode in Html5

    Please help me and give me a link to the documentation for this.

    Kind regards

    HP

    Hello

    You can set the following in your config.xml file

      
        
      
    

    There is more information available on our developer site -https://developer.blackberry.com/html5/documentation/code_sample_creating_a_bb_widget_config_documen...

  • How to fix the below errors event-7001

    How to fix the below errors event-7001. Because my PC Win7 OS frozen when start as msg 'Welcome '.
    The computer browser service depends on the Server service which failed to start because of the following error:
    The dependency service or group was able to start. Event ID is 7001.

    Hello

    Try to fix this problem by doing this

    1. Open the Device Manager.
    2. On the view menu, click to select the check box Show hidden devices .
    3. Double-click drivers Non Plug-and-Play.
    4. Double-click NetBIOS over TCP/IP.
    5. In the use of the device box, click use this device (enabled).

    Hope this helps

    James

  • fonts of PDF in Acrobat Reader MS are coarse, while the same document loaded into Acrobat Pro on the same computer has smooth fonts. How to fix the appearance of fonts in MS Reader? Running Windows 7.

    fonts of PDF in Acrobat Reader MS are coarse, while the same document loaded into Acrobat Pro on the same computer has smooth fonts. How to fix the appearance of fonts to Rader DC? Running Windows 7.

    Hi sidneys22641895,

    Please try to check the rendering under Edit menu options > Preferences > Page Display.

    Check if in smooth text field "for computer/laptop LCD screens" is selected.

    Let us know if that helps.

    Kind regards

    Meenakshi

Maybe you are looking for