Re: .ents

Subject: Re: .ents
From: Lou Quillio <public -at- quillio -dot- com>
To: Kimberly McClintock <kimberly -dot- mcclintock -at- openlogic -dot- com>
Date: Thu, 08 Jun 2006 15:19:40 -0400

Kimberly McClintock wrote:
> What I want is to be able to see the change I've made to the text in
> something friendlier to the eye than the marked up ascii file without
> having to go through a cumbersome (15 minute) build process. So, I'm
> hoping for a tool that will resolve the entities into something more
> readable.

You're talking about a file that contains a bunch of entity
substitutions that you might reference from _within_ a DTD? Kinda
like this one:

http://rosetta.reltech.org/TC/downloads/archive/Hebrew.ent

I think consistent column spacing is your best friend, here. That
done, any decent text editor that'll let you set "bookmarks" (or
similar) and does pattern-based find (and replace) would let you
tool-around a neatly formatted entity file easily. I use Bluefish.

Keeping track of your changes is trickier.

If it were me, as soon as I started a session, I'd open
`filename.ent` (my monolithic entities file) in a text editor and
immediately save it off with a UNIX timestamp in the name (e.g.,
`filename_1149790832.ent`). Your editor should have a tool for
inserting such timestamp in the file, so I'd insert the timestamp
temporarily on a blank line, highlight it, "cut" it, "Save As ...",
and paste it into the filename.

At this point, `filename.ent` is pristine, and we have a
serially-named duplicate for a working copy.

Make your changes. Before saving, do the timestamp / "Save As"
trick *again*. Let's say it's now `filename_1149791660.ent`.
Here's what's in your directory now:

/filename.ent <== original file
/filename_1149790832.ent <== duplicate original
/filename_1149791660.ent <== first round of changes
...

Do this every time you save, or at least every time you want to set
a milestone. Sorting by filename gives a chronological display,
thanks to the timestamp.

To place one of the versions into use, overwrite `filename.ent` with
it. You can obviously roll-back (and forward) to any version.

Lots of ways to vary this. You could set the original file
read-only, as a safeguard, so you'd have to take an explicit step to
overwrite it. And there's nothing magic about UNIX timestamps,
they're just terse and handy. You might serialize artificially
(`filename_000001.ent`, `filename_000002`, etc.).

You *could* name the duplicate original something like
`filename.ext.bak` to set it off, but that's not a good idea if your
editing sessions will span more than one day. You can't break the
timestamp method; there's nothing to remember.

To view the differences between your original and a revision (well,
any two versions, really) you just need a diff viewer. Here are some:

http://www.thefreecountry.com/programming/filecomparison.shtml

Natch this is poor-man's version control. A CVS or Svn server and
client will go this one better -- but there's a learning curve.

> Anybody know of an editor (by the by) that recognizes the entity markup?

Again, consistent column spacing within the file is the primary
visual enhancement. If you want more, any text editor that offers
custom syntax highlighting will do. Bluefish. HTML-Kit for
Windows. This stuff's all free. Paying money to jockey text files
seems excessive.

Oh, and once your text files are formatted neatly, a text editor
that sorts lines would be a big help, too. Just run the same sort
on each revision before saving. Your diffs will be clearer.

Good idea to leave a README in your directory, too, to let others
know how you're working.

HTH.

LQ
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

WebWorks ePublisher Pro for Word features support for every major Help
format plus PDF, HTML and more. Flexible, precise, and efficient content
delivery. Try it today!. http://www.webworks.com/techwr-l

Doc-To-Help includes a one-click RoboHelp project converter. It's that easy. Watch the demo at http://www.DocToHelp.com/TechwrlList

---
You are currently subscribed to TECHWR-L as archive -at- infoinfocus -dot- com -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/archive%40infoinfocus.com


To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to lisa -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.


References:
.ents: From: Kimberly McClintock

Previous by Author: Re: Converting embedded Word Images
Next by Author: Re: Importing Excel workbook into Frame
Previous by Thread: Ents?? (Is it Friday, yet?)
Next by Thread: numbering image/table captions with chapter numbers in ms word without using built-headings


What this post helpful? Share it with friends and colleagues:


Sponsored Ads