[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Another challenge for DELTAGS | non-Xy 'Can't Print 'ems'



Carl and Jordan: yes, those numerical values are used, with varying
degrees of support. For example, ‘ for open single quote, through
” for close double quote, are fairly widely honored, while 150 and
151, for en and em dashes, are less so. I have been working on a table
showing all these equivalences across Xy, WP, *ML, etc., but other things
keep intervening. I did write a couple of simple routines to change some
of the more common back and forth (HTMtoXY,XYtoHTM), attached here. The
first one (unktoxy) was very quick and dirty: I just eyballed a file I
had imported, figured out what the oddball chars should be, ran the CIs,
and then copied them to a .pgm file. (And I don't think I've quite got
the hang of XPLeNCODE yet, so there may be some extraneous code in there;
each pgm begins with TF and end with the last Q2)

XPLeNCODE v2.0...[cr|lf]  b-gin
unktoxy[cr|lf][TF_][BC_]ci{032}/[804]/[259]/[Q2_][BC_]ci
/[805]/[260]/[Q2_][BC_]ci /[801]/[264]/[Q2_][BC_]ci
/{148}/[265]/[Q2_][BC_]ci /{146}/[267]/[Q2_]
-nd
XPLeNCODE

XPLeNCODE v2.0...[cr|lf]b-gin xytohtml[cr|lf][TF_][BC_]ci
|{<}MD+BO{>}||[XC_][BC_]ci |{<}MD-BO{>}||[XC_][BC_]ci
|{<}MD+IT{>}||[XC_][BC_]ci |{<}MD-IT{>}||[XC_][BC_]ci
|[267]|&#146;|[XC_][BC_]ci |[266]|&#145:|[XC_][BC_]CI |[258]|&#133;|[
XC_][BC_]CI |[264]|&#147;|[XC_][BC_]CI |[265]|&#148;|[XC_][BC
_]CI |[260]|&#151;|[XC_][BC_]CI |[259]|&#150;|[XC_][BC_]CI |<
/I>,|,|[XC_][BC_]CI |.|.|[XC_]
-nd
XPLeNCODE
Note that the last also gets the commas and periods inside the end ital
codes, as publishers want them.
Patricia