HP3000-L Archives

April 2004, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tracy Pierce <[log in to unmask]>
Reply To:
Tracy Pierce <[log in to unmask]>
Date:
Tue, 13 Apr 2004 14:24:32 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (60 lines)
I publish some e3k listings to htm files; they usually work just fine using
<pre>.  When I have special characters to insert, such as linedrawing, I use
Unicode, and that usually works fine too.  Now I have a perplexing alignment
problem that just started cropping up when I add the second column to the
list, but only on lines that contain <specialchar><space> - that is to say,
<specialchar><non-space> seems to work fine.

When I insert a special character's unicode into the file, I take special
pains to really pass correct lengths so I'll end up with aligned columns,
but it seems that "sometimes", MSIE tries to "help".  In this example, each
occurrence of "&#x251C;" etc produces one character of output; the rest of
the data on each line is perfectly padded to make things come out nicely.
But on those lines which contain <unicodedspecialchar> followed by a space,
my columns get all messed up, grrr!

You can see what's happening by grabbing this chunk of text and pasting it
into your browser (don't let it wrap in your email client!); you can see
what the alignment's SUPPOSED to look like by turning every 8-char unicode
declaration into a single character right here, plaintext.  Hoping
somebody's btdt, this is annoying me and wasting lots of my time.  The same
code uses HPLineDraw on the terminal, PC-8 on laserjets, works great, same
concept.  What's the dang browser doing to me, please?

<HTML><BODY><PRE><A NAME="top"></A>

Ctyp Description(U99PP50AYY)    Last#Used  Actcode Description

PP50 ___Series 50 Power Plant__            081205  Power Plant Series 50

&#x251C;BATT Batteries                            07006   CHANGE 2 BATTS,12
VOL
&#x2502;&#x2502;                                         07007   CHANGE ALL
BATTERIES
&#x2502;&#x251C;EIL1 Injector, #1 Left                   08022   #1 INJECTOR
L.H.
&#x2502;&#x251C;EIL2 Injector, #2 Left                   08023   #2 INJECTOR
L.H.
&#x2502;&#x2514;TUNE Tune-up                             08123   TUNE
UP,ADJUST VALVES
&#x2502;                                          08126   TUNE-UP &
INJECTORS/R
&#x251C;EIS5 Series 50 Injectors_______

&#x2502;&#x251C;IH50 Harness, Injectors Ser.50           08142   R&R
INJECTOR HARNESS
&#x2502;&#x251C;EI1  Injector #1, Series 50-60           08155   R & R #1
INJECTOR

yes I know the data doesn't make sense - batteries don't have injectors.
it's a test database; the tree drawing works kewel except in this instance.

K Tracy Pierce
Systems Programmer
Golden Gate Bridge, Hwy & Transp District
P.O. Box 9000 Presidio Station
San Francisco CA  94129-0601

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2