flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > HTML/CSS to ??

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
in conjunction to the ambitious project of fasm browser, we need a html to ?? converter.
?? is a structure undifined for the moment, but at least, we need to know what is usefull , and what is garbage in the html/css protocol (is it a language?)

so the conversion can be, for exemple, directlly rendered to screen, or passed to a ?? structure.

for exemple, this page (html?) where i write this message show me images, text, a little text editor, buttons, animated buttons, and text links.
so, what is the best, direct render or conversion and then render of the converted file?

note the animated buttons are GIF, a proprietary format, if we interpret gifs, shall we pay (if benefits are made)?
Post 24 Jan 2008, 02:46
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Quote:

note the animated buttons are GIF

http://en.wikipedia.org/wiki/Animated_Portable_Network_Graphics No need to pay for this. But, is GIF still owned by CompuServe?

As for what HTML is: http://en.wikipedia.org/wiki/HTML . I don't understand where this converter would fit, the browser should understand HTML directly. There could be an internal convertion for rendering and even the cache could be stored in this representation to save parsing time (and maybe space), but in no way the browser cannot support HTML format.
Post 24 Jan 2008, 04:22
View user's profile Send private message Reply with quote
drhowarddrfine



Joined: 10 Jul 2007
Posts: 535
drhowarddrfine
edfed wrote:
we need to know what is usefull , and what is garbage
Not sure what you mean by that. Browsers should not support only those elements they feel like. IE tends to do that (which is why it is so hated by web developers). To be sure all web pages render properly, you have to support everything.
Quote:
the html/css protocol (is it a language?)
HTML is a "markup language" but not a programming language. CSS, though, is a page that contains styling properties assigned to named HTML elements.
Quote:

so the conversion can be, for exemple, directlly rendered to screen, or passed to a ?? structure.
Browsers act like language compilers and parse and interpret the data as it is sent.
Quote:

note the animated buttons are GIF, a proprietary format, if we interpret gifs, shall we pay (if benefits are made)?
I think any gif usage is pay by use not pay by rendering engine. Most of us use PNG now.
Post 24 Jan 2008, 06:00
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 3044
Location: vpcmipstrm
bitRAKE
IIRC, IBM owns the only remaining patent on GIF and are very unlikely to sue anyone with regard to it.
Post 25 Jan 2008, 06:02
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
IIRC, it was both Compuserve and Unisys who owned the (now expired) GIF patent, 0.5% royalty to Compuserve and 1% to Unisys (or something like that). IBM is said to have accidentally acquired a patent for the exact same thing, though (and even that will eventually expire in like two years, if not already, I forget exactly).

PNG is pretty popular now, and it did/does intentionally support most everything GIF does (but without patent worries). Can't go wrong there.
Post 25 Jan 2008, 06:09
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
my vision of HLL.
this interpret will be the basis of many HLL interpretors i'll make.

i'll try to interpret HTML with this.

box X Y XL YL C
b
number N
n
Post 02 Feb 2008, 04:08
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
ho ho ho!
it will be soon christmas.
Very Happy

xhtml is very amazing.
it is an object oriented language.
then, i write a gui builder from html.
html to gui.

the steps are:
0) init & enter in program
start:
1) load the file to parse
2) convert the file in a gui form.
@@:
3) execute the gui.
4) returned values tests, like exit, refresh, restart, lose focus, close, minimize etc...
5) execute returned function
6) loop @b <--- note for tom, then, the @@: @b tags delimits an execution block.

i don't have shareable working code now, i work on since 36 hours, sleep 20% of normal time, etc...
need a lot of debugging (cf Error correction Wink ) but it will works.

Code:
;;;;;;; xhtml.asm   ;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
include 'xhtml\func.inc'     ; the case-lists for all attributes and tags
include 'xhtml\names.inc'    ; the name-lists for all attributes and tags
include 'xhtml\modules.inc'    ; the modules-lists of all xhtml items  
xhtml:
; gs:esi --> xhtml file loaded in ram just before parsing.
; fs:edi --> gui context to edit 
; ds:edi --> global gui, will link to the created gui from xhtml.
; ds --> lists, structures and lib.

.
     push eax ebx ecx edx esi edi ebp
; save tag context...     
     init   
.next:
     mov al,[gs:esi]
     cmp al,'<'
     jne @f
     call .opentag?
     jmp .end
@@:
     call .special?   ; to compute special chars, ' ', tab,  1013h,etc...
     call .outputchar  ; will write the char in the gui       
     jmp .next
.end:     
     pop ebp edi esi edx ecx ebx eax
     ret
.opentag:
     mov edx,taglist  ; in ds
     call .identifytag
     call .seeknsetattributes
     call .setstartncursor
     call .seekclosetag
     call .setstopncursor
     ret ; close the tag, and point to next char.
....
...
..
.

    


the problem is to use a lot of segments, memory and pointers at the same time.
Post 18 Mar 2008, 02:10
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
ouaww! two years now! how the time is fast!

now, it is not ?? but fool!
Post 12 Mar 2010, 17:14
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.