Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
rtf3html

 
Post new topic   Reply to topic Printable version
 View previous topic  FunMan v1.0 Project Post :: Post Open Source RPG.  View next topic  
Author Message
Cyan~Fire
I'll count you!
I'll count you!


Age:36
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Jan 02, 2006 6:38 pm    Post subject: rtf3html Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Quan Chi2
Member of "Sexy Teenagers that Code" Group
Member of


Age:33
Gender:Gender:Male
Joined: Mar 25 2005
Posts: 860
Location: NYC
Offline

PostPosted: Mon Jan 02, 2006 7:14 pm    Post subject: Reply to topic Reply with quote

cool how long did it take you to make it?
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:36
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Jan 02, 2006 10:12 pm    Post subject: Reply to topic Reply with quote

4 hours or so spread about the week.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Quan Chi2
Member of "Sexy Teenagers that Code" Group
Member of


Age:33
Gender:Gender:Male
Joined: Mar 25 2005
Posts: 860
Location: NYC
Offline

PostPosted: Tue Jan 03, 2006 10:26 pm    Post subject: Reply to topic Reply with quote

nice job
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Non-Subspace Related Coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 668 page(s) served in previous 5 minutes.

phpBB Created this page in 0.469066 seconds : 29 queries executed (81.5%): GZIP compression disabled