Skip to main content
Inspiring
May 27, 2010
Answered

[CS4 AS] Export Tagged Text Import Tags LF to CR?

  • May 27, 2010
  • 1 reply
  • 694 views

Hi:

I got an Intel machine and now a script that exports tagged text from one document and imports into another has all of the linefeeds (shift-return) changed into carriage returns. I need those linefeeds -- how can I preserve them?

Thanks for any insights,

guy

CS4, OS 10.5.8, Power Mac Quad-core Intel

This topic has been closed for replies.
Correct answer sstanleyau

It looks like it happens only when you export as Unicode -- I suggest you log a bug. it looks like it happens in CS5 also. Can you export as ASCII instead? That encodes all the Unicode, although it makes processing a bit more difficult...

1 reply

sstanleyauCorrect answer
Inspiring
May 28, 2010

It looks like it happens only when you export as Unicode -- I suggest you log a bug. it looks like it happens in CS5 also. Can you export as ASCII instead? That encodes all the Unicode, although it makes processing a bit more difficult...

Inspiring
May 28, 2010

Thanks, Shane!

Wow, I found a bug... Where do I report it?

Yes, I was exporting the tags as unicode, remembering Adobe's "everything is unicode in CS4"... It's really too bad they don't have any testers in their programming department.

What processing problems do you foresee if I simply change the export pref to ASCII? I manually placed the exported ASCII tags and all of the upper-ASCII characters came back in fine. I will have to test the scripted import later.

Thanks again,

guy

Inspiring
May 28, 2010

You can report bugs here: <https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform>

The ASCII export still includes non-ASCII characters OK, but exports them encoded like <0x2019>. This is painful if you intend to do much processing of the exported files, but otherwise works fine.

Another possibility is to precede the export with a find/change that inserts some tag, and reverse the process on the exported file. It could be done as a single script, so it wouldn't be particularly onerous to use.

But post that bug first...