Skip navigation
JustyR
Currently Being Moderated

Importing edited RTF file and auto-applying styles?

Aug 28, 2010 8:10 AM

Hi,

 

I've been working on a huge document that requires exporting all text to an RTF file. The client makes amendments as necessary and the file is re-imported.

 

However, when the RTF is brought back in, the character styles don't seem to update themselves. Paragraph styles seem easy enough to re-assign and update but if a word is made bold by using a character style, that same word in the ID doc shows a style override (the + symbol).

 

How can these overrides be cleared in one go, or perhaps checked for and updated like doing a find/change?

 

Thanks in advance if you can help.

 

Justy

 
Replies
  • Currently Being Moderated
    Aug 28, 2010 9:01 AM   in reply to JustyR

    Sounds like theclient is using local formatting rather thanthe defined styles, which isn't too unusual. There are a couple of find/change scripts floating around that will find text that is locally formatted with things like bold or italic and assign the character styles. Afet that you select all and clear overrides.

     

    Take a look at http://forums.adobe.com/message/1946434#1946434

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2010 9:06 AM   in reply to JustyR

    Did you use style mapping. I just ran a quick test and had no problems with either character or paragraph style mappings, no overrides...

     

    If you did use style mapping tool, then I think Peter may be right...

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2010 9:25 AM   in reply to JustyR

    In addition to the other posts, I'll do what I always do...recommend that you look into using InCopy for this.

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2010 1:41 PM   in reply to JustyR

    Are you absolutely certain that there are no overides in ID BEFORE you export as RTF?

     

    When you import, if the styles in the RTF are used, there should be no reason to need to map styles, just preserve styles and formatting, import styles automatically and in case of conflict use InDesign defintion.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2010 3:20 PM   in reply to JustyR

    Could possibly be a corrupt document or corrupt prefs. It won't hurt anything to try these:

     

    Replace Your Preferences and

    Remove minor corruption by exporting

     

    Do you have any third party plugins? A font manager? What's the OS?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 29, 2010 7:40 AM   in reply to JustyR

    OK, I just tried it here. I made a frame and filled with Placeholder text. Then I created 3 paragraph styles, all based on either [No Style] or each other to avoid basing anything on [Basic Paragraph] (you can have all sorts of strange things happen with styles based on Basic Paragraph when moving text between files where the definition has bee altered). The I created a Bold and an Italic character style, and applied the paragraph styles to all but one paragraph (leaving one as Basic Paragraph), and applying the character styles to the first or last word in each paragraph in order to know where they were.

     

    I exported to RTF, opened Word and applied the character styles to some additonal words, swapped some paragraph styles, redefined the font in one style and added a paragraph, then did a save as to RTF.

     

    I reimported the RTF to ID. If I import to a file (such as the original file) where the styles already exist, the tags are maintained and the text is styled correctly, but as you report, all the paragraph styles now have an override. I checked, and this override is for hyphenation settings, so it should not be affecting your italics or other character styles. It seems that Word perhaps does not respect the hyphenation settings in the exported styles, but I don't know why ID doesn't reset them -- it correctly reset the changed font.

     

    If I import into a new document where only Basic Paragraph exists, paragraph tagged with basic paragraph has an override for hyphenation and uses the definition for Basic Paragraph in the ID file. The other styles are imported as external styles, which is to be expected since there were no exisiting styles with those names. All the character styles are correctly applied. These are the settings I used:

    RTF import.png

     

    SInce on the file where the styles showed overrides they were strictly hyphenation-related, and since properly applied character styles are not overrides, it is safe to select all and clear overrides. On the file showing the disk import you can edit the style to correct the hyphenation rules, or just cange any attibute and then change back before clicking OK and closing if all you want to do is get rid of the disk icon.

     

    I'm still not sure why you are not seeing your italics where they ought to be. The only explanation I can think of is they were never tagged with the italic style.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 29, 2010 10:08 AM   in reply to JustyR

    As I said, it makes no sense that a character style would have an override unless the user on the other end is completely in the dark about properly applying styles. All I can think of is someone adding text after a styled word, that new text picks up the style for the previous word, and the user uses local formatting to remove the styling. Since Word seems totally ignorant that text can have a [None] style, this is probably what's happening. I don't see a way around this in Word other than to be careful about where you insert the cursor, and being careful in ID not to include trailing spaces in the style. There seems to be no way in Word to remove a character style from text once it is applied.

     

    Perhaps what you need is a script that will find character styles to which overrides have been applied and apply [None], but of course you still have the problem of knowing if the other user intended for a style to be applied.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 29, 2010 11:40 AM   in reply to JustyR

    Are you using a style named Normal or BodyText, or something else that Word has by default? It's possible that word is redefining the styles to match its definitions, and if you import back to a file without your own defs things are not being changed, but I'd really need to see your test files to know why things don't work for you the way they should.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 29, 2010 1:39 PM   in reply to JustyR

    Don't have time, myself, to look tonight, but if nobody else takes a stab, I'll try to get to it tomorrow.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 30, 2010 12:02 PM   in reply to Peter Spier

    Word seems to be seriously screwing up this file. I've been working with it for over an hour, and I think the problem is at least partly related to your style names. Word has default styles named Header and Body, and if I get rid of those names in ID in favor of Heading and Body Text most of the problems seem to disappear, but your Body Bold Character style is still holding onto the wrong font and showing an override. That seems to clear up properly when I select all and clear overrides.

     

    Note that any changes you make other than style definitions are going to be lost because you are linking to the RTF rather than embedding the file, so you should do all the editing in Word.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 31, 2010 8:28 AM   in reply to JustyR

    There's a similar thread started yesterday about unlinking a linked RTF, and your file and his show a remarkable similarity. I'm not convinced that there isn't some corruption in the RTF.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 7:33 AM   in reply to Peter Spier

    I am having the same problem with importing text from word. How do I run this script in Indesign?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 7:45 AM   in reply to Jeneffer Goncalves

    Download the ZIP file and unpack it (if your browser doesn't do that by itself); save into your User Scripts folder. Where is your User Scripts folder? Fastest way to find out is select the "User" folder thingy in the Scripts panel, then right-click it. The only option the pop-up menu offers is "Reveal in Finder"/"Reveal in Explorer". Put the script in there.

     

    To run it, make sure your text cursor is inside the story you want to prepare. Then double-click the script name to run it.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 9:32 AM   in reply to [Jongware]-9BC6tI

    Thanks, but it is not really working for me. Here is my problem... I have a

    word document with paragraph and character style that I want to replace in

    Indesign. I use the ID import option and then mapping to replace the word

    style with my ID styles. When I place the text it does not change to my ID

    style paragraph but only after I clear overrides +, which gets rid off any

    bold or stalics in the text---I don't want this to happen... I want to keep

    bold and stalics, or least know where they are so I can change the font to

    match the ID paragraph style. Is there a away to keep them even after I

    clear the overrides?My ID paragraph style uses garamond regular, I wish

    there was a way that when it comes across italics within the text it changes

    it to garamond italics or at least the option to do so.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 9:41 AM   in reply to Jeneffer Goncalves

    There is a sample script called createcharacterstyles. That will convert the manual bolds and italics to true character styles. After that you can kill the rest of the overrides.

     

    Bob

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 11:16 AM   in reply to Bob Levine

    Ok. Where can I find it?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 12:11 PM   in reply to Bob Levine

    I see where I can find it now... I am not sure why I would need a script to

    create a character style. When I import the text using ID style import ID

    keeps the original font from word even though I applied a paragraph style to

    text, it is only after I clear the overrides that the ID paragraph style

    kicks in but my bolds and italics are gone--not good.... I guess I just have

    make a separate character style for my bolds and italics, and change them

    manually before I clear overrides...

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 12:31 PM   in reply to Jeneffer Goncalves
    I guess I just have make a separate character style for my bolds and italics, and change them

    manually before I clear overrides...

    That's exactly what the script that Bob is suggesting to you will do.

     

    I prefer PrepText, but there are a few other script out there that do similar tasks. If I can find 'em, I'll post links.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 1:02 PM   in reply to Joel Cherney

    I figured that... It .. Even if I run the script to create a new character

    style I still have to change the font to the correct family font... So I was

    just saying that I can just select the text that is italic and bold create a

    new style without having to use the script... It takes just as much time...

    at least for me.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 1:09 PM   in reply to Jeneffer Goncalves

    I guess so. In my case, it's the difference between 10 clicks to get the script going and something like sixty clicks per language of a 100+page manual going into eight languages, but you'd be the best judge of the most efficient method for you.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 1:59 PM   in reply to Joel Cherney

    I see...In my case creating character style for bold and stalics does not

    resolve my original problem. Import options in Indesign seems to have a mind

    of it own, I am always getting undesirable results---I have spent two days

    figuring out the best way to place a word document into Indesign--very

    frustrating...

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2011 2:20 PM   in reply to Jeneffer Goncalves

    The workflow I use to handle running English text out of ID documents into RTF for translators to work in Word, and to run their translations back in, is exactly what you're asking about.

     

    Analyze ID file

    Make sure the para and character styling in ID is absolutely perfect without any overrides anywhere

    Export RTF

    Send to translator

    Receive translated file

    Place RTF

    Map styles in Import Options

    Create new charstyles for new local formatting

    Clear all overrides

     

    ... and then I crawl through the document doing little tweaks to the layout.

     

    I have spent two days figuring out the best way to place a word document into Indesign

    Only two days? It took me weeks to get this workflow to work at all. Now that I've been using it for years, it usually goes off without a hitch, but there are a very large number of variables that need to be watched carefully. (InCopy would be a much better solution, if I could get 100+ translators to pay for it, learn how to use it, and abandon their transation memory tools that work with Word but not InCopy... never gonna happen.)

     

    Can you post your RTFs and your ID file? It might be easier to understand what is not working for you if we could try it ourselves.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 8:11 AM   in reply to Joel Cherney

    Sounds like what you are doing is a lot complicated. I am currently working on a Magazine, where I have to place in Indesign unformatted doc files from the editor and then reformatting them using my ID styles. In any case, I'll try your approach and see if it works. Thanks.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 10:02 AM   in reply to Jeneffer Goncalves

    I am currently working on a Magazine, where I have to place in Indesign unformatted doc files from the editor and then reformatting them using my ID styles. In any case, I'll try your approach and see if it works. Thanks.

    It sounds like my approach won't work 100% for you; one of the advantages I have is that translators tend to hit the Insert key and type over the English with their translations, which more-or-less preserves the styles in the RTF that I built in InDesign. (Also, translators tend to both respect styles in Word, which is very unusual among Word users, and many of them use translation memory applications that preserve styles perfectly.) If your editorial contributors get to make up their own Word files, then using a script to turn locally-applied character formatting in Word to character styles in InDesign will save you some time, but you'll still need to apply your own paragraph styles to the text.

     

    If your editorial contributors working in Word use their own styles in Word, you might be able to map their styles to yours (using the "Customize Style Import" radio button at the bottom of the screenshot in Peter's post no. 9), or you might just import their styles and do a (manual or automated) find & change on those styles. However, in a worst-case scenario where you work with a number of editors, each of whom have complete control over their own Word files, and each of whom has a unique approach to using or neglecting styles, then you will face a large amount of manual work no matter what, even with scripts to help. One useful tool is only available when right-clicking on a paragraph style; "Apply Style then Next Style" is useful when you want to apply a subheader style & then body style to a large number of paragraphs.

     

    I've had some luck with imposing my own Word .dot template files on editorial contributors, but in each case where I've had this luck, I've convinced a boss to impose Word templates with locked-down styles on everyone involved in producing content for the project. This tactic may not work for you, depending on whether or not you have the ear of someone in the organization who can tell people "You must use this Word template."

     

    This is one of the clumsier ways to lock editors into respecting formatting, but if you can't use a content management system or a structured authoring system or InCopy or anything like that, it may work for you.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 11:20 AM   in reply to Joel Cherney

    I will talk to my boss and see if we can impose word templates on our

    editorial staff--that's probably the best solution to my problems. Thanks

    for the suggestions.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 11:40 AM   in reply to Jeneffer Goncalves

    It's worth a shot; best of luck.

     

    If I were in your shoes, my order of suggestions would go like this:

     

    1) InCopy

    2) Word document template with heavy protection (user must start all new Word files with a given .dot; layout staff rejects any Word file not generated with correct .dot; .dot allows only typing of text and selection of styles)

    3) Word file assignment with styles and heavy protection (user can't even change fonts, only type text and select styles)

    4) Word document template with  styles, unprotected (user can deviate from styles with manual formatting; layout staff rejects any Word file not generated with correct .dot; .dot allows only typing of text and selection of styles)

    5) Word file assignments with styles, unprotected (user can deviate from styles with manual formatting)

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2011 12:12 PM   in reply to Joel Cherney

    Joel, your user account looks screwed up (though the post count appears to be accurate). You might want to try logging out and clear your cookies, then log in again.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 8, 2011 3:52 AM   in reply to Peter Spier

    Yeah. This forum software sometimes make you want to "chuck your cookies"...

     

    Harbs

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points