Forum Replies Created
-
AuthorPosts
-
Masood Ahmad
Participant…nothing happened. As you said, some of the old styles are not available. It depends, how my source is formatted therefore, when I copy text from source to Template file, some unused styles don’t get copied to the Template. I think that’s the problem.
Any suggestions would be much appreciated.
Masood Ahmad
ParticipantCheck this out…
https://creativepro.com/how-to-install-scripts-in-indesign.php
Masood Ahmad
ParticipantThanks Colin for the inputs. I tried it but it seems there’s something missing.
I think I have ordered the script correctly.
The script just applies the myTableStyle but didn’t remove the overrides completely.Secondly, I need a script to do as:
1/ Apply the myTableStyle style to the current table. By current table I mean the table with Cursor in it.
2/ Format the table with Alternate Fills (the existing style do not have the Alternating Fills, I am not supposed to edit it).
2.1/ First 1 Row : Color: None
2.2/ Next 1 Row : Color: Black 20%And another script to:
1/ Apply the myTableStyle style to the current table. By current table I mean the table with Cursor in it.
2/ Format the table with Alternate Fills (the existing style do not have the Alternating Fills, I am not supposed to edit it).
2.1/ First 1 Row : Color: None
2.2/ Next 1 Row : Color: Black 20%
3/ Convert the the first row to header of the current table.
app.doScript(checkUserSelection, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Process Table");function checkUserSelection ()
{
var a_table = checkWhichTable();
if (a_table == null)
{
if (confirm("No table selected. Do you want to process all tables?") == false)
return;
allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
for (aTable=0; aTable < allTables.length; aTable++) { processTable (allTables[aTable]); } } else { processTable (a_table); } }function processTable(table)
{
table.appliedTableStyle = "Table_Alternating-Fills";
}function checkWhichTable()
{
// ensure the user made a selection
if (app.selection.length != 1)
return null;
var currentTable = app.selection[0];
if (currentTable.hasOwnProperty("baseline"))
{
currentTable = app.selection[0].parent;
}
while (currentTable instanceof Cell || currentTable instanceof Row || currentTable instanceof Column)
currentTable = currentTable.parent;
if (!(currentTable instanceof Table))
{
// No table selected
return null;
}
return currentTable;
}
January 17, 2018 at 7:00 am in reply to: Add paragraph style only to a paragraph with 2 lines or more. #101045Masood Ahmad
ParticipantI think it’s time to replace my specs :)
January 16, 2018 at 9:13 am in reply to: Add paragraph style only to a paragraph with 2 lines or more. #101017Masood Ahmad
ParticipantEnglish please………
This post is a duplicate entry here on InDesign Secrets. Obi-wan have already given a code to achieve this:
Add paragraph style only to a paragraph with 2 lines or more.
January 16, 2018 at 9:03 am in reply to: Add paragraph style only to a paragraph with 2 lines or more. #101007Masood Ahmad
ParticipantI might be wrong, but I think
^\w+means first word only. For two words the code could be something like this:^\w+\w+.…… OR ……
It will be much easier to use Nested Styles to apply the Bold character style to the first two words.
January 5, 2018 at 6:21 am in reply to: distinct CMYK and RGB values exportable out of one color swatch? #100786Masood Ahmad
ParticipantThis is because, RGB has a bigger gamut than CMYK. So the CMYK and RGB will always differ especially with Red, Green and Blue shades. I hope the below given url will spread some light on it. You can search more about it on the net.
https://www.hackworth.co/rgb-cmyk-spectrum-and-how-it-affects-printing-quality/
https://www.centurypublishing.com/wp-content/uploads/2013/02/RGB-CMYK-Colors.pdfMasood Ahmad
ParticipantCheck this out!
https://creativepro.com/when-you-see-thin-white-lines-in-your-pdf-files.php
You can fix this by exporting the PDF with Acrobat 7 compatibility.
https://www.pixelportal.com.au/pixel-portal-blog/adobe_acrobat_showing_thick_l_and_i_characters
Masood Ahmad
ParticipantIndeed David! and that should be on top priority. Also program the forum to accept IDMLs and scripts.
Masood Ahmad
Participant…Or is it the Primary Text Frame on the Master page and Non-Primary (Normal) Text Frame on the Document page.
Check this out !
Masood Ahmad
ParticipantThat’s really not a good news in the new year.
Happy New Year to all :)
January 5, 2018 at 5:17 am in reply to: How to find sentences that end in periods with no space after them #100780Masood Ahmad
ParticipantSheri, I would recommend to post some sample text here, so that the members can write a working code for you.
Masood Ahmad
ParticipantHi Rheta, Why don’t you use the Next Style feature and create your paragraph styles with required indent and number-lists.
However, as per your brief, here are my findings. Check and let me know if it works for you.
GREP Find/Change:
Step1:
Find What:^(\d)(\x{0020})(.+)
Change to:$1$3Step2:
GREP Find/Change:
Find What:^(\d.+\r)(.+)
Change to:$1$2October 24, 2017 at 7:24 am in reply to: Best way of handling serial letter / mail merge process? #99193Masood Ahmad
ParticipantMasood Ahmad
ParticipantHey Paul,
I must admit, out of 30 only three were close. There were varied tricks used by the team. Some uses Paragraph Rules, Line tool, Tables and even Anchor objects. However, none of them succeeded to do it fully.
My concept was different. I opt to achieve the result with minimal manual effort therefore, I used the Pipe symbol
|for the vertical bar. And yes, you’re right, you can hide it with GREP in TOC etc.I have uploaded the IDML file on the Dropbox for the folks to have a look and I request to share their valuable feedback and other tricks to achieve this.
Sorry, for not keeping my promise for 17th, as someone said, “Is Maasood on vacation? … No news!” :)
-
AuthorPosts
