?? rfc1563.ps
字號:
1126(to)X1233(de\256ne)X1499(formatting)X1937(commands)X2385(that)X2561(can)X2726(take)X2918(arguments.)X3398(This)X3600(is)X3695(the)X3844(intended)X720 1648(use)N874(of)X980(the)X1125(<param>)X1501(construct.)X1929(In)X2036(particular,)X2457(software)X2815(that)X2987(wished)X3286(to)X3388(extend)X3672(text/enriched)X720 1760(to)N820(include)X1129(colored)X1443(text)X1613(might)X1863(de\256ne)X2123(an)X2239("x-color")X2620(environment)X3132(which)X3392(always)X3684(began)X3938(with)X4133(a)X720 1872(color)N942(name)X1175(parameter,)X1609(to)X1708(indicate)X2038(the)X2180(desired)X2482(color)X2704(for)X2840(the)X2982(affected)X3317(text.)X3 f16 s720 2016(An)N915(Exam)X(ple)S1 f12 s720 2240(Putting)N1022(all)X1143(this)X1306(together,)X1670(the)X1812(following)X2210("text/enriched")X2840(body)X3056(fragment:)X7 f10 s1296 2448(From:)N1584(Nathaniel)X2064(Borenstein)X2592(<nsb@bellcore.com>)X1296 2544(To:)N1488(Ned)X1680(Freed)X1968(<ned@innosoft.com>)X1296 2640(Content-type:)N1968(text/enriched)X1296 2832(<bold>Now</bold>)N2112(is)X2256(the)X2448(time)X2688(for)X2880(<italic>all</italic>)X1296 2928(good)N1536(men)X1344 3024(<smaller>\(and)N2016(<<women>\)</smaller>)X2976(to)X1296 3120(<ignoreme>come</ignoreme>)N1296 3312(to)N1440(the)X1632(aid)X1824(of)X1968(their)X1296 3600(<x-color><param>red</param>beloved</x-color>)N1296 3696(country.)N1296 3888(By)N1440(the)X1632(way,)X1872(I)X1968(think)X2256(that)X2496(<<smaller>)X1296 4080(should)N1296 4272(REALLY)N1632(be)X1776(called)X1296 4464(<<tinier>)N1296 4560(and)N1488(that)X1728(I)X1824(am)X1968(always)X2304(right.)X1296 4752(--)N1440(the)X1632(end)X1 f12 s720 4960(represents)N1140(the)X1288(following)X1693(formatted)X2099(text)X2275(\(which)X2573(will,)X2778(no)X2905(doubt,)X3179(look)X3381(somewhat)X3802(cryptic)X4101(in)X720 5072(the)N862(text-only)X1234(version)X1541(of)X1645(this)X1808(document\):)X3 f1008 5296(Now)N1 f1218(is)X1306(the)X1448(time)X1644(for)X2 f1780(all)X1 f1906(good)X2122(men)X10 s2312(\(and)X2475(<women>\))X12 s2852(to)X2951(come)X1008 5408(to)N1107(the)X1249(aid)X1391(of)X1495(their)X1008 5632(beloved)N1337(country.)X720 6160(Borenstein)N3853([Page)X4096(9])X10 p%%Page: 10 1012 s 12 xH 0 xS 1 f720 400(RFC)N925(1563)X1844(A)X1937(text/enriched)X2465(type)X2655(for)X2791(MIME)X3661(January)X3984(1994)X1008 688(By)N1144(the)X1286(way,)X1494(I)X1550(think)X1772(that)X1941(<smaller>)X1008 800(should)N1008 912(REALLY)N1411(be)X1526(called)X1008 1024(<tinier>)N1008 1136(and)N1171(that)X1340(I)X1396(am)X1538(always)X1829(right.)X1008 1248(--)N1096(the)X1238(end)X720 1472(where)N989(the)X1141(word)X1372("beloved")X1789(would)X2063(be)X2188(in)X2297(red)X2454(on)X2584(a)X2661(color)X2893(display)X3205(if)X3298(the)X3451(receiving)X3845(software)X720 1584(implemented)N1248(the)X1390("x-color")X1770(extension.)X3 f16 s720 1840(Security)N1208(Considerations)X1 f12 s720 2096(Security)N1084(issues)X1356(are)X1517(not)X1683(discussed)X2094(in)X2212(this)X2394(memo,)X2702(as)X2825(the)X2986(mechanism)X3468(raises)X3731(no)X3871(security)X720 2208(issues.)N3 f16 s720 2464(Author's)N1243(Address)X1 f12 s720 2720(For)N877(more)X1099(information,)X1602(the)X1744(author)X2014(of)X2118(this)X2281(document)X2685(may)X2875(be)X2990(contacted)X3384(via)X3526(Internet)X3850(mail:)X2 f2025 2944(Nathaniel)N2429(S.)X2525(Borenstein)X2039 3056(MRE)N2261(2D-296,)X2602(Bellcore)X2229 3168(445)N2397(South)X2640(St.)X1936 3280(Morristown,)N2437(NJ)X2568(07962-1910)X2000 3504(Phone:)N2302(+1)X2439(201)X2607(829)X2775(4270)X2036 3616(Fax:)N2266(+1)X2403(201)X2571(829)X2739(5963)X1980 3728(Email:)N2266(nsb@bellcore.com)X3 f16 s720 3984(Acknowledgem)N1559(ents)X1 f12 s720 4240(This)N920(document)X1330(re\257ects)X1638(the)X1786(input)X2014(of)X2124(many)X2368(contributors,)X2887(readers,)X3219(and)X3388(implementors)X3948(of)X4058(the)X720 4352(original)N1066(MIME)X1373(speci\256cation,)X1930(RFC)X2157(1341.)X2442(It)X2546(also)X2746(re\257ects)X3069(particular)X3484(contributions)X4037(and)X720 4464(comments)N1140(from)X1351(Terry)X1589(Crowley,)X1968(Rhys)X2189(Weatherley,)X2682(and)X2845(John)X3050(LoVerso.)X3 f16 s720 4720(References)N1 f12 s720 4976([RFC-1341])N1252(Borenstein,)X1756(N.,)X1937(and)X2140(N.)X2297(Freed,)X2628("MIME)X3016(\(Multipurpose)X3630(Internet)X3994(Mail)X720 5088(Extensions\):)N1252(Mechanisms)X1765(for)X1904(Specifying)X2347(and)X2512(Describing)X2960(the)X3104(Format)X3408(of)X3514(Internet)X3840(Message)X720 5200(Bodies",)N1074(RFC)X1279(1341,)X1519(Bellcore,)X1894(Innosoft,)X2262(June,)X2486(1992.)X720 5424([RFC-1521])N1252(Borenstein,)X1756(N.,)X1937(and)X2140(N.)X2297(Freed,)X2628("MIME)X3016(\(Multipurpose)X3630(Internet)X3994(Mail)X720 5536(Extensions\))N1200(Part)X1381(One:)X1618(Mechanisms)X2130(for)X2268(Specifying)X2711(and)X2876(Describing)X3324(the)X3468(Format)X3771(of)X3876(Internet)X720 5648(Message)N1080(Bodies",)X1434(RFC)X1639(1521,)X1879(Bellcore,)X2254(Innosoft,)X2622(September,)X3082(1993.)X720 6160(Borenstein)N3805([Page)X4048(10])X11 p%%Page: 11 1112 s 12 xH 0 xS 1 f720 400(RFC)N925(1563)X1844(A)X1937(text/enriched)X2465(type)X2655(for)X2791(MIME)X3661(January)X3984(1994)X3 f16 s720 720(Appendix)N1285(A)X1409(--)X1527(A)X1651(Sim)X1865(ple)X2061(enriched-to-plain)X3041(Translator)X3664(in)X3803(C)X1 f12 s720 976(One)N916(of)X1032(the)X1186(major)X1447(goals)X1686(in)X1797(the)X1951(design)X2238(of)X2354(the)X2508(text/enriched)X3049(subtype)X3385(of)X3502(the)X3657(text)X3839(Content-)X720 1088(Type)N959(is)X1064(to)X1180(make)X1430(formatted)X1846(text)X2032(so)X2157(simple)X2454(that)X2639(even)X2861(text-only)X3249(mailers)X3573(will)X3763(implement)X720 1200 0.1905(enriched-to-plain-text)AN1597(translators,)X2058(thus)X2254(increasing)X2686(the)X2840(likelihood)X3267(that)X3448(multifont)X3844(text)X4026(will)X720 1312(become)N1061("safe")X1335(to)X1451(use)X1620(very)X1832(widely.)X2183(To)X2331(demonstrate)X2843(this)X3023(simplicity,)X3474(what)X3701(follows)X4029(is)X4133(a)X720 1424(simple)N1008(C)X1103(program)X1460(that)X1636(converts)X1993(text/enriched)X2528(input)X2757(into)X2938(plain)X3162(text)X3338(output.)X3663(Note)X3881(that)X4058(the)X720 1536(local)N946(newline)X1289(convention)X1754(\(the)X1941(single)X2208(character)X2599(represented)X3080(by)X3213("\\n"\))X3435(is)X3536(assumed)X3904(by)X4037(this)X720 1648(program,)N1094(but)X1241(that)X1410(special)X1702(CRLF)X1966(handling)X2327(might)X2576(be)X2691(necessary)X3089(on)X3209(some)X3436(systems..)X7 f8 s1008 1840(#include)N1350 -0.4219(<stdio.h>)AX1008 1920(#include)N1350 -0.4219(<ctype.h>)AX1008 2080(main\(\))N1274({)X1160 2160(int)N1312(c,)X1426(i,)X1540 -0.4167(paramct=0,)AX1958 -0.4091(newlinect=0,)AX2452 -0.4219(nofill=0;)AX1160 2240(char)N1350 -0.4167(token[62],)AX1768(*p;)X1160 2400(while)N1388 -0.4000(\(\(c=getc\(stdin\)\))AX2034(!=)X2148(EOF\))X2338({)X1312 2480(if)N1426(\(c)X1540(==)X1654('<'\))X1844({)X1464 2560(if)N1578 -0.4167(\(newlinect)AX1996(==)X2110(1\))X2224(putc\(')X2490(',)X2604(stdout\);)X1464 2640 -0.4219(newlinect)AN1844(=)X1920(0;)X1464 2720(c)N1540(=)X1616 -0.4091(getc\(stdin\);)AX1464 2800(if)N1578(\(c)X1692(==)X1806('<'\))X1996({)X1616 2880(if)N1730(\(paramct)X2072(<=)X2186(0\))X2300(putc\(c,)X2604(stdout\);)X1464 2960(})N1540(else)X1730({)X1692 3040 -0.4219(ungetc\(c,)AN2072(stdin\);)X1692 3120(for)N1844(\(i=0,)X2072(p=token;)X2414 -0.4018(\(c=getc\(stdin\)\))AX3022(!=)X3136(EOF)X3288(&&)X3402(c)X3478(!=)X3592('>';)X3782(i++\))X3972({)X1844 3200(if)N1958(\(i)X2072(<)X2148 -0.4000(sizeof\(token\)-1\))AX2794(*p++)X2984(=)X3060 -0.4167(isupper\(c\))AX3478(?)X3554 -0.4167(tolower\(c\))AX3972(:)X4048(c;)X1692 3280(})N1692 3360(*p)N1806(=)X1882('\\0';)X1692 3440(if)N1806(\(c)X1920(==)X2034(EOF\))X2224(break;)X1692 3520(if)N1806 -0.4038(\(strcmp\(token,)AX2376("param"\))X2718(==)X2832(0\))X1844 3600 -0.4167(paramct++;)AN1692 3680(else)N1882(if)X1996 -0.4038(\(strcmp\(token,)AX2566 -0.4219("nofill"\))AX2946(==)X3060(0\))X1844 3760 -0.4219(nofill++;)AN1692 3840(else)N1882(if)X1996 -0.4038(\(strcmp\(token,)AX2566 -0.4219("/param"\))AX2946(==)X3060(0\))X1844 3920 -0.4167(paramct--;)AN1692 4000(else)N1882(if)X1996 -0.4038(\(strcmp\(token,)AX2566 -0.4167("/nofill"\))AX2984(==)X3098(0\))X1844 4080 -0.4219(nofill--;)AN1540 4240(})N1312 4320(})N1388(else)X1578({)X1464 4400(if)N1578(\(paramct)X1920(>)X1996(0\))X1616 4480(;)N1692(/*)X1806(ignore)X2072(params)X2338(*/)X1464 4560(else)N1654(if)X1768(\(c)X1882(==)X1996('\\n')X2186(&&)X2300(nofill)X2566(<=)X2680(0\))X2794({)X1616 4640(if)N1730 -0.4091(\(++newlinect)AX2224(>)X2300(1\))X2414(putc\(c,)X2718(stdout\);)X1464 4720(})N1540(else)X1730({)X1616 4800(if)N1730 -0.4167(\(newlinect)AX2148(==)X2262(1\))X2376(putc\(')X2642(',)X2756(stdout\);)X1616 4880 -0.4219(newlinect)AN1996(=)X2072(0;)X1616 4960(putc\(c,)N1920(stdout\);)X1464 5040(})N1312 5120(})N1160 5200(})N1160 5280(/*)N1274(The)X1426 -0.4219(following)AX1806(line)X1996(is)X2110(only)X2300(needed)X2566(with)X2756 -0.4038(line-buffering)AX3326(*/)X1160 5360 -0.4167(putc\('\\n',)AN1578(stdout\);)X1160 5440(exit\(0\);)N1008 5520(})N1 f12 s720 6128(Borenstein)N3805([Page)X4048(11])X12 p%%Page: 12 1212 s 12 xH 0 xS 1 f720 368(RFC)N925(1563)X1844(A)X1937(text/enriched)X2465(type)X2655(for)X2791(MIME)X3661(January)X3984(1994)X720 688(It)N842(should)X1161(be)X1315(noted)X1593(that)X1802(one)X2005(can)X2203(do)X2363(considerably)X2919(better)X3203(than)X3433(this)X3636(in)X3775(displaying)X720 800(text/enriched)N1260(data)X1457(on)X1589(a)X1668(dumb)X1923(terminal.)X2329(In)X2445(particular,)X2874(one)X3048(can)X3217(replace)X3531(font)X3721(information)X720 912(such)N949(as)X1082("bold")X1384(with)X1608(textual)X1924(emphasis)X2335(\(like)X2565(*this*)X2853(or)X3034(_T_H_I_S_\).)X3620(One)X3833(can)X4021(also)X720 1024(properly)N1132(handle)X1475(the)X1679(text/enriched)X2269(formatting)X2762(commands)X3264(regarding)X3718(indentation,)X720 1136(justi\256cation,)N1227(and)X1394(others.)X1705(However,)X2110(the)X2257(above)X2516(program)X2871(is)X2964(all)X3090(that)X3264(is)X2 f3357(necessary)X1 f3765(in)X3869(order)X4101(to)X720 1248(present)N1049(text/enriched)X1603(on)X1749(a)X1842(dumb)X2111(terminal)X2483(without)X2827(showing)X3202(the)X3370(user)X3580(any)X3769(formatting)X720 1360(artifacts.)N3 f16 s720 1616(Appendix)N1285(B)X1402(--)X1520(Differences)X2172(from)X2475(RFC)X2769(1341)X3057(text/richtext)X1 f12 s720 1840(Text/enriched)N1301(is)X1410(a)X1498(clari\256cation,)X2028(simpli\256cation,)X2627(and)X2811(re\256nement)X3268(of)X3393(the)X3556(type)X3767(de\256ned)X4096(as)X720 1952 0.2552(text/richtext)AN1238(in)X1364(RFC)X1596(1341.)X1886(For)X2069(the)X2237(bene\256t)X2549(of)X2679(those)X2932(who)X3147(are)X3315(already)X3649(familiar)X4005(with)X720 2064 0.2356(text/richtext,)AN1257(or)X1383(for)X1541(those)X1790(who)X2001(want)X2234(to)X2355(exploit)X2669(the)X2833(similarities)X3308(to)X3430(be)X3568(able)X3776(to)X3898(display)X720 2176 0.2552(text/richtext)AN1221(data)X1416(with)X1621(their)X1832(text/enriched)X2370(software,)X2759(the)X2911(differences)X3373(between)X3728(the)X3880(two)X4058(are)X720 2288(summarized)N1234(here.)X1467(Note,)X1721(however,)X2119(that)X2307(text/enriched)X2854(is)X2961(intended)X3337(to)X3456(make)X3709 0.2552(text/richtext)AX720 2400(obsolete,)N1089(so)X1198(it)X1276(is)X1364(not)X1511(recommended)X2081(that)X2250(new)X2434(software)X2 f2789(
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -