Commit e95a805
return charater code if UCD is not installed
Changed files (3)
modifiedlibbirdfont/CharDatabase.valamodifiedlibbirdfont/GlyphRange.valamodifiedlibbirdfont/OverwriteDialog.vala
Diff
@@ -104,7 +104,6 @@ class CharDatabase { if (description == "") { warning ("no description found");- description = Font.to_hex (c).replace ("U+", "") + "\t"; } fin.close ();@@ -114,6 +113,10 @@ class CharDatabase { stderr.printf ("when reading %s", (!) get_unicode_database ().get_path ()); } + if (description == "") {+ description = Font.to_hex (c).replace ("U+", "") + "\t";+ }+ return description; } @@ -52,10 +52,10 @@ public class GlyphRange { public void use_default_range_alphabetic () { string lower_case, upper_case; - /// All lower case letters and diacritics in alphabetic order separated by space+ /// All lower case letters and letters with diacritical marks in alphabetic order separated by space lower_case = _("a b c d e f g h i j k l m n o p q r s t u v w x y z"); - /// All upper case letters and diacritics in alphabetic order separated by space+ /// All upper case letters and letters with diacritical marks in alphabetic order separated by space upper_case = _("A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"); foreach (string c in lower_case.split (" ")) {@@ -46,7 +46,7 @@ public class OverwriteDialog : FontDisplay { } public override string get_name () {- return "Overwrite?";+ return _("Overwrite?"); } public override bool is_html_canvas () {@@ -63,7 +63,7 @@ public class OverwriteDialog : FontDisplay { </head> <body> - <div style="width:300px; margin: 50px auto 0 auto;">+ <div style="width:350px; margin: 50px auto 0 auto;"> <div class="heading"><h2>""" + _("Overwrite?") + """</h2></div> <p>""" + mess + """</p>