Copy link to clipboard
Copied
A couple months ago I worked out the kinks of using "tagged text" to get paragraph styles and character styles applied automatically to imported text. For background, see this thread. At the time, experimentation demonstrated that I didn't need to define the styles in the text file as long as the styles were already defined in the ID document. Everything was working fine.
But now I'm coming back to this project, and suddenly InDesign is complaining that it can't find the paragraph styles in a "paragraph table". Here is a MWE:
<UNICODE-WIN>
<pstyle:Alpha Line 1><cstyle:Alpha initial>E<cstyle:><cstyle:Alpha name>LLRICK, Karen<cstyle:> 1996 IND
<pstyle:Alpha Rom address><cstyle:Member symbol>¬<cstyle:>
<pstyle:Alpha right><cstyle:No break>エルリック<cstyle:>
And here is a screenshot of the error popup I'm getting:
If I add simple definitions to the file, like this (modeled after the definitions in the other thread's answer, which were not needed in my experience):
<UNICODE-WIN>
<DefineParaStyle:Alpha Line 1=<Nextstyle:Alpha Line 1>>
<DefineParaStyle:Alpha Rom address=<Nextstyle:Alpha Rom address>>
<DefineParaStyle:Alpha right=<Nextstyle:Alpha right>>
<pstyle:Alpha Line 1><cstyle:Alpha initial>E<cstyle:><cstyle:Alpha name>LLRICK, Karen<cstyle:> 1996 IND
<pstyle:Alpha Rom address><cstyle:Member symbol>¬<cstyle:>
<pstyle:Alpha right><cstyle:No break>エルリック<cstyle:>
Then it no longer complains about the styles, but it creates new paragraph styles with none of the formatting I want. I don't want to create new styles - everything is already nicely defined and organized in the document I'm importing into.
Curiously, it is not complaining about character styles and is correctly using the ones in the document. Only paragraph styles are having this problem. Any clues? My ID version is 19.0.1 x64, and I'm pretty sure it has not be upgraded during the couple months I wasn't looking at this.
But that is not a bug, if you have style in a group and use the tagged text with a paragraph style without the group then it is not supposed to find it. However, if the full qualified name of the style is included in the tagged text and that path exists in the destination document then it still works fine for me. See the following tagged text
<ASCII-MAC>
<vsn:18.3><fset:InDesign-Roman><ctable:=<C\=0 M\=100 Y\=0 K\=0:COLOR:CMYK:Process:0,1,0,0>>
<pstyle:Style Group 1\:Paragraph Style 1>hello
If t
...Copy link to clipboard
Copied
Works fine for me on version 18.3 and 19.4. Tagged text without any paragraph defintion is picking up the style if defined in the document.
<ASCII-MAC>
<Version:18.3><FeatureSet:InDesign-Roman><ColorTable:=<C\=100 M\=0 Y\=0 K\=0:COLOR:CMYK:Process:1,0,0,0>>
<ParaStyle:Paragraph Style 1>At andae apero doluptibusam ad molor accatquis qui volorem porio. Num, to dolenihil in recti quodia dolupta tiatem hiciisint eatus et quis restiat fugit facidelitat.
<ParaStyle:Paragraph Style 1>Icia num liberen itemped qui nima quis mod explatiberis et dis ullis aspis sapid que nihit veliqua erepeli ssequidus.
<ParaStyle:Paragraph Style 1>Dunditaqui que nobis quibusda voluptatis rere conem quiamus non nobis eat.
<ParaStyle:Paragraph Style 1>Bit omni di opta volectu riametus.
The tagged text above is the one I used to test and it worked fine for me. Check if this is an issue with a particular INDD document, also try this on another version of InDesign
-Manan
Copy link to clipboard
Copied
I tried saving as IDML and reopening to give the document a bath. No change. I then tried starting with a fresh new document and copy/pasting a few lines of text from the real document just so the new doc would have the necessary styles. It still didn't work. As for trying a different version of InDesign, I'm hesitant to upgrade at the moment because I'm in the final stages of production of a magazine (unrelated to this project) - I try to avoid upgrading software when deadlines are looming. That will probably be done in about a week, and then I won't mind experimenting.
It's so strange that it worked fine in April but now it fails with the exact same files (both the document and the tagged text file that were used then) and no changes to InDesign that I'm aware of.
Copy link to clipboard
Copied
I figured it out, and I think this is a bug (or at least a deficiency) in InDesign. It will not find styles that are in folders! I had apparently tidied up my styles after the last time I imported, so I didn't realize that it would no longer work. I took the styles out of the folder, and everything worked fine.
Copy link to clipboard
Copied
But that is not a bug, if you have style in a group and use the tagged text with a paragraph style without the group then it is not supposed to find it. However, if the full qualified name of the style is included in the tagged text and that path exists in the destination document then it still works fine for me. See the following tagged text
<ASCII-MAC>
<vsn:18.3><fset:InDesign-Roman><ctable:=<C\=0 M\=100 Y\=0 K\=0:COLOR:CMYK:Process:0,1,0,0>>
<pstyle:Style Group 1\:Paragraph Style 1>hello
If the destination has a "Paragraph Style 1" named style in a group named "Group 1" then there will be no warning and it would apply the style as well.
-Manan