10 Replies Latest reply on Mar 25, 2016 5:22 AM by karthiks94217840

    dialog screen

    hamdifem Level 1

      Can you see the diffrence in the dialog screen between the indesignCS-6 and indesign CC How it looks. Indesign CC is a bust totally ********. Please find a solution.

      Hata.png

        • 1. Re: dialog screen
          Willi Adelberger Most Valuable Participant

          What dialog is THIS? I have never seen this dialog in any InDesign version.

          Language version of InDesign? When does this dialog appear?

          • 2. Re: dialog screen
            hamdifem Level 1

            This Indesign CS6 JavaScript (ScriptUI) I wrote a script with the code. The size of the text box, font size and many feature does not seem Indesign CC

            • 3. Re: dialog screen
              Willi Adelberger Most Valuable Participant

              This is not a native ID Code. Who has written the dialog has to rewrite it as the UI has completely rewritten to work with normal and high resolution displays.

              • 4. Re: dialog screen
                hamdifem Level 1

                What is native ID Code? C# or Angular or VB

                I can not write this with another code. You were accepting this before why not now...

                I better stay at CS 6


                 

                function ks(a) {

                                var x, i;

                                for(i = 0; i < a.length; ++i) {

                                    if(i == a.length - 1) {

                                        x = (x ? x : app.activeDocument).characterStyles.item(a[i]);

                                        if(!x || !x.isValid) return null;

                                    } else {

                                        x = (x ? x : app.activeDocument).characterStyleGroups.itemByName(a[i]);

                                        if(!x || !x.isValid) return null;

                                    }

                                }

                                return x.isValid ? x : null;

                            }

                       

                 

                 

                   

                if(app.selection.length != 1) {

                    alert("Yerleştireceğiniz noktayı seçin");

                } else {

                 

                 

                var myCarK = [

                                            KUCUK_T = ks(["(02) FONTLAR", "KUCUK (T)"]),

                                            BUYUK_T = ks(["(02) FONTLAR", "BUYUK (T)"]),

                                           

                                            KUCUK_C = ks(["(02) FONTLAR", "KUCUK (C)"]),

                                            BUYUK_C = ks(["(02) FONTLAR", "BUYUK (C)"]),

                                           

                                            BUYUK_1_2 = ks(["(02) FONTLAR", "BUYUK (1-2)"]),

                                            KUCUK_1_2 = ks(["(02) FONTLAR", "KUCUK (1-2)"]),

                                           

                                            BUYUK_K_L = ks(["(02) FONTLAR", "BUYUK (K-L)"]),

                                            KUCUK_K_L = ks(["(02) FONTLAR", "KUCUK (K-L)"]),

                                           

                                            BUYUK_P_R = ks(["(02) FONTLAR", "BUYUK (P-R)"]),

                                            KUCUK_P_R = ks(["(02) FONTLAR", "KUCUK (P-R)"]),

                                           

                                            BUYUK_X_Y = ks(["(02) FONTLAR", "BUYUK (X-Y)"]),

                                            KUCUK_X_Y = ks(["(02) FONTLAR", "KUCUK (X-Y)"]),

                                           

                                            FK_KAREKOK = ks(["(02) FONTLAR", "FK KAREKOK"]),

                                    ];

                 

                 

                 

                var myW = new Window ("dialog", undefined, undefined, {borderless: false});   // true yazılırsa kenarı alanı yok eder.

                var myGrp = myW.add ('group {orientation: "column"}');

                var myGrp01 = myGrp.add ('group {orientation: "row"}');

                var p2 = myGrp01.add ("panel");

                myW.graphics.backgroundColor = myW.graphics.newBrush (myW.graphics.BrushType.SOLID_COLOR, [1, 0.9, 0.6]);    // ARKA PLAN RENGİ

                 

                 

                var Liste1 = ["2v", "2t", "2d", "2P", "2q", "2V", "2T", "2h", "2m", "2p", ];

                var Liste2 = ["†   ®", "„   ®", "ã   ®", "è   ®", "æ   ®", "Ä   ®", "å   ®", "à   ®", ];

                var Liste3 = ["ı", "l", "o", "j", "ç", "ğ", "ö", "ü", ];

                 

                 

                 

                 

                var test;

                while(test=Liste1.pop()) {

                //p2.add ("statictext", undefined, test);

                p2.add ("statictext", undefined, test).graphics.font = "Comic Sans MS:16";

                }

                 

                 

                 

                 

                var p1 = myGrp01.add ("panel");

                 

                 

                myW.alignChildren = "center";

                var payD = p1.add ("edittext{justify:'center'}", undefined, "");

                payD.graphics.font = "Tahoma:125";

                payD.characters = 4;  // Yazı Kutusu Genişliği

                payD.active = true;

                payD.graphics.foregroundColor = payD.graphics.newPen (myW.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);  // İÇİNDEKİ YAZI RENGİ

                payD.graphics.backgroundColor = payD.graphics.newBrush (payD.graphics.BrushType.SOLID_COLOR, [0, 0.4, 0]);   // İÇTEKİ KUTU RENGİ

                 

                 

                 

                 

                var paydaD = p1.add ("edittext{justify:'center'}", undefined, "");

                paydaD.graphics.font = "Tahoma:125";

                paydaD.characters = 4;   // Yazı Kutusu Genişliği

                paydaD.graphics.foregroundColor = paydaD.graphics.newPen (myW.graphics.PenType.SOLID_COLOR, [1, 1, 1], 1);  // İÇİNDEKİ YAZI RENGİ

                paydaD.graphics.backgroundColor = paydaD.graphics.newBrush (paydaD.graphics.BrushType.SOLID_COLOR, [0, 0.4, 0]);  // İÇTEKİ KUTU RENGİ

                 

                 

                p3 = myGrp01.add ("panel");

                while(test=Liste2.pop())

                p3.add ("statictext", undefined, test).graphics.font = "F SEMBOLLER:17";

                 

                 

                p4 = myGrp01.add ("panel");

                while(test=Liste3.pop())

                //p4.add ("statictext", undefined, test)

                p4.add ("statictext", undefined, test).graphics.font = "Comic Sans MS:23";

                 

                 

                var buttons = myW.add ("group")

                buttons.add ("button", undefined, "OK", {name: "ok"});

                buttons.add ("button", undefined, "Cancel", {name: "cancel"}).onClick = function() {

                        myW.close(0);

                };

                 

                 

                if(myW.show () == 1) {

                   

                ////////// SEÇİLEN YERİN ÜZERİNE YAZMA //////////

                if (app.selection[0].characters.length > 0){

                    app.selection[0].texts[0].remove();

                    }

                  ///////////////////////////////////////////////////////////////////////////

                 

                   var a =payD.text;

                    var b =paydaD.text;

                 

                 

                if(b.length == 0) {

                 

                 

                    

                                                            var sayilar = [

                                                       //        {rakam: 'I', pay: 'ı', karakterStili: BUYUK_1_2},  // I1/I2 yapmak için

                                                            ];

                                                           

                                                        if (a.length == 2) {

                                                           

                                                            if(a.indexOf("1") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: KUCUK_1_2});  //.toUpperCase()   anyString.charAt(0)  UPPER = UST

                                                                        }

                                                                     }

                                                                

                                                                    if (a.indexOf("2") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toUpperCase(), karakterStili: KUCUK_1_2}); //.toLowerCase()   LOWER = ALT

                                                                        }

                                                                     }

                 

                 

                 

                 

                                                            if(a.indexOf("1") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toLowerCase(), karakterStili: BUYUK_1_2});  //.toUpperCase()

                                                                        }

                                                                     }

                                                                   

                                                           if (a.indexOf("2") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: BUYUK_1_2}); //.toLowerCase()

                                                                        }

                                                                     }

                 

                 

                 

                 

                                                        //*****************************************

                                                           

                                                            if(a.indexOf("k") == 1 || a.indexOf("K") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: KUCUK_K_L});  //.toUpperCase()

                                                                        }

                                                                     }

                                                                

                                                                   

                                                           if (a.indexOf("l") == 1 || a.indexOf("L") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toUpperCase(), karakterStili: KUCUK_K_L}); //.toLowerCase()

                                                                        }

                                                                     }

                 

                 

                 

                 

                                                            if(a.indexOf("k") == 1 || a.indexOf("K") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toLowerCase(), karakterStili: BUYUK_K_L});  //.toUpperCase()

                                                                        }

                                                                     }

                                                                   

                                                           if (a.indexOf("l") == 1 || a.indexOf("L") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: BUYUK_K_L}); //.toLowerCase()

                                                                        }

                                                                     }

                 

                 

                                                        //*****************************************

                                                           

                                                            if(a.indexOf("p") == 1 || a.indexOf("P") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: KUCUK_P_R});  //.toUpperCase()

                                                                        }

                                                                     }

                                                                   

                                                           if (a.indexOf("r") == 1 || a.indexOf("R") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toUpperCase(), karakterStili: KUCUK_P_R}); //.toLowerCase()

                                                                        }

                                                                     }

                 

                 

                 

                 

                                                            if(a.indexOf("p") == 1 || a.indexOf("P") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toLowerCase(), karakterStili: BUYUK_P_R});  //.toUpperCase()

                                                                        }

                                                                     }

                                                                   

                                                           if (a.indexOf("r") == 1 || a.indexOf("R") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: BUYUK_P_R}); //.toLowerCase()

                                                                        }

                                                                     }

                 

                 

                 

                 

                                                        //*****************************************

                                                           

                                                            if(a.indexOf("x") == 1 || a.indexOf("X") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: KUCUK_X_Y});  //.toUpperCase()

                                                                        }

                                                                     }

                                                                   

                                                           if (a.indexOf("y") == 1 || a.indexOf("Y") == 1) {

                                                                for(var i = 'a'.charCodeAt(0); i <= 'ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toUpperCase(), karakterStili: KUCUK_X_Y}); //.toLowerCase()

                                                                        }

                                                                     }

                 

                 

                 

                 

                                                            if(a.indexOf("x") == 1 || a.indexOf("X") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toLowerCase(), karakterStili: BUYUK_X_Y});  //.toUpperCase()

                                                                        }

                                                                     }

                                                                   

                                                           if (a.indexOf("y") == 1 || a.indexOf("Y") == 1) {

                                                                for(var i = 'A'.charCodeAt(0); i <= 'Ş'.charCodeAt(0);  ++i) {

                                                                        sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: BUYUK_X_Y}); //.toLowerCase()

                                                                        }

                                                                     }

                                                        }

                                                   

                ////////////////////////// SADECE KARAKOK /////////////////////////////////

                 

                 

                    if (a.length == 1) {

                            var sayilar = [

                                {rakam: '0', pay: '˜', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                {rakam: '1', pay: 'š', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                {rakam: '2', pay: '›', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                {rakam: '3', pay: 'œ', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                {rakam: '5', pay: 'Ÿ', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                {rakam: '7', pay: 'Š', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                {rakam: '8', pay: '‹', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                {rakam: '9', pay: 'Œ', karakterStili: FK_KAREKOK},   //  Paydada  1  yapabilmek için

                                                ];

                 

                 

                            for(var i = 'a'.charCodeAt(0); i <= 'z'.charCodeAt(0);  ++i) {

                                    sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), karakterStili: FK_KAREKOK});  //.toUpperCase()   anyString.charAt(0)

                          

                    }

                }

                 

                 

                ////////////////////////////////////////////////////////////////////////////////////////// ////

                                                   

                                                   

                                                   

                                                       

                                                            function bul(rakam) {

                 

                 

                                                                    for(var i = 0; i < sayilar.length; ++i) {

                                                                            if(sayilar[i].rakam == rakam) {

                                                                                return sayilar[i];

                                                                            }

                                                                    }

                                                                alert("karşılık bulunamadı: " + rakam)

                                                            }

                 

                 

                                                            //var rakam1 = bul(a);

                                                            //var rakam2 = bul(b);

                                                            var rakam3 = bul(a.charAt(0));

                                                            if(rakam3 == null) {

                                                                    alert("karşılık bulunamadı");

                                                            } else {

                                                            app.selection[0].texts[0].insertionPoints.item(-1).appliedCharacterStyle = rakam3.karakterStili;

                                                            app.selection[0].texts[0].insertionPoints.item(-1).contents = rakam3.pay;

                                                            app.selection[0].texts[0].insertionPoints.item(-1).appliedCharacterStyle = app.activeDocument.characterStyles[0];

                                                            }

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                } else {

                 

                 

                if (a.length == 1 && b.length == 1)

                {

                        var c = "\\";

                 

                 

                    var sayilar = [

                                {rakam: '1', pay: '1', payda: '¹', karakterStili: KUCUK_T},   //  Paydada  1  yapabilmek için

                                {rakam: '2', pay: '2', payda: 'Ş', karakterStili: KUCUK_T},

                                {rakam: '3', pay: '3', payda: 'ß', karakterStili: KUCUK_T},

                                {rakam: '4', pay: '4', payda: 'à', karakterStili: KUCUK_T},

                                {rakam: '5', pay: '5', payda: 'á', karakterStili: KUCUK_T},

                                {rakam: '6', pay: '6', payda: 'â', karakterStili: KUCUK_T},

                                {rakam: '7', pay: '7', payda: 'ã', karakterStili: KUCUK_T},

                                {rakam: '8', pay: '8', payda: 'ä', karakterStili: KUCUK_T},

                                {rakam: '9', pay: '9', payda: 'å', karakterStili: KUCUK_T},

                                {rakam: '0', pay: '0', payda: 'æ', karakterStili: KUCUK_T},

                               

                                {rakam: 'ü', pay: 'ü', payda: 'Ü', karakterStili: KUCUK_T},

                                {rakam: 'ö', pay: 'ö', payda: 'Ö', karakterStili: KUCUK_T},

                                {rakam: 'ğ', pay: 'ğ', payda: 'Ğ', karakterStili: KUCUK_T},

                                {rakam: 'ç', pay: 'ç', payda: 'Ç', karakterStili: KUCUK_T},

                                {rakam: 'j', pay: 'j', payda: 'J', karakterStili: KUCUK_T},

                                {rakam: 'o', pay: 'o', payda: 'O', karakterStili: KUCUK_T},

                                {rakam: 'l', pay: 'l', payda: 'L', karakterStili: KUCUK_T},

                                {rakam: 'ı', pay: 'ı', payda: 'I', karakterStili: KUCUK_T},

                               

                                {rakam: '¹', payda: 'İ', karakterStili: KUCUK_T},  // Paydada  times  i  yapmak için

                 

                 

                    ];

                   

                        for(var i = 'a'.charCodeAt(0); i <= 'z'.charCodeAt(0);  ++i) {

                                sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), payda: String.fromCharCode(i).toUpperCase(), karakterStili: KUCUK_T});

                                }

                        for(var i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0);  ++i) {

                                sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toLowerCase(), payda: String.fromCharCode(i), karakterStili: BUYUK_T});

                                }

                 

                 

                }

                 

                 

                 

                 

                //**************************************

                 

                 

                if(a.indexOf("*") == 1 || b.indexOf("*") == 1 ||a.indexOf("*") == 0 || b.indexOf("*") == 0) {

                     var c = a.length <= 2 && b.length <= 2 ? "/" : "\\";

                 

                 

                    var sayilar = [

                        {rakam: "2*2", pay: 'ÓÛ', payda: 'àè', karakterStili: FK_KAREKOK},

                        {rakam: "3*2", pay: 'ÔÛ', payda: 'áè', karakterStili: FK_KAREKOK},

                        {rakam: "4*2", pay: 'ÕÛ', payda: 'âè', karakterStili: FK_KAREKOK},

                        {rakam: "5*2", pay: 'ÖÛ', payda: 'ãè', karakterStili: FK_KAREKOK},

                        {rakam: "6*2", pay: '×Û', payda: 'äè', karakterStili: FK_KAREKOK},

                        {rakam: "7*2", pay: 'ØÛ', payda: 'åè', karakterStili: FK_KAREKOK},

                        {rakam: "8*2", pay: 'ÙÛ', payda: 'æè', karakterStili: FK_KAREKOK},

                        {rakam: "9*2", pay: 'ÚÛ', payda: 'çè', karakterStili: FK_KAREKOK},

                 

                 

                        {rakam: "2*3", pay: 'ÓÜ', payda: 'àé', karakterStili: FK_KAREKOK},

                        {rakam: "3*3", pay: 'ÔÜ', payda: 'áé', karakterStili: FK_KAREKOK},

                        {rakam: "4*3", pay: 'ÕÜ', payda: 'âé', karakterStili: FK_KAREKOK},

                        {rakam: "5*3", pay: 'ÖÜ', payda: 'ãé', karakterStili: FK_KAREKOK},

                        {rakam: "6*3", pay: '×Ü', payda: 'äé', karakterStili: FK_KAREKOK},

                        {rakam: "7*3", pay: 'ØÜ', payda: 'åé', karakterStili: FK_KAREKOK},

                        {rakam: "8*3", pay: 'ÙÜ', payda: 'æé', karakterStili: FK_KAREKOK},

                        {rakam: "9*3", pay: 'ÚÜ', payda: 'çé', karakterStili: FK_KAREKOK},

                 

                 

                        {rakam: "2*5", pay: 'Óİ', payda: 'àê', karakterStili: FK_KAREKOK},

                        {rakam: "3*5", pay: 'Ôİ', payda: 'áê', karakterStili: FK_KAREKOK},

                        {rakam: "4*5", pay: 'Õİ', payda: 'âê', karakterStili: FK_KAREKOK},

                        {rakam: "5*5", pay: 'Öİ', payda: 'ãê', karakterStili: FK_KAREKOK},

                        {rakam: "6*5", pay: '×İ', payda: 'äê', karakterStili: FK_KAREKOK},

                        {rakam: "7*5", pay: 'Øİ', payda: 'åê', karakterStili: FK_KAREKOK},

                        {rakam: "8*5", pay: 'Ùİ', payda: 'æê', karakterStili: FK_KAREKOK},

                        {rakam: "9*5", pay: 'Úİ', payda: 'çê', karakterStili: FK_KAREKOK},

                       

                        {rakam: "2*6", pay: 'ÓŞ', payda: 'àë', karakterStili: FK_KAREKOK},

                        {rakam: "3*6", pay: 'ÔŞ', payda: 'áë', karakterStili: FK_KAREKOK},

                        {rakam: "4*6", pay: 'ÕŞ', payda: 'âë', karakterStili: FK_KAREKOK},

                        {rakam: "5*6", pay: 'ÖŞ', payda: 'ãë', karakterStili: FK_KAREKOK},

                        {rakam: "6*6", pay: 'ת', payda: 'äë', karakterStili: FK_KAREKOK},

                        {rakam: "7*6", pay: 'ØŞ', payda: 'åë', karakterStili: FK_KAREKOK},

                        {rakam: "8*6", pay: 'ÙŞ', payda: 'æë', karakterStili: FK_KAREKOK},

                        {rakam: "9*6", pay: 'ÚŞ', payda: 'çë', karakterStili: FK_KAREKOK},

                       

                        {rakam: "2*7", pay: 'Óß', payda: 'àì', karakterStili: FK_KAREKOK},

                        {rakam: "3*7", pay: 'Ôß', payda: 'áì', karakterStili: FK_KAREKOK},

                        {rakam: "4*7", pay: 'Õß', payda: 'âì', karakterStili: FK_KAREKOK},

                        {rakam: "5*7", pay: 'Öß', payda: 'ãì', karakterStili: FK_KAREKOK},

                        {rakam: "6*7", pay: '×ß', payda: 'äì', karakterStili: FK_KAREKOK},

                        {rakam: "7*7", pay: 'Øß', payda: 'åì', karakterStili: FK_KAREKOK},

                        {rakam: "8*7", pay: 'Ùß', payda: 'æì', karakterStili: FK_KAREKOK},

                        {rakam: "9*7", pay: 'Úß', payda: 'çì', karakterStili: FK_KAREKOK},

                 

                 

                    ];

                 

                 

                    if(a.length <= 2 && b.length <= 2) { // her ikiside tekse

                        sayilar = sayilar.concat([

                            {rakam: '1', pay: '1', /*payda: '¢', */karakterStili: FK_KAREKOK},

                            {rakam: '2', pay: '2', payda: '¢', karakterStili: FK_KAREKOK},

                            {rakam: '3', pay: '3', payda: '£', karakterStili: FK_KAREKOK},

                            {rakam: '4', pay: '4', payda: '¤', karakterStili: FK_KAREKOK},

                            {rakam: '5', pay: '5', payda: '¥', karakterStili: FK_KAREKOK},

                            {rakam: '6', pay: '6', payda: '¦', karakterStili: FK_KAREKOK},

                            {rakam: '7', pay: '7', payda: '§', karakterStili: FK_KAREKOK},

                            {rakam: '8', pay: '8', payda: '¨', karakterStili: FK_KAREKOK},

                            {rakam: '9', pay: '9', payda: '©', karakterStili: FK_KAREKOK},

                 

                 

                            {rakam: "*2", pay: 'ƒ', payda: '»', karakterStili: FK_KAREKOK},

                            {rakam: "*3", pay: '„', payda: '¼', karakterStili: FK_KAREKOK},

                            {rakam: "*5", pay: '…', payda: '½', karakterStili: FK_KAREKOK},

                            {rakam: "*6", pay: '†', payda: '¾', karakterStili: FK_KAREKOK},

                            {rakam: "*7", pay: '‡', payda: '¿', karakterStili: FK_KAREKOK},

                        ]);

                    } else if(a.length <= 2) { // pay tekse

                        sayilar = sayilar.concat([

                            {rakam: '1', pay: 'À', karakterStili: FK_KAREKOK},

                            {rakam: '2', pay: 'Á', karakterStili: FK_KAREKOK},

                            {rakam: '3', pay: 'Â', karakterStili: FK_KAREKOK},

                            {rakam: '4', pay: 'Ã', karakterStili: FK_KAREKOK},

                            {rakam: '5', pay: 'Ä', karakterStili: FK_KAREKOK},

                            {rakam: '6', pay: 'Å', karakterStili: FK_KAREKOK},

                            {rakam: '7', pay: 'Æ', karakterStili: FK_KAREKOK},

                            {rakam: '8', pay: 'Ç', karakterStili: FK_KAREKOK},

                            {rakam: '9', pay: 'È', karakterStili: FK_KAREKOK},

                 

                 

                            {rakam: "*2", pay: 'Ê', karakterStili: FK_KAREKOK},

                            {rakam: "*3", pay: 'Ë', karakterStili: FK_KAREKOK},

                            {rakam: "*5", pay: 'Ì', karakterStili: FK_KAREKOK},

                            {rakam: "*6", pay: 'Í', karakterStili: FK_KAREKOK},

                            {rakam: "*7", pay: 'Î', karakterStili: FK_KAREKOK},

                        ]);

                    } else { // payda tekse

                      sayilar = sayilar.concat([

                            {rakam: '2', payda: 'ø', karakterStili: FK_KAREKOK},

                            {rakam: '3', payda: 'ù', karakterStili: FK_KAREKOK},

                            {rakam: '4', payda: 'ú', karakterStili: FK_KAREKOK},

                            {rakam: '5', payda: 'û', karakterStili: FK_KAREKOK},

                            {rakam: '6', payda: 'ü', karakterStili: FK_KAREKOK},

                            {rakam: '7', payda: 'ı', karakterStili: FK_KAREKOK},

                            {rakam: '8', payda: 'ş', karakterStili: FK_KAREKOK},

                            {rakam: '9', payda: 'ÿ', karakterStili: FK_KAREKOK},

                 

                 

                            {rakam: "*2", payda: 'ò', karakterStili: FK_KAREKOK},

                            {rakam: "*3", payda: 'ó', karakterStili: FK_KAREKOK},

                            {rakam: "*5", payda: 'ô', karakterStili: FK_KAREKOK},

                            {rakam: "*6", payda: 'õ', karakterStili: FK_KAREKOK},

                            {rakam: "*7", payda: 'ö', karakterStili: FK_KAREKOK},

                        ]);

                    }

                   

                    

                } else if (a.length >= 2 || b.length >= 2)

                {

                        var c = "/";

                 

                 

                 

                 

                    var sayilar = [

                                {rakam: '10', pay: 'È', payda: 'ğ', karakterStili: KUCUK_C},

                                {rakam: '30', pay: 'È', payda: 'ğ', karakterStili: BUYUK_1_2},

                                {rakam: '50', pay: 'È', payda: 'ğ', karakterStili: BUYUK_K_L},

                                {rakam: '70', pay: 'È', payda: 'ğ', karakterStili: BUYUK_P_R},

                                {rakam: '90', pay: 'È', payda: 'ğ', karakterStili: BUYUK_X_Y},

                 

                 

                                {rakam: '18', pay: 'Ğ', payda: 'ø', karakterStili: KUCUK_C},

                                {rakam: '38', pay: 'Ğ', payda: 'ø', karakterStili: BUYUK_1_2},

                                {rakam: '58', pay: 'Ğ', payda: 'ø', karakterStili: BUYUK_K_L},

                                {rakam: '78', pay: 'Ğ', payda: 'ø', karakterStili: BUYUK_P_R},

                                {rakam: '98', pay: 'Ğ', payda: 'ø', karakterStili: BUYUK_X_Y},

                 

                 

                                {rakam: '2p', pay: 'ƒ', payda: '¢', karakterStili: KUCUK_C},

                                {rakam: '2t', pay: 'ƒ', payda: '¢', karakterStili: BUYUK_1_2},

                                {rakam: '2h', pay: 'ƒ', payda: '¢', karakterStili: BUYUK_K_L},

                                {rakam: '2P', pay: 'ƒ', payda: '¢', karakterStili: BUYUK_P_R},

                                {rakam: '2V', pay: 'ƒ', payda: '¢', karakterStili: BUYUK_X_Y},

                                {rakam: '2v', pay: 'ƒ', payda: '¢', karakterStili: BUYUK_C},

                                {rakam: '2d', pay: 'ƒ', payda: '¢', karakterStili: KUCUK_1_2},

                                {rakam: '2m', pay: 'ƒ', payda: '¢', karakterStili: KUCUK_K_L},

                                {rakam: '2q', pay: 'ƒ', payda: '¢', karakterStili:KUCUK_P_R},

                                {rakam: '2T', pay: 'ƒ', payda: '¢', karakterStili: KUCUK_X_Y},

                 

                 

                                {rakam: '3p', pay: '„', payda: '£', karakterStili: KUCUK_C},

                                {rakam: '3t', pay: '„', payda: '£', karakterStili: BUYUK_1_2},

                                {rakam: '3h', pay: '„', payda: '£', karakterStili: BUYUK_K_L},

                                {rakam: '3P', pay: '„', payda: '£', karakterStili: BUYUK_P_R},

                                {rakam: '3V', pay: '„', payda: '£', karakterStili: BUYUK_X_Y},

                                {rakam: '3v', pay: '„', payda: '£', karakterStili: BUYUK_C},

                                {rakam: '3d', pay: '„', payda: '£', karakterStili: KUCUK_1_2},

                                {rakam: '3m', pay: '„', payda: '£', karakterStili: KUCUK_K_L},

                                {rakam: '3q', pay: '„', payda: '£', karakterStili:KUCUK_P_R},

                                {rakam: '3T', pay: '„', payda: '£', karakterStili: KUCUK_X_Y},

                 

                 

                                {rakam: '4p', pay: '…', payda: '¤', karakterStili: KUCUK_C},

                                {rakam: '4t', pay: '…', payda: '¤', karakterStili: BUYUK_1_2},

                                {rakam: '4h', pay: '…', payda: '¤', karakterStili: BUYUK_K_L},

                                {rakam: '4P', pay: '…', payda: '¤', karakterStili: BUYUK_P_R},

                                {rakam: '4V', pay: '…', payda: '¤', karakterStili: BUYUK_X_Y},

                                {rakam: '4v', pay: '…', payda: '¤', karakterStili: BUYUK_C},

                                {rakam: '4d', pay: '…', payda: '¤', karakterStili: KUCUK_1_2},

                                {rakam: '4m', pay: '…', payda: '¤', karakterStili: KUCUK_K_L},

                                {rakam: '4q', pay: '…', payda: '¤', karakterStili:KUCUK_P_R},

                                {rakam: '4T', pay: '…', payda: '¤', karakterStili: KUCUK_X_Y},

                 

                 

                                {rakam: '5p', pay: '†', payda: '¥', karakterStili: KUCUK_C},

                                {rakam: '5t', pay: '†', payda: '¥', karakterStili: BUYUK_1_2},

                                {rakam: '5h', pay: '†', payda: '¥', karakterStili: BUYUK_K_L},

                                {rakam: '5P', pay: '†', payda: '¥', karakterStili: BUYUK_P_R},

                                {rakam: '5V', pay: '†', payda: '¥', karakterStili: BUYUK_X_Y},

                                {rakam: '5v', pay: '†', payda: '¥', karakterStili: BUYUK_C},

                                {rakam: '5d', pay: '†', payda: '¥', karakterStili: KUCUK_1_2},

                                {rakam: '5m', pay: '†', payda: '¥', karakterStili: KUCUK_K_L},

                                {rakam: '5q', pay: '†', payda: '¥', karakterStili:KUCUK_P_R},

                                {rakam: '5T', pay: '†', payda: '¥', karakterStili: KUCUK_X_Y},

                 

                 

                                {rakam: '6p', pay: '‡', payda: '¦', karakterStili: KUCUK_C},

                                {rakam: '6t', pay: '‡', payda: '¦', karakterStili: BUYUK_1_2},

                                {rakam: '6h', pay: '‡', payda: '¦', karakterStili: BUYUK_K_L},

                                {rakam: '6P', pay: '‡', payda: '¦', karakterStili: BUYUK_P_R},

                                {rakam: '6V', pay: '‡', payda: '¦', karakterStili: BUYUK_X_Y},

                                {rakam: '6v', pay: '‡', payda: '¦', karakterStili: BUYUK_C},

                                {rakam: '6d', pay: '‡', payda: '¦', karakterStili: KUCUK_1_2},

                                {rakam: '6m', pay: '‡', payda: '¦', karakterStili: KUCUK_K_L},

                                {rakam: '6q', pay: '‡', payda: '¦', karakterStili:KUCUK_P_R},

                                {rakam: '6T', pay: '‡', payda: '¦', karakterStili: KUCUK_X_Y},

                 

                 

                                {rakam: '7p', pay: 'ˆ', payda: '§', karakterStili: KUCUK_C},

                                {rakam: '7t', pay: 'ˆ', payda: '§', karakterStili: BUYUK_1_2},

                                {rakam: '7h', pay: 'ˆ', payda: '§', karakterStili: BUYUK_K_L},

                                {rakam: '7P', pay: 'ˆ', payda: '§', karakterStili: BUYUK_P_R},

                                {rakam: '7V', pay: 'ˆ', payda: '§', karakterStili: BUYUK_X_Y},

                                {rakam: '7v', pay: 'ˆ', payda: '§', karakterStili: BUYUK_C},

                                {rakam: '7d', pay: 'ˆ', payda: '§', karakterStili: KUCUK_1_2},

                                {rakam: '7m', pay: 'ˆ', payda: '§', karakterStili: KUCUK_K_L},

                                {rakam: '7q', pay: 'ˆ', payda: '§', karakterStili:KUCUK_P_R},

                                {rakam: '7T', pay: 'ˆ', payda: '§', karakterStili: KUCUK_X_Y},

                 

                 

                                {rakam: '8p', pay: '‰', payda: '¨', karakterStili: KUCUK_C},

                                {rakam: '8t', pay: '‰', payda: '¨', karakterStili: BUYUK_1_2},

                                {rakam: '8h', pay: '‰', payda: '¨', karakterStili: BUYUK_K_L},

                                {rakam: '8P', pay: '‰', payda: '¨', karakterStili: BUYUK_P_R},

                                {rakam: '8V', pay: '‰', payda: '¨', karakterStili: BUYUK_X_Y},

                                {rakam: '8v', pay: '‰', payda: '¨', karakterStili: BUYUK_C},

                                {rakam: '8d', pay: '‰', payda: '¨', karakterStili: KUCUK_1_2},

                                {rakam: '8m', pay: '‰', payda: '¨', karakterStili: KUCUK_K_L},

                                {rakam: '8q', pay: '‰', payda: '¨', karakterStili:KUCUK_P_R},

                                {rakam: '8T', pay: '‰', payda: '¨', karakterStili: KUCUK_X_Y},

                 

                 

                                {rakam: '9p', pay: 'Š', payda: '©', karakterStili: KUCUK_C},

                                {rakam: '9t', pay: 'Š', payda: '©', karakterStili: BUYUK_1_2},

                                {rakam: '9h', pay: 'Š', payda: '©', karakterStili: BUYUK_K_L},

                                {rakam: '9P', pay: 'Š', payda: '©', karakterStili: BUYUK_P_R},

                                {rakam: '9V', pay: 'Š', payda: '©', karakterStili: BUYUK_X_Y},

                                {rakam: '9v', pay: 'Š', payda: '©', karakterStili: BUYUK_C},

                                {rakam: '9d', pay: 'Š', payda: '©', karakterStili: KUCUK_1_2},

                                {rakam: '9m', pay: 'Š', payda: '©', karakterStili: KUCUK_K_L},

                                {rakam: '9q', pay: 'Š', payda: '©', karakterStili:KUCUK_P_R},

                                {rakam: '9T', pay: 'Š', payda: '©', karakterStili: KUCUK_X_Y},

                 

                 

                 

                 

                 

                 

                 

                 

                    ];

                 

                 

                        for(var i = 1; i <= 20;  ++i) { // 1 - 20

                                sayilar.push({rakam: (i).toString(), pay: String.fromCharCode("¿".charCodeAt(0) + i - 1 ), payda: String.fromCharCode("ç".charCodeAt(0) + i - 1 ),  karakterStili: KUCUK_C});

                        }

                   

                            for(var i = 1; i <= 20;  ++i) { // 21-40

                                sayilar.push({rakam: (i + 20).toString(), pay: String.fromCharCode("¿".charCodeAt(0) + i - 1 ), payda: String.fromCharCode("ç".charCodeAt(0) + i - 1 ), karakterStili: BUYUK_1_2});

                        }

                   

                                for(var i = 1; i <= 20;  ++i) { // 41-60

                                sayilar.push({rakam: (i + 40).toString(), pay: String.fromCharCode("¿".charCodeAt(0) + i - 1 ), payda: String.fromCharCode("ç".charCodeAt(0) + i - 1 ), karakterStili: BUYUK_K_L});

                        }

                   

                                for(var i = 1; i <= 20;  ++i) { // 61-80

                                sayilar.push({rakam: (i + 60).toString(), pay: String.fromCharCode("¿".charCodeAt(0) + i - 1 ), payda: String.fromCharCode("ç".charCodeAt(0) + i - 1 ), karakterStili: BUYUK_P_R});

                        }

                 

                 

                                for(var i = 1; i <= 20;  ++i) { // 81-99

                                sayilar.push({rakam: (i + 80).toString(), pay: String.fromCharCode("¿".charCodeAt(0) + i - 1 ), payda: String.fromCharCode("ç".charCodeAt(0) + i - 1 ), karakterStili: BUYUK_X_Y});

                        }

                   

                        for(var i = 'a'.charCodeAt(0); i <= 'z'.charCodeAt(0);  ++i) {

                                sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i), payda: String.fromCharCode(i).toUpperCase(), karakterStili: KUCUK_C});

                        }

                 

                 

                        for(var i = 'A'.charCodeAt(0); i <= 'Z'.charCodeAt(0);  ++i) {

                                sayilar.push({rakam: String.fromCharCode(i), pay: String.fromCharCode(i).toLowerCase(), payda: String.fromCharCode(i), karakterStili: BUYUK_C});

                        }

                 

                 

                 

                 

                 

                   }

                 

                 

                    function bul(rakam) {

                 

                 

                            for(var i = 0; i < sayilar.length; ++i) {

                                    if(sayilar[i].rakam == rakam) {

                                        return sayilar[i];

                                    }

                            }

                        alert("karşılık bulunamadı: " + rakam)

                    }

                 

                 

                    var rakam1 = bul(a);

                    var rakam2 = bul(b);

                    if(rakam1 == null || rakam2 == null) {

                            alert("karşılık bulunamadı");

                    } else {

                    app.selection[0].texts[0].insertionPoints.item(-1).appliedCharacterStyle = rakam1.karakterStili;

                    app.selection[0].texts[0].insertionPoints.item(-1).contents = rakam1.pay;

                    app.selection[0].texts[0].insertionPoints.item(-1).contents = c;

                    app.selection[0].texts[0].insertionPoints.item(-1).appliedCharacterStyle = rakam2.karakterStili;

                    app.selection[0].texts[0].insertionPoints.item(-1).contents = rakam2.payda;

                    app.selection[0].texts[0].insertionPoints.item(-1).appliedCharacterStyle = app.activeDocument.characterStyles[0];

                    }

                 

                 

                }

                }

                }

                • 5. Re: dialog screen
                  Peter Spier Most Valuable Participant (Moderator)

                  Since this is a scripting question I've moved it to the scripting forum.

                  • 6. Re: dialog screen
                    Willi Adelberger Most Valuable Participant

                    You should ask in the scripting forum. A user interface which worked for CS6 does not automatically work for later versions.

                    UI has changed in 2 ways:

                    1. The color became variable as you can choose as user between dark and bright UI.
                    2. The content became scalable, not pixel is the fixed size for elements.

                    I am not a scripter, but what I see, your definition of UI elements in the dialog seems to overwrite InDesign standards and causes now a conflict with new UI definitions in InDesign.

                     

                    What does your script do?

                    • 7. Re: dialog screen
                      Marc Autret Level 4

                      Hi,

                       

                      The main reason is that the ScriptUIFont object is broken in CC. (You can't change size, color, typeface…)

                       

                      Yeah, that's a shame, but Adobe's team does not care about ScriptUI dev anymore, so they probably won't ever fix the issue.

                       

                      Conclusion: keep CS6 installed on your computer!

                       

                      @+

                      Marc

                      • 8. Re: dialog screen
                        karthiks94217840 Level 2

                        HI hamdifem,

                         

                        Newly, i am learning the java scripting friend.

                         

                        I needed some clarification in your above UI script. Don't mistake me i am asking this question?

                         

                        Your script working good. But, i don't now which stage i will use(run script) this script.

                         

                        Please Explain friend.

                         

                        1. What is the use age of the script?
                        2. Which type of problem faced and clear in the UI script.
                        3. Which stage i will use(run script) this script.

                         

                        Advance Thanks

                        • 9. Re: dialog screen
                          hamdifem Level 1

                          I apply this command character styles without writing custom font unicode (Alt + 064 = @ ,  'È =1/2 ) allows me to print. useless without fonts. We use more math

                          No problem with the command

                          screen display problem

                          • 10. Re: dialog screen
                            karthiks94217840 Level 2

                            HI hamdifem,


                            Thanks your valuable replay.


                            I will try and get back to you.

                             

                            One more thanks