Paragraph Format being lost

Hi there
I'm working on an FAPI client to translate text in Frame Documents. One of the first things we do is store the formatting for each paragraph,
and then write it back out to the translated document.
However, in one document I'm working on, when my client attempts to get a handle
for one particular paragraph format, it gets a null a handle instead and that formatting is not applied. Instead, formatting from the previous paragraph (namely an obnoxious green font colour!) is being applied.
In order to set the translated text into the document, we delete the content that was originally there. Could that have a role to play?
I notice that before and after translation, the paragraph format in question is not contained in the paragraph format catalogue.
When I click on the paragraph which has this formatting applied to it, it has an asterisk before the name. Is this significant?
Any answers would be appreciated
Thanks
Eric

Eric,
I think the answer you are looking for is yes, there can be "formats" in the document that are not in the catalog. However, they aren't really formats at all, because if they were, they would be in the catalog. From an API perspective, all they are is a string property assigned to a paragraph.
With the FDK, format usage can be confusing. You might think that you can just set the FP_Name property for an FO_Pgf object to apply a format, but that is really nothing more than a string that is used for reference later, either by you (the programmer) or the interface (the GUI). To apply a format, you have to find the format object (FO_PgfFmt) itself, capture its settings, then apply them to the FO_Pgf (I gather you know this already). It's important to remember, though, that you aren't really creating any kind of link between the format object and the paragraph; rather, you are just transfering the settings from one to another. Incidentally, both types of objects have an FP_Name property, so when you transfer the properties from the format to the pgf, that name gets transferred as well. This presents the illusion that there is some intrinsic link between the two afterwards, but it really was nothing but a string property transfer.
The problem you are having is that this FP_Name property was somehow set with a value that doesn't reflect an actual format 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 deselect the option to add it to the catalog. The paragraph will then maintain the assignment of this "format," but it doesn't really exist. It's just the FP_Name property amidst the zillions of other paragraph-related properties.
Others have suggested that format overrides might be the cause, but I don't think that is quite applicable in your case. You should still be able to retrieve an FO_PgfFmt object by name, if it existed. Your problem is that the format doesn't exist. Note that in the interface, both a non-existent format and an paragraph with format overrides will show with an asterisk in the toolbar, adding to the possible confusion here.
Solution?  I think you'll need to clean up your docs   You can do this with the FDK by seeking out any paragraph with an imaginary formats, then creating a new FO_PgfFmt object with the respective properties. Or, better yet, do it once manually and be done with it.
Russ

Similar Messages

  • Changes to paragraph formats aren't affecting anything at all

    Hello:
    The recent post by Dennis ("phiguru"?) touched on my problem, but mine is simpler.
    I foolishly changed an entire topic's text to red to remind myself that wholesale content revisions are needed, and that the old "boilerplate" is not for publication. (I was in a hurry and have since remembered Conditional tags, of course. Duh.)
    Now, I am trying to restore the affected paragraph formats back to their original font colors. (Fortunately, my dopey first color change seems not to have affected the same paragraph formats in other topics.)
    These images looked terrible when I first posted this a moment ago, thank goodness clicking on them opens a larger, clearer version!
    Using the pencil-icon Edit tool in the Styles and Formatting pod, I'm simply trying to change the color of the font. Seems pretty straightforward, but just in case:
    The line "Tiled Texture Mapping..." is one of the Heading 3 culprits that refuses to change. I change the color to Black, turn on Underlining, hit OK and, get Nothing.
    I don't expect anything really 20th-century to happen, like the change being applied universally, but when typing on a new blank line that has been designated Heading 3, the new text is still red.
    Going to an existing reddened Heading 3 line, and re-selecting the desired style from the Apply Style dropdown at top left only gets me that same maddening business cited by Dennis:
    Do you want to:
      1. Update the shyle to reflect recent changes?
      2. Reapply the formatting of the style to the selection?
    Any advice, anyone? I know I'm probably missing something obvious, but it continues to escape me, and time, life and my work queue are marching ever-forward.
    Thanks.

    Hi, Rick:
    I seem to have gotten it finally by changing the color  in the Styles dialog, Format button (at lower left) > Font dropdown selection, instead of relying on the formatting controls right under the Paragraph Preview in the Styles dialog. I don’t know why RH takes the former more seriously than the latter.
    Then, clicking “Reapply the formatting of the style to the selection?” in the Update/Reapply Style dialog instead of “Update the style to reflect recent changes?” seemed to really nail it down.
    Now mind you, I’m not a complete bonehead. I did originally think that “recent changes” referred specifically to changes made wholesale, on the fly and with insufficient forethought, as with my ill-considered changing of all the text to red as a mnemonic device.
    But then when I was trying to change things back “the right way”, I started to think that “recent changes” referred to recent ‘proper’ changes in the Styles and Formatting facility, especially since “Reapply the formatting of the style to the selection?” initially seemed so useless.
    I did glance at ‘Remove Attribute’ but when it didn’t seem to hold the promise of immediate complete self-actualization and instantaneous transport to a land of dancing unicorns, infinite free energy and no starvation, I lost interest and moved on in my search for fixes.
    I think I’ll try your suggestion first next time.
    Thanks.
    cid:email_signature_sm3960.jpg
    Lew Yedwab
    Senior Technical Writer  |  Chyron
    5 Hub Drive  |  Melville  |  NY  |  11747
    w +1 631 845 3869 |
    Skype: yeswab
    chyron.com<http://chyron.com>
    "The Company the Whole World Watches"™

  • Paragraph format used in Form, but not defined in Para formats of the form.

    Hi friends,
                      I was trying to edit a form window, which has paragraph formats of the name HN HT etc being widely used .
    But when i check the paragraph format defenitions for this particular form , i dont see these being defined there.
    I doubt its because of the same reason, when i try to change the editor to PC editor , the message comes "cant open PC editor,
    Format HT not found" ( when i remove all HT from the ediotr , it shows that HN not found).
    please help me on this .
    Thanks ,
    Shyam.
    Moderator Message: Duplicate post locked
    Edited by: Suhas Saha on Sep 6, 2011 12:48 PM

    Hi shyamkumarc,
    you need to declare the smart style than only you will get all the paragraph formats which are there in the smart style
    Thanks
    Surendra

  • Use two different paragraph formats for one element

    Hi,
    I think this is really simple, but I don't get it.
    I have an element with the name "Step" and I have two paragraph formats for this element. Both for numbering.  I use one of these formats to set the numbering back to one, so I can  start with number 1 anywhere I want, so I think there is noch real  context rule for this case. How do I declare this in my EDD? Is it possible to say my EDD that it is possible to use both.
    Thanks.

    Dokuteam,
    In most cases I have seen context rules using the sibling indicator { first } to handle the start of numbering.
    If you want to be able to control restarting of the numbering anywhere, you can add an attribute to the element, like restart = yes | no with "no" being the default value. Then  your context rule would use an attribute indicator similar to
    If [restart = "yes"]
      use PgfFmt1
    Else
      use PgfFmt2
    - Michael

  • How to create paragraph format in smartforms

    Hi All,
    Let me know how to create paragraph format in smartforms?
    Thanks&Regards
    Mahesh

    Hi
    When we create a smartform we can see in <b>global settings</b> , <b>form attributes</b>.
    In <b>form attributes</b> we set the over all style of the smartform. Goto <b>form attributes</b> and open the tab <b>output options</b>. Here you can see the <b>Style box</b>. In this style box we enter the smartstyle created in transaction code <b>smartstyles</b>.
    Open transaction <b>smartstyles</b>.
    Create a new style.
    Upon creating a new style you will see 3 folder structures under style name.
    1. Header data
    2. Paragraph format
    3. Character format
    To create paragraph format right click on the paragraph format node and click Create Node. Give it name. Now you will get a screen with 4 tabs.
    Indents and spacing
    Fonts
    Tabs
    Numbering and outline
    Here you can provide the look you want.
    Now add this smartstyle in your smartform's form attribute.
    You can also provide individual smartstyles to each text element you create by giving the name of smartstyle in its output options tab. Each text element has a individual output option tab here you can give any smartstyle.
    Click on the general attribute tab of any text element and give the paragraph format directly or by going to SAPScript editor mode.
    Any more questions you can ask me directly mailing me.
    Please do reward points if satisfied.

  • Why are 2 different date formats being used in thunderbird?

    Hello
    in the attachment you will see that the listing of emails (on the left) is shown using UK date format DD/MM/YY (that's what I want), however, the message content panel shows the date in the US format MM/DD/YY (I definitely do not want this).
    Why are 2 different formats being applied in Thunderbird, and how can I get both to be UK DD/MM/YY please.
    Many thanks
    Lord Elpus

    I should have said :
    this is Thunderbird 31.6.0 on Ubuntu 14.04 LTS
    Image resent due to previous failure.

  • For SAPscript INCLUDE TEXT, how to align as Paragraph format

    Hi experts and ABAP colleagues!
    Need your help on this sapscript problem:
    How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
    For example, I defined BG to have tabstop at the 2nd column (or equivalent to 1st tab position) where I need to print the text, and then declared it in SE71 like below:
    However the text prints at the leftmost instead of at the 2nd col position - (8th char tab defined in par. format BG).  Hence it is not aligned to its proper heading.  Line Number instead of Description - which is not okay for client view that needs these Thai texts. 
    The technical details I included below.  Kindly examine:
    1.)  Window >Main > Text Element > Include Text command
    /E   ITEM_TEXT
    BG   ,,&TTXIT-TDTEXT&
    /:   INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
    /:   NEW-PARAGRAPH BG
    Note:  I used command "NEW-PARAGRAPH" and had exactly the above code in se71.  Anything missed here?  Pls. help.  Thanks.
    #2.) Paragraph Format > Tab
    No. -
      Tab Position -
    Alignment
    1            8,00 CH            LEFT
    2            28,00 CH          CENTER
    etc.
    Note:   and then i put in  ",,&TTXIT-TDTEXT&" (see above) with the 2 comma's beforehand to say that its on the 1st tab or at the 8th character where it should be printed, but does not give intended result... pls help.
    #3.) Paragraph Formats > Standard Attributes
    Left Margin - 0 cm
    Alignment - Left
    no blank lines checkbox - ticked
    Note:  Is there any more attribute i can manipulate from here to force display at the right position?
    Thank you so much in advance for all your help.  Our project team will really appreciate it.  May the Lord bless you as we go through our SAP work!
    Sincerely,
    Celeste

    Here's a thought, instead of using tabs, try writing a method that takes a string that is the starting string, a pad character, and a length and returns a string padded to that length with the specified character.
    public String padR(String src, String padChar, int len)
        // ... You get to fill in the rest suggestion try to do it without a loop
    }Have fun,
    PS.

  • I saved an Excel file yesterday afternoon, and when I opened it today, all the formatting was lost.

    I saved an Excel file yesterday afternoon, and when I opened it today, all the formatting was lost.

    See:
    *[[/questions/894442]] OWA 2010/Firefox 8 and ASHX Attachments
    *[[/questions/895024]]

  • TAB in paragraph format for Script

    hi,
    i am doubt with the tabs for paragraph format in the script. how actually it work? i try to make change on the tab, but some time even i put a larger value, the space in the output will become smaller, can anyone explain to me how the tab actually work?
    thanks

    Thanks you very much.
    but one more question, let say, if i have 3 tabs for an output.
    HARLO,,MY,,WORLD,,!
    any i configure the tabs as, 20, 30,15 all in CH
    so after the "HARLO, it will have 20 CH of spacing, follow by "MY", 30 spacing, and 'MY" 15 spacing, end with "!"?
    it this the way it works?
    or it works in accumulate way, which include the text display as well?
    i found in the forum, say that, it will fix the length of a field( if i display a field), even there is no any value in that field. so how does it work on this?
    alot of question very thansk for the temper.

  • Problem in creating new/changing paragraph format in sapscript

    hi,
    i am developing new sapscript form
    based on standard sapscript : SD_PICK_SINGLE .
    The problem is that I neither can't create new paragraph format in se71
    for this form nor change an exist paragrapf format .
    does anyone encountered such a problem
    and can help me solve it ?
    ami

    Hi,
         You have copied the Standard Sapscript, but i think you have not converted the Original Language "DE", as the standard one will be in "DE", so it is not allowing you to create new paragraph format or any changes.
          Open the copied Zform in DE language, Click on Menu> Utilities> Convert original language,
          Give From = DE
                  To    = EN
    Save and Open the Same Zform in EN language and do any modification.
    Regards
    Bala Krishna

  • Replace a paragraph format with another in the every page

    I am doing some cleanup before exporting and I don't know much about FrameMaker....
    I want to replace the paragraph format ABC with XYZ in every page, how would I do this? 
    I  also have a paragraph format I want to delete and make it just a Normal paragraph  in every page, I image it will be the same process as 1?
    Your help is appreciated

    Try this …
    make a back-up just in case
    find a paragraph with the style you want to apply (XYZ, in your example)
    select Edit > Copy special > Paragraph formatthis copies the format to the clipboard
    open the Find/Change dialogue
    put the cursor in a paragraph using the format you want to replace (ABC in your example) and select Paragraph tag from the Find pulldownif you're in luck, FM may well read the current format from the cursor position; if not, type it in
    select By pasting from the the Change pulldown
    click [Change] to see whether the result is what you expect
    click [Change all] once you're feeling confident
    Use the same technique to replace all occurrences of the style you want to delete (PQR, f'r instance) with another style, then delete PQR using the paragraph designer

  • Multiple character formats in a paragraph format

    Hi. I've searched the general discussion and did not find this issue.
    I have one paragraph format called Bomb that consists of a Wingding character (M) in the Numbering tab that prints a little black bomb in a side head. I combine with format with two other paragraph formats called Caution and Warning. These formats are in column and use a red, bold autonumber (CAUTION, WARNING) followed by a couple of spaces--the text goes immediately after the spaces.
    My bosses now want the bomb symbol and the CAUTION/WARNING word in the side head, with the text in column. I can't see how to combine that Wingding character with the regular Verdana word. I had to do something similar with my Note format, except that I put the word "note" by itself as a side head and created a format to follow it called NoteAft for the text.This way, I have a line with the Note format, followed by a paragraph return, then the NoteAft format for the text.
    I'd rather not have to use three formats to replace the existing two for Caution/Warning, so I hope y'all can help me figure out how to handle this thing.
    I appreciate your suggestions! BTW, I'm using FM 7.2 but will want to switch over to 9.0 when my bosses agree.
    Dimi Everette

    OK, I managed to answer my own question!
    Bomb para format: tab at 0.2 cm (not sure that's required...), Next Para tag is CAUTION; default font is Verdana; Run-In Head with no default punctuation; Numbering tab has Autonumber format checked, M in text field with Wingdings char format; defaults for Advanced and Table Cell tabs.
    I press Return and CAUTION appears.
    CAUTION para format: no tabs, Next Para is NoteAft; default font is Verdana; Side Head--Alignment: First Baseline; Numbering tab has Autonumber format checked, CAUTION in text field with RedBold char format; defaults for Advanced and Table Cell tabs.
    I press Return and type the text of the CAUTION in the NoteAft style.
    I'm going to change that Para tag to BombCaution and create another para tag with for BombWarning and be set! Of course this won't work unless your master page uses a column with room for side heads.
    If you know of something more elegant, please pass it along.
    Dimi

  • Use of "Next paragraph same page" check box in paragraph format of SCRIPT?

    Hi Guys,
    What is the use of "Next paragraph same page" check box in paragraph format of SCRIPT?
    Don't Send me the F1 help ....i am not clear with that help it is quite confusing.
    Provide example if possible.
    Solutions will be rewarded.
    Regards,
    GURU

    Hello.
    You probably know the idea of PROTECT command. It makes that a paragraph wont break in two. If it fit's totaly in one page it will print in that page. If not, it will print totaly in the second page (won't break at the middle).
    The checkbox you are asking, makes the same with two paragraphs. This means that if you have paragraphs A and B (A becomes first) and if paragraph A has that option, the next paragraph won't break, and appear in the second page. If paragraph A is in first page, paragraph B will print in first page too, or they will both print in second page.
    Try it.
    Best regards.
    Valter Oliveira.

  • Paragraph format drop-down not opening automatically with F9

    Hello,
    I use FrameMaker 9.0p237 on Windows 7. When I am exiting a document and press the F9 key, the paragraph format drop-down appears in the bottom left of the window. However, the drop-down does not open automatically. I must manually open it or type in the name of a paragraph format. When I used Windows XP, it opened automatically and I could easily see what options I could choose when typing, or just click one. This is slowing my process at editing because it is tedious to manually open the drop-down. I can't easily type the formats' names because I do not yet remember them by heart. Please see attached screenshot of area of window in question.
    Is there a way I can get this drop-down to open automatically like it used to? I sure hope so. Thank you.

    Thanks to everyone to responded to my question... In summary, I would categorize this as a bug in the product.  It really slows down my ability to edit quickly.  I'll work more toward memorizing the paragraph format names so I can simply type them.  Thanks again.

  • Not able to create new paragraph format for copied layout of WESCHEINVERS3

    hi all,
    Iam facing one of the pecular problem I copied WESCHEINVERS3 into Zlayout from client 000.
    when i tried to create new paragraph format I found the create element greyed out I have never seen this issue earlier.
    May I know why the menu path paragraph->EDIT->create element is greyed out.
    thanks

    Hi,
    U can create new paragraph formats, windows, character formats etc., only in original language of the FORM.. I guess u were trying to create a new paragraph format in 'EN' but the original language of form 'WESCHEINVERS3' is 'DE', so u can create the new paragaraph format in the copied Z form only in DE language.
    Try to open the Z FORM in DE and create the Paragraph format...
    Hope it helps!!
    Rgds,
    Pavan

Maybe you are looking for

  • Using Webutil(CLIENT_GET_FILE_NAME) without result

    Hi all, I used Webutil(CLIENT_GET_FILE_NAME function) in developement platform(IDS) on WINDOWS and it worked fine.Now i'm migatring on IAS/LINUX, the same feature don't produce any result and any error occurs.Here's messages i receive in Jinitiator c

  • How to configure jre on an english platform to support other language?

    Im currently running jdk 1.4.2.07 on a HP-UX B11.11 server. I use "JFreeChart" to create charts in my project, and when I include chart title in Asian fonts, the chart render correctly with the correct font on the testing windows environment (which r

  • Torch dropped in water

    I have never dropped my Torch 9800 before in the over 2 years I have had it but when I finally did it was in the toilet.  I immediately took out battery, sim and blotted with a soft  paper towel.  Within 30 mins I immersed it in rice.  The moisture i

  • SQL Server 2005 Linked Servers (OraOledb / 10g)

    I am running SQL Server 2005 on a 64 bit Server. I have a linked server using OraOledb (Oracle client 10g) to Oracle. "Select" statements works without any problems, but "Update" and "Delete" statements return the following error: Msg 7333, Level 16,

  • Cell phone signal boosters

    No idea about legality but I've tried and failed to get a Vodafone Sure Signal running in our office, it just will not connect to the Internet!