View Single Post
Old 06-19-2008, 11:16 AM   #19
radius
Lector minore
radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.radius ought to be getting tired of karma fortunes by now.
 
radius's Avatar
 
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
Quote:
Originally Posted by Ralph Sir Edward View Post
That's why I have a good hex file editor. But I'm an old mainframer, used to twiddling bits.
I'm a professional bit-twiddler too (mostly C and assembly language programming) and reading RTF gives me a headache

Lets say I want this sentence centred on one line:

The quick brown fox jumps over the lazy dog.

In HTML, that would be something similar to this:

<HTML>
<HEAD></HEAD>
<BODY>
<DIV>
<p align=center style='text-align:center'>The <b>quick</b> <i>brown</i> fox jumps over the lazy dog.</p>
</DIV>
</BODY>
</HTML>

I just opened MS Word and typed the sentence in, then saved it as RTF. This is what I got out of Word:

{\rtf1\ansi\ansicpg1252\uc1\deff0\stshfdbch11\stsh floch0\stshfhich0\stshfbi0\deflang1033\deflangfe10 41{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
{\f11\fmodern\fcharset128\fprq1{\*\panose 02020609040205080304}MS Mincho{\*\falt \'82\'6c\'82\'72 \'96\'be\'92\'a9};}{\f36\fmodern\fcharset128\fprq1 {\*\panose 02020609040205080304}@MS Mincho;}{\f37\froman\fcharset238\fprq2 Times New Roman CE;}
{\f38\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f40\froman\fcharset161\fprq2 Times New Roman Greek;}{\f41\froman\fcharset162\fprq2 Times New Roman Tur;}{\f42\froman\fcharset177\fprq2 Times New Roman (Hebrew);}
{\f43\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f44\froman\fcharset186\fprq2 Times New Roman Baltic;}{\f45\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}
{\f149\fmodern\fcharset0\fprq1 MS Mincho Western{\*\falt \'82\'6c\'82\'72 \'96\'be\'92\'a9};}{\f147\fmodern\fcharset238\fprq 1 MS Mincho CE{\*\falt \'82\'6c\'82\'72 \'96\'be\'92\'a9};}
{\f148\fmodern\fcharset204\fprq1 MS Mincho Cyr{\*\falt \'82\'6c\'82\'72 \'96\'be\'92\'a9};}{\f150\fmodern\fcharset161\fprq 1 MS Mincho Greek{\*\falt \'82\'6c\'82\'72 \'96\'be\'92\'a9};}
{\f151\fmodern\fcharset162\fprq1 MS Mincho Tur{\*\falt \'82\'6c\'82\'72 \'96\'be\'92\'a9};}{\f154\fmodern\fcharset186\fprq 1 MS Mincho Baltic{\*\falt \'82\'6c\'82\'72 \'96\'be\'92\'a9};}{\f399\fmodern\fcharset0\fprq1 @MS Mincho Western;}
{\f397\fmodern\fcharset238\fprq1 @MS Mincho CE;}{\f398\fmodern\fcharset204\fprq1 @MS Mincho Cyr;}{\f400\fmodern\fcharset161\fprq1 @MS Mincho Greek;}{\f401\fmodern\fcharset162\fprq1 @MS Mincho Tur;}{\f404\fmodern\fcharset186\fprq1 @MS Mincho Baltic;}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue255 ;\red0\green255\blue255;\red0\green255\blue0;\red2 55\green0\blue255;\red255\green0\blue0;\red255\gre en255\blue0;\red255\green255\blue255;\red0\green0\ blue128;\red0\green128\blue128;\red0\green128\blue 0;
\red128\green0\blue128;\red128\green0\blue0;\red12 8\green128\blue0;\red128\green128\blue128;\red192\ green192\blue192;}{\stylesheet{\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faa uto\adjustright\rin0\lin0\itap0
\fs24\lang1033\langfe1041\loch\f0\hich\af0\dbch\af 11\cgrid\langnp1033\langfenp1041 \snext0 Normal;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\*
\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\tr paddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trc fpat1\tblind0\tblindtype3\tscellwidthfts0\tsvertal t\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdr dgr\tsbrdrh\tsbrdrv
\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faa uto\adjustright\rin0\lin0\itap0 \fs20\lang1024\langfe1024\loch\f0\hich\af0\dbch\af 11\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}}{\*\rsidtbl \rsid6255114\rsid11693386
\rsid13248871\rsid16736841}{\*\generator Microsoft Word 10.0.6843;}{\info{\title The quick brown fox jumps over the lazy dog}{\author vyin}{\operator vyin}{\creatim\yr2008\mo6\dy19\hr11\min2}{\revtim\ yr2008\mo6\dy19\hr11\min2}{\version1}{\edmins0}
{\nofpages1}{\nofwords6}{\nofchars39}{\*\company Espial Group Inc}{\nofcharsws44}{\vern16393}{\*\password 00000000}}{\*\xmlnstbl }\paperw12240\paperh15840\margl1800\margr1800\marg t1440\margb1440\gutter0
\widowctrl\ftnbj\aenddoc\grfdocevents0\noxlattoyen \expshrtn\noultrlspc\dntblnsbdb\nospaceforul\forms hade\horzdoc\dgmargin\dghspace180\dgvspace180\dgho rigin1701\dgvorigin1984\dghshow1\dgvshow1
\jexpand\viewkind4\viewscale100\pgbrdrhead\pgbrdrf oot\splytwnine\ftnlytwnine\htmautsp\nolnhtadjtbl\u seltbaln\alntblind\lytcalctblwd\lyttblrtgr\lnbrkru le\nobrkwrptbl\snaptogridincell\allowfieldendsel\w rppunct\asianbrkrule\rsidroot6255114 \fet0
{\*\wgrffmtfilter 013f}\sectd \linex0\endnhere\sectlinegrid360\sectdefaultcl\sft nbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnha ng {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang
{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnha ng {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnha ng {\pntxtb (}{\pntxta )}}{\*\pnseclvl7
\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnha ng {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhan g {\pntxtb (}{\pntxta )}}\pard\plain
\qc \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faa uto\adjustright\rin0\lin0\itap0\pararsid11693386 \fs24\lang1033\langfe1041\loch\af0\hich\af0\dbch\a f11\cgrid\langnp1033\langfenp1041 {\insrsid11693386 \hich\af0\dbch\af11\loch\f0 The }{
\b\insrsid11693386\charrsid11693386 \hich\af0\dbch\af11\loch\f0 quick}{\insrsid11693386 \hich\af0\dbch\af11\loch\f0 }{\i\insrsid11693386\charrsid11693386 \hich\af0\dbch\af11\loch\f0 brown}{\insrsid11693386 \hich\af0\dbch\af11\loch\f0
fox jumps over the lazy dog.}{\insrsid16736841
\par }}


Now maybe there are programs that produce easier to understand RTF, but it looks to me like HTML is far, far easier to understand for most people!

On the other hand, I find that most of the editors for RTF (ie: word processors) are much easier to format documents with than most HTML editors, which are optimized to edit "pages" instead of "books".
radius is offline   Reply With Quote