[fondue-commits] [SCM] Fondue Font Editor branch, master, updated. 48a8bad171f5af9adb1235b0d69b6c56ee071080

Eugeniy Meshcheryakov eugen at debian.org
Sun Sep 9 20:54:52 UTC 2007


The branch, master has been updated
       via  48a8bad171f5af9adb1235b0d69b6c56ee071080 (commit)
      from  267f6c103b12f71a056148eda4433f6c5a2d15a4 (commit)


- Shortlog ------------------------------------------------------------
48a8bad replace also % in descriptions

Summary of changes:
 nongui/unicodenameslist.awk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit 48a8bad171f5af9adb1235b0d69b6c56ee071080
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date:   Sun Sep 9 22:54:27 2007 +0200

    replace also % in descriptions
    fix type in a comment

diff --git a/nongui/unicodenameslist.awk b/nongui/unicodenameslist.awk
index 42e2e48..538c77b 100644
--- a/nongui/unicodenameslist.awk
+++ b/nongui/unicodenameslist.awk
@@ -23,7 +23,7 @@ BEGIN {
 	print "const UnicodeNamesList::UnicodeName UnicodeNamesList::UnicodeNames[] = {"
 }
 
-# escape C and HTML special scharacters
+# escape C and HTML special characters
 function escape(s) {
 	tmp = gensub(/\\/, "\\\\\\\\", "g", s)
 	tmp = gensub(/"/, "\\\\\"", "g", tmp)
@@ -37,6 +37,7 @@ function replace_special(s) {
 	sub(/^\*/, "\\&#8226;", s) # * -> •
 	sub(/^#/, "\\&#8776;", s) # # -> ≈
 	sub(/^:/, "\\&#8801;", s) # : -> ≡
+	sub(/^%/, "\\&#8251;", s) # % -> ※
 	s = gensub(/^x \(([^)]*)\)$/, "\\&#8594; \\1", 1, s) # x -> →
 	return s
 }

-- 
Fondue Font Editor



More information about the fondue-commits mailing list