TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: Converting space-aligned text From:quills -at- airmail -dot- net To:Victoria Wroblewski <victoria -dot- wroblewski -at- eagletest -dot- com> Date:Mon, 23 Feb 2009 17:15:28 -0600
You could use most any capable text editor to find large numbers of
spaces and replace them with a tab. Or use a GREP program.
Scott
Victoria Wroblewski wrote:
> All,
>
> We've got a monster of a plain text file that is generated from our
> equipment that we need to format into something more professional
> looking. Basically, it spits out data that we want to format to look
> something like the following:
>
> 6.20 x.xxxx xxxx xxxxxxxxxxxxxxxxx
> 6.21 x = x.x
> 6.22 x.xxxx xxxx xxxxxxxxxxxxxxxxxxxxx
> 6.23 x = x.x
> 6.24 xx.xxxx xxxx xxxxxxxxxxxx
> 6.25 x = x.x
>
> The problem is that it spits this out as a text file with everything
> spaced using spaces, and not tabs. Makin' it pretty means going in and
> manually converting various lengths of spaces into tabs, or aligning it
> all with spaces (and it's been a "six of one, half a dozen of the other"
> experience using either method).
>
> Are there any tools out there that can deal with helping to convert this
> kind of stuff? I haven't been able to find a way to automate the
> removal of the spaces, since they can be different on each line, but I
> don't know if this type of edit is common enough where someone has put
> together any sort of application that will even do something like
> convert areas with more than two spaces into a tab rather than spaces.
>
> Anyone??
>
>
> Thanks,
>
>
> Victoria Wroblewski
> Developer - Technical Documentation
> Eagle Test Systems, Inc.
>
>
> **This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.**
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> ComponentOne Doc-To-Help 2009 is your all-in-one authoring and publishing
> solution. Author in Doc-To-Help's XML-based editor, Microsoft Word or
> HTML and publish to the Web, Help systems or printed manuals.
>http://www.doctohelp.com
>
> Help & Manual 5: The complete help authoring tool for individual
> authors and teams. Professional power, intuitive interface. Write
> once, publish to 8 formats. Multi-user authoring and version control! http://www.helpandmanual.com/
>
> ---
> You are currently subscribed to TECHWR-L as quills -at- airmail -dot- net -dot-
>
> To unsubscribe send a blank email to
> techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
> or visit http://lists.techwr-l.com/mailman/options/techwr-l/quills%40airmail.net
>
>
> To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com
>
> Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
>http://www.techwr-l.com/ for more resources and info.
>
> Please move off-topic discussions to the Chat list, at:
>http://lists.techwr-l.com/mailman/listinfo/techwr-l-chat
>
>
>
>
ComponentOne Doc-To-Help 2009 is your all-in-one authoring and publishing
solution. Author in Doc-To-Help's XML-based editor, Microsoft Word or
HTML and publish to the Web, Help systems or printed manuals. http://www.doctohelp.com
Help & Manual 5: The complete help authoring tool for individual
authors and teams. Professional power, intuitive interface. Write
once, publish to 8 formats. Multi-user authoring and version control! http://www.helpandmanual.com/
---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-