Permalink
Browse files

Shortened the glyph list and slightly improved some descriptions.

  • Loading branch information...
1 parent 2972b8b commit 52ef02ed2fc7a3a8e32d803f9f68d2ff97fdce48 @sorccu committed Jan 7, 2010
Showing with 60 additions and 17 deletions.
  1. +16 −0 generate/css/style.css
  2. BIN generate/img/icons.png
  3. +22 −14 generate/index.html
  4. +22 −3 generate/js/ui.js
View
@@ -131,6 +131,22 @@ html>/**/body .new, html>/**/body .del {
display: none;
}
+.more {
+ background: url(../img/icons.png) 0 -32px no-repeat;
+ display: block;
+ line-height: 16px;
+ margin: 2em 0;
+ padding-left: 20px;
+}
+
+.more:hover {
+ text-decoration: underline;
+}
+
+.hidden {
+ display: none;
+}
+
#nav {
list-style: none;
text-align: center;
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -106,6 +106,23 @@
<h3>Include the following glyphs (if available)</h3>
<dl>
+ <dt><label for="iglyphs_bl"><input type="checkbox" name="glyphs[]" id="iglyphs_bl" value="0x20-0x7E" checked="checked" /> Basic Latin</label></dt>
+ <dd>Usually enough for English-only websites. Contains Basic Latin glyphs within the Unicode range U+0020 to U+007E. (95 glyphs)</dd>
+ <dt><label for="iglyphs_l1s"><input type="checkbox" name="glyphs[]" id="iglyphs_l1s" value="0xA0-0xFF,0x20AC" /> Latin-1 Supplement</label></dt>
+ <dd>Combine with Basic Latin to cover most European languages. Contains Latin glyphs within the Unicode range U+00A0 to U+00FF and the euro sign U+20AC. Includes punctuation, some currency symbols, numerals and common accented characters. (97 glyphs)</dd>
+ <dt><label for="iglyphs_wp"><input type="checkbox" name="glyphs[]" id="iglyphs_wp" value="0xD7,0x2013,0x2014,0x2018,0x2019,0x201C,0x201D,0x2022,0x2026,0x2032,0x2033,0x2122" /> Advanced Punctuation</label></dt>
+ <dd>Some publishing platforms (such as <a href="http://codex.wordpress.org/User:Here/Texturize" class="external">WordPress</a>) turn regular quotes and dashes into better looking ones, in which case you'll also need these glyphs. Includes a subset of <a href="http://en.wikipedia.org/wiki/Template:Unicode_chart_General_Punctuation" class="external">Unicode General Punctuation</a>. Some fonts may not support all of these characters. (13 glyphs)</dd>
+ <dt><label for="iglyphs_cyr"><input type="checkbox" name="glyphs[]" id="iglyphs_cyr" value="0x400-0x4FF,0x500-0x52F,0x2DE0-0x2DFF,0xA640-0xA69F" /> Cyrillic Alphabet</label></dt>
+ <dd>For a complete list, see <a href="http://en.wikipedia.org/wiki/Cyrillic_characters_in_Unicode" class="external">Cyrillic characters in Unicode</a>. (up to 432 glyphs)</dd>
+ <dt><label for="iglyphs_rus"><input type="checkbox" name="glyphs[]" id="iglyphs_rus" value="0x410-0x44F,0x401,0x451" /> Russian Alphabet</label></dt>
+ <dd>A refined selection of Cyrillic characters commonly used in the Russian language. (66 glyphs)</dd>
+ <dt><label for="iglyphs_greek"><input type="checkbox" name="glyphs[]" id="iglyphs_greek" value="0x370-0x3FF" /> Greek and Coptic</label></dt>
+ <dd>The whole Greek and Coptic Unicode block. For more information, see <a href="http://en.wikipedia.org/wiki/Greek_alphabet#Greek_in_Unicode" class="external">Greek in Unicode</a>. (up to 144 glyphs)</dd>
+ </dl>
+
+ <a href="#extra-glyphs" id="more-extra-glyphs" class="more">Show all options</a>
+
+ <dl id="extra-glyphs" class="hidden">
<dt><label for="iglyphs_all"><input type="checkbox" name="glyphs[]" id="iglyphs_all" value="0x0-0xFFFF" /> All</label></dt>
<dd>Includes all available glyphs. Highly unrecommended.</dd>
<dt><label for="iglyphs_uc"><input type="checkbox" name="glyphs[]" id="iglyphs_uc" value="0x41-0x5A" /> Uppercase</label></dt>
@@ -114,27 +131,18 @@
<dd>Basic Latin lowercase letters (a-z). (26 glyphs)</dd>
<dt><label for="iglyphs_n"><input type="checkbox" name="glyphs[]" id="iglyphs_n" value="0x30-0x39" /> Numerals</label></dt>
<dd>Basic Latin digits (0-9). (10 glyphs)</dd>
- <dt><label for="iglyphs_p"><input type="checkbox" name="glyphs[]" id="iglyphs_p" value="0x20-0x2F,0x3A-0x40,0x5B-0x60,0x7B-0x7E" /> Punctuation</label></dt>
+ <dt><label for="iglyphs_p"><input type="checkbox" name="glyphs[]" id="iglyphs_p" value="0x20-0x2F,0x3A-0x40,0x5B-0x60,0x7B-0x7E" /> Basic Punctuation</label></dt>
<dd>Basic Latin punctuation (!@#%...). (33 glyphs)</dd>
- <dt><label for="iglyphs_wp"><input type="checkbox" name="glyphs[]" id="iglyphs_wp" value="0xD7,0x2013,0x2014,0x2018,0x2019,0x2026,0x2032,0x2033,0x201C,0x201D,0x2122" /> WordPress punctuation</label></dt>
- <dd><a href="http://codex.wordpress.org/User:Here/Texturize" class="external">Texturized</a> WordPress punctuation. Some fonts may not support all of these characters. (12 glyphs)</dd>
- <dt><label for="iglyphs_bl"><input type="checkbox" name="glyphs[]" id="iglyphs_bl" value="0x20-0x7E" checked="checked" /> Basic Latin</label></dt>
- <dd>Basic Latin glyphs within the Unicode range U+0020 to U+007E. (95 glyphs)</dd>
- <dt><label for="iglyphs_l1s"><input type="checkbox" name="glyphs[]" id="iglyphs_l1s" value="0xA0-0xFF,0x20AC" /> Latin-1 Supplement</label></dt>
- <dd>Latin glyphs within the Unicode range U+00A0 to U+00FF and the euro sign U+20AC. Includes punctuation, some currency symbols, numerals and common accented characters. (97 glyphs)</dd>
<dt><label for="iglyphs_cur"><input type="checkbox" name="glyphs[]" id="iglyphs_cur" value="0x0024,0x00A2-0x00A5,0x20A0-0x20CF" /> Currency Symbols</label></dt>
<dd>Currency symbols within the Unicode range U+20A0 to U+20CF. The dollar sign from Basic Latin and the cent, pound and yen signs from Latin-1 Supplement are also included. (about 22 glyphs)</dd>
<dt><label for="iglyphs_l1ea"><input type="checkbox" name="glyphs[]" id="iglyphs_l1ea" value="0x100-0x17F" /> Latin Extended-A</label></dt>
<dd>Extended Latin glyphs within the Unicode range U+0100 to U+017F. (128 glyphs)</dd>
<dt><label for="iglyphs_l1eb"><input type="checkbox" name="glyphs[]" id="iglyphs_l1eb" value="0x180-0x24F" /> Latin Extended-B</label></dt>
<dd>Extended Latin glyphs within the Unicode range U+0180 to U+024F. (208 glyphs)</dd>
- <dt><label for="iglyphs_cyr"><input type="checkbox" name="glyphs[]" id="iglyphs_cyr" value="0x400-0x4FF,0x500-0x52F,0x2DE0-0x2DFF,0xA640-0xA69F" /> Cyrillic Alphabet</label></dt>
- <dd>For a complete list, see <a href="http://en.wikipedia.org/wiki/Cyrillic_characters_in_Unicode" class="external">Cyrillic characters in Unicode</a>. (up to 432 glyphs)</dd>
- <dt><label for="iglyphs_rus"><input type="checkbox" name="glyphs[]" id="iglyphs_rus" value="0x410-0x44F,0x401,0x451" /> Russian Alphabet</label></dt>
- <dd>A refined selection of Cyrillic characters commonly used in the Russian language. (66 glyphs)</dd>
- <dt><label for="iglyphs_greek"><input type="checkbox" name="glyphs[]" id="iglyphs_greek" value="0x370-0x3FF" /> Greek and Coptic</label></dt>
- <dd>The whole Greek and Coptic Unicode block. For more information, see <a href="http://en.wikipedia.org/wiki/Greek_alphabet#Greek_in_Unicode" class="external">Greek in Unicode</a>. (up to 144 glyphs)</dd>
- <dt><label for="icustomGlyphs"> .. and also these single characters</label></dt>
+ </dl>
+
+ <dl>
+ <dt><label for="icustomGlyphs">Also include these single characters</label></dt>
<dd><input type="text" name="customGlyphs" id="icustomGlyphs" size="70" maxlength="250" /> <label for="iuseGlyphCSSRange"><input type="checkbox" name="useGlyphCSSRange" id="iuseGlyphCSSRange" value="yes" /> Use <a href="http://www.w3.org/TR/css3-fonts/#character-range-the-unicode-range-descri" class="external">CSS3 ranges</a> instead of single characters</label></dd>
</dl>
View
@@ -39,7 +39,7 @@
}
function handle(el) {
- var callback, node, clone, anchor, list, input;
+ var callback, node, clone, anchor, target, list, input;
switch (el.nodeName.toLowerCase()) {
case '#text':
// fall through
@@ -81,13 +81,21 @@
return true;
}
}
+ if (/more/.test(el.className)) {
+ target = byId(el.href.replace(/^.*#/, ''));
+ if (target) {
+ Cufon.CSS.removeClass(target, 'hidden');
+ Cufon.CSS.addClass(el, 'hidden');
+ return true;
+ }
+ }
return false;
}
return false;
}
function fetch() {
- var list, template, container, el, i, l;
+ var list, template, container, node, el, i, l;
list = Cookie.read('cu_dom');
if (list) {
list = decodeURIComponent(list).split(',');
@@ -106,7 +114,18 @@
list = decodeURIComponent(list).split(',');
for (i = 0, l = list.length; i < l; ++i) {
el = byId(list[i]);
- if (el) el.checked = true;
+ if (el) {
+ el.checked = true;
+ for (node = el.parentNode; node; node = node.parentNode) {
+ if (node.nodeName.toLowerCase() == 'dl') {
+ if (/hidden/.test(node.className)) {
+ Cufon.CSS.removeClass(node, 'hidden');
+ handle(byId('more-extra-glyphs'));
+ }
+ break;
+ }
+ }
+ }
}
}
el = byId('icustomGlyphs');

0 comments on commit 52ef02e

Please sign in to comment.