MyanmarWeb

Tools and resources for Myanmar Web development

View project on GitHub

Lists demo 6

Sample code:


    #main-content h1:lang(my):before {
            content: counter(chapt, myanmar) "။" ;
            padding-right: 0.5em;
            color: #000000;
    }
    
    #main-content h1:lang(my) {
            counter-increment: chapt;
            counter-reset: section;
    }
   
    #main-content h2:lang(my):before {
            content: counter(chapt, myanmar) "." counter(section, myanmar) "။" ;
            padding-right: 0.5em;
            color: #000000;
    }
    
    #main-content h2:lang(my) {
            counter-increment: section;
            margin: 1.0em;
    }

    #main-content h3:lang(my):before {
            content: counter(chapt, myanmar) "." counter(section, myanmar) "." counter(subsection, myanmar) "။" ;
            padding-right: 0.5em;
            color: #000000;
    }
    
    #main-content h3:lang(my) {
            counter-increment: subsection;
            margin: 1.0em;
    }
    
    /* overrides */
    #main-content h1:lang(my), #main-content h2:lang(my), #main-content h3:lang(my), :lang(my) {font-family Padauk, Tharlon, sans-serif;}

Expected behaviour: Header(h1...6) are prefixed with "Burmese Digits.

အင်္ဂလိပ်

ဩစတြေးလျှ အင်္ဂလိပ်

ကနေဒါ အင်္ဂလိပ်

ဗြိတိသျှ အင်္ဂလိပ်

ကိုးရီးယား

တရုတ်