Export paragraph format tag to attribute

Hi All,
Using structured FM 11 on Windows 7.
I need a way to round-trip paragraph format tags. I know it is easy to assign them on import with the EDD, but I'm not sure how to save them on export.
I was hoping the read/write rules could contain something along the lines of:
attribute "paraFormat" is fm property paragraph format tag;
I figure it can probably be done with ExtendScript or a custom API, but I would rather avoid these if possible.
Thanks!
Trevor

Trevor,
I think you are out of luck with r/w rules. The assumption is that formatting logic is owned by the EDD and would therefore have no relevance in the XML. Like you surmise, an import/export API client could do it. An ExtendScript could also do it before the import, by populating the attributes ahead of time. That would be a very simple script, maybe 20 lines or so.
My FrameSLT plugin could also populate the attributes ahead of time with a Node Wizard Script, but that isn't free like ES. www.weststreetconsulting.com.
Russ

Similar Messages

  • Paragraph format and character format in script

    hi expects,
    what is the difference between paragraph format and character format in script?

    Hi Rohit,
    Paragraph formats control the formatting of paragraphs in SAPscript  whereas Character formats are used for text formatting within paragraphs.
    Character formats will have Standard attributes like Bold, Italic, Underline, Font family, Font size etc.
    Paragraph formats will standard attributes of Character formats and in addition to this, they will margins, Indents, tabs, Alignments, Line spacing and delimeters.
    Check this link for Paragraph formats
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e02454211d189710000e8322d00/content.htm
    Check this link for Character formats
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e43454211d189710000e8322d00/content.htm
    Thanks,
    Vinay

  • Migrating from Sapscript Paragraph Format to Smartforms Style

    There are some tool to export paragraph formats?
    Thank you

    Hi,
    Goto SMARTSTYLES Tcode..in Menu..
    Utilities--->Convert SAP Script Style..
    and Give...
    From (SAP Script Style)----
    To(SMART Style)----
    Message was edited by:
            Vishnu Reddy

  • 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

  • Hi need help in paragraph format

    hi,
    in scripts while defining the paragraph format,we have to give tab space also,there why we need to define five tabs,how can we use those in editor.
    Thanks,
    mohan rao.

    Hi..,
    In the <b>Standard</b> attribute group, you find the general attributes that can be defined in paragraph formats:
    <b>Description </b>
    Precise explanation of your paragraph tag, so that the user can immediately identify it.
    <b>Left or right margin </b>
    Amount of space between the paragraph and the left or right border of the form window.
    <b>Indent first line </b>
    Indent of the first line of a paragraph. If the value is positive, it is indented to the right, if it is negative, it is indented to the left.
    If you specify a negative value, then you must place the minus sign after the number: 1- .
    <b>Space before and space after</b>
    Space before and space after control the amount of space between paragraphs. The actual space between paragraphs results from the space after the preceding paragraph and the space before the following paragraph.
    <b>
    Alignment </b>
    Alignment of a paragraph.
    <i>Left-aligned    -
         Right-aligned
    LEFT   -
    RIGHT
    Centered
    CENTER
    Justified
    BLOCK </i>
    <b>
    Line spacing </b>
    Spacing between the lines. The default value is 1 line; the LPI value (lines per inch) in the header data is used to calculate the line spacing.
    <b>No blank lines </b>
    Suppression of blank lines. You can control whether the blank lines of a paragraph should be suppressed in the printout or not:
    <i>No entry -- blank lines not suppressed
    X-- blank lines suppressed</i>
    <b>
    Page protection </b>
    Cohesion of a paragraph. It is possible to determine whether or not a paragraph can be divided by a page break.
    <i>No entry--no page protection (default)
    X--all lines of the paragraph are on one page</i>
    <b>
    Next paragraph same page </b>
    Cohesion of two adjacent paragraphs. Here you can define whether the subsequent paragraph should begin on the same page (that is, at least the first line of the subsequent paragraph must be on the same page).
    <i>No entry
    subsequent paragraph is output on the same page or the next page, depending on the amount of space (default)
    X--subsequent paragraph begins on the same page</i>
    <b>TABS</b>
    You can define as many tab positions as you require for each paragraph format. The text can be aligned in different ways:
    Left-aligned with LEFT
    Right-aligned with RIGHT
    Centered with CENTER
    At the sign with SIGN
    At the comma or decimal point with DECIMAL
    You can control the tab feed in a paragraph with tab positions. The tab stops you define in the paragraph format replace the tab spacing you defined in the header data of the form. However, this depends on the extent to which you have defined tab stops in the paragraph format. If there are fewer tabs in the paragraph formats than in the header data, the tab stops of the header data are used for the rest of the line. The tab stops are represented as , , in the text editor.
    <b>reward all helpful answers,
    sai ramesh</b>

  • Checking Paragraph & Character tags

    Hi all,
    We have a template which contains around 25 paratags and 50 character, we are importing the wordfile from client into the indesign template, the problem over here is client is not allowed to add any unwanted tags into the template.
    After pagination we need to check all the tags manually, to avoid unwanted tags gets in.
    Is there is any script to check the unwanted tags comes into the template.
    I have a list of tags with me for reference.
    Please advice.
    Shaji

    > My question is how can I import these paragraph and character styles from InDesign into Illustrator?
    You can't. The text engines are completely incompatible. So much for "Suite".
    The best you can hope for is to export EPS
    and PDF from InDesign and open each in Illustrator. Probably the EPS will work best for you. Most character formatting will survive the translation, but defines styles and most paragraph formatting won't. Worse, you'll find what was one text frame in InDesign becomes multiple point text items in Illustrator.
    I suggest you stick with InDesign. InDesign has competent (but not great) export to raster formats. You'll probably be happier with exported PDFs rasterized and exported from Photoshop. It's a couple more steps for the export, but much less work to recreate much of the content and formatting in a worse (i.e.: Illustrator) program.

  • 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"™

  • 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.

  • 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.

  • 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

  • p tags with attributes not removed from JTextPane

    We are using HTMLEditorKit with JtextPane to create a HTML Document Editor, for our project. [JDK 1.3.1.]
    When we have a simple <p> tag for paragraph in HTML and we start deleting things from end of the document, it works fine. But when we have a <P> tag with attributes like <p align='CENTER'> the delete key deletes the characters but the cursor remains in the line below and doesnot move up as the characters of above para get deleted. The HTML also retains the <p align='CENTER'> tag, which should have been removed. It seems its not able to identify <p> tags with attributes as Html para tags, and so not deleting it.
    How do we solve this without migrating to jdk1.4 ? Please help.

    Usually attributes such as 'align=center' are deleted along with a tag, regardless of whether it is a p tag or another one. But you would have to carefully test what exactly gets deleted because attributes are not only stored with paragraphs. They can exist for single characters and as well come from a style sheet.
    The best is to generate a dump of your document before and after deletion.
    You can use something like the below code (it is not optimized at all and thus could be implemented better but it works) to produce a dump
      public void listElements(Element elem, int indent) {
        int i;
        String is = getIndent(indent);
        String elemName = elem.getName();
        Document elemDoc = elem.getDocument();
        String cont = "";
        String theText = "";
        System.out.println(is + "--start-----");
        System.out.println(is + "Element Name:" + elemName);
        if(elemName.equals(new String("content"))) {
          try {
            theText = elemDoc.getText(
                    elem.getStartOffset(),
                    elem.getEndOffset() - elem.getStartOffset());
            System.out.println(is + "Content: " + theText);
            if(theText.indexOf("\r") > -1) {
              System.out.println(is + " plus \\r");
            if(theText.indexOf("\n") > -1) {
              System.out.println(is + " plus \\n");
          catch (Exception e) {
        listAttributes(elem, indent);
        if(!elem.isLeaf()) {
          for(i=0;i<elem.getElementCount();i++) {
            listElements(elem.getElement(i),indent+2);
        System.out.println(is + "---end----");
      public void listAttributes(Element elem, int indent) {
        Object key;
        String attr;
        String attrName;
        int pos;
        String is = getIndent(indent);
        AttributeSet as = elem.getAttributes();
        Enumeration an = as.getAttributeNames();
        try {
          while(an.hasMoreElements()) {
            key = an.nextElement();
            attrName = key.toString();
            attr = as.getAttribute(key).toString();
            System.out.println(is + "Attribute Name: " +
                      attrName + " Attribute Content: " + attr);
            if(attr.indexOf("\r") > -1) {
              System.out.println(is + " plus \\r");
            if(attr.indexOf("\n") > -1) {
              System.out.println(is + " plus \\n");
        catch (Exception e) {
          e.printStackTrace();
      }Hope that helps
    Ulrich

  • Paragraph Formatting in XML Data Sets

    Got a client I'm currently doing a Spry page for and he's got
    a lot of copy he wants to inject in his tooltips. I'm using the XML
    Datasets and they're working pretty good but one problem is he's
    got all this copy in paragraphs. So I stick it all in my
    <copy> tag in my .xml file but I can't accept paragraph or
    line breaks. If I add a <p> or anything like it, the XML is
    no longer valid and is screwed up. So how can I add paragraph
    formatting to these large chunks of XML?

    I have an online example:
    http://www.pearlmanpr.com/perspective_test.html
    The spBlog.xml file contains test junk.  If I put the <[[CDATA....]]> inside the BlogEntry/BlogText tag it doesn't work at all.
    http://www.pearlmanpr.com/perspective_test_2.html
    If I use it without the <[[CDATA..]] it doesnt work either.
    http://www.pearlmanpr.com/perspective_test_3.html
    If I use it without any <> within the tag it sort of works (still needs to be aligned).

  • Include text's paragraph format

    Hi experts,
    I have a include text in my smartforms. I'm using the smartform's form routine section to include this text, because my text is dinamically set up. After including it with the following code the paragraph and text formats are ignored. How could I apply my character and paragraph formats?
      CALL FUNCTION 'SSFRT_READ_INCLUDE_TEXT'
           EXPORTING
                I_TEXTKEY   = TEXTKEY
                I_LANGUAGES = ls_LANGUAGES
           IMPORTING
                O_LANGU     = LANGU
                O_TEXT      = lt_text
           EXCEPTIONS
                OTHERS      = 1.
      CHECK SY-SUBRC EQ 0.
      CALL FUNCTION 'SSFCOMP_CONVERT_ITF_TO_TOKEN'
           EXPORTING
                I_TEXT     = lt_TEXT
                I_NAME     = NAME
                I_LANGU    = 'H'
                I_TEXTTYPE = ''
           IMPORTING
                E_TOKEN = L_TOKEN.
      CALL FUNCTION 'SSFCOMP_WRITE_TEXT'
           EXPORTING
                NAME              = NAME
                LANGU             = LANGU
                STYLE             = STYLE
                STYLEVARI         = STYLEVARI
                TEXT              = L_TOKEN
                APPEND_MODE       = APP_MODE
                PROTECT           = PROTECT
                TEXTTYPE          = ''
           EXCEPTIONS
                NON_MAIN_OVERFLOW = 1
                OTHERS            = 2.

    Okay, I've got the solution.  L_TOKEN contains the smartforms style. I have to set it according to my form.

  • Default paragraph format in SMART FORMS

    Hi all!
    Can we mention  default paragraph format for SMART FORMS? How can we do that?
    Please suggest.

    Goto FORM attributes of your smartform and insert your smart style in output options tab.. before inserting your smartstyle you should create a smart style and create a paragraph format in your smartstyle in header data of smartstyle it ask for standard paragraph(i.e default paragraph)...
    Close rge thread once your question is answered.
    Regards,
    SaiRam

  • Paragraph format

    hi all,
    i am working on a sap script.i am facing a strange pblm whenever i  make changes to the text in the page windows by doing different paragraph formats <HT> TEXT </>.AFTER ACTIVATING.if i go back to the text editor i am loosing the changes and i am agian have to write the tags.please let me know how can over come this.

    You are sure it really is activated after you activate it (look at the bottom bar at activation)
    Maybe it is locked in another session or transport another client.

Maybe you are looking for