Forum Replies Created
-
AuthorPosts
-
October 30, 2016 at 5:24 pm in reply to: Copy GREP styles from one Paragraph Style to another #89434
Wosven S
MemberHello,
I did a script to copy/paste GREP/nested and lines styles from document to document.
It store style in a text file.There’s a first panel for copying and saving styles.
A second for styles selection and paste them.And you can store styles, and use the text file as a quick memo for copying/pasting usual GREP.
The script :
https://raw.githubusercontent.com/Swosven/indesignScripts/master/en_copy_Styles_GREP-Nested-Lines.jsx
The text file :
https://raw.githubusercontent.com/Swosven/indesignScripts/master/en_copy_listStyles.txtWos
Wosven S
MemberHi,
you can use this script : https://github.com/Swosven/indesignScriptsBecareful and sure of your GREP expression before use.
There’s more explanation at the begining of the file, and you can do tests first.Wosven S
MemberHi Massod,
About Javascript, you can learn basics with MOOC : https://www.codecademy.com
site : https://eloquentjavascript.net/ (explanations and exercices)
and books.
My favorites ones :
– Data Structures and Algorithms with JavaScript by Michael McMillan (thos one contains exercices)
– Speaking JavaScript by Axel Rauschmayer (sort of my dictionnary about javascript)Depending of what you need next, you’ll search more appropriate books/sites.
Scripting for inDesign is a good start.
About HTML5, nothing but…
when I needed to lern more about HTML4 and CSS2 I read the specs/documentation, it was the best way to know what is possible to do or not… and useful.
It’s the geeky way to do it :Phttps://www.w3schools.com/ can help with tutorials and informations too.
I hope it can be helpful!
Wosven S
MemberPerhaps there’s a more elegant solution, but an easy way is :
First, you can color all numbers :
GREP style color 1-49
\dSecond, you color from 50 to 59 :
GREP style color 50-59
5\dIf needed for 60+ :
GREP style color 60+
[6-9]\d|[\d]{3,}April 27, 2015 at 3:20 pm in reply to: GREP:Do not break words that begin with a capital and preceded by an apostrophe #75010Wosven S
MemberThanks for the tip Alan and your concise expression Masood.
April 25, 2015 at 3:34 pm in reply to: GREP:Do not break words that begin with a capital and preceded by an apostrophe #74959Wosven S
Member“No Break” should be applied to “l'” AND “Université”, using this GREP:
\d(?=’)|\d(?=”)|[\u]’[\u]+|(?<! )’Another way with long words like “Triffouillis-les-Oies” is using 2 character styles : “No Break” and “Break” ([None] / [Sans] doesn’t do the trick):
GREP 1:
“No Break”
\d(?=’)|\d(?=”)|[\u]’[\u-]+|(?<! )’GREP 2:
“Break”
(?<=[\u-])- -
AuthorPosts
