Script to replace the small caps that are typed in capital letters with capital letters (A = > a, B = > b, etc...)

I am looking for a way to replace the small caps that are typed in capital letters by their normal equivalents.

I have a text that contains many names that should all be set in small capitals.

In fact, they are, but because the letters are used for the first letters that they don't fit.

In short: I would like to be able to look for A, B, c... (in small capitals) and replace them with (a, b, c...) in small capitals only once.

(compare two tables?-> is this possible in indesign scripting)

Hi Cramik,

Try this.

var doc = app.activeDocument,
    _char = doc.stories.everyItem().characters.everyItem().getElements();

for(var i=0;i<_char.length;i++)
{
        if(_char[i].capitalization == Capitalization.SMALL_CAPS)
        {
                _char[i].capitalization = Capitalization.CAP_TO_SMALL_CAP;
            }
    }

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • Trouble with the tones and the small details that are not displayed on the screen.

    I use PS as an amateur for a while and have been brushing up on some tutorials and have noticed that some images in tutorials videos are sharper than my own screen of the same image.

    For example, I followed a tutorial with a provided image that uses the halftone filter and changes made to the exact description of the tutorial produces a different result on my screen. My contrast seems to have a threshold down to small details like the strands of hair and on this occasion a thatch of the guy's face. There was a marked difference between the tones in the video than on my screen. (the lack of, in my case).

    I am running a Benq G2000WA on 1680 x 1050.

    Vista / 3GB Ram

    Intel Core 2

    Sapphire ATI x 1650

    What causes this problem?

    I tried Calibrize and it solves nothing.

    Thank you for all the answers.

    The image, he works with in the video is not the same as the one that you posted a link to.  Siena is larger, which means that the model of mixed with the parameters he chose would be relatively smaller.

    -Christmas

  • Photosmart Premium: does not copy after replacing black toner XL and colors - but has not replaced the small black

    Printer recognized all the replaced cartridges. It shows a black small as 'used '.  You wonder why it won't copy from the XL Black cartridges.  page is completely blank, unless I select color copy and then only a header is printed.

    I was wondering if I should also replace the small black cartridge.  If so, what is the purpose of the XL Black cartridge?

    test page printed out as Virgin.

    Hi @lisasw2003,

    Welcome to the Forums of HP Support! I understand that you have recently changed the cartridges on your HP Photosmart Premium, you have not replaced a smaller, and now, you are not able to copy.  One of the black cartridges is regular black and the other is a photo in the black, which is the difference between the two. Although you can't print photos, it gets ink in the cartridges.

    Please replace the used cartridge and you should be up and running again. I hope this helps!

    Thank you

  • Smart phone BlackBerry Smartphones does not meet the system requirements that are needed to support Blackberry App World

    Hello

    I just all new BB Curve 8900 on Vodafone. Its the first BB I've owned and I seem to have a bit of trouble. When I try to download the App World, I get the following error message:

    "Device does not meet the system requirements that are needed to support Blackberry App World"

    How can this be?

    OK then... interesting for Vodafone to push support far... Well, by I guess.

    So I guess that I change their instructions... rather than to remove an installed version of the AppWorld in the way they suggest, I suggest go to:

    Homescreen > Options > Advanced Options > Applications

    See if BB AppWorld is listed as installed. If so, highlight (but do not click) it and then press the BBKey and select Delete. If she wasn't there, then continue on these steps.

    Then do a batt pull reboot:

    With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes.

    Then re - activate your THS:

    Homescreen > Options > Advanced Options > host Routing Table > BBKey > sign up now

    Then re - send all the service books:

    http://www.BlackBerry.com/BTSC/microsites/search.do?cmd=displayKC&docType=kc&externalId=KB02830&SLIC...

    Then do another reboot batt-pop.

    Then, get a new link for AppWorld from here:

    http://NA.BlackBerry.com/eng/services/appworld/download.jsp#tab_tab_download

    And re - download and install it.

    I hope it's going to go right. If not, then it could still be useful a call to Vodafone...

    See you soon!

  • The curse of the Small Caps

    (CS4 Mac Leopard) With each new document and each new text box, I draw in the document, the case shall be Small Caps. I tried to create the style of character with Normal case. But when I draw a new text box, the style is returned to [none]. [Standard paragraph] style is set at Normal case. I would have thought that would negate a character style.

    Any ideas on how I can fix this?

    Thanks in advance,

    Toni

    You will also find full file location information and instructions here: http://forums.adobe.com/thread/526990, but I'm not sure it's really a question of coorupt Pref.

    Petteri suggested, turn off the small caps on the control panel and also check the [standard paragraph] style with nothing open. This should fix the new files, but the existing files will set one at a time.

  • Tried to open the Excel spreadsheet in Sharepoint, but get the message "cannot open the window because it contains the following features that are not supported by Excel in the browser: sheet Protection.

    I tried to open this Excel spreadsheet in Sharepoint and received the following message.

    "Cannot open the window because it contains the following features that are not supported by Excel in the browser:

    -Protection plate

    You want to try to open the message in Excel? »

    Learn more about the unsupported features.

    YES                       NO

    When I type 'Yes', I had then the second message.

    "To open this workbook, your computer must have a version of Microsoft Excel is installed and your Web browser must support opening files directly from Excel in the browser".

    What should I do?

    Original title: sharepoint excel files

    Tommy:

    I have 64 bit explore.  So I guess that the thought is that the error message was generated by the incoming file, as I have other files Excel I can access in Sharepoint with no problem?  I sent the file Outlook e-mail and was able to open it with no problem at all.  .

    Thanks for the information,

    Jim

  • How to find the library files that are not due to problems of indexing

    I need help to know how to find the library files that are not as a result of indexing problems?

    I use Windows 7

    Thank you

    Charlene

    Try to open the folder that the library uses directly.  For example, if it is your Documents folder, open C:\Users\Charlene\Documents

  • The list of all the Resource Pools that are part of a group of ESXi

    Hello

    I'm trying to get a piece of code work that will list all the resource pools that are present in a cluster of ESXi.

    • I know I can find what list of resources of a virtual machine resides in.  I don't want that.

    // Find a matching resource pool on an ESXi hosts
      var esxiCluster = esxiHost.parent;
      var esxiClusterResourcePools = esxiCluster.resourcePool_ResourcePool;
    
    
      System.log("what is the ESXi cluster: " + esxiCluster.name);
      System.log("vimtype: " + esxiCluster.vimType);
      System.log("what pools exists: " + esxiClusterResourcePools);
    

    So I know that the vimType will come back with what I expect (ClusterComputeResource).  The question I have is the object "resourcePool" is reference to the root resource list (in my case, it is 'resources').

    What I want is all DRS resource pools are configured.  I need something like "resourcePool_ResourcePool.children".

    Any help is appreciated.

    Thank you

    B

    Hello

    Check if this code example that works in your case:

    var esxiCluster = esxiHost.parent;
    var esxiClusterResourcePools = esxiCluster.resourcePool_ResourcePool;
    var pools = System.getModule("com.vmware.library.vc.resourcePool").getAllChildResourcePool(esxiClusterResourcePools);
    
    // dump names of child pools
    for each (var pool in pools) {
      System.log(pool.name);
    }
    
  • We have configured replication vsphere in our environment and when replication is triggered according to the OFR start us below the questions on the virtual machines that are configured for replication

    Question: We have configured replication vsphere in our environment and when replication is triggered according to the OFR start us below the questions on the virtual machines that are configured for replication.

    Version for esxi: Patch 5.1 level 7

    Virtual center of version 5.1

    Source of storage - IBM v7000

    Destination storage - Hitachi


    Questions:
    Events of breach RPO
    Consolidation for the VM disk failure
    Delta abandoned events
    Time change events
    NTFS error and warning (event ID: 137, 57)
    RDP disconnect and ping does matter
    Standby error
    Volsnap error
    Stop the server and offline issue
    Install vmtools emits automatically

    well, in this case, we need to disable the standby of the end of the replication.

    So that everything in triggering replication does not trigger the snapshot of the suspension.

    Then test the if you get these errors.

  • The small images that accompany each layer have all disappeared.

    Photoshop CC.

    The small images that accompany each layer have all disappeared. Now, I don't see what's on each layer. I can't work withoutthese thumbnails for each layer.

    How can I fix?

    Brian

    Hi Jenny

    Thanks for your quick response.

    Your instructions solved the problem.

    Thanks again

  • How can I replace the Playlists tab on bottom of Apple's music with the Connect tab?

    How can I replace the Playlists tab on bottom of Apple's music with the Connect tab?

    Found my own answer online.  It's in the Restrictions under settings.

  • Backup feature of virtual machine for the virtual machines that are part of a paralytic

    In the powerclibook I found the backup-vm very useful function (Chapter 10)

    I do not post the direct link to the function because I don't know if this is allowed.

    You will find the function if you follow http://www.powerclibook.com/

    I wonder if this could be changed to backup vms several that are part of a paralytic.

    Thanks for help.

    concerning

    Andreas

    Hi Andreas, no problem mentioning the link since we already published as well in our PowerCLI book: download Scripts, functions and Modules post.

    Regarding your question, you can try something like this

    Get-VM-location (Get-VAPP-name MyvApp). %{

    Backup-VM - VM $_ - Datastore (Get-data store MyDS

    )

  • How to delete all TABLEs in the schema SYS that are created from 09:15?

    Unfortunately a script created a lot of tables in the diagram (= SYS) and bad Tablespace (= SYSTEM).

    How can I delete all TABLES that are created inTablespace = SYSTEM and SCHEMA = SYS (in a DDL command)
    respectively for the past 3 hours from 09:15 to 25 Sep 2011?

    Alternative: How can I move these tables in another schema (for example ATEST) and Tablespace (USERS)?
    Is this possible with Oracle XE or Oracle Enterprise?

    Peter

    You can use ALTER TABLE... MOVE. It offers a TABLESPACE clause, which allows you to choose a different tablespace as target. Refer to the documentation for your version of the database.

  • Read VeriStand channel from inside the custom device that are not part of the custom device?

    Is it possible to read VeriStand channels from within a custom device VeriStand (RT Driver) that are not part of this custom device?

    For example, suppose I want to be able to configure a channel in my custom device to always be twice the value of a string of material that my user selects (I know, better/more simple ways to do this, but this is just a simple example ).  Can I do this from the device custom without programmatically create a mapping of the system? (I've done this before and it is messy and VERY prone to error of the user).

    Thank you!

    good point

    the channel ID (U64s) are not the same in the engine config of vs. Instead, you must set 'references to dependent item' in the config and then get these references in the engine.

    See the source jarrod linked, which makes it

  • I can't the .jpg images that are included in Outlook Express in a format that I can see the whole picture without scrolling. How can I change this?

    When I have a message in Outlook Express, which is a .jpg image I see about 1/5 of the image without scrollling it up and down and from left to right. It is a problem that arose after some other problems with my computer. How can I change this?

    When I have a message in Outlook Express, which is a .jpg image I see about 1/5 of the image without scrollling it up and down and from left to right. It is a problem that arose after some other problems with my computer. How can I change this?

    =====================================
    Outlook Express is not automatically adjust pictures to adapt to the
    the fact of the screen as Windows Picture and Fax Viewer.

    If you receive photos that are more than 640 x 480
    scrolling will be probably needed. On this day of
    very high-resolution pictures... unless the senders
    resize photos before sending them, they will be huge.

    In Outlook Express... If you go to... Tools / Options /.
    Read... tab and check the box... «read all messages»
    clear"... you will not see the photos in the
    body of the message, but as an attachment.

    Then you can left click the paperclip and the click left one
    file name photo and Windows Picture and Fax Viewer
    will launch for photo viewing.

    Best bet would be IMHO to save photos in a folder
    disk your hard drive and view them from there. Personally
    I prefer the original versions to receive total sizes of the
    the photos because they are best for printing and editing.

Maybe you are looking for

  • Low soundlevel using bluetoothspeaker

    Hello. Problem occurs when I use bluetooth in my iPhone 6 to connect to a speaker. Soundlevel is so low I have bearly here at all! When I connect my iPhone normally wired it sounds good. Where can I adjust the soundlevel?

  • FF9 - hide window control buttons in the title bar (min, max, close) with userchrome.css?

    I use FF9. I userscript.css hide app titlebar button and orange, but the buttons control window always visible! I can't find the script working. I don't need min-max-closing button and used to hide if possible without extension. Here's screenshort: h

  • Equium P300 - 16t power problems

    My laptop Equium P300-16 t has suddenly stopped working. When it is connected, the power icon is always on view, but the battery icon has disappeared, and the battery icon when you press the power button flashes red for a few seconds before disappear

  • OfficeJet x476dw: officejet pro x476dw legal size paper adf scan

    Hello I've been using officejet pro x476dw for 6 months, and I realized that I can't scan legal size paper 2 sides. It is impossible to scan legal-size documents 2 faces on ADF? I need to scan MANUALLY? If this machine supports 2-side of legal paper

  • error message when you try to install win 7 on vostro v131

    Hello I bought and installed an SSD in my Dell Vostro v131 and when I tried to install windows 7 using a USB key, I get the following message and cannot continue with the installation. A required CD/DVD drive device driver is missing.  If you have a