|
-
Jun 25th, 2014, 09:45 PM
#1
Basic4Html
I would like to propose putting together a team of individuals that would assist in creating an HTML5 translator. The easiest way to describe this is to take a BASIC like syntax and convert that syntax to HTML5 compliant code.
The name Basic4Html is basically a ripoff of Basic4Android. The name is subject to change if there are any legal issues or if there are any better suggestions.
What would need to be done is the implementation of the translator, an IDE, and a website. The IDE would consist of syntax highlighting and smart tags(auto-complete). The website would include a library and a forum. The library would be structured similarly to MSDN's library.
There hasn't been a chosen language or languages to write this in, that will be discussed as to which one or ones would be most fit if I could put together a team. Please post here or PM me if you're interested.
-
Jun 26th, 2014, 06:30 PM
#2
Re: Basic4Html
I've already finished the IDE and and the translator for the Head and all available tags that are allowed in the Head.
So the only things left are the website, and the translator for the Body and all available tags that are allowed in the Body.
-
Jun 27th, 2014, 01:28 AM
#3
Re: Basic4Html
How about showing an example of a basic code and its translation? I might give it a try, only if I will have a lot of time. =)
-
Jun 27th, 2014, 08:55 AM
#4
Re: Basic4Html
Sure. This is an example of the link Tag:
Code:
Option Strict On
Option Explicit On
Public Class Link
Inherits HeadTag
Public Enum Relations
alternate
archives
author
bookmark
external
first
help
icon
last
license
[next]
nofollow
noreferrer
pingback
prefetch
prev
search
sidebar
stylesheet
tag
up
NONE
End Enum
Public Property Href As String
Public Property HrefLang As String
Public Property Media As String
Public Property Rel As Relations
Public Property Sizes As System.Drawing.Size
Public Property Type As String
Friend Overrides Function ConvertToHtml() As String
Dim startTag As String = "<link"
Dim hrefTag As String = If(Not String.IsNullOrWhiteSpace(Me.Href), String.Format(" href='{0}'", Me.Href), String.Empty)
Dim hrefLangTag As String = If(Not String.IsNullOrWhiteSpace(Me.HrefLang), String.Format(" hreflang='{0}'", Me.HrefLang), String.Empty)
Dim mediaTag As String = If(Not String.IsNullOrWhiteSpace(Me.Media), String.Format(" media='{0}'", Me.Media), String.Empty)
Dim relTag As String = If(Me.Rel <> Relations.NONE, String.Format(" rel='{0}'", [Enum].GetName(GetType(Relations), Me.Rel)), String.Empty)
Dim sizesTag As String = If(Not Me.Sizes = System.Drawing.Size.Empty, String.Format(" sizes='{0}x{1}'", Me.Sizes.Height, Me.Sizes.Width), String.Empty)
Dim typeTag As String = If(Not String.IsNullOrWhiteSpace(Me.Type), String.Format(" type='{0}'", Me.Type), String.Empty)
Dim endTag As String = " />"
If Me.Rel = Relations.icon Then
Return String.Format("{0}{0}{1}{2}{3}{4}{5}{6}{7}{8}", _
Basic4Html.Tab, startTag, hrefTag, hrefLangTag, mediaTag, relTag, sizesTag, typeTag, endTag)
Else
Return String.Format("{0}{0}{1}{2}{3}{4}{5}{6}{7}", _
Basic4Html.Tab, startTag, hrefTag, hrefLangTag, mediaTag, relTag, typeTag, endTag)
End If
End Function
Sub New()
Me.TagName = "Link"
Me.Href = String.Empty
Me.HrefLang = String.Empty
Me.Media = String.Empty
Me.Rel = Relations.NONE
Me.Sizes = System.Drawing.Size.Empty
Me.Type = String.Empty
End Sub
End Class
I'm going off of this list, and thus far I've completed the following groups:
- Root Element
- Document metadata
- Scripting
- Sections
I've started on Grouping content last night, but haven't done much yet. Basically, if you can find time to help, start from the bottom group and work your way up. Any help is appreciated because at this point it's just repetition and can get kind of boring
Last edited by dday9; Jun 27th, 2014 at 08:59 AM.
-
Jun 29th, 2014, 10:58 PM
#5
Re: Basic4Html
Just an update. Following this list, I've finished the Edits category and all the categories before it. Still looking for somebody to complete a website, but so far the IDE and most of the actual coding is done.
-
Jun 30th, 2014, 10:04 AM
#6
Re: Basic4Html
Since HTML (including HTML5) is just page layout markup I'm not sure what this is supposed to be all about. It sounds like "Basic for RTF" or something.
In a sense I suppose we already have "Basic for HTML" in the form of VBScript when hosted in IE, MSHTA, or the desktop gadget host in Vista and Win7.
-
Jun 30th, 2014, 10:14 AM
#7
Re: Basic4Html
 Originally Posted by dilettante
Since HTML (including HTML5) is just page layout markup I'm not sure what this is supposed to be all about. It sounds like "Basic for RTF" or something.
In a sense I suppose we already have "Basic for HTML" in the form of VBScript when hosted in IE, MSHTA, or the desktop gadget host in Vista and Win7.
It's a translator. It takes VB.Net code and converts it to HTML5 compliant code.
-
Jul 8th, 2014, 10:07 PM
#8
Re: Basic4Html
I've finished the Basic4Html library portion. The only part left is to tidy up the IDE and to finish the website.
-
Jul 15th, 2014, 09:01 AM
#9
Re: Basic4Html
Thread closed as per OP's request.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|