Skip to content

Instantly share code, notes, and snippets.

@andjc
Last active November 16, 2020 02:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andjc/303422aeb12e46b4759e to your computer and use it in GitHub Desktop.
Save andjc/303422aeb12e46b4759e to your computer and use it in GitHub Desktop.
Skeleton CSS file for languages written in the Myanmar script.
/* @import url(http://fonts.googleapis.com/earlyaccess/notosansmyanmar.css); */
/* @import url(http://fonts.googleapis.com/earlyaccess/padauk.css); */
@counter-style hyphen {
system: cyclic;
symbols: "-";
suffix: " ";
}
@counter-style myanmar-parens {
system: extends myanmar;
prefix: "(";
suffix: ") ";
}
@counter-style burmese-consonant {
system: alphabetic;
symbols: '\1000' '\1001' '\1002' '\1003' '\1004' '\1005' '\1006' '\1007' '\1008' '\100A' '\100B' '\100C' '\100D' '\100E' '\100F' '\1010' '\1011' '\1012' '\1013' '\1014' '\1015' '\1016' '\1017' '\1018' '\1019' '\101A' '\101B' '\101C' '\101D' '\101E' '\101F' '\1020' '\1021';
/* symbols: က ခ ဂ ဃ င စ ဆ ဇ ဈ ည ဋ ဌ ဍ ဎ တ ထ ဒ ဓ န ပ ဖ ဗ ဘ မ ယ ရ လ ဝ သ ဟ ဠ အ; */
prefix: "(";
suffix: ") ";
}
html, body, * {
font-family: Padauk, "Noto Sans Myanmar", sans-serif;
/* Force IE to use locl OpenType features in Padauk and Noto Sans Myanmar */
-ms-font-feature-settings: "locl";
/* The two following rules are only needed for Padauk and other "mymr" style
fonts to force corrected rendering is letter spacing is non-zero.
Not needed for "mym2" style fonts. */
-moz-font-feature-settings: "kern" 1, "liga" 1, "clig" 1;
font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "locl";
}
body {font-family: Padauk, "Noto Sans Myanmar", sans-serif;}
/* Padauk 2.8 has OpenType and Graphite support for the Sgaw Karen,
* Khamti Shan and Western Kayah.
*
* Noto Sans Myanmar has OpenType support for Sgaw Karen.
* The following rules will work Firefox and IE 10/11. Chrome has bugs filed.
*
* See: http://enabling-languages.github.io/myanmarweb/fonts-padauk.html
*/
:lang(ksw) {
font-language-override: "ksw";
-ms-font-feature-settings: "locl";
font-feature-settings: "locl";
}
:lang(kht) {
font-language-override: "kht";
-ms-font-feature-settings: "locl";
font-feature-settings: "locl";
}
:lang(kyu) {
font-language-override: "kyu";
-ms-font-feature-settings: "locl";
font-feature-settings: "locl";
}
/*
* Lists
*
* See: http://enabling-languages.github.io/myanmarweb/lists.html
*/
ul {list-type: hyphen;}
ol {list-type: myanmar-parens;}
ol.alpha:lang(my) {list-type: burmese-consonant;}
/*
* Resets
* Both Padauk, Padauk Book and Noto Sans Myanmar have both a
* regular and bold weight. Most Myanmar fonts do not have a
* true bold typeface and are only available in a single weight.
*/
code,
kbd,
samp,
tt {
font-family: monospace;
}
pre,
button,
input,
optgroup,
select,
textarea {
font: inherit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment