script for auto kern after typing

Hi all!  I'm curious to know is it possible to create a script that will automatically kern specific letter pairings after typing their?
I browsed the forum and found something like this here Scripted custom kerning tables | Peter Kahrel.  


What I would like is to be able to type and every time a 29 letter combinations that need kerning is involved than automatic script he kern

Ideas or help to point me in the right direction would be greatly appreciated!
Thanks to all in advance!

If you really want to do, the only way is to use pairs of caterpillars in GREP styles - you cannot set values specific kern in the character styles.

1. determine what values of track you need. Say you find to fix the Vx pair you must follow-100. Don't forget that kern are applied at the insertion points, followed by the values of characters, so Vx type, select the V and track until the couple looks like right.

2. create a character style followed-100 and set its follow-up-100.

3. Add a GREP style to your style of paragraph (s) that applies the character tracking-100 V(?=x) style

4 do the same for all other pairs of 28. You need a new style of character for each value of the track.

This solution is usable only in short documents. Long documents with many GREP styles tend to become very slow. Another disadvantage of this method is that you can define kern/track double only for characters in the same font. GREP style cannot distinguish the different font styles.

Peter

Tags: InDesign

Similar Questions

  • After typing password password protected document (ABSA) I get the following message: "Adobe Reader could not open 'index.html' because it is not a type of file supported or because the file has been corrupted (for example, he was sent as an email.

    After typing password password protected document (ABSA) I get the following message: "Adobe Reader could not open 'index.html' because it is not a supported file type or because the file has been damaged (for example, it was sent as an attachment to e-mail and has not been correctly decoded)" when I send the attachment to my husband that he can open it.  P

    Hi idwa,.

    As I mentioned this file must be opened with the correct application. You will get the best understanding of your problem on this forum link: what is required to read the files .emc of ABSA bank

    Kind regards

    Ajlan Huda

  • Script for automatic placement of several text files?

    An editor I work with is slowed by a change to their workflow. Maybe there's a whole script for help? I looked but can not find, so I post here.

    Old workflow: Designers would be "automatic formatting" a single Word doc with all the preliminary pages (sometimes > 10 sections of diff.) and chapters and endnotes in a model book.

    New workflow: The Word doc is now divided into 30-40 InCopy files, always destined to a single InDesign layout doc (The InCopy files were created from a Word doc marked by a different system, so that they are all new to the InDesign user.)

    Y at - it a script which, according designers load a square slider with 30-40 (in the right order) files, which will allow them to simple-click on page 1, and InDesign will place one after the other files, autoflowing necessary? They still need them to be placed in individual InCopy files (so would not help concatenate Prime). I don't think that there is never a case of 2 stories being on the same page.

    Thank you

    AM

    Hey AnneMarie,

    This script allows you to select a bunch of files and will try to place them, one by one, in your InDesign document. It will be auto-flux them according to the needs (but be careful because standing in excess of problems - because the script does not test for this).

    I tested with a lot of property, but not with InCopy files because I did not. If they are adjustable as Word documents, the script must run end.

    Let us know if everything works correctly for you.

    // BS"D
    // Multi-file auto-place
    // An InDesign Script by Ariel, (c) Id-Extras.com, 2014
    // This script will allow the user to select a bunch of placeable files (Word docs, etc.)
    // It will then attempt to place and auto-flow all the selected files.
    // The script will start from page 1 of the active document
    // and keep adding pages as needed.
    // It will add text frames as needed, within the margins of the page.
    // IMPORTANT: There is no error-checking for perpetual overflow!!!
    // So, if something you're trying to place cannot fit within the margins,
    // The script will continue adding pages to InDesign until it crashes.
    // To quit the script, press ESC.
    var myDoc = app.activeDocument,
     myFiles = File.openDialog("Select files to place...", undefined, true),
     i,
     currentPage = myDoc.pages[0],
     prevFrame,
     myFrame;
    
    for (i = 0; i < myFiles.length; i++){
     myFrame = addFrame(currentPage);
     myFile = myFiles[i];
     try{
      myFrame.place(myFile, false);
     }
     catch(e){
      alert("Unable to place file: "+myFile, "Multi-file auto-place");
      continue;
     }
     while (myFrame.overflows){
      currentPage = addPageAfter(currentPage);
      prevFrame = myFrame;
      myFrame = addFrame(currentPage);
      prevFrame.nextTextFrame = myFrame;
     }
     currentPage = addPageAfter(currentPage);
    }
    function addFrame(aPage){
     var pageMargins = aPage.marginPreferences,
      aFrame = aPage.textFrames.add(),
      areFacing = app.activeDocument.documentPreferences.facingPages,
      myTop = aPage.bounds[0]+pageMargins.top,
      myBottom = aPage.bounds[2]-pageMargins.bottom,
      myLeft = aPage.bounds[1]+pageMargins.left,
      myRight = aPage.bounds[3]-pageMargins.right;
     //When document.documentPreferences.facingPages == true,
     //"left" means inside; "right" means outside.
     if (areFacing && aPage.side == PageSideOptions.LEFT_HAND){
       myLeft = aPage.bounds[1]+pageMargins.right;
       myRight = aPage.bounds[3]-pageMargins.left;
     }
     aFrame.geometricBounds = [myTop, myLeft, myBottom, myRight];
     return aFrame;
    }
    
    function addPageAfter(aPage){
     return myDoc.pages.add(LocationOptions.AFTER, aPage);
    }
    
  • HP ENVY M6-1105dx: Synaptics Touchpad freezes briefly after typing

    The touchpad of my HP Envy M6 1105dx hangs for several seconds after you type on the keyboard, each time. This problem started after I upgraded to windows 10. My drivers are up to date. I tried to uninstall and reinstall the drivers, but that has not worked. I would rather not reinstall windows if I didn't, so I decided to come here. All advice is appreciated.

    Hey, I had the same problem and it's really frustrating.

    Here's what I did to solve the problem, I hope it helps.

    Open 'Control Panel' by clicking on search and enter the control panel.

    Then, open "Synaptics Touchpad", it will have a version number after it I think. Mine did.

    Then click Advanced in the upper tabs.

    Then you should see that a "filter activation time" set it to zero seconds.

    Test now by typing and then move the mouse and see if that fixes the problem... it's me.

  • Spotlight closes after typing a few characters (El Capitan, Mac)

    I have updated to ElCapitan 10.11.3 version last week.

    Projector worked fine the first few days. But now the spotlight window closes just after typing a few characters. Normally after 2,3,4 characters. I tried to index all the files again, but that he has not solved. Reset did not help either.

    Does anyone have an idea?

    Thank you very much!

    PS: this question is posted because I wrong the other marked as resolved...

    There are problems now with the latest updates to Safari - El Cap & iOS - where it crashes when you type in the address bar WITH active... 'Suggestions of Safari"you recently updated El Cap? If Yes, what date & time (important - the parsed page Apple database has been corrupted for a period of time) - Spotlight may hit the same DB

    try disabling 'Spotlight Suggestions' OS X El Capitan: search with Spotlight

    Let us know the results of that thing

  • Delay of touchpad after typing Windows 10 on Flex-2

    After update to Windows 10 I started having delays of touchpad for about one second after I press any key on the keyboard. When I got my drivers it started working perfectly without any delay, but I was unable to use 3 finger gestures introduced with Windows 10 and there is also no 3 finger swipe to go back I used in point 8.1 of Windows.

    I thought that maybe this is caused by the palm tracking feature, but when I put it at least the problem was still there. Also, I tried installing and uninstalling drivers and touchpad from the Device Manager. Also changed 'delay after type' in the Windows setting to never. None of these permits. I'm sure that my touchpad detects all keys and it isn't a hardware problem, cause when I open plateau of the view and do a tap with three fingers, I see three points appear on the icon settings momentum.

    P.S. The more strange is that when I start typing in the search box and then take a break and start typing again once it works immediately and I can type and use my touchpad at the same time. Cortana is the only program where I could make it work so far.

    Here's the solution that worked for me: http://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/touchpad-delay-after-typing-win...

  • Mode script for ANY c ++ function

    Hi all

    My goal was to use the pxi 5406 to implement features of frequency sweep. Right now, we use only the functions on the list of the frequencies of creation. There are four modes of release for the frequency list, signle, continuous, step by step and burst. We use the bleachers through fashion. It is painful to use this mode, since for each frequency, you need to send a rising edge, so if I have several hundred, it means I have to produce this amount of rising edges. This will generate a lot of buffer in another analog card.

    My question is, could I use script for the frequency list view? Or is there a smart way to achieve this? From the file of signal aid, he said that there are some c programe on script mode. But I can't find any examples in my computer. If you have any other, could you send me?

    Thank you very much.
    .

    Yami.

    Yami,

    The 5406 has the ability to run script mode. Only for her output modes are Standard function and frequency list. However, I believe that you can do what you want to do with the list mode frequencies. Assuming that you do not want to trigger you can put the camera in single or continuous Mode. Single will play your select frequency scan and then once completed, build:

    Continuous is similar, but you continue to repeat the signals to stop:

    All the above details are in aid of signal generators of NOR. I looked under the heading devices > 5406 > trigger > triggering Modes.

    With simple or continuous, you can specify the length of the waveform step, which could be a good starting point. With regard to the examples for c ++, I do not have, but if you look in the Start Menu, NOR-FGEN, National Instruments, examples, OR-FGEN C examples you can find a folder for "Sweep generator", there is a model and an example C you can look over your program after. I hope this helps!

  • After typing nestat - ano it is a process ID 4 PID which has a creative connection

    After typing nestat - ano, a 4 PID process ID that has a connection to establish there so I tried to find it in the Task Manager but cannot find the NEST 4 all issues of PID is listed in PID 4 single task manager it not?

    I still think that you are missing something in the Task Manager.

    FIRST - click on the processes tab

    THEN click on the button "show processes from all users".

    THEN accept the UAC prompt

    THEN click on "Image name" header

    Look for the SYSTEM process

    If it isn't 4 PID, there is something weird on your system - think rootkits.

  • delay after typing my password with the message: "preparing your desktop" displayed on the login screen

    I use Windows Vista for about 3 years now, it has been hurt on the first day.  However, it is the biggest problem I've ever known.

    My PC is currently the entire installation, which means that all the software, drivers and personal settings are applied to the way I would like it. But lately, I have had opportunities indicate that loggin, there was a long delay, after typing my password with the message: "preparing your desktop" displayed on the login screen (the PC was night shotdown, not having changed anything to the system), then I am connected to a desktop where I lost all my custom settings : wallpapers, plans, location of the updated table on the page icon, were all gone as if I start Windows for the first time, and every program I tried to run from there thought while they started upward for the first time.

    My office, I know, has completely disappeared.   How can I get it back?  Where at - it go?

    I am a school teacher and my student missions, etc. are in the files on the desktop.

    I'd appreciate any help you can give me.

    Please keep in mind that I'm not a techno person and very little familiar with several computer attributes.

    Thank you

    Press Alt + Ctrl + delete

    Start the Task Manager

    Click new task below or click file > new task

    Type explorer.exe

    Click ok

    Bring this back?

  • m475dn Auto CR after LF

    This printer has setting somewhere to support auto cr after lf?  We print reports from EAR (Reynolds) software and used to use lexmark printers who have supported it.  Now, we use HP m475dn color laser printers and they do not print the forms properly.  Reynolds & Reynolds explained to find the setting of the printer if it supports.  Thank you for your help in advance.

    • Point your browser to the the printer TCP/IP address.
    • Select the print on the page Server Web part that appears.
    • Select the subtopic PCL5 .
    • Replace the parameter Append CR to LF No. Yes.
    • Click the apply button to save the changes.
  • Why can I see my other computers on the same LAN after typing netstat b in same cmd if I didn't make any connection?

    Why can I see my other computers on the same LAN after typing netstat b in same cmd if I didn't make any connection?  owner of 192.168.1.104:50768 result [svchost.exe] TCP - PC:5357 ESTABLISHED

    Hello

    Thanks for asking!

    This is because the network discovery is turned on.

    If you want, I suggest try tuning off the COAST of the discovery of the network and check if it helps.

    Enable or disable network discovery

    http://Windows.Microsoft.com/en-us/Windows7/enable-or-disable-network-discovery

    Reply back with the results. I'd be happy to help you further.

  • Script for the Configuration DVSwitch

    Hello

    Someone at - it a script for the information of VDS on the level of the host which nic is connected to what uplink?

    Also to remove all Exchange created in the VDS switch for the host and then recreate the exchanges as they were after the connection to the host to a vCenter diff?

    Also any script to copy the resource through VCenter pools?

    Thank you

    Suraj Rawat

    The following script will export information of VDS for uplink, the port they are in and what Teddy is used by node ESXi.

    $report = {foreach ($dvSw in Get-VDSwitch)

    foreach ($esx in (Get-View-id $dvSw.ExtensionData.Summary.HostMember)) {}

    $proxy = $esx.Config.Network.ProxySwitch | where {$_.} {DvsUuid - eq $dvSw.ExtensionData.Uuid}

    $pnicTab = @ {}

    $proxy. Spec.Backing.PnicSpec | %{

    $pnicTab.Add ($_.) UplinkPortKey, $_. PnicDevice)

    }

    $proxy. UplinkPort |

    Select @{N = "vdSwitch"; {E = {$dvSw.Name}}.

    @{N = "$vmhost"; E = {$esx. Name}},

    @{N = "vNIC"; E = {$pnicTab [$_]} Key]}},

    @{N = "Uplink"; E={$_. Value}},

    @{N = 'Port'; E={$_. Key}}

    }

    }

    $report | Export Csv C:\dvSw-Uplink.csv - NoTypeInformation - UseCulture

  • This handy subtitles AE script for Mac works on PC?

    Hello

    Here is also after effects script, I used on the Mac for a while now (credits in header information), it generates subtitles to layer markers using a text file. It's great to burn in your subs and you do not have to enter timecode, just hit * where you want the line to appear/disappear. I hope you find it useful. My hidden agenda for the display is however if javascript there assistants can identify how to run on a pc (I searched for the original script for some time). Thanks in advance

    {

    Subtitle generator by! Rocky

    / / change by Colin Harman ( http://colinharman.com/ ) to work on a Mac

    //

    Save this code as

    'subtitles.jsx '.

    //

    Create a text file with your subtitles.

    Each line of text is the on-screen line.

    To have several lines on the screen at the same time

    just separated by the vertical bar (|) character.

    for example ' character talks 1 | 2 breaks in character.

    //

    Create a new layer of text in your publication, adjust its position.

    Make sure the centered text, so it's very nice

    Add markers (Numpad *) where each subtitle line should be shown/hidden.

    Run the script with the selected text layer, and select the subtitle file.

    Enjoy!

    function makeSubs() {}

    var layer = app.project.activeItem.selectedLayers [0];

    If (layer.property ("sourceText")! = null) {}

    file text var = File.openDialog ("Select a text file to be opened.", "");

    If (text! = null) {}

    var textLines = new Array();

    textFile.open ("r", "TEXT", "?");

    While (! textFile.eof)

    textLines [textLines.length] = textFile.readln ();

    textFile.close ();

    sourceText var = layer.property ("sourceText");

    var markers = layer.property ("marker");

    for (var i = sourceText.numKeys; i > = 1; i--)

    sourceText.removeKey (i);

    var line = 0;

    Subtext subTime, var;

    for (var i = 1; i < = markers.numKeys; i ++) {}

    subTime = markers.keyTime (i);

    sourceText.setValueAtTime (0, "");

    If ((i % 2) == 0) {}

    Subtext = "";

    }

    else {}

    Subtext textLines [line] = replace ("|", "\x0d\x0a");

    line ++;

    }

    sourceText.setValueAtTime (TextDocument (subText)) subTime, new;

    }

    }

    }

    }

    makeSubs();

    }

    I think that Mac have a sequence of different transport control. Try replacing this line:

    Subtext textLines [line] = replace ("|", "\x0d\x0a");

    with the more generic:

    Subtext textLines [line] = replace ("|", "\r");

    Dan

  • Java script for counting the text boxes

    I have 10 text boxes. Y at - it somehow I can create a java script for an eleventh text box so whenever you type a number into one of the 10 text boxes it adds the value 1. By example, if you typed a number to 4 number 4 text boxes come in box 11. I googled everywhere and I just can't understand the sense. Any help would be appreciated.

    Of course, it is possible. Let's say the text fields are called "Text1" to "Text10" and the last of them is called "Text11"

    Use this code as the custom Text11 computer code:

    var total = 0;
    for (var i=1; i<=10; i++) {
        if (this.getField("Text"+i).valueAsString!="") total++;
    }
    event.value = total;
    
  • Is it possible to write a script for underlined text export to PDF?

    When I make changes in the financial document, I must emphasize this purpose to show what I edit, these underscore was called "markup". And then print (paper version) and gen (PDF) of the amendment, which means I have to print and gen text underlined (or called markup text) after modification.

    sample PIC:

    back markup.jpg

    If:

    Customer requires a new version of the markup, which means I have to change the last beacon color (color of the underline to the last amendments) in 'back' and then make new 'red' as this markup:

    red markup.jpg

    What I want:

    is it possible to write a script for printing and gen only markup in the document text all open

    and I want two versions

    (1) all text markup gen no matter the color of the underline

    (2) the red color of the markup text gen

    Thank you!

    Hi HarveyLiu,

    Why, you ask? It will export the pages who pointed out the text.

    var doc = app.documents;
    app.findTextPreferences = null;
    app.findTextPreferences.underline = true;
    for(var i=0;i
    

    Kind regards

    Cognet

Maybe you are looking for