כללי הוספה לסקריפט FindChangeBylist

  • הוסף לסימניות
  • #21
נכתב ע"י eliezer;1171584:
הסתכלת בקובץ של הסקריפט? יש בתחילתו תיעוד. וכך זכור לי.
אינו מולי כעת.
ודאי!
אני חושב שאולי לא הבנת טוב את האנגלית:
כתוב כך:
קוד:
//findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
//findProperties is a properties record (as text) of the find preferences.
//changeProperties is a properties record (as text) of the change preferences.
//findChangeOptions is a properties record (as text) of the find/change options.
שורה ראשונה - פירושה הוא סוג החיפוש (text, grep, glyph). זה נכתב חוץ מקבוצה, כלומר בלי סוגריים מסולסלות.
שורה שניה - כל הנתונים של "חפש"
שורה שלישית - כל הנתונים של "החלף"
שורה רביעית - כל הנתונים של אפשרויות "חפש והחלף"
 
  • הוסף לסימניות
  • #22
לא יכולתי להבין האנגלית כראוי....כי מראש קראתי בגוגל טרנסלייט...
בהזדמנות נפתח הסקריפט בע"ה ונראה.
זה מגוחך מצידי להתווכח איתך, כאשר אני אומר דברים תאורתיים, ואתה אומר שהמציאות שונה...
:)
 
  • הוסף לסימניות
  • #23
:) - צריכים ליזהר מגוגל... יכולים להפוך ברכה לקללה! ;)

תעדכן אותנו
 
  • הוסף לסימניות
  • #24
ברצוני להודות לכל מי שטרח בדיון זה, לר' אליעזר, לר' DMD. ותודה לפרוג על הקהילה החמה שתמיד נכונה לעזור. נ.ב תודה ענקית לר' רמי שרעבי, שבזכותו נחשפתי לסקריפט הנ"ל שמקצר זמן רב של עבודה.
מטרת הסקריפט בקיצור: לערוך סדרה של חיפושים (כגון רווח כפול, אנטר כפול וכדומה) בפעם אחת.
 
  • הוסף לסימניות
  • #25
הקוד לחיפוש. לכתיבתו נעזרתי בסקריפט שהביא לעיל DMD:
קוד:
text	{firstLineIndent:({}), leftIndent:({}), rightIndent:({}), spaceBefore:({}), spaceAfter:({}), balanceRaggedLines:({}), justification:({}), singleWordJustification:({}), autoLeading:({}), dropCapLines:({}), dropCapCharacters:({}), keepLinesTogether:({}), keepAllLinesTogether:({}), keepWithNext:({}), keepFirstLines:({}), keepLastLines:({}), startParagraph:({}), composer:({}), lastLineIndent:({}), hyphenateLastWord:({}), dropcapDetail:({}), hyphenateAcrossColumns:({}), keepRuleAboveInFrame:({}), ignoreEdgeAlignment:({}), fontStyle:"Bold", pointSize:({}), leading:({}), kerningMethod:({}), tracking:({}), capitalization:({}), position:({}), underline:({}), strikeThru:({}), ligatures:({}), noBreak:({}), horizontalScale:({}), verticalScale:({}), baselineShift:({}), skew:({}), fillTint:({}), strokeTint:({}), strokeWeight:({}), overprintStroke:({}), overprintFill:({}), otfFigureStyle:({}), otfOrdinal:({}), otfFraction:({}), otfDiscretionaryLigature:({}), otfTitling:({}), otfContextualAlternate:({}), otfSwash:({}), underlineTint:({}), underlineGapTint:({}), underlineOverprint:({}), underlineGapOverprint:({}), underlineOffset:({}), underlineWeight:({}), strikeThroughTint:({}), strikeThroughGapTint:({}), strikeThroughOverprint:({}), strikeThroughGapOverprint:({}), strikeThroughOffset:({}), strikeThroughWeight:({}), otfSlashedZero:({}), otfHistorical:({}), otfStylisticSets:({}), gradientFillLength:({}), gradientFillAngle:({}), gradientStrokeLength:({}), gradientStrokeAngle:({}), gradientFillStart:({}), gradientStrokeStart:({}), otfMark:({}), otfLocale:({}), positionalForm:({}), appliedLanguage:({}), kerningValue:({}), miterLimit:({}), strokeAlignment:({}), endJoin:({}), appliedConditions:({}), paragraphDirection:({}), paragraphJustification:({}), otfOverlapSwash:({}), otfStylisticAlternate:({}), otfJustificationAlternate:({}), otfStretchedAlternate:({}), characterDirection:({}), keyboardDirection:({}), digitsType:({}), kashidas:({}), diacriticPosition:({}), xOffsetDiacritic:({}), yOffsetDiacritic:({}), keepWithPrevious:({}), spanSplitColumnCount:({}), spanColumnType:({}), splitColumnInsideGutter:({}), splitColumnOutsideGutter:({}), spanColumnMinSpaceBefore:({}), spanColumnMinSpaceAfter:({}), characterAlignment:({}), tsume:({}), leadingAki:({}), trailingAki:({}), characterRotation:({}), jidori:({}), shataiMagnification:({}), shataiDegreeAngle:({}), shataiAdjustRotation:({}), shataiAdjustTsume:({}), tatechuyoko:({}), tatechuyokoXOffset:({}), tatechuyokoYOffset:({}), kentenTint:({}), kentenStrokeTint:({}), kentenWeight:({}), kentenOverprintFill:({}), kentenOverprintStroke:({}), kentenKind:({}), kentenPlacement:({}), kentenAlignment:({}), kentenPosition:({}), kentenFontStyle:({}), kentenFontSize:({}), kentenXScale:({}), kentenYScale:({}), kentenCustomCharacter:({}), kentenCharacterSet:({}), rubyTint:({}), rubyWeight:({}), rubyOverprintFill:({}), rubyOverprintStroke:({}), rubyStrokeTint:({}), rubyFontStyle:({}), rubyFontSize:({}), rubyOpenTypePro:({}), rubyXScale:({}), rubyYScale:({}), rubyType:({}), rubyAlignment:({}), rubyPosition:({}), rubyXOffset:({}), rubyYOffset:({}), rubyParentSpacing:({}), rubyAutoAlign:({}), rubyOverhang:({}), rubyAutoScaling:({}), rubyParentScalingPercent:({}), rubyParentOverhangAmount:({}), rubyAutoTcyDigits:({}), rubyAutoTcyIncludeRoman:({}), rubyAutoTcyAutoScale:({}), warichu:({}), warichuSize:({}), warichuLines:({}), warichuLineSpacing:({}), warichuAlignment:({}), warichuCharsAfterBreak:({}), warichuCharsBeforeBreak:({}), otfProportionalMetrics:({}), otfHVKana:({}), otfRomanItalics:({}), scaleAffectsLineHeight:({}), cjkGridTracking:({}), glyphForm:({}), paragraphGyoudori:({}), gridAlignment:({}), gridGyoudori:({}), autoTcy:({}), autoTcyIncludeRoman:({}), kinsokuSet:({}), kinsokuType:({}), kinsokuHangType:({}), bunriKinshi:({}), mojikumi:({}), rensuuji:({}), rotateSingleByteCharacters:({}), leadingModel:({}), treatIdeographicSpaceAsSpace:({}), allowArbitraryHyphenation:({}), bulletsTextAfter:({}), appliedNumberingList:({}), numberingLevel:({}), numberingFormat:({}), numberingContinue:({}), numberingStartAt:({}), numberingApplyRestartPolicy:({}), bulletsCharacterStyle:({}), numberingCharacterStyle:({}), numberingExpression:({}), bulletsAndNumberingListType:({})}	{appliedCharacterStyle:"B1", firstLineIndent:({}), leftIndent:({}), rightIndent:({}), spaceBefore:({}), spaceAfter:({}), balanceRaggedLines:({}), justification:({}), singleWordJustification:({}), autoLeading:({}), dropCapLines:({}), dropCapCharacters:({}), keepLinesTogether:({}), keepAllLinesTogether:({}), keepWithNext:({}), keepFirstLines:({}), keepLastLines:({}), startParagraph:({}), composer:({}), lastLineIndent:({}), hyphenateLastWord:({}), dropcapDetail:({}), hyphenateAcrossColumns:({}), keepRuleAboveInFrame:({}), ignoreEdgeAlignment:({}), fontStyle:({}), pointSize:({}), leading:({}), kerningMethod:({}), tracking:({}), capitalization:({}), position:({}), underline:({}), strikeThru:({}), ligatures:({}), noBreak:({}), horizontalScale:({}), verticalScale:({}), baselineShift:({}), skew:({}), fillTint:({}), strokeTint:({}), strokeWeight:({}), overprintStroke:({}), overprintFill:({}), otfFigureStyle:({}), otfOrdinal:({}), otfFraction:({}), otfDiscretionaryLigature:({}), otfTitling:({}), otfContextualAlternate:({}), otfSwash:({}), underlineTint:({}), underlineGapTint:({}), underlineOverprint:({}), underlineGapOverprint:({}), underlineOffset:({}), underlineWeight:({}), strikeThroughTint:({}), strikeThroughGapTint:({}), strikeThroughOverprint:({}), strikeThroughGapOverprint:({}), strikeThroughOffset:({}), strikeThroughWeight:({}), otfSlashedZero:({}), otfHistorical:({}), otfStylisticSets:({}), gradientFillLength:({}), gradientFillAngle:({}), gradientStrokeLength:({}), gradientStrokeAngle:({}), gradientFillStart:({}), gradientStrokeStart:({}), otfMark:({}), otfLocale:({}), positionalForm:({}), appliedLanguage:({}), kerningValue:({}), changeConditionsMode:({}), miterLimit:({}), strokeAlignment:({}), endJoin:({}), appliedConditions:({}), paragraphDirection:({}), paragraphJustification:({}), otfOverlapSwash:({}), otfStylisticAlternate:({}), otfJustificationAlternate:({}), otfStretchedAlternate:({}), characterDirection:({}), keyboardDirection:({}), digitsType:({}), kashidas:({}), diacriticPosition:({}), xOffsetDiacritic:({}), yOffsetDiacritic:({}), keepWithPrevious:({}), spanSplitColumnCount:({}), spanColumnType:({}), splitColumnInsideGutter:({}), splitColumnOutsideGutter:({}), spanColumnMinSpaceBefore:({}), spanColumnMinSpaceAfter:({}), characterAlignment:({}), tsume:({}), leadingAki:({}), trailingAki:({}), characterRotation:({}), jidori:({}), shataiMagnification:({}), shataiDegreeAngle:({}), shataiAdjustRotation:({}), shataiAdjustTsume:({}), tatechuyoko:({}), tatechuyokoXOffset:({}), tatechuyokoYOffset:({}), kentenTint:({}), kentenStrokeTint:({}), kentenWeight:({}), kentenOverprintFill:({}), kentenOverprintStroke:({}), kentenKind:({}), kentenPlacement:({}), kentenAlignment:({}), kentenPosition:({}), kentenFontStyle:({}), kentenFontSize:({}), kentenXScale:({}), kentenYScale:({}), kentenCustomCharacter:({}), kentenCharacterSet:({}), rubyTint:({}), rubyWeight:({}), rubyOverprintFill:({}), rubyOverprintStroke:({}), rubyStrokeTint:({}), rubyFontStyle:({}), rubyFontSize:({}), rubyOpenTypePro:({}), rubyXScale:({}), rubyYScale:({}), rubyType:({}), rubyAlignment:({}), rubyPosition:({}), rubyXOffset:({}), rubyYOffset:({}), rubyParentSpacing:({}), rubyAutoAlign:({}), rubyOverhang:({}), rubyAutoScaling:({}), rubyParentScalingPercent:({}), rubyParentOverhangAmount:({}), rubyAutoTcyDigits:({}), rubyAutoTcyIncludeRoman:({}), rubyAutoTcyAutoScale:({}), warichu:({}), warichuSize:({}), warichuLines:({}), warichuLineSpacing:({}), warichuAlignment:({}), warichuCharsAfterBreak:({}), warichuCharsBeforeBreak:({}), otfProportionalMetrics:({}), otfHVKana:({}), otfRomanItalics:({}), scaleAffectsLineHeight:({}), cjkGridTracking:({}), glyphForm:({}), paragraphGyoudori:({}), gridAlignment:({}), gridGyoudori:({}), autoTcy:({}), autoTcyIncludeRoman:({}), kinsokuSet:({}), kinsokuType:({}), kinsokuHangType:({}), bunriKinshi:({}), mojikumi:({}), rensuuji:({}), rotateSingleByteCharacters:({}), leadingModel:({}), treatIdeographicSpaceAsSpace:({}), allowArbitraryHyphenation:({}), bulletsTextAfter:({}), appliedNumberingList:({}), numberingLevel:({}), numberingFormat:({}), numberingContinue:({}), numberingStartAt:({}), numberingApplyRestartPolicy:({}), bulletsCharacterStyle:({}), numberingCharacterStyle:({}), numberingExpression:({}), bulletsAndNumberingListType:({})}	{includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, wholeWord:false, caseSensitive:false, kanaSensitive:true, widthSensitive:true, ignoreKashidas:true, ignoreDiacritics:false}	//Comment
הקוד מעט ארוך כי לא ידעתי על מה ניתן לוותר...
 
  • הוסף לסימניות
  • #26
ציטוט מהסקריפט:

קוד:
myFindChangeArray = myLine.split("\t");//מחלק הקובץ לשורות לפי טאבים, כלומר תרד שורה היכן שימצא טאב
					//The first field in the line is the findType string.
					myFindType = myFindChangeArray[0];//השורה הראשונה זה הגדרות החיפוש כלומר סוגו, גרפ, טקסט,אובייקט 
					//The second field in the line is the FindPreferences string.
					myFindPreferences = myFindChangeArray[1];//השורה השניה, להזכיר, מופרד בטאב, זה הגדרות החיפוש כל התנאים של העיצוב שאותם ניתן לחפש
					//The second field in the line is the ChangePreferences string.
					myChangePreferences = myFindChangeArray[2];//כנ"ל ההחלפה
					//The fourth field is the range--used only by text find/change.
					myFindChangeOptions = myFindChangeArray[3];//הגדרות כלליות

מה שמראה שDMD צודק, ב{} הראשון יש להכניס החיפוש כולל כל ההגדרות, מה לחפש, ומה התנאים, ואין להפריד ב{} נוסף אלא רק בתוך אותו ה{} להפריד עם ,
 
  • הוסף לסימניות
  • #27
מצ"ב הקוד שצריך להוסיף לקובץ FindChangeList.txt על מנת שיהפוך טקסט מודגש לסגנון תו B1 שמטרתו לשמור על ההדגשות כסגנון תו. הקוד נכתב על ידי ר' DMD וְר' eliezer.
קוד:
grep	{fontStyle: "Bold"}	{appliedCharacterStyle: "B1"}	

{includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, 

wholeWord:false}
קוד נוסף שנכתב על ידי, להחליף כוכבית לבולט (alt 8)
קוד:
text	{findWhat:"*"}	{changeTo:"^8"}	{includeFootnotes:true, 

includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
 
  • הוסף לסימניות
  • #28
בקוד הראשון הfind what מיותר. כדי לחפש ולהחיל עיצוב לא צריך לחפש טקסט כלל.
 

פרוגבוט

תוכן שיווקי
פרסומת

הצטרפות לניוזלטר

איזה כיף שהצטרפתם לניוזלטר שלנו!

מעכשיו, תהיו הראשונים לקבל את כל העדכונים, החדשות, ההפתעות בלעדיות, והתכנים הכי חמים שלנו בפרוג!

לוח מודעות

הפרק היומי

הפרק היומי! כל ערב פרק תהילים חדש. הצטרפו אלינו לקריאת תהילים משותפת!


תהילים פרק כה

אלְדָוִד אֵלֶיךָ יי נַפְשִׁי אֶשָּׂא:באֱלֹהַי בְּךָ בָטַחְתִּי אַל אֵבוֹשָׁה אַל יַעַלְצוּ אֹיְבַי לִי:גגַּם כָּל קוֶֹיךָ לֹא יֵבֹשׁוּ יֵבֹשׁוּ הַבּוֹגְדִים רֵיקָם:דדְּרָכֶיךָ יי הוֹדִיעֵנִי אֹרְחוֹתֶיךָ לַמְּדֵנִי:ההַדְרִיכֵנִי בַאֲמִתֶּךָ וְלַמְּדֵנִי כִּי אַתָּה אֱלֹהֵי יִשְׁעִי אוֹתְךָ קִוִּיתִי כָּל הַיּוֹם:וזְכֹר רַחֲמֶיךָ יי וַחֲסָדֶיךָ כִּי מֵעוֹלָם הֵמָּה:זחַטֹּאות נְעוּרַי וּפְשָׁעַי אַל תִּזְכֹּר כְּחַסְדְּךָ זְכָר לִי אַתָּה לְמַעַן טוּבְךָ יי:חטוֹב וְיָשָׁר יי עַל כֵּן יוֹרֶה חַטָּאִים בַּדָּרֶךְ:טיַדְרֵךְ עֲנָוִים בַּמִּשְׁפָּט וִילַמֵּד עֲנָוִים דַּרְכּוֹ:יכָּל אָרְחוֹת יי חֶסֶד וֶאֱמֶת לְנֹצְרֵי בְרִיתוֹ וְעֵדֹתָיו:יאלְמַעַן שִׁמְךָ יי וְסָלַחְתָּ לַעֲוֹנִי כִּי רַב הוּא:יבמִי זֶה הָאִישׁ יְרֵא יי יוֹרֶנּוּ בְּדֶרֶךְ יִבְחָר:יגנַפְשׁוֹ בְּטוֹב תָּלִין וְזַרְעוֹ יִירַשׁ אָרֶץ:ידסוֹד יי לִירֵאָיו וּבְרִיתוֹ לְהוֹדִיעָם:טועֵינַי תָּמִיד אֶל יי כִּי הוּא יוֹצִיא מֵרֶשֶׁת רַגְלָי:טזפְּנֵה אֵלַי וְחָנֵּנִי כִּי יָחִיד וְעָנִי אָנִי:יזצָרוֹת לְבָבִי הִרְחִיבוּ מִמְּצוּקוֹתַי הוֹצִיאֵנִי:יחרְאֵה עָנְיִי וַעֲמָלִי וְשָׂא לְכָל חַטֹּאותָי:יטרְאֵה אוֹיְבַי כִּי רָבּוּ וְשִׂנְאַת חָמָס שְׂנֵאוּנִי:כשָׁמְרָה נַפְשִׁי וְהַצִּילֵנִי אַל אֵבוֹשׁ כִּי חָסִיתִי בָךְ:כאתֹּם וָיֹשֶׁר יִצְּרוּנִי כִּי קִוִּיתִיךָ:כבפְּדֵה אֱלֹהִים אֶת יִשְׂרָאֵל מִכֹּל צָרוֹתָיו:
נקרא  2  פעמים
למעלה