Paragraph lost format

Hello

I am working on a client FAPI to translate the text in the Documents of the frame. One of the first things we do is to store the setting fit for each paragraph,

and then write it réécrirait the translated document.

However, in a single document, I'm trying, when my client is trying to get a handle

for a particular paragraph format, it gets a null a handle in place, and that formatting is not applied. Instead, the formatting of the previous paragraph (namely a hateful green font color!) is in force.

In order to define the translated text in the document, we remove content that was originally there. Who would have a role to play?

I noticed that before and after the translation, the paragraph in question format does not appear in the catalog of paragraph format.

When I click on the paragraph that has the formatting applied to him, he has an asterisk before the name. Is how important it?

Any responses would be appreciated

Thank you

Eric

Eric,

I think that the answer to your question is Yes, there may be "formats" in the document that are not in the catalog. However, they are not really the formats at all, because if they were, they would be in the catalog. From the point of view of the API, all they are is a string assigned to a paragraph property.

With the FDK, use of format can be confusing. If you think that you can simply set the FP_Name property for FO_Pgf object format, but it's really nothing else that a string that is used for reference later, either by yourself (the programmer) or interface (GUI). To apply a format, you must find the object format (FO_PgfFmt), itself, its capture settings, then apply them to the FO_Pgf (I think you already know). It is important to remember, however, that you are not really create any kind of link between the object format and paragraph; on the contrary, you just transfer the settings from one to another. Moreover, the two types of objects have a FP_Name property, so when you transfer the properties of the form to the FMP, this name is transferred as well. This presents the illusion that there is an intrinsic link between the two afterwards, but it was really nothing more than a transfer of ownership of chain.

The problem you are experiencing, it is that FP_Name has been somehow set this property to a value that does not reflect a real size in the catalog. This could have been done with the FDK, of course, but there are a number of ways to do it in the interface as well. One of the simplest ways is to open the paragraph Designer, 'create' a new format, but turn off the option to add it to the catalog. Paragraph will then maintain the assignment of this "format", but it does not really exist. It's just the property of FP_Name among the zillions of other properties related to the paragraph.

Others have suggested that format substitutions may be the cause, but I don't think that it is quite applicable in your case. You should still be able to recover an FO_PgfFmt object by its name, if it existed. Your problem is that the format does not exist. Note that in the interface, both a non-existent format and a paragraph with format substitutions will indicate with an asterisk in the toolbar, adding to possible confusion here.

Solution?  I think you need to clean up your documents, you can do this with the FDK seeking a paragraph with an imaginary of the formats, and then by creating a FO_PgfFmt object with the respective properties. Or, better yet, do it once manually and do with it.

Russ

Tags: Adobe FrameMaker

Similar Questions

  • The export of paragraph attribute format tag

    Hi all

    Using structured FM 11 on Windows 7.

    I need a way to return paragraph format tags. I know it's easy to assign them to import with ESD, but I don't know how to save the export.

    I was hoping that read/write rules can contain something in the sense of:

    attribute "paraFormat" is fm property paragraph format tag;
    

    I think it's probably possible with ExtendScript or a custom API, but I would rather these if possible.

    Thank you!
    Trevor

    Trevor,

    I think you're out of luck with read/write rules. The hypothesis is that logical formatting is the property of ESD and would therefore have no relevance in the XML file. As you claimed it, a client of import/export API could do. An ExtendScript could also do prior to importation, by filling the advance attributes. It's a very simple script, perhaps 20 lines or more.

    My FrameSLT plugin could also fill the attributes advance with a Script Assistant node, but is not free as YOU. www.weststreetconsulting.com.

    Russ

  • Lost formatting content

    Hello (again)
    I am new to Dreamweaver and have created a 5 page site using one of the Dreamweaver templates. I have finally all this work to load on my site, but the pages lose their formatting (color/size/font), the url is http://www.soundmusicpractices.com I put the home page to the top and you can see it is set by default. Somehow, to try to resolve this issue on other pages in Dreamweaver and on my office lost their formatting as well - everything except the home page. so I'll try to restore files formatting and then get them to download with correct formatting. Any help would be much appreciated! Thanks :))

    bigstarpr@EarthLink. wrote:
    > It is up, I took it down to recharge the thinking that was the problem but now both home page and index page are on the rise, but formatting is still bad. Any help is much appreciated-thank you!

    Your page waiting for your stylesheet to be here:
    http://www.soundmusicpractices.com/greattrialimages/mm_health_nutr.CSS

    Is not, that is why its seeks is not correct.

    In your model, you have this line of code:


    Type = "text/css" / >

    I would first move your style sheet in a folder more, or just keep it
    in the root of your site, then update your model so that the link is
    Like this:

    Dooza
    --
    Display guidelines
    http://www.Adobe.com/support/forums/guidelines.html
    How to ask Smart Questions
    http://www.CatB.org/ESR/FAQs/smart-questions.html

  • Can I Auto format the first paragraph on each page of a document of 20 pages?

    So, I have a document that is in fact just a numbered list of 200 entries.

    There are 10 items per page, which makes it a 20 page document.

    Unfortunately, from time to time I give myself an extra entry to add, whose invariaby is in the middle of the document and not at the end.

    What I would do, if I add a new #20 to the document, the old #20 (now #21), pushed to the next page, would then automatically be formatted with the paragraph style to my 'Style'.

    I could not find out how to do this, which means, in the above example, I need to go to 18 pages and remove the 'Style' formatted as in each case after the addition, it is now the second entry on the page. At the same time, I must apply the paragraph 'Style' formatting for each first entry of all subsequent pages. If I only had to do from time to time, it would not be a problem, but this document is regularly updated, it becomes tedious.

    Nested styles does not seem to be an option, because I use the numbering that requires a paragraph break to differentiate each line number and nested styles seem to apply to each paragraph, except if I am doing something wrong here.

    I hope that this is sufficient to go.

    Sébastien

    You say that the formatting is different for each paragraph 20, reagardless of its content, and it is going to be the first paragraph on a page to go?

    As long as never depart you from the cycle 20 paragraph that it's actually pretty easy to do, just 20 paragraph styles, of which 19 are based on the other and differ only in the name of style. You then together "next" style attributes to run through the list of styles, then the following style for #20 is #1 and the sequence starts over. Now just select the entire block of text between the point where you have edited at the end and click right on the name of the TSRI in selecting paragraph style, then in the menu popup, choose apply and following Style.

  • paragraph styles

    without valid reason I later move to really use paragraph styles. but I encountered a small problem. the document that I'm actually has a TON of garbage styles attached to it from the word document (which has an OCR would scan...). But right now, I'm going to have this problem when I try to apply styles for titles and whatnot, but the style is applied to more than what is highlighted, probably only indesign because I'm stressing only part of a "paragraph", and it's all 'paragraph', even if it is actually just part of a title. Is there a way for the UN-paragraphize things? For things before and after should not be the same style? Mac/CS6

    As a trainer, I am obliged to pop and suggest take you back and learn the two functions that are themselves Scrums first, and then you can return to your document and hit the ground running.

    Start with paragraph styles for formatting entire paragraphs:
    Format text with Styles in InDesign paragraph | Adobe InDesign CC tutorials

    Then use character styles to change the text in the paragraphs:

    Format text with in InDesign character Styles | Adobe InDesign CC tutorials

  • How get the text of each paragraph when a textStyleRange is made of texts to multiple paragraphs

    Hello

    Always on my account findText. The result is sometimes as a textStyleRange which contains the texts of multiple paragraphs. What is the best (and easy) way to get the text of each paragraph individually?

    Example: The result of an italic findText with the following extract gives me "saectur quatur? " " Ipsapidunte our" as a unique textStyleRange (correct) but I want to get the text of each paragraph.

    Is there a way to force the findText in the paragraphs and not those of them and if not, how to cut the textStyleRange in 2 texts?

    -----------------------

    Our Ipsapidunte and eumquosame derepre id ulparch iliquae offic tem faccusd aecaborrum, sequi aut doloreperi quaectem eatem faces very quam, con nullaccus repratur molorio enis modi sumquibus nostemquam and volorum facidunti nonseditati re a dolut dolorest ab idipitem saectur quatur?

    Our Ipsapidunte and eumquosame derepre id ulparch iliquae offic tem faccusd aecaborrum, sequi aut doloreperi quaectem eatem faces very quam, con nullaccus nostemquam repratur molorio enis modi sumquibus and re volorum facidunti nonseditati a saectur dolut dolorest ab idipitem quatur?

    There are two solutions:

    (1) you could be formatted every paragraph with formatting marks that you know doesn't exist anywhere else. In this way, each textStyleRange is guaranteed to end at the end of the paragraph.

    (2) you can access the entire first paragraph: myTextStyleRange.paragraphs [0]. I have not tested, but no doubt it works. You could also do a loop: paraLength = myTextStyleRange.paragraphs.length; for (i = 0; i< paralength;="" i++);="" mypara="myTextStyleRange.paragraphs[i];}">

  • application of paragraph styles

    Hi all

    play with a very simple script:

    mySel = app.selection[0];
    
    mySel.paragraphs[0].insertionPoints[0].paragraphs[0].appliedParagraphStyle = "myPStyle1";
    mySel.paragraphs[0].insertionPoints[-1].paragraphs[0].appliedParagraphStyle = "myPStyle2";
    mySel.paragraphs[0].insertionPoints[-2].paragraphs[0].appliedParagraphStyle = "myPStyle3";
    

    script applies myPStyle1 to paragraph style to a paragraph with the inserted text cursor, then in the next paragraph and then myPStyle2... I'm stuck here.

    Line 3 applies myPStyle3 to the first paragraph again, instead of expected next (3rd)...

    I thought that I can develop the sequence I need, but I can't?

    According to me, I have something very basic catch here...

    a tip?

    or another source, where are answered these questions silly?

    Thank you!

    This is not the right approach. It does that by accident.

    mysel.paragraphs [0] .insertionPoints are all insertion points in the current paragraph. Is there are 100 characters, then there are 101 insertPoints (on each side of each character). PointInsertion [0] is the left of the first character, [1] is to the right of the first character, [2] to the right of the 2nd character, etc. until [101] to the right of the last character.

    insertionPoints [-1] refers to the last PointInsertion, [101], which is actually after the paragraph itself, formats the following paragraph.

    insertionPoints-[2] refers to the 2nd to the last PointInsertion, [100], which is the left of the last character.

    I don't know what is the best way to deal with this. Maybe:

    mySel=app.selection[0];
    p = mySel.paragraphs[0]; p.appliedParagraphStyle="myPstyle1";
    p = p.insertionPoints[-1].paragraphs[0]; p.appliedParagraphStyle="myPstyle2";
    p = p.insertionPoints[-1].paragraphs[0]; p.appliedParagraphStyle="myPstyle3";
    ...
    

    I guess that the exact method depends on what you're trying to do.

  • Problems with paragraph styles in CS4?

    Let me start by saying that I recently switched from Quark, so I'm really a newbie in InDesign. I was watching videos as much as possible, but can't seem to find the answers to questions like that.

    I've been taking the old brochures that have been created in ID3 and sticky type and pictures in a new format that has been created in ID4. The new format has already created with the update fonts and other formatting paragraph styles as well.

    When I circulate in all the new type and click the style sheet, it does not change the correct font type and size, but there is in the paragraph of formats that are not updated. For example: the whole paragraph (according to the applied style) should be the book of Gotham, but even after you apply the style to it, part of it remains "BOLD" Gotham. He has been "BOLD" in the previous version of the document, but must be regular in this one.

    Why, when I apply the style, it does not the whole paragraph?

    I can think of a few possibilities, but the I would like to write specific instructions vary from one case to another. The find/replace menu is invaluable here. I could find everything he scored with a given character style and replace [none], replace by other layout specified shape or replace with a different character style that I could then remove. Note that when you delete a character style, you can choose to replace it with a different style of character or to preserve formatting after the character style has disappeared.

  • Object to a paragraph Style anchor? Objects behind text

    Hello

    I am trying to anchor a graphic object to a paragraph style that is a numbered paragraph.  I've set up my number and I want a single chart to be anchored to the number so it appears behind the number each time that I chose this paragraph style.

    Is this possible to do?

    Or maybe I should ask how others put graphics in the background of the bullets or numbers and have their anchor point for the text...

    Of course, I could use some help with this; It seems it should be easy...

    Dave.

    I found it fascinating, so I thought I'd see what I could come up with.

    I did a numbered paragraph style, for starters. Then I did a Cyan filled ellipse, which I anchored in front of the first word in a paragraph and changed the positioning custom and made sure it was compared to the anchor and off to respect the limits of the image, to allow me to position 'behind' the number. As emmanuel, anchored objects work actually in front of the text, therefore, so far, it isn't.

    I selected the ellipse and changed its blend mode to multiply. It won't change color where it is more white, but it will darken everywhere where it is located on another color, creating a rich black number, for example, if you used the text in black. Looks pretty good now.

    Select the ellipse and create a new object style based on it. It will be by default include the blend mode and the anchored object settings and make sure that the style is applied to the selected ellipse. Now cut the ellipse and stick it on the pastboard in the way so you don't lose it.

    As long as the object exists in the Clipboard you can use for a search/replace operation, so you can do this now or later, just by copying again when appropriate. Find/replace must be a GREP search ^ (.) which means find any character at the beginning of a paragraph, and then replace it by ~ c$ 1, which means replacing the found character and content to the Clipboard format. Be sure to set the discovery of options for the numbered paragraph style formatting.

    Because you gave the object an object style that includes the mode of fusion and positioning and you stuck as a formatting object, these attributes are preserved and the graph will be correctly positioned for each paragraph.

    Peter

  • find style paragraphs and it should be placed as marginal notes...

    Hi everone,

    We have the script to find paragraphs by his style and cut these paragraphs in the main column of the page and paste it into the new block of text and it will be placed as marginal notes. After putting the first marginal note, the script displays error as "Reference could not be found." Also, we have this marginal notes as anchor text. Find the script below and suggest me,

    //===============

    myDocument var = app.activeDocument;

    myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

    myDocument.zeroPoint = new Array (0, 0);

    MyPage = app.layoutWindows var [0].activePage.side;

    var mypage2 = app.layoutWindows [0].activePage.name;

    orientation of the var;

    If (mypage is 1919382632)

    direction = "Right";

    on the other

    direction = "Left";

    try {}

    mySelection var = null;

    mySelection var = myDocument.selection [0];

    If (mySelection == null) {}

    alert ("select any block of text, then run it);

    exit (0) ;}

    myDocument.textFramePreferences.textColumnCount = 1;

    for (i = 0; i < mySelection.paragraphs.length; i ++)

    {

    if (mySelection.paragraphs [i].appliedParagraphStyle.name == "M-Term")

          {

                var a = i + 1;

    mySelection.paragraphs [i] .select (SelectionOptions.replaceWith);

    while (mySelection.paragraphs [a].appliedParagraphStyle.name == "M - Def") {}

    mySelection.paragraphs [a] .select (SelectionOptions.addTo);

                            a++;}

                app.cut ();

    if (direction == "Left")

    var myframe = myDocument.pages.item (mypage2).textFrames.add ({visibleBounds: ["120 pt", "pt 42", "pt 190", "pt 156"], table of contents: "S"});

                else

    myframe var = myDocument.pages.item (mypage2).textFrames.add ({visibleBounds: ["350 pt", "457 pt", "438 pt", "571 pt"], table of contents: "S"});

    myframe.paragraphs [0] .select (SelectionOptions.replaceWith);

    app.paste ();

    myframe.fit (FitOptions.frameToContent);

          }

          }

    {catch (e) {alert (e) ;}

    //=====================

    Can someone help me with this.

    Thanks in advance...

    Indana

    > all placed paragraphs are by default for the standard paragraph style and these paragraphs are losing its style as a paragraph style formats, but also the style of character. Style formats are not preserved as the same.

    This is because when you do

    myText.contents = myFind [i] .silence;

    you copy all the contents of text, none of the setting in the form. To get the items found as well as their blowdry, try something like this instead:

    myFind [i] .move (LocationOptions.after, myText.insertionPoints [0]);

    Of course, then you must remove the line myFind [i] .remove (); because there is nothing to move.

    Peter

  • A paragraph style that applies to all other paragraph styles?

    Hello

    How do you add a paragraph style that applies to all other paragraph styles?

    I tried to apply my master styles desired to [standard paragraph] and then from all the other paragraph styles [standard paragraph], with styles that apply indirectly, for example title 1 is based on [standard paragraph] but section 2 is based on heading 1 and so on.

    This does not work as well as I expected.

    Is there anything else I can do?

    Much obliged!

    A rule of thumb is to leave the only standard paragraph. Otherwise you can mess up other styles based on that.

    To set up your new style - which may by default based on the standard paragraph - and formatting you wish. Then base on that other styles.

    k

  • Dell 8 Pro venue and SanDisk OTG DualDrive?

    http://www.SanDisk.com/goto/DualDrive/ has anyone tried one of these? Here in Bangkok, none of the sellers is willing to let me do a test drive...

    To answer my own question, and just in case where someone else might be interested: I've got official word from SanDisk that the coming 8 Pro should work perfectly with their of.up of DualDrives to 64 GB. I will quote the relevant part of their E-mail: "I understand that you would like to know if the Dual Ultra flash player could supports the Windows Pro 8.1 Dell place 8 tablet." The answer is positive. It supports up to 64 GB. "(moderator - if there is one -: why I can't edit my posts and why all formats such as line spacing, paragraphs lost after validation?)

  • The Airport Extreme 2 to died (light orange) 5 years

    A few days ago my MacBook pro let me know he could ' t locate the time capsule and hand't stored in more than a week.  I checked the other computers in the House, I discovered that they were all not finding time capsule not more.  When I checked the device the light was green, and all machines were connected to the wifi signal that he died.  I unplugged the Airport Extreme and gave him a minute or two and it reconnected.  I never heard the spin drive up so I guess the hard drive should have failed a few weeks ago.  After power cycling the light remains orange solid, and wifi no longer works.  Airport utility will not find the device.

    My questions are:

    Why if the wifi work until it's the power to bike after the hard drive failed?  The fact that the wifi does not work now shows that I should just trash and get a new one?

    Should I just install a new hard drive, if so where can I get the disk image format?

    Thank you for reading this!

    Why if the wifi work until it's the power to bike after the hard drive failed?  The fact that the wifi does not work now shows that I should just trash and get a new one?

    It worked because the TC was functional, even if the hard drive was not... If you open airport utility you should have seen a hard drive error, but he might have ignored, so... in fact the main light must have been orange flashing not green.

    The TC is designed to test the hard drive when starting... If it fails the TC does not start.

    You will have an indicators of solid orange color which is hard drive failure.

    If you open the TC you can replace the drive. See https://www.ifixit.com/Device/Apple_Time_Capsule

    Should I just install a new hard drive, if so where can I get the disk image format?

    Once you install the disk simply go to the tab of disc airport utility and erase the drive... which will set it up properly.

    One thing to consider is the economy... a TC 5 years really may not be worth a repair... power supplies can also go wrong.

    If it's a Gen3 and when you open it is brand Delta power, then it might be interesting to replace the drive... a Gen4 usually also would be worthwhile. Disk 4 Gen is WD green... and he might have lost format rather that died... you could so be able to simply delete it.

    Tell me the A1xxx of the base model and I can help you understand what to do... I've fixed hundreds of them.

  • downgrade vista to XP pro

    I tried the cd bootable and also using back (format c:/q). It says file type is NTFS ATTENTION all THE DATA ON NON-REMOVABLKE DRIVE C: will BE LOST
    FORMAT YES / No. start formatting (y/n).  When I press yes I get > Quick format 151125 m
    System partition is not allowed to be formatted. I can't find the score here at all, I deleted the partition earleier.
    Also on clean instal it says that windows version is newer than the one you are tring to install, check with windows for a solution and found nothing.

    Is there an another wa cables disc to install, I have all the drivers for XP. I've been bouncing around because all give me the same answers you're in recent days around all the forums (microsoft and toshiba) without a bit of luck. Is there some third party software that will allow me to format the drive, so that I can install XP...

    Hi mini78,

    Thanks for posting. By your error message with the version of Windows, this is usually prompted to enter a version of XP is a more expensive than installing service pack. By this please make sure that your data is backed up. Insert the XP CD and perform a low-level format on all hard drives (making sure to disconnect all hard drives with the prior backup information in the format). Do not perform quick format and allow full frame complete (it will take a lot of time). After that, you should have no problems reisntalling your XP.

    I hope this helps!
    Shawn - Support Engineer - MCP, MCDST
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Page numbering problem

    So, I'm having a problem getting my pages are displayed correctly. This should show the page 9 and 10, not 1.9 and 1.10. I can't figure out how to remove the 1.Screenshot 2016-08-10 16.21.42.png

    Any suggestions would be greatly appreciated!

    Looks like the paragraph is formatted as a numbered list.

Maybe you are looking for

  • Siri c. storage of voice memo

    What is the IOS Voice Memo app linked to Siri? There, I guess I mean, is voice memo data captured and stored in the same way that Siri controls are? I am researching this question with respect to the security and legal protection of confidential memo

  • "Sleep" mode results in my Ultrabook wrongly shutdown.

    When I wake my PC portable HP Envy 6 (Windows 7, product number: A9G58AV serial number: [personal information deleted] sleep mode, it will stop on its own and correctly.) This happens usually when I close the lid (so it goes to sleep) and open it aga

  • DeskJet 2540 software does not open

    I recently bought a HP Deskjet 2540 and it was fine for a while. It still prints well but I'm not able to open the software to analyze things more. It asks me to choose if I want to use the wireless or the USB option, and then he said: it is "recover

  • Printing on console in QNX Momentics IDE?

    How can I actually go about printing to the console of one of my cpp files?  All I'm doing is printing data, so that I know what I'm working with and then proceed accordingly. When working on Android apps in Eclipse, all I had to do was type System.o

  • pushGlobalScreen how to make active

    Hello Is it possible to do a Focus screen is pushed using the pushGlobalScreen API? Displayed correctly on the screen, but it is not to focus, even I exeplicitly FOCUSABLE constant mention in the constructor of the super.