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

How to find a variable just after a marker?

$
0
0

Dear experts,

My project steps further - but as soon as I have to deal with FM-objects I still struggle. The script should do this:

  • In the document (http://www.daube.ch/zz_tests/Markers-and-variables.fm) there are markers of type #calc (which are all found and stored into an array.
  • Some of them are immediately followed by a variable (called temporary variable, because the names are built by date/time).
  • Before I insert the new variable, the old one should be found and removed.
  • The problem is that I do not find the old variable and hence can not remove it, before the new one is inserted. The inserting is OK, but it occurs independently of existing variables.
  • Line 49 always evaluates to false, even if there is a variable present.

How can I find (at first hand) any variable (Later I will need to check whether it is really a temprary variable) ?

#target framemaker
// Required doc: Markers-and-variables.fm:  aVariables = ["#DOCname", "#TEST", "2016-09-27T10:28:46.060Z"];  goCurrentDoc =  app.ActiveDoc;  giNCalcMarkers = CollectMarkers  (gaoCalcMarkers, "#calc");

for (j = 0; j < giNCalcMarkers; j++) {  goCurrentMarker = gaoCalcMarkers[j];            // find a marker  oFound = FindVariable (goCurrentDoc, goCurrentMarker);  if (oFound[0]) {                                // true, variable found    oFound[1].Delete();                           // remove temp. variable from document  }  oTextLoc = goCurrentMarker.TextLoc;  oTextLoc.offset = oTextLoc.offset + 1;          // insert temp variable behind marker  InsertVariable (goCurrentDoc, oTextLoc, "#TEST", "\+1.275×10<super>\+9" );
}
// ================= Routines to be tested ========================================================
function CollectMarkers (aMarkers, sMarkerName) { //=== Collect marker-objects, store in array ====
// In        aMarkers:    global array of markers to be filled
//           sMarkerName: type of marker to be collected
// Out       Return number of markers collected
var  oMarker, MarkerTI, nMarkers;  tsSave = goCurrentDoc.TextSelection;            // save current cursor location  oMarker = goCurrentDoc.FirstMarkerInDoc;  while (oMarker.ObjectValid()) {    MarkerTI = oMarker.MarkerTypeId;    if (MarkerTI.Name == sMarkerName) {      aMarkers.push(oMarker);                     // store the marker objects    }    oMarker = oMarker.NextMarkerInDoc;  }  goCurrentDoc.TextSelection = tsSave;            // Restore cursor location  nMarkers = aMarkers.length;  return nMarkers;                                // number of markers in array
} //--- end CollectMarkers 

function FindVariable (oDoc, oMarker) { //=== Find variable behind marker ========================
// In        oMarker: current marker
// Out       Function returns [true, found variable] or [false, loc behind the marker]
var tLoc1 = oMarker.TextLoc,    tLoc2 = oMarker.TextLoc,                      // should be just behind the marker    j, myTextRange, findParams, fRange, oTextItem, aVarsRange, nVars, thisVar;   tLoc1.offset = tLoc1.offset + 1;  tLoc2.offset = tLoc2.offset + 2;  myTextRange  = new TextRange(tLoc1,tLoc2);  oDoc.TextSelection = myTextRange;               // Does this hold a variable ?  findParams= GetFindParamsVariable ("");         // search for any variable  fRange = goCurrentDoc.Find  (tLoc1, findParams);// is a textrange  if (fRange.beg.obj.ObjectValid()) {    aVarsRange = goCurrentDoc.GetTextForRange (fRange, Constants.FTI_VarBegin);    nVars = aVarsRange.length;    for (j = 0; j < nVars; j++) {                   // loop should not be necessary      oTextItem = aVarsRange[j];                    // superfluous ?      thisVar = oTextItem.obj;                      // should contain only one variable      return [true, thisVar];    }  } else {    return [false, tLoc1];  }
} //--- end FindVariable 

function GetFindParamsVariable (sVarName) { //=== Set up parameters to Find variable ==============
// In        sVarName: variable type to be found
// Out       Returns parameters for the find function: no wrapping around ?
var findParams;  findParams = AllocatePropVals (2);   findParams[0].propIdent.num = Constants.FS_FindWrap ;   findParams[0].propVal.valType = Constants.FT_Integer;   findParams[0].propVal.ival = 0 ; // don't start at the beginning => seems to be 'nowrap'  findParams[1].propIdent.num = Constants.FS_FindNamedVariable;   findParams[1].propVal.valType = Constants.FT_String;   findParams[1].propVal.sval = sVarName;   return findParams; 
} //--- end GetFindParams

function InsertVariable (oDoc, oTextLoc, sVarName, sContent) { //=== Insert variable at location =====
// In        oTextLoc: where to insert the variable
//           sVarName: name of the variable
//           sContent: content of the variable
var oVar;   oVar = oDoc.NewAnchoredFormattedVar (sVarName, oTextLoc);   oVar.Fmt = sContent;
}

Bookmarks are out of sequence in the pdf.

$
0
0

Using FrameMaker 11, when I create a .pdf file, the bookmarks are out of sequence.  Is there a way to confirm the sequence of bookmarks while still in FrameMaker, or is the only way to shuffle them around in Acrobat?

FM drops the outputclass attribute of topic elements (DITA 1.2)

$
0
0

Hi,

when I set a value for the outputclass attribute of topic elements, then FM does not preserve it when the topic is saved as an XML file. Do I need to adjust the r/w rule, what would need to be added?

 

What I want to get is simply

<topic id = "id123" outputclass = "abc">

attributes.png

 

I have already tried adding lines such as

 

 

element "topic" {

attribute "outputclass" is fm attribute "outputclass";

}

 

 

But evidently it is not that simple.

 

Robert

Table not continuing to next page and overlapping itself

$
0
0

I'm working on a table that it several pages long and it so far has not been an issue. I tried to add more rows to the table but instead of continuing on to the next page, it began overlapping itself. It also began adding extra rows in a row already created, so the lines are overlapping what I have written in the column. How do I solve these issues? I already tried setting it up to Autoconnect but it didn't work.

How do I fix line wrapping in the TOC?

$
0
0

Hello all,

 

Notice how the second line is justified all the way to the left.  Can I align this somehow so that is it justified with the previous line?

 

Many thanks

 

Regards,

Ben

 

 

 

Why is FrameMaker 2015 Structured cropping top and bottom of images in PDF?

$
0
0

I opened an existing book file today to update and print a new PDF. When the PDF was done, many of the imported artwork images were cut off at the top and bottom of the image.

 

To check if my copy of FM was corrupted or settings were wrong, I had another person attempt creating the same PDF. His copy also cut the tops and bottoms of the images.

 

These are functioned correctly a couple of months ago. Only a few editing changes were made to the book. I have even attempted creating a PDF of the single chapter file with the same cut-off results.

 

Has anyone run into this or know of a solution?  We obviously can't send these to the customer.

 

This is FM version 13.0.3.495.

 

First image is screen shot of FM file. It appeared like this in the old PDF also (gray square is mine to cover company info). The second image shows the top and bottom cut off in the PDF. This is occurring in several files and books and on other people's computers, not just mine.

 

Thanks.

 

FrameMaker_2015_cutting_image_01c.pngFrameMaker_2015_cutting_image_02c.png

How can I fix file save errors: FM cannot save file, a temporary file has been saved with an odd suffix????

$
0
0

Where does FM saves a temporary file?

What does it mean by "an odd suffix"?

ODDsuffix.PNG

How can I customize the output folder name?

$
0
0

Framemaker 13.

 

The default folder name is <mybookname>-Responsive HTML5.

 

I want to control this.

 

I don't see anything in the settings file.

 

tia.


Trouble with links after converting to HTML5. Please Help!

$
0
0

I am working on a book and I need to be able to link to other pages and in some cases different sections of a document within the book. Every time I convert the book into HTML5 the formatting goes away and the links don't work. I have no idea how to fix this. Please help! Thanks!

Equations

$
0
0

I need equations to look crisp when I output to a Responsive HTML format. My equations look blurry from an initial import of a Word document. Then, I tried using MathFlow Structure Editor to paste in equations from a Word Document I created. How do I fix the resolution of my equations?

1.png

Changing Variables on Title Page (Master)

$
0
0

New to Framemaker and trying to teach myself.  Using FM10.

I am working on designing my master pages.  I started with one of the sample templates and have figured out how to get images on there and alter some of the existing variables (e.g. font size for page numbers).  But I can't figure out how to adjust the "Chapter 1" variable.  I'd like to change it possibly to 'module' or just put a gigantic '1'.  I can't seem to select it, delete it or anything.  What am I missing?

Character palette glitches FM 9?

$
0
0

I can't enter the Latin small n with long right hand leg (U+019E) ŋ in FM 9.The only response is a question mark. Help please? Thanks, Sandy

 

DITA Conference - sessions for newbie

$
0
0

We produce large operation and maintenance manuals. We are reference based. We'd like to move to a CMS. What sessions during the DITA conference are for newbies and what sessions are advanced topics?

Can't save a book as PDF because of phantom unavailable font that's not used or found in find/replace

$
0
0

I keep getting Book errors about unavailable fonts (Simplified Arabic Fixed and Simplified Arabic Fixed Obliqued) in generated files (TOC, IX) even though these character formats have never been used in any of my FM files, are not used in Master pages or Reference pages, not found when searched for, and are affected by the Remember missing font names preference turned on or turned off. I've tried importing formats one-by-one, skipping import for some options, importing and wiping manual overrides. Sometimes the limited import works and sometimes it doesn't.

 

This is FM 12.0.4 on Windows 10. Is this a known issue? Is there a workaround that's reliable?

Does anybody know when is FrameMaker S1000D package getting updated to Version 4.1?

$
0
0

Does anybody know when is FrameMaker S1000D package getting updated to Version 4.1?


Adobe DITA World 2016, Nothing works

$
0
0

Anyone else able to get anything to work at Adobe DITA World 2016? Clicking the links to watch now and I only get a blank white bar across the top of my screen with a blue X on the right side. Tried MS Edge, MS Internet Explorer, Fire Fox and Chrome. Nothing work and no help links anywhere.

Adobe DITA World 2016.PNG

Are there "best practices" for using Conditional Text?

$
0
0

(Using Unstructured FM 11 in Windows 7.)

 

I have 30 years of legacy FM files with conditional text reflecting 30 years of company growth. When there were a few differences between models, this was fine. But as things grew, more and more conditions grew. Each file is looking more like a file folder, instead of a stand-alone file; some files have no unconditional text in them other than the title. When I turn on "show all" and "show conditions indicator," I get a rainbow. There are approximately 40 various conditions in our main system now, such that updating them is a nightmare.

 

I'm trying to get a good idea on some "best practices," so that any newly created manuals don't fall into this pattern. -- And perhaps I can figure a way to dismantle the still-live legacy documents.

 

And, no, we are no where close to being able to move to structures XML. I looked into that already and can't justify the cost. It's just me and one 25-year (seniority, not age) colleague who doesn't want anything to change, since he grew up with this system.

 

Indyrose

HTML Help Output Para still right-aligned despite css

$
0
0

Hi, all.

 

My FM template for PDF output has a text column and side heads. My H1, H2, and H3 are right-aligned within the side head, so they look something like this:

 

                      HERE IS    Here is the text in the text column. blah blah b

THE GLORIOUS SIDE    blah blah blah blah blah blah blah blah blah

                    HEADING    blah blah blah blahblah blah blah blahblah

                                        blah blah blah blahblah blah blah blahblahblah

                                        blah blah blahblah blah blah blahblah

 

Like that. Let's say that the side heading has the H1 tag. It is right-aligned within the side heading.

 

I have attached a .css that has these attributes for H1:

 

p.H1 {

margin-left: 0.000pt;

margin-right: 0.000pt;

text-align: left;

text-indent: 0.000pt;

margin-top: 12.000pt;

margin-bottom: 4.000pt;

font-family: Arial;

font-style: normal;

font-weight: bold;

font-size: 18.0pt;

background-color: none;

letter-spacing: 0.00em;

color: #005ba8;

text-decoration: none;

 

It sure looks to me as if the H1 should be left-aligned in the .chm file. But it is not. It is right-aligned, as are the H2 and H3 styles.

 

What is overriding the css? Thanks very much.

Mapping between functional FrameMaker font name/style and physical font file: Helvetica Neue

$
0
0

This is making me crazy, and I know one of you super-experienced users will know the answer to my question.

 

My company just purchased the Helvetica Neue and Helvetica Neue LT Pro font families. InDesign, Photoshop, and Illustrator (on Windows) all show the complete list of fonts.

In InDesign, for Font Family you choose Helvetica Neue LT Pro, and in Font Style, there is one called 75 Bold.

 

So far so good.

 

In FrameMaker (and Word, and other Windows programs), there is no Helvetica Neue LT Pro font with the number 75. There is Helvetica Neue LT Pro 55 Roman, and Helvetica Neue LT Pro 65 Med, but no 75 or 85 (both of which I need).

 

Now - I know that the FM user manual says that if you select a font in Frame (maybe it's 55 Roman) and apply bold or italic, it will pick the correct system/physical font to display/print. The problem is - I don't have any idea what that mapping is. Is 65 Med with bold applied actually 75??? I have no idea. (I'm recreating an InDesign template in FrameMaker, and it has to be exactly the same.)

 

I can't find any kind of mapping on the internet that explains how to get from the font list that Windows displays in most applications to the physical list of fonts that are installed on the computer.

 

Has anyone out there run into this issue?

 

I have FrameMaker 2015 on Windows 10.

Frame 12 Tables

$
0
0

I have a 3 column document. A large table that wraps into each column continuous flow. Tops of the table line up across columns. The bottom of the table lines do not they are different heights. Is there a setting to align the top and bottom baselines of the table?

 

Frame Table Example.PNG

Viewing all 5254 articles
Browse latest View live




Latest Images