Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
InDesig - kako izbrojati znakove?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> DTP i print dizajn
View previous topic :: View next topic  
Author Message
jeluska



Joined: 01 Feb 2006
Posts: 25

PostPosted: 18.05.2007 10:03    Post subject: InDesig - kako izbrojati znakove? Add user to your forum ignore list Reply with quote

Tko pita ne skita Very Happy .

Evo, ubih se tražeći način da izbrojim sve znakove u InDesignovom dokumentu. Nema i nema ili ja ćorava ne vidim. Ni help mi ne pomaže.

Dakle, na mnoštvo stranica razbacanih u barem 10 dokumenta, na svakoj stranici se nalazi po nekoliko kućica s tekstom (nepovezanih, naravno Rolling Eyes , jer je tako bilo lakše raditi) i ja sad moram izbrojati koliko je tu upucanih kartica teksta! To mogu raditi barem tjedan dana Brick wall (ili ću riješiti odokativnom metodom). Whistle

Ima li netko da zna rješenje problema? LeaveMeBe
Back to top
View user's profile Send private message
jeluska



Joined: 01 Feb 2006
Posts: 25

PostPosted: 18.05.2007 10:03    Post subject: Add user to your forum ignore list Reply with quote

Mrzim kad napravim tipfeler u naslovu. Embarassed
Back to top
View user's profile Send private message
abeja



Joined: 22 Sep 2003
Posts: 803
Location: Rijeka

PostPosted: 18.05.2007 10:53    Post subject: Add user to your forum ignore list Reply with quote

selektiras tekst pa onda u info paleti ti pise

tj. samo kliknes u tu kucicu sa tekstom...ali ako ti nisu povezane neznam nista pametnije osim zbrajanja..

ili exportiras u pdf pa onda nadjes neki software za to..vidim da ih ima

ili exportiras iz Indesigna kao txt pa oznacis text only..to bi trebalo biti to

...mozda ce netko znati..i mene zanima
Back to top
View user's profile Send private message Visit poster's website
indizajlover



Joined: 16 Feb 2007
Posts: 11
Location: Zagreb

PostPosted: 18.05.2007 11:08    Post subject: Add user to your forum ignore list Reply with quote

u izborniku 'Window' imas plocicu 'Info' i tu vidis koliko ima znakova u jednom storiyu. dakle ako su tekst framovi polinkani onda vidis koliko u njima ima teksta. rjesenje koje mi pada na pamet bi ti mozda bilo da exportiras sav tekst iz dokumenta u jedan txt ili doc fajl pa ga ubacis ponovno i indesign ili ga otvoris u wordu i procitas koliko ima znakova. problem je sami sto neznam kako exportirati sav tekst iz dokumenta. uvjeren sam da moze ali kako??? ako saznam javim.
Back to top
View user's profile Send private message
indizajlover



Joined: 16 Feb 2007
Posts: 11
Location: Zagreb

PostPosted: 18.05.2007 11:18    Post subject: Add user to your forum ignore list Reply with quote

nasao sam skriptu koja exportira sva tekst ali iz svakog frema posebno i dobijes poseban txt fajl. to nije to
Back to top
View user's profile Send private message
indizajlover



Joined: 16 Feb 2007
Posts: 11
Location: Zagreb

PostPosted: 18.05.2007 11:36    Post subject: Add user to your forum ignore list Reply with quote

evo imam je!!!

skripta super funkcionira!!
skopiraj je u txt editor ili u word i snimi je kao txt only (ne .doc, .rtf), stavi joj ime ExportAllText i ekstenziju .jsx. u direktoriju Indesigen - Presets - Scripts naci ces java skripte i ubaci je unutra. Otvori dokument i pod Window - Automation klikni na Scripts. nadji je i klikni 2 puta i ....veselje




//ExportAllText.jsx
//An InDesign CS3 JavaScript
//
//Exports all of the text in the active document as a single
//text file. To do this, the script will create a new document,
//combine the stories in the new document using export/import,
//and then export the text from the new document.
if(app.documents.length != 0){
if(app.documents.item(0).stories.length != 0){
myGetFileName(app.documents.item(0).name);
}
}
function myGetFileName(myDocumentName){
var myFilePath = File.saveDialog("Save Exported File As:");
if(myFilePath != null){
myDisplayDialog(myDocumentName, myFilePath);
}
}
function myDisplayDialog(myDocumentName, myFilePath){
//Need to get export format, story separator.
var myExportFormats = ["Text Only", "Tagged Text", "RTF"];
var myDialog = app.dialogs.add({name:"ExportAllStories"});
with(myDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
var myExportFormatDropdown = dropdowns.add({stringList:myExportFormats, selectedIndex:0});
}
}
with(dialogRows.add()){
var myAddSeparatorCheckbox = checkboxControls.add({staticLabel:"Add separator line", checkedState:true});
}
}
var myResult = myDialog.show();
if(myResult == true){
var myExportFormat = myExportFormats[myExportFormatDropdown.selectedIndex];
var myAddSeparator = myAddSeparatorCheckbox.checkedState;
myDialog.destroy();
myExportAllText(myDocumentName, myFilePath, myExportFormat, myAddSeparator);
}
else{
myDialog.destroy();
}
}
function myExportAllText(myDocumentName, myFilePath, myExportFormat, myAddSeparator){
var myStory;
var myTempFolder = Folder.temp;
var myTempFile = File(myTempFolder + "/tempTextFile.txt");
var myNewDocument = app.documents.add();
var myDocument = app.documents.item(myDocumentName);
var myTextFrame = myNewDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myNewDocument, myNewDocument.pages.item(0))});
var myNewStory = myTextFrame.parentStory;
for(myCounter = 0; myCounter < myDocument.stories.length; myCounter++){
myStory = myDocument.stories.item(myCounter);
//Export the story as tagged text.
myStory.exportFile(ExportFormat.taggedText, myTempFile);
//Import (place) the file at the end of the temporary story.
myNewStory.insertionPoints.item(-1).place(myTempFile);
//If the imported text did not end with a return, enter a return
//to keep the stories from running together.
if(myCounter != myDocument.stories.length -1){
if(myNewStory.characters.item(-1).contents != "\r"){
myNewStory.insertionPoints.item(-1).contents = "\r";
}
if(myAddSeparator == true){
myNewStory.insertionPoints.item(-1).contents = "----------------------------------------\r";
}
}
}
switch(myExportFormat){
case "Text Only":
myFormat = ExportFormat.textType;
myExtension = ".txt"
break;
case "RTF":
myFormat = ExportFormat.RTF;
myExtension = ".rtf"
break;
case "Tagged Text":
myFormat = ExportFormat.taggedText;
myExtension = ".txt"
break;
}
myNewStory.exportFile(myFormat, File(myFilePath));
myNewDocument.close(SaveOptions.no);
myTempFile.remove();
}
function myGetBounds(myDocument, myPage){
var myPageWidth = myDocument.documentPreferences.pageWidth;
var myPageHeight = myDocument.documentPreferences.pageHeight
if(myPage.side == PageSideOptions.leftHand){
var myX2 = myPage.marginPreferences.left;
var myX1 = myPage.marginPreferences.right;
}
else{
var myX1 = myPage.marginPreferences.left;
var myX2 = myPage.marginPreferences.right;
}
var myY1 = myPage.marginPreferences.top;
var myX2 = myPageWidth - myX2;
var myY2 = myPageHeight - myPage.marginPreferences.bottom;
return [myY1, myX1, myY2, myX2];
}
Back to top
View user's profile Send private message
jeluska



Joined: 01 Feb 2006
Posts: 25

PostPosted: 23.05.2007 14:08    Post subject: Add user to your forum ignore list Reply with quote

Hvala ljubitelju indizajna Wink

Probat ću na tvoj način, pa kad padne rezultat javim.

Mada, nadala sam se da u indesignu postoji neka skrivena, jednostavna kvaka, da se to napravi.
Back to top
View user's profile Send private message
indizajlover



Joined: 16 Feb 2007
Posts: 11
Location: Zagreb

PostPosted: 24.05.2007 11:14    Post subject: Add user to your forum ignore list Reply with quote

ovo je prilicno jednostavno. kad ubacis skriptu kliknes na nju 2 puta i to je to. vidjet ces. ako imas pitanja oko ubacivanja skripte pitaj
Back to top
View user's profile Send private message
jeluska



Joined: 01 Feb 2006
Posts: 25

PostPosted: 31.05.2007 11:30    Post subject: Add user to your forum ignore list Reply with quote

Hvala! Napravila, sve prošlo OK.

Dobro, morala sam ponoviti jer sam ostavila na radnoj površini puno textića koje mi je također uračunao, sreća da sam shvatila na vrijeme!

Nadam se da će u novoj verziji to biti rješeno jednim (ajde dobro 2) klikom miša.

Cool
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> DTP i print dizajn All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group