Results 1 to 9 of 9

Thread: Basic4Html

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,754

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  2. #2

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,754

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    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. =)
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,754

    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:
    1. Root Element
    2. Document metadata
    3. Scripting
    4. 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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  5. #5

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,754

    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    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.

  7. #7

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,754

    Re: Basic4Html

    Quote Originally Posted by dilettante View Post
    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.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  8. #8

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,754

    Re: Basic4Html

    I've finished the Basic4Html library portion. The only part left is to tidy up the IDE and to finish the website.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  9. #9

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,754

    Re: Basic4Html

    Thread closed as per OP's request.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width