Author |
Message |
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Jan 02, 2006 6:38 pm Post subject: rtf3html |
|
|
|
|
rtf3html: An rtf to html converter I wrote completely for myself in C. It's pretty easily-modifiable, but I didn't comment much. It is by no standards complete, but it's pretty useful to me and I figured it might be for someone else, too.
The main problem is that RTF allows overlapping, so a color change, for example, will continue until another color change or a paragraph reset, while any <span> tags or the like will auto-close after the current paragraph in HTML. I made a work-around for this for fonts and colors, but was too lazy for font size (since it would bloat the produced files quite a bit), and I'm sure there are other properties which I have completely ignored. Oh, and it assumes that the body starts after the color table, which is definitely not always true. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
|
Quan Chi2 Member of "Sexy Teenagers that Code" Group
Age:33 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Mon Jan 02, 2006 7:14 pm Post subject: |
|
|
|
|
cool how long did it take you to make it? |
|
Back to top |
|
|
Cyan~Fire I'll count you!
Age:36 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Jan 02, 2006 10:12 pm Post subject: |
|
|
|
|
4 hours or so spread about the week. |
|
Back to top |
|
|
Quan Chi2 Member of "Sexy Teenagers that Code" Group
Age:33 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Tue Jan 03, 2006 10:26 pm Post subject: |
|
|
|
|
nice job |
|
Back to top |
|
|
|