Logo
FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
Story parsing logic!

 
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> General Help
View previous topic :: View next topic  
Author Message
krisCrash
Newb


Joined: 27 Feb 2008
Posts: 7

PostPosted: Wed Feb 27, 2008 2:07 pm    Post subject: Story parsing logic! Reply with quote

Hi guys! I'm normally at HF, but Dennis told me to repost my issue here. I am somewhat lost as to how stories are parsed; I wanted to include thumbnails linking to full images in a text submitted as a story.

I uploaded a .html, and tried pasting it into the Java editor, that sorta has the same result. Looks to me like it munches both BLOCKQUOTE, P and A/IMG tags into something.. weird. Leaving only UL/LI.

(The text is not particularly mature, so there's not real need to worry about clicking it tbh. But if anyone's sensitive or such... )

It ended up as a random link bundle like this; http://www.hentai-foundry.com/chapter-1908.html

It's supposed to look like here: http://kriscrash.dk/projects/zwelf.php (the part in the DIV scrollbox)

So, uhm, what is the logic? Why doesn't it just eat normal .html? Is it possible to find a tool somewhere that makes BBcode from .html without ignoring too much formatting? After experimenting, I found it was possible to make the linked thumbnails anyway, but that doesnt' change the fact that I have to reformat things again... just so the site can re-format it to .html again XD

Plus I feel I have more format control with .html, like the right-justified text wrapping.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Sora121
Developer


Joined: 02 Oct 2006
Posts: 2591
Location: I'm here some place

PostPosted: Thu Feb 28, 2008 3:08 pm    Post subject: Reply with quote

All the code for html should have been parsed into bbcode for storage and then output as viewable formating.

I'll continue to look into this one, and will also need to request the raw .html file you used so I can see what HTML needs to be added to the processing.


No doubt is something simple that I've overlooked....
I am also sorry to say, ahead of time, your use of the alt tag in the html will be removed.
Back to top
View user's profile Send private message MSN Messenger
krisCrash
Newb


Joined: 27 Feb 2008
Posts: 7

PostPosted: Fri Feb 29, 2008 2:51 am    Post subject: Reply with quote

I uploaded only the "body" part of the HTML, not including any headers. Should I have tossed in the whole thing?

Here is an excerpt of a typical paragraph;
[code:1]<blockquote><b>Title</b></blockquote>
<a href="http://kriscrash.dk/projects/zwelf/hair.png"><img></a>
<p>paragraph text
<br><i>more text</i>:

<ul>
<li>listed item one</li>
<li>listed item two</li>
<li>listed item three</li>
</ul>[/code:1]

My complaint is mostly that it blew up. I suggest IF it BB-codeifies the HTML anyway, it should replace BLOCKQUOTE with LIST, P with a new line. Things like that are lost, so I get whole blocks of text. When it replaces the nested UL + LI structure with LIST, it should add a bullet, BBcode doesn't seem to add bullets to lists on its own.

(Some of the bullets I added (while trying RTF) made the following text turn a Greek font O_o)

I am totally okay with losing the ALT tag. It was there because I used a web-ready HTML piece. How about alignment of things? And how about tables?

Edit: It already ate the ALT tags in the CODE field. Ouch. Does this make more sense... I just replaced the brackets;
[code:1][a href="http://kriscrash.dk/projects/zwelf/hair.png"][img src="http://kriscrash.dk/projects/zwelf/_hair.jpg" alt="hair distribution" align="right"][/a][/code:1]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Sora121
Developer


Joined: 02 Oct 2006
Posts: 2591
Location: I'm here some place

PostPosted: Fri Feb 29, 2008 1:58 pm    Post subject: Reply with quote

Well is doesn't make much sense to me either.
I was sure I debugged that from happening...


I'll be a while before I can fix it. And depending on when denis updates it may be a bit longer.
I'll take note of requests, they may already be in the workings just not working.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> General Help All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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