Help for find/change glyphs script

Hi everyone!
I need help for creating a script (or modifying existing script) that should replace every Cyrillic character  from an old ASCII font with the same Cyrillic character but from new Unicode font.
For example: Capital letter 'A' GID=107 from old font (Lazurski) should be replaced with 'A' GID=630 from new one (Myriad Pro).
I can do this by using Indesign Find/Change - Glyphs, but this will take me too much time.
So, I need a scrip for this job.
My first attempt was to use the FindChangeByList script by modifying the FindChangelist.txt document, but without success.
Here is what I've used until now:
1)  glyph {glyphID:107, appliedFont:"Lazurski"} {glyphID:630, appliedFont:"Myriad Pro"} {caseSensitive:false, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
2)  glyph {findWhat:"u00C0", appliedFont:"Lazurski", fontStyle:"Bold"} {changeTo:"0410", appliedFont:"Myriad Pro", fontStyle:"Bold"} {caseSensitive:false, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find ASCII A replace with Unicode A.
Both lines didn't change anything. What is wrong?
Any help is welcome!
Regards,
Veselin
P.S. Indesign CS5

Thank you Jongware!
The codes (both ID and Unicode) are correct for sure, but even with correct notation (obviously my was wrong) the script don't change anything.
Here is the line in the FindChangeList:
text {findWhat:"\u00C0", appliedFont:"Lazurski", fontStyle:"Bold"} {changeTo:"\u0410", appliedFont:"Myriad Pro", fontStyle:"Bold"} {caseSensitive:false, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find ASCII A replace with Unicode A.
Update:
Finally, I found what is wrong with the script - the properties "caseSensitive:false".
By removing that properties the script works fine.
So, I successfully converted a book with old ASCII Cyrillic font to Unicode Opentype font.

Similar Messages

  • Need help for finding objects impacted by size change for an infoobject

    hi all,
    need help for finding objects impacted by size change
    for xxx infoobject, due to some requirements, the size to be changed from
    char(4) to char(10), in the source database tables as well as adjustment
    to be done in BI side.
    this infoobject xxx is nav attribute of YYY as well as for WWW
    infoobjects. and xxx is loaded from infopkg for www infoobject load.
    now that i have to prepare an impact analysis doc for BI side.
    pls help me with what all could be impacted and what to be done as a
    solution to implement the size change.
    FYI:
    where used list for xxx infoobject - relveals these object types :
    infocubes,
    infosources,
    tranfer rules,
    DSO.
    attribute of characteristic,
    nav attribute,
    ref infoobject,
    in queries,
    in variables

    Hi Swetha,
    You will have to manually make the table adjustments in all the systems using SE14 trans since the changes done using SE14 cannot be collected in any TR.
    How to adjust tables :
    Enter the table name in SE14. For ex for any Z master data(Say ZABCD), master data table name would be /BIC/PZABCD, text table would be /BIC/TZABCD. Similarly any DSO(say ZXYZ) table name would be /BIC/AZXYZ00 etc.
    Just enter the table name in SE14 trans --> Edit --> Select the radio button "Save Data" --> Click on Activate & adjust database table.
    NOTE : Be very careful in using SE14 trans since there is possibility that the backend table could be deleted.
    How to collect the changes in TR:
    You can collect only the changes made to the IO --> When you activate, it will ask you for the TR --> Enter the correct package name & create a new TR. If it doesn't prompt you for TR, just goto Extras --> Write transport request from the IO properties Menu screen. Once these IO changes are moved successfully, then the above proceduce can be followed using SE14 trans.
    Hope it helps!
    Regards,
    Pavan

  • Need help for finding oracle payables tables

    Hi,
    I need help for finding tables relating fields INVOICE_ID, NOTIFICATION_ID and APPROVAL_STATUS or WFAPPROVAL_STATUS. I have searched a lot but has been unable to find any table containing all the above mentioned fields. I found the table WF_NOTIFICATIONS for INVOICE_ID, however have been unable to find the latest tables with INVOICE_ID and APPROVAL_STATUS as fields.
    All the tables having this combination are either very old tables which are not used anymore or doesnt give the required data. Please let me know where am i going wrong. Once i get the required tables, i need to join the tables to get the required data with the imp fields. Also, the values of WFAPPROVAL_STATUS are not very clear to me. I need values for it as APPROVED, REJECTED AND INITIATED.

    Hi Swetha,
    You will have to manually make the table adjustments in all the systems using SE14 trans since the changes done using SE14 cannot be collected in any TR.
    How to adjust tables :
    Enter the table name in SE14. For ex for any Z master data(Say ZABCD), master data table name would be /BIC/PZABCD, text table would be /BIC/TZABCD. Similarly any DSO(say ZXYZ) table name would be /BIC/AZXYZ00 etc.
    Just enter the table name in SE14 trans --> Edit --> Select the radio button "Save Data" --> Click on Activate & adjust database table.
    NOTE : Be very careful in using SE14 trans since there is possibility that the backend table could be deleted.
    How to collect the changes in TR:
    You can collect only the changes made to the IO --> When you activate, it will ask you for the TR --> Enter the correct package name & create a new TR. If it doesn't prompt you for TR, just goto Extras --> Write transport request from the IO properties Menu screen. Once these IO changes are moved successfully, then the above proceduce can be followed using SE14 trans.
    Hope it helps!
    Regards,
    Pavan

  • JS for Find/Change

    I am a novice with JS, but trying to make a couple of enhancements to workflow using scripting. I have managed to figure most things out ok, but usually just need a little kickstart. What I am trying to do is:
    InDesign CS2
    Find a specific sequence of characters in a text selection (in this case, " - " (that is space dash space) and replace with end of nested style & forced line break (^h^n). At the same time, search for double carriage returns and change to single carriage returns (^p^p => ^p).
    Currently, using the Find/Change Function from the Edit menu but I'd like to be able to just apply a script to do it all. I have tried to dig through the archives for a similar posting, but haven't had a lot of luck. If anyone can please point me in the right direction, it would most certainly be greatly appreciated!
    Thank you in advance.
    -Scott

    Thank you Peter ... I have just purchased the electronic version of the O'Reilly book that you recommend. This will certainly help.
    One thing that is not clear ... can I use characters such as "^p" or "^h" directly when setting my parameters, or is there a unicode equivalent that I would need to use?
    Thanks again.
    -Scott

  • JS:CS3 Newbie needs help! find/change character styles

    I'm new to scripting and JavaScript is giving me a headache, but I'll keep trying. What I'm trying to do is automate a few things so that the production time of our school newspaper is reduced while insuring accuracy.
    I've played around a little with the text find change sample and the changing or adding paragraph styles in the InDesignCS3_ScriptingGuide_JS.pdf and I barely understand what I'm doing.
    When us page designers receive text to place in the document, our editors mark the text with tags like: < b >text< / b >, where the word "text" is to be bolded. (there wouldn't any spaces between < and b and > etc. I just did that so It'll show up here). We have basic character styles and paragraph styles set up, and we just started working with nested styles.
    Is there a way we can search for the < b > tag and bold everything after it up until the < / b > tag? Sort of the way it does for html (the way it would do for this message if I took out the spaces). It'll be great if it could remove the tags as well, but if not, I know I could create a find/change script to do the removal afterwards.
    I appreciate any input.
    Thanks!

    You've not found yourself the easiest of tasks! You need GREP find/replace, not text. Do you have any experience with GREP? It's worth investigating, it's a powerful feature. The script below handles bold. For clarity, it doesn't do any error checking: it assumes that there's a document with text in it and that the document contains a character style called 'bold'.
    // talk to Indesign, nobody else
    #target indesign
    // reset the Find/Change dialog
    app.findGrepPreferences = app.changeGrepPreferences = null;
    // find everything between <b> and  (including these codes)
    app.findGrepPreferences.findWhat = '<b>.+?</b>';
    // add 'bold' style
    app.changeGrepPreferences.appliedCharacterStyle = 'bold';
    // make the changes
    app.activeDocument.changeGrep();
    // now delete the <b> and </b> codes
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = '</?b>';
    app.changeGrep();
    You can adapt it easily to handle other codes, and at a later stage you could generalise it so that you needn't repeat whole bunches of code.
    Good luck with your first forays. Again, it's not the easiest of tasks, but it's worth getting to grips with.
    Peter

  • TIP: Clean slate for find/change

    Hi,
    Sharing a little tip I just thought of. Very straightforward and
    obvious, but quite useful, and I haven't noticed it mentioned elsewhere.
    If you're doing a lot of find/replace, you'll repeatedly need to remove
    all selections and start with a clean slate (nothing in the find/replace
    fields, clear all formatting).
    It seemed to me for a while that we're missing a "Clear All" button in
    the find/replace box.
    So the answer is simple: clear everything, all options, etc., and save
    it as a find/replace query.
    Now whenever you need a clean slate for find/save, just select that query.
    It's working nicely for me!
    Happy new year,
    Ariel

    I was going to stay out of this, but find I can't. Sometimes it seems to me that scripters see everything as being better solved through scripting.
    I actually think Ariel's observation about saving a blank query is quite brilliant, and I have to agree that there are times, and plenty of users like me who don't use a KB hortcut to access find change, where users will find having the saved blank query much faster than any other method of clearing the dialog. Both methods have their place, but I find it disingenuous to say that Jongware's scriptlet "solves" the case where you want to keep the old values -- it actually complicates things as you then must remember if you are to run the KB shortcut, or use the menu, to acieve the desired result.
    I think it would be far better to say that this, like many things in ID, can be accomplished in more than one way, and that they way you do it may be different at different times, and that the mehod of choice is exactly that, a choice subject to the user's own preference.

  • Find/Change Glyph won't change fonts.

    Suddenly, huge inexplicable InDesign issue out of nowhere while I'm working under deadline, of course.
    Doing a find and change in the Glyph panel, trying to replace all instances of a carrot symbol in Helvetica to a triangle in Zapf Dingbats. InDesign does the find and change, but keeps the font as Helvetica, so I get the obnoxious box with an X in it.
    WHAT could possibly be causing this, if not just a bug.

    Find
    ^
    Change to
    <leave blank>
    Find Format
    <leave blank>
    Change Format
    Click the box - select the font you want it to change to.
    (note if you have a character style applied to the symbol it may not change)
    To get it to change
    in the find format portion of Find/Change
    Find Format
    Click box beneath and select Character Style
    Change Format
    Click box beneath and select None for character style
    Insert correct font
    Say ok
    Run find change

  • GREP code for find/change

    Hi everyone,
    I have a list of about 500 entries, with each entry being formatted as follows:
    Firstname [tab] Lastname [tab] State [tab] Level
    I need to perform a find/change operation using some GREP code that will target the tab between the first and last name and replace it with a space. Then I need to target the tab between the last name and the state and replace it with a comma and a space. Then finally I need to target the tab between the state and level and also replace it with a comma and space.
    I wondered if someone could tell me what the code would be for this type of operation?
    Appreciate any assistance.

    You can also do it in a single search:
    Find
    (.+?)\t(.+?)\t(.+?)\t
    Replace
    $1 $2, $3,
    (there's a space after the $3,)

  • GREP query for find/change operation

    Hi everyone,
    In the following line, there's a comma after the first name. This type of formatting is repeated hundreds of times on a number of pages so I need to use a GREP find/change query to remove the comma after the first name and replace it with a space.
    Firstname,Lastname,State
    I wondered if something could tell me what the GREP code would be?
    Appreciate any assistance.

    function(){return A.apply(null,[this].concat($A(arguments)))}
    ..  it's also doing it for the second comma
    That's impossible. You must have entered something else than Scott's code.

  • Help with Find/Change and wildcards

    I have indesign CS5 and I'm working on a document that has math examples throughout such as 9-1=8. The proofreader said we need to change it to have a space between each digit and math symbol to be 9 - 1 = 8. How can I do this? When I go to Find/Change I have the option of wildcards in the Find, but not in the Replace.
    Also the dash in these equations need to be changed to en dashes. How can I tell indesign that anytime is sees such an equation the dash needs to be changed? I don't want to just change all dashes as I have many dashes that need to stay.

    I do it in two steps, first changing the hyphens to en-dashes:
    Find (?<=\d)-(?=\d) which finds any hypen between two digits
    Replace ~= which is the en-dash
    Then use a class to hold the math symbols:
    Find (\d|\))([\+\*/~==])(\d|\()   (this adds open and close parentheses to the search before or after a symbol -- if your equations don't use parentheses you can eliminate the |\( and |\) from the first and last search groups)
    Replace $1 $2 $3  (there's a space between the terms there).
    This does not include radicals, or advanced math symbols in the search, so if your equations use those, you need to add them, and it doesn't put spaces between digits and parentheses.

  • Help for compiling first Java script

    Friends,
    I am a begginer java programmer. Iam trying to compile a java script using .bat file which contains
    c:\j2sdk\bin\javac -classpath <c:\j2sdk\lib\dt.jar> . ReadOnlyMaker.java
    But it comes back with error as below
    >c:\j2sdk\bin\javac -classpath ReadOnlyMaker.java 0<c:\j2sdk\lib\dt.jar 1>.
    Access is denied.
    I have admin rights on this machine but the directory j2sdk , where java is installed, is always staying readonly even after changing permissions in properties tab.
    Not sure what is going wrong , Any one can Pl. help ?
    Thanks,

    First of all you don't need to be in the ..\..\bin directory to execute the javac.exe, java.exe, etc pgms as commands. If not already set up correctly, you can just add this to your System PATH.
    Next, start by executing from the directory your .java PGM is in.
    Then, what is that <...> stuff?
    Lastly, if it's a .java file, it's a pgm file and not a javascript. Javascript goes is only for web work, embedded in html.
    ~Bill

  • Can someone help me to change the script function?

    I have a script for indesign:
    var link, image, frame, 
    doc = app.activeDocument, 
    links = doc.links, 
    counter = 0; 
    for (var i = links.length-1; i >= 0; i--) { 
        if (links[i].status == LinkStatus.LINK_MISSING) { 
            try { 
                link = links[i]; 
                image = link.parent; 
                frame = image.parent; 
                frame.remove(); 
                counter++; 
            catch (err) { 
                $.writeln(i + " - " + err); 
    which is made by Kasyan Servetsky, function: remove all missing link objects, it runs very well, But only work on single file,
    now I want change the function aim to let it work on all the open file,
    for example I opened over ten files, all the file have missing like objects, I want to remove all the missing link objects in all the file by just one click the script,
    is that possible?

    @HarveyLiu – so to make it absolutely clear:
    This one is a short form for using the var statement for every variable used:
    var link, image, frame,
    doc = app.activeDocument,
    links = doc.links,
    counter = 0;
    You could write it like that:
    var link;
    var image;
    var frame;
    var doc = app.activeDocument;
    var links = doc.links;
    var counter = 0;
    And then change the var links statement:
    The variable doc is not needed anymore. You can remove that line. Or leave it in, if you want to do something to the active document.
    var link;
    var image;
    var frame;
    var doc = app.activeDocument;
    var links = app.documents.everyItem().links.everyItem().getElements();
    var counter = 0;
    Or you could change the original code like that:
    var link, image, frame,
    doc = app.activeDocument,
    links = app.documents.everyItem().links.everyItem().getElements(),
    counter = 0;
    The variable links now holds all the [ object Link ] objects in every document stored in an array made by getElements()
    The for loops accesses this array called by its variable name links now. Do not confuse this name or the array represented by the variable called links with the "links" part of the code in doc.links or in links.everyItem() .
    doc.links is addressing a collection. The collection of every [ object Link ] .
    Uwe

  • Need help for profile change in pdf

    Hello every one,
    I have so many files need to change color profile, maintain 240% ink coverage for this client can supplied me only pdf files. How can I change color profile in acrobat professional? I know only method of Photoshop Profile change UCR, GCR..240%, please help me some one.
    More information:
    I have windows 7 operation system, acrobat 7 with pitsop7.
    Thanks in advance,
    Regards,
    Siva

    i have a separate DTD for my own XML i want to extract my PDF files to that
    XML is it possible may i know how the acrobat export as xml feature works

  • Help for runtime change in list item

    hi
    i have created a tabuler form and have list_items on it
    i want when i
    select category monitor then in next list i get monitor's serial numbers
    in next record when i select printer then in next list i get printer's serial numbers
    i had tried it on first list WHEN_LIST_CHAGE it work for the first time but when i select another category then it generate an error can not create record group a (a is the name of the record group which i had created for the first time )
    similarlay with other categories
    plz help me

    In your code, you should check if the record group already exists. If it does, delete it first before creating it again.
    RG := FIND_GROUP('a');
    IF NOT ID_NULL(RG) THEN
      DELETE_GROUP(RG);
    END IF;
    RG := CREATE_GROUP('a'); -- or use CREATE_GROUP_FROM_QUERY
    (RG is a variable declared to be of type RECORDGROUP, and "a" is the name of your record group.)

  • Help for a Conky weather script

    Hi,
    I was trying to write a Conky script to display weather forecast for the current day in my Conky, using <tempmin>, <tempmax> and <descr> on this page http://www.tv5.org/TV5Site/widget/meteo … lle_id=474.
    I'm a complete newbie to bash/perl/whatever, and I couldn't manage to do much. Could anyone explain me how to proceed?
    Please don't RTFM me :(

    You need xmlstarlet to run it.
    It simply parses that xml file and extracts the info you want.
    I wanted to add newlines, so I just wrapped it all in 'echo -e $(...)' and called it a day. There's probably a better way to do it.
    Also, note that the index on 'descr' is one higher than on 'tempmin' and 'tempmax', because there's already a 'descr' earlier in the file:
    <weather>
    <data>
    <ville>Paris</ville>
    <pays>FRANCE</pays>
    <date>Observation le vendredi 22 à 13:00 (heure locale)</date>
    <temp>4°C</temp>
    <descr>couvert </descr>
    You don't want the value of this 'descr', but of the one a bit lower (the second one) -
    <descr>très nuageux </descr>
    thus '//descr[2]'.

Maybe you are looking for

  • No orientation option on iOS 7 IPad 2

    Whether it's different on iPad 2 I'm not sure but on the control center there's no lock orientation option? On the home screen it's permanently on landscape and switches to portrait on everything else.

  • Which is better? Resize datafile or add datafile in same diskgroup.

    Hi All, Can you explain which is better option between adding a datafile or resizing one in a diskgroup with 20 disks? Regards, Avi

  • How to set the message deletion function

    What must I do to allow my verizon.net messages to remain in my inbox for a few months? I don't see anything in "settings" that allows me to manage this...Thanks!

  • MDS in OSB 11G

    I know that sereral artifacts can be feeded into MDS and can be referenced from BPEL and ESB in 11G. I want to know, whether the same holds true for OSB also ? If yes, please let us know, how to access / feed the artifacts into MDS ? Thanks.

  • ITunes won't work on Windows 8

    I cannot access iTunes Store on my Windows 8 laptop, I have tried previously stated solutions and have been unsuccessful