Technique to undo a character format application?

Hi,
Seems that answers to complicated questions are a bit sparse in these parts, but I'll try again anyway
I'm wondering if there is any technique to reliably undo a character format application change; that is, an application of properties to a range of text with SetTextProps(). It is fairly simple to remember a list of original properties (PropVals) and the original text range (TextRange), then reapply those original properties to the whole range. However, within a text range, each character can have its own unique set of properties. So, remembering one set of original properties is not enough... seems I have to remember the properties of every single character in the range, the reapply character-by-character, in order to ensure that the new property application is completely undone.
When you apply a character format in the GUI, FM reliably allows an undo, restoring each affected character to its original state. Surely it isn't remembering a PropVals array for every single character (?)  I'm just wondering if there is another trick here. It's entirely possible if FM is internally using another trick, it isn't one that I can feasibly replicate.
Thanks,
Russ

Hi Jang (you might need to look at this on the forum websie),
Effectively, I want to be able to restore a range of text to its original format, after the original format is completely overwritten. For example:
Here is someTEXT
Imagine that someone applies a character format that wipes all that out:
Here is some text
I want to restore the text to its original format. In the GUI, the FrameMaker Undo command successfully does that. I have a script that applies formatting and I'd like to replicate the undo, if its feasible. Naturally, the FM undo will not undo a script action.
I am talking about text ranges only. By the way, how do you store a "safety paragraph?" Using the clipboard is not an option in this case.
Thanks,
Russ

Similar Messages

  • Inline character formatting

    Battling on happily after that Aha!-moment before Christmas, and testing myself by retrofitting structure to existing documents – still having far more fun than I feel I should do at the office :-}
    Today's question, which may well reveal an embarrassing lack of basic understanding. In my unstructured documents, I've always used specific character styles for options like !cite and !xph (book-titles and in-line code snippets respectively). Now I'm exploring structure, I haven't yet managed to work out how to handle these in-line changes. "Format change list" looked promising, but how do I define an element that's going to trigger the change? (if "element" is the right word at this low a level)
    My battered copy of the FM 7.0 User Guide briefly but tantalisingly mentions "… wrapping items that are inside paragraphs" without farther explanation. What other (online) references would you recommend?

    Hello Niels,
    I am a tad confused on what you doing. <cite> is an inline element in DITA. Are you building an EDD based on a pre-defined valid XML, such as DITA, or are you building and new EDD/DTD?
    As for the EDD, you have options as to how to apply inline (as well as block) formatting. For inline elements, you can reference a character tag, define all the required character formatting in the EDD, or point to a format change list. Which one to use depends on the application. The majority of the time, I reference a character tag. Sometimes, if the formatting is based on an attribute value, and/or requires minor a change, such as increasing relative font size, by a specific amount (+2pt), I will define that in the EDD. That can also be done using a format change list (if there a lot instances). For example, I use format change lists to turn on and off change bars, based on an attribute value. For example, most DITA elements have a @status attribute. I use that to apply formatting to block or inline text.
    I tend to point to paragraph and character tags 90% of the time. However, you can build an EDD that has all formatting defined in the EDD and basically creates a boat-load of overrides to the Body tag. I am not a fan of this. It will keep people from changing tags. However, if you want a single EDD for multiple page sizes, pointing to tags is the way to go. Then you only do formatting within the EDD for formatting such as adding relative space or increasing relative font size.
    Hope this helps.
    Regards,
    Stan

  • How can I get a list of SAPScipt character formats?

    I know that SAPScript use the <> for capturing - i.e. preceed text and fields with <NN> and end with </> to change the format.
    For example <B> is for bold.
    i want to know where i can get a list of all the possbile values - have looked thru SDN and the Web with no success on this.
    I used to know this but it have been many years since used sapscript.
    Thanks

    Hi
    I am not sure that I have understood your question correctly.
    But if you want to see all the character formats available inside the form in SE71, there is a push button named "Character Format". Press that button and you would see all the character formats available for the form.
    Raveesh

  • Error message when I try to print: unsupported document-format"application/vnd.cups-command. I recently had my hard drive replaced in my early 2010 21" iMac. Can anyone help?

    Error message when I try to print: unsupported document-format"application/vnd.cups-command". I recently had my hard drive replaced in  my early 2010 21" iMac. Anyone know anything about this? Thanks in advance.

    What system are you running?  Have you tried going to the Canon website to download and install the latest drivers for that model?
    Are you running Time Machine?

  • Character Formats showing up in TOC

    TOC entries for, say, "Heading4", are nominally controlled by the paragraph format of the generated "Heading4TOC" format.
    Sometimes the body narrative will have local mods to the Heading4 text. Depending on what you're doing, you may want those mods to show up in the TOC, or you may not. In my case, I did not, and was surprised to see a TOC entry show up in color.
    It turns out that if you apply a Character Format to text used for TOC (and perhaps IX, LOF etc) generation, that ChrFmt is retained when rendering the TOC.
    So if you want the local enhancement to appear in the TOC, use Chr Fmt. I verified this by setting a heading word to Character Format "Symbol" (which applies the Symbol font`, all else As-Is). The TOC entry had that word in Symbol glyphs.
    if you don't want the local enhancement to appear in the TOC, use local overrides. I verified this by just doing a Format > Font > Symbol on the same word of the heading. The TOC entry had that word in roman.
    In my case, I have a table imported (as EPS) from a spreadsheet. I want the table title to appear in TOC, but of course Frame can't "see" that text. So the anchor line is that title in Heading4, which does appear in TOC. This particularly H4 has a local color override that is set invisible via Color Views. I want the TOC entry to be visible, but the Heading4 text in the body to be invisible. This works if the Heading4 has the invisible color applied with the graphics tools. It doesn't work if I use an invisible text Character Format.
    Another way to hack this particular problem is to put the Heading4 title in a text frame behind the imported image. Then it requires no character formatting magic. But you can't see it during edit, and you need to hope that the table white fills really are, and aren't just transparent.

    The TOC will only reproduce the character format of the heading if it  has that character format in its catalogue.
    Thanks for contributing that. It stands to reason that if TOC gen is honoring and replicationg the ChFmt, the easiest way to implement that is just to drag the format in with the text being cloned.
    Building on this, you can control the  appearance of the TOC entry by defining the character format – if you  wish, differently from how it is defined in the main text. So your  Heading 4 override may be coloured white in the main text, but black in  the TOC.
    Thanks again. I'm going to use this starting now, since the present manual set has need of it.
    The key aspects of the implementation:
    The ChFmt name needs to be something very self-evident to future document stewards, like "Hide_Except_TOC".
    In all .fm files except TOC, its definition is
    all As-Is, except for Color,
    which is an existing author-use-only color "Invisible Text" already set Invisible by Color Views during render.
    In the TOC file, the definition of "Hide_Except_TOC" is
    100% As-Is.
    (first time I've ever defined a format like that)

  • Character format on include text in smart form ??

    hello,
    i want to apply a character format on my include text, as we do on text elements .. how to apply it on include text ??
    thanks..

    Hey dude ,
    Just go to the <b>output option</b> of the text and include the smartstyle, where you have mentioned the required charecter format. Before doing this you should have activated your smartstyle .
    Your problem will be solved.
    Regards,
    Kunal.

  • Problem with paragraph style overrides and character formatting

    I've had this problem for a long time, and sometimes it resolves itself, sometimes it doesn't. Finally I'm begging for help.
    I am typesetting academic articles into a journal.  We use endnotes. The endnotes have both italic and regular formatting--italics for book and journal titles, and foreign phrases.
    Sometimes when I place the text, the formatting reverts to whatever it was in Word.  To try to fix that, I've begun stripping the Word formatting from the original document, making everything "Courier New" and just importing it like that.  I figured this would clear a lot of the problems I've had with fiddly formatting issues.
    I was mistaken. 
    Here is what happens:
    When I place the document it comes up in the original Courier New font, with italics and other formatting intact.  If I click "article style" which is the main article paragraph  style format, normally it changes.  but if I right click and select "apply article style" it is more likely to change the paragraph to the proper style, with italics and other formatting still intact.
    But when it gets to endnotes, I'm sort of screwed.
    My endnotes style is a bulletted style, so that I can have the endnote numbers consistent.  but this seems to screw all the style formatting.
    Here is what I do:
    With the cursor in endnote text, I click "bulleted endnote style".  The character format remains the same, with a + beside the style. The endnote number format is different, however.  If I click "clear overrides" it does in fact change to the proper formatting, but it strips any italics or other character in the text.  This is frustrating because many of these endnotes have lots of italicized journal and book titles, and it takes a long time to figure out which ones I need to reitalicize manually.
    I have tried to use the "customize style import>Style mapping" but it has not fixed anything.
    Please help me figure out how to make these transitions more smoothly.  I am open to suggestions both on how to make the changes once the document is placed in the Indesign file, and also making modifications to formats in the native Word file so that I don't have these problems. 
    Thanks
    Dan

    Sorry, that last message wasn't supposed to send (if that's not obvious!). I was writing it and got interrupted.  Damn iphone. 
    I know why there are two numbers.  This is not an issue. What I didn't finish writing was that, the note number before i bullet it is a different font/ format. Again, not a problem.  Here is something interesting, though.  If I delete that original number by placing the cursor in the middle of it (say a between the 4 and 2 of 42) then delete everything by Shift+arrow forward, press delete then delete the rest of the unnecessary characters, THEN apply the style formatting, it works just fine.  Is it something to do with the character codes of those original note numbers? 
    Word drops in so many hidden codes that it screws everything up!

  • Issue with character formats using duplex printing in smartform

    Hi all,
    I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
    Can anyone know where is the problem..please.
    Points to be rewarded..
    Thanks.
    Regards,
    Zaheed.

    Hi Zaheed,
    Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
    If you are saying it is happening in ur case then
         1. Recheck whether whether you have same text module getting printed on the
             two page. If they are different then then individual check formatting option for
             each..
          2. If above point does'nt work for you ..then instead of bold char use normal
              format for text element and see if it is printing same on both page..
    Try this out and let us know your findings...
    Enjoy SAP.
    Pankaj Singh

  • How to change the automatic character format in Message Editor?

    Hi experts,
    We use PI 7.31, AAE adapter in our scenario. When we use the message monitor in Adapter Engine, we choose one message and open it in Message editor, we can see the message payload with AUTO Character Format: Windows-1252.
    The problem is we have some CN characters and they cannot display in correct formats.
    So, is there any way to change the AUTO Character format?
    The other question is, can we see the message after mapping in java message monitor?
    Thanks.
    Kevin

    Hi,
    The Quantity field which is used in sales order has a standard Data Type:QUAN
    with Decimal Places:3 so u cant change the settings in standard data element CRMT_SCHEDLIN_QUAN
    If u want the quantity field without decimals then u need to create a Z data element.
    Regards,
    PePe

  • Apply character formats in the Marker window

    We need the ability to apply character formats (including superscript and subscript) in the Marker window. I use this feature to generate LOM files, which are greatly helpful, but after generation, I must edit the file directly to apply character tags to individual items to correspond with the style of the text from which the markers have been generated.
    For example, I have a list of warnings at the beginning of my book. I place a marker in each warning in the chapters to generate the list of markers. Some of the warnings in the chapters contain the product name which includes an Italic character and a superscript registration character. (The client's style is to use the registration character at every instance.) When I place the text in the Marker window, I have no way to include the character formats for Italics and superscript. Therefore, when the list of warnings is generated, the product name is not styled correctly, and I must edit every instance in that file--every time I generate for a revision.
    If the Marker window would accept character format codes like the Variable window does, the problem would be solved.

    I've never done a LOM, but if you are pulling across text at the marker, and LOMs work like TOCs, try the following.
    Apply a Character format to the source text with the attributes you need.
    Make sure that format also exists in the Character Catalog of the LOM file.
    In the case of TOCs, this causes the TOC lines to use that Character format (as defined in the TOC, as long as the format name is the exactly the same).

  • Edit an Existing Character format

    Hi,
              I have a pblm to solve.
    In so10 transaction I have <text name> which is of text id PALT and I want  to change a character format in that.Please help me.
    point will rewarded for useful answers.
    Thanks.
    regards,
    Arul

    Hi
    Open the standard text in SO10.
    FORMAT -
    > Change Style
    FORMAT -
    > Change form
    You can use/change paragraph and character formats which are there in the attached style/form.
    Regards,
    Raj

  • Smartforms - Change a text elements character Format

    Hello,
    I need to modify a Smartform by increasing the font size on some text elements.  When I highlight the text element to change and then click the dropdown for Character Format I can click the format I would like but it never changes.
    I've also tried resetting the character formats but it always gets back to it orginal size/settings.
    How can I change the character format in a text element?
    Thanks,
    Matt

    It appears I have to delete the field then change the character format to the font I want and finally drop the field back into place on the screen.
    If there is another way to do it, I never found it.
    Switching to the classic editor may work as well.  Worth trying.
    Thanks,
    Matt

  • Smartforms/Smartstyle How to create/upload paragraph and character formats

    Hi Folks,
    I am working on a demo IDES system. In my ECC 6.0 system, the paragraph formats were not included. How can import or include or create or upload paragraph and character formats in order to create smartforms and smartstyles.
    Waiting for your answer................
    Thanks,
    Creasy Matt

    If you Ran Smartstyles T-code and from Utilities you should got all information how to do all these activities.

  • About paragraph and character format

    If You define paragraph and character formats what will be overwriting which  
               one?

    If you ude both chatacter and paragraph format to print a variable... character format will override paragraph format.
    Ex, AS --> Paragraph format   Font size 10  Font family : HELVE
          CH --> character format    Font size 8
    Now, PS <CH> HELLO </>
    It will be of font family of HELVE and with font size of 8.
    I hope it is clear for you now.
    Regards,
    SaiRam

  • Paragraph Format / Character Format for Variable address in SAPSCRIPT

    Dear All,
       I am trying to print variable address for ship-to-party. But the address is variable address for different vendors.
    The contents like
    /:  ADDRESS PARAGRAPH AS
    /:  TITLE    &LFA1-ANRED&
    /:  NAME     &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
    /:  STREET   &LFA1-STRAS&
    /:  POBOX    &LFA1-PFACH&  CODE &LFA1-PSTL2&
    /:  CITY     &LFA1-ORT01&, &LFA1-ORT02&
    /:  POSTCODE &LFA1-PSTLZ&
    /:  COUNTRY  &LFA1-LAND1&
    /:  REGION   &LFA1-REGIO&
    /:  FROMCOUNTRY &T001-LAND1&
    /:  ENDADDRESS
    My question is, How to assign Paragragh format or character format to the above code?
    Your reply will help alot..
    Thanks and waiting
    Regards
    Anukul

    hi,
    in ur code u already gave
    /: ADDRESS PARAGRAPH AS goto paragraph formats n define or make the required changes for the paragraph format AS.
    click on character formats n define/change the character formats as breakpoint has mentioned.

Maybe you are looking for

  • What is diff b/w order series and time seriesu2026

    what is diff b/w order series and time seriesu2026

  • Hide ToDos in printout (or main view?)

    Hey all - I'm trying to figure out how to hide ToDo items from the list in iCal. The drop down has an option for "Show all completed items" and when I do not have it selected it hides SOME of the completed ToDo items, but not all. More importantly, I

  • Subquery in owb

    Hi, How do i implement sub-queries in owb. Something like this select * from t1 where t1.claimno > select t2.claimno from t2 What are the transformations I need to use and their order in the mapping? Thank you Billu

  • Shuts Down While Rendering

    Recently, my iMac has developed the following behavior:after about 15 minutes of rendering, display goes dark, machine goes silent and rendering stops. After I "wake it up" (mouse click does the trick), rendering resumes for, say 5 minutes, then shut

  • Siebel 8117 & BIP

    Hi Gurus, We are trying to generate report of CRs from Siebel (Qality > Change Request List), for which we tried using BI Publisher. We have used Siebel security model and we are able to login into BI Publisher using Siebel credentials. From Siebel s