Quantcast
Channel: Adobe Community : Unanswered Discussions - Adobe FrameMaker
Viewing all 5254 articles
Browse latest View live

How to handle level differences between individual and multi-volume indexes?

0
0

Using Framemaker 13, I have an index as a part of each book and a master index for a meta-book that contains all of my files. The indexes are all working properly. The one thing I can't figure out is if there is a way to have an index entry that is at one level in an individual book, appear at a different level in master index without adding unneeded levels (see Book B below) in the individual books.

 

Here's an example (with my apologies to vegetarians and vegans):

  • Book A index:

dairy cattle

Guernsey n

Holstein n

Jersey n

meat cattle

Angus n

Braford n

Texon n

 

  • Book B index

breeding n

feeding n

milking n

 

  • Master index (desired result):

dairy cattle

breeding B-n

feeding B-n

Guernsey A-n

Holstein A-n

Jersey A-n

milking B-n


Framemaker 2017: Some questions belonging to the Preference settings

0
0

In Framemaker 2017, I don't understand some preference settings:

 

  1. Preferences > Global:General > Cross-Platform File Naming
    What does this mean? What is it good for?
  2. Preferences > Global:General > Cursor Movement
    What does this mean? How can I see it in action?
  3. Preferences > Global:Interface > Auto-Collapse Hidden Pods
    What does this mean? How can I see it in action?
  4. Preferences > Global:Interface > Hide Pods on Close
    What does this mean? How can I see it in action?
  5. Preferences > Global:Interface > Open Documents on Drag Drop
    What does this mean? In my experience, Drag and Drop always opens the document.
  6. Preferences > Global:Alerts > Dictionary provider mismatch
    What does this mean? What is a dictionary provider?
  7. Preferences > Global:Alerts > File unsupported in mode
    Mode? What mode?
  8. Preferences > Global:Alerts > File unsupported in view
    View? What view?
  9. Preferences > Global:Pods
    Why is it called "Pods"? It's not about Pods, it's about Markers.
    And it doesn't work correctly. The Markers Pod is always showing "Element-Tag: <Not structured>" - even in the unstructured FM. No way for me to show paragraph styles and associated texts in the Markers Pod?
  10. Preferences > Global:Launch > Load Adobe Fonts on startup
    Adobe Fonts? What are Adobe Fonts? Who needs it?
  11. Preferences > Global:Launch > Delay load clients
    What is a client? And why should the load be delayed?
  12. Preferences > Global:Launch > Delay load language providers
    What are language providers?  And why should the load be delayed?
  13. Preferences > Global:Launch > Don't load Startup Scripts
    What are Startup Scripts? And why shouldn't they be loaded?
  14. Preferences > Simplified XML
    Matt: "This feature is available only in structured Framemaker".
    No, it is available in unstructured Framemaker, too. Shouldn't it?
  15. Preferences > Simplified XML > Show alert when typing at invalid position
    Auf Deutsch steht dort: "Warnmeldung beim Tippen an ungültigem Speicherort anzeigen".
    Es sollte wohl heißen: "Warnmeldung beim Tippen an ungültiger Position anzeigen".
  16. Preferences > Simplified XML > Show alert when deleting objects not available in the Quick Element toolbar
    Auf Deutsch steht dort: "Warnen, wenn Löschen von Objekten in Symbolleiste "Schnellelemente" nicht verfügbar ist.".
    Es sollte wohl heißen: "Warnmeldung beim Löschen von Objekten, die in Symbolleiste "Schnellelemente" nicht verfügbar sind.".
    By the way:
    Wo finde ich diese Symbolleiste "Schnellelemente"?
    Ist das die Ansicht > Symbolleisten > "Symbolleiste für schnelles Einfügen von Elementen"?
    Falls ja, warum sind das zwei verschiedene Begriffe?
    Und warum wird nach dem Klick auf Ansicht > Symbolleisten > "Symbolleiste für schnelles Einfügen von Elementen" nur das Hilfe-Icon eingeblendet?

 

Fragen über Fragen.

 

Perhaps you can give me a helping hand. Many thanks in advance.

Running a Publish script at startup

0
0

I have a script that reads a simple XML file, which has to be in the same folder as the script and with the same base name. For example, the script is called PublishOutput.jsx and the XML file is called PublishOutput.xml. The purpose of the script is to output Responsive HTML from a particular book. Here is the XML file that determines the script's parameters:

 

<?xml version="1.0" encoding="UTF-8"?><settings>    <input>C:\data\scripts\SAS\20180212_InsertMarkers\BA2.book</input>    <sts>C:\Program Files (x86)\Adobe\AdobeFrameMaker2015\fminit\Publisher\Default.sts</sts>    <outputFolder>C:\DATA\Scripts\SAS\20180212_InsertMarkers\Output</outputFolder>    <type>Responsive HTML5</type></settings>

 

The script works fine if it and the settings file don't reside in one of the startup folders. But, what I want to do is run this from the startup folder so it runs automatically when I launch FrameMaker. But here it doesn't work. When I launch FrameMaker, the script opens the book, but then when the Publish command is invoked, it launches another instance of FrameMaker and the whole process is short-circuited. Any ideas would be appreciated. If you want to test it, you will have to edit the values in the xml file to reflect paths on your computer. Here is the script:

 

#target framemaker

main ();

function main () {
        // Get the settings from the xml file.    var settings = getSettings ();    if (settings.errorMsgs.length === 0) {        // Check the settings for missing elements and invalid paths.        settings = checkSettings (settings.xml);        if (settings.errorMsgs.length === 0) {            settings = publishOutput (settings);            writeLog (settings.errorMsgs);        }        else {            writeLog (settings.errorMsgs);        }    }    else {        writeLog (settings.errorMsgs);        return;    }
}

function checkSettings (settingsXml) {
        var settings = {errorMsgs: []}, value;        value = String (settingsXml.input);    if (value !== "") {        if (File (value).exists === true) {            settings.input = value;        }        else {            settings.errorMsgs.push ("Input file does not exist: " + value);       }    }    else {        settings.errorMsgs.push ("input element is missing or empty in the settings file.");    }    value = String (settingsXml.sts);    if (value !== "") {        if (File (value).exists === true) {            settings.sts = value;        }        else {            settings.errorMsgs.push ("Publish settings file does not exist: " + value);       }    }    else {        settings.errorMsgs.push ("sts element is missing or empty in the settings file.");    }    value = String (settingsXml.outputFolder);    if (value !== "") {        if (Folder (value).exists === true) {            settings.folder = value;        }        else {            settings.errorMsgs.push ("Output folder does not exist: " + value);       }    }    else {        settings.errorMsgs.push ("outputFolder element is missing or empty in the settings file.");    }    value = String (settingsXml.type);    if (value !== "") {        settings.type = value;    }    else {        settings.errorMsgs.push ("type element is missing or empty in the settings file.");    }    return settings;
}

function publishOutput (settings) {
        var book;        book = getDocOrBook (settings.input, "Book");    if ((book) && (book.ObjectValid () === 1)) {        // Send the parameters to the Publish client.        setSts (settings.sts);          setOutputFolder (settings.folder);          callPublisher (settings.type);          if (book.openedByScript === true) {            book.Close (true);        }    }    else {        settings.errorMsgs.push ("The book could not be opened: " + settings.input);     }        return settings;
}

function setSts (sts) {            var cmd = "SetMCPSetting " + sts;      return CallClient ("FMPublisher", cmd);  
}    
function setOutputFolder (folder) {            var cmd = "SetOutputLocation " + folder;      return CallClient ("FMPublisher", cmd);  
}       
function callPublisher (type) {            var cmd = "MCPPublish " + type;      return CallClient ("FMPublisher", cmd);  
}

function writeLog (msgs) {
        var log;        // Make a File object for the log file.    log = new File ($.fileName).fsName.replace (/\.[^\.]+$/, ".log");    log = File (log);    log.open ("w");    // Write the messages to the log.    log.write (msgs.join ("\r"));        // Close the log file.    log.close ();
}

function getSettings () {
        var settingsFile, e, settings = {errorMsgs: []};        // Make a File object for the settings XML file.    settingsFile = new File ($.fileName).fsName.replace (/\.[^\.]+$/, ".xml");    settingsFile = File (settingsFile);    if (settingsFile.exists === false) {        settings.errorMsgs.push ("The settings file does not exist:");        settings.errorMsgs.push (settingsFile.fsName);        return settings;    }    // Open and read the settings file.    settingsFile.open ("r");    try {        settings.xml = new XML (settingsFile.read ());    }    catch (e) {        settings.errorMsgs.push ("There was an error reading the settings file:");        settings.errorMsgs.push (settingsFile.fsName);        settings.errorMsgs.push (e);    }    // Close the settings file.    settingsFile.close ();        // Return the settings object.    return settings;
}

function getDocOrBook (filename, type) {
        var docOrBook;        // See if the document or book is already open.    docOrBook = docOrBookIsOpen (filename, type);    if (docOrBook) {        return docOrBook;    } else {        // The document or book is not already open, so open it.        return openDocOrBook (filename);    }
}

function docOrBookIsOpen (filename, type) {
        var file, docOrBook;        // Make a File object from the file name.    file = File (filename);    // Uppercase the filename for easy comparison.    filename = file.fullName.toUpperCase ();    if (type === "Doc") {        // Loop through the open documents in the session.        docOrBook = app.FirstOpenDoc;        while (docOrBook.ObjectValid ()) {            // Compare the document’s name with the one we are looking for.            if (File (docOrBook.Name).fullName.toUpperCase () === filename) {                // The document we are looking for is open.                docOrBook.openedByScript = false;                return docOrBook;            }            docOrBook = docOrBook.NextOpenDocInSession;        }    }   else { // type === "Book"        // Loop through the open books in the session.        docOrBook = app.FirstOpenBook;        while (docOrBook.ObjectValid ()) {            // Compare the book's name with the one we are looking for.            if (File (docOrBook.Name).fullName.toUpperCase () === filename) {                // The book we are looking for is open.                docOrBook.openedByScript = false;                return docOrBook;            }            docOrBook = docOrBook.NextOpenBookInSession;        }    }   
}

function openDocOrBook (filename) {
        var i = 0, docOrBook, openProps, retParm;    // Get default property list for opening documents.    openProps = GetOpenDefaultParams ();    // Get a property list to return any error messages.    retParm = new PropVals();    // Set specific open property values to open the document.    i=GetPropIndex(openProps,Constants.FS_AlertUserAboutFailure);    openProps[i].propVal.ival=false;    i=GetPropIndex(openProps,Constants.FS_MakeVisible);    openProps[i].propVal.ival=true;    i=GetPropIndex(openProps,Constants.FS_FileIsOldVersion);    openProps[i].propVal.ival=Constants.FV_DoOK;    i=GetPropIndex(openProps,Constants.FS_FileIsInUse);    openProps[i].propVal.ival=Constants.FV_ResetLockAndContinue;    i=GetPropIndex(openProps,Constants.FS_FontChangedMetric);    openProps[i].propVal.ival=Constants.FV_DoOK;    i=GetPropIndex(openProps,Constants.FS_FontNotFoundInCatalog);    openProps[i].propVal.ival=Constants.FV_DoOK;    i=GetPropIndex(openProps,Constants.FS_FontNotFoundInDoc);    openProps[i].propVal.ival=Constants.FV_DoOK;    i=GetPropIndex(openProps,Constants.FS_RefFileNotFound);    openProps[i].propVal.ival=Constants.FV_AllowAllRefFilesUnFindable;    // Attempt to open the document or book    docOrBook = Open (filename,openProps,retParm);    if (docOrBook.ObjectValid () === 1) {        docOrBook.openedByScript = true;        return docOrBook; // Return the document or book object.    }    else {        // If the document can't be open, print the errors to the Console.        PrintOpenStatus (retParm);    }
}

How to view embedded Script file (.sh) in PDF

0
0

Hello Team,

 

My requirement was:

  • embed a shell script in the guide. I have imported the shell script using File >Import >Objects.
    • In the Object dialog, i have selected the Packages option and select the Display as icon check box.

 

Encountering error:

In the FM file, the icon is there and the script works well when i click it, but when i publish PDF, nothing appears.

 

Please help!

 

This is very urgent. I have to deliver deliverables.

 

Regards,

Sarabjeet

Removing Character Tags w/ Script

0
0

My department has recently finished converting to Frame 2017, updating tags/formats/layouts, and many other activities to bring some old Frame files into the modern world. We're at the point where we can realistically begin automating and simplifying various processes, which is leading us to the land of extendscript.

 

I'd like to script the complete removal of individual character tags from text. Adobe has provided the very useful SuperFindChange script, which can swap one tag for another. I'm wondering if there is some easy way for a complete novice, like myself, to modify the script to simply remove the tag rather than swap it. I can manually copy a character format, use Find to locate the tag I want to strip, and then replace the tag with the copied format. I can also do the classic, Default Font and then reapply the paragraph tag (for paragraphs that are completely character tagged). It seems like I should be able to script it without too much fuss, but I'm probably oversimplifying.

 

Maybe someone has already done this or there is something out there on the interwebz, but my Google-fu is failing me. Can someone point me in the right direction or suggest a starting point? Maybe even take pity me on me and give me a snippet of code I can plug into the SuperFindChange script?

Last table row hidden

0
0

When adding text in the cell directly above, the last row in my table disappears, and I'm not sure how to get it to appear.  The content is there, it just gets pushed below...

 

Before:

 

 

After:

 

 

Where does it go?

FrameMaker book conversion

0
0

Greetings. I am trying to understand the process of Adobe FrameMaker 12 with regards to a Frame Book. Specifically, the process for converting or saving a Frame Book into another format like XML. When I select to save my book as XML, I have observed in the bottom left-corner of the GUI, each file (component) being opened and saved. When I look in the directory of the referenced files, I see the book file as an XML but I also see files with an *.e<numerical value> extension. For example, I see Test.fm before converting the book. After, I see Test.e09. When I open up the file, it looks like some form of XML.

 

While saving the book, does FM create these files for each component and then use them as a reference to finally convert the book into an XML file?

Loss of French accents in MIF

0
0

I have been using FrameMaker from V7.0 through to the current TCS version V2017, we send MIF files to our translator and until now this has caused no concerns.  We have just received our latest set of files back from the translator (first time sent to him in FM2017 MIF) and when we opened them, all the characters with accents are missing.

     To test this, I sent the same files again saved as V7.0 MIF and V2017 MIF and opened them after translation. All text, including the accents, was present in the V7.0 versions but the FM2017 MIF was missing all the text with accents.  This really needs to be resolved, I do not wish to convert all the files to FrameMaker V7.0 MIF with the possible loss of the 2017 functionality. 

 

Anyone have or know of any fixes?


responsive HTML5 and does not display content of concepts

0
0

Hi there,

in a complex structure that produces correct PDF-output, the HTML5 help however does not reference links to concepts in the structure.

In the navigation the name concept file is displayed, however the reference link to display the content when clicking on the name is broken and the content is not shown.

Inspecting the navigation element that is not displayed it shows its for some reason just creating an emptyp <a href="#"> without the path.

For the missing ones, I do not know.

Other concepts are just not even displayed in the navigation, even though the html files have been generated.

Can you please help?

I have tried all sorts of structuring and even creating topics instead of concepts.

Nothing worked.

Cheers.

PS: I have the latest update of FM2017 installed.

fit page in window in framemaker.i have used var zoom= oDoc.Constants.FV_FIT_WINDOW_TO_PAGE; in javascript code.The result is -3.but nothing change in framemaker document.how to i change the zoom level in framemaker using extendscript?

0
0

fit page in window in framemaker.i have used var zoom= oDoc.Constants.FV_FIT_WINDOW_TO_PAGE; in javascript code.The result is -3.but nothing change in framemaker document.how to i change the zoom level in framemaker using extendscript?

Batch editing and saving Fm files.

0
0

Hi, I am using FrameMaker v12. I have about 40 odd documents related to a single project which I need to update just for three things: Version Number, Date, and Copyright Year. The vesion and date are treated as variables, the copyright year isn't. After editing these standard values across all 40 documents, I need to save all of them as PDFs. Is there any way I can automate this process? I am aware of extendscript and believe this can very well be achieved using that tool.

Conditional Tags - are there any defaulted in when creating a new document?

0
0

Hello all,

 

I just created a new document in my book and I see this:

 

 

Where does this tag come from?  Is it some sort of default tag that is added for all new docs - or a carry over from my book (I thought I deleted it from all existing books).

 

 

Thanks in advance

Conversion table adds Id to elements

0
0

I have a basic conversion table that I use when applying structure based on styles to a saved from Word document.

The conversion process adds "Id" attribute to some repeated elements but not the others. For example if I have multiple occurrences of title it would have Id's generated. The element para on the other hand does away without those Id's added.

Neither of my documents - conversion or exported from Word file have EDDs attached and no information contained in reference pages.

How can I suppress the Id attribute generation during applying structure with a conversion table?

Thanks in advance.

Open fm document.

0
0

how to open an existing framemaker document using extendscript?

Is there a documentation on how to setup or even change an existing template to a HTML5 template?

0
0

Wo kann ich Information zu diesem Thema finden?

Where may I find information about this subject?


What is the best way to accept all edits in a book with many files and still retain the edits for archival.

0
0

I'm using FrameMaker 12.

I have a book with 17 files (one is a generated TOC). Every file has tracked edits and now I need to accept all the edits (redlines) in all the files to make a "clean" book. I also need to retain the redlined copy in addition to having a clean copy of the book. What is the best, most efficient way to do this? Do I Save as or copy the book to another folder and then accept the edits in all the files separately? Do I need to delete all the files from the book first and then add them back?

Remove space in fm doc.

0
0

How to remove unwanted double spaces and paragraph marks in framemaker document using extendscript ?

Convert fm to pdf

0
0

How to convert framemaker doc into pdf using extendcript.?

Convert fm to pdf

0
0

How to convert framemaker doc into pdf using extendcript.?

How can I get a better quality pdf using Acrobat DC Pro?

0
0

I'm creating the .pdf from Framemaker 12, and it has nice quality photos (.jpg), with lots of detail. I've tried High Quality and Press Quality Settings but the pdfs do not show good enough quality for the photos.

Viewing all 5254 articles
Browse latest View live




Latest Images