whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: add some uppercase characters
Date Thu, 18 May 2017 21:01:35 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  da77650   add some uppercase characters
da77650 is described below

commit da7765072dc2e365ee011f237ebd37315d650a25
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu May 18 17:01:18 2017 -0400

    add some uppercase characters
---
 www/secretary/workbench/views/asciize.js.rb | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/www/secretary/workbench/views/asciize.js.rb b/www/secretary/workbench/views/asciize.js.rb
index 8648088..8b0ef2a 100644
--- a/www/secretary/workbench/views/asciize.js.rb
+++ b/www/secretary/workbench/views/asciize.js.rb
@@ -10,7 +10,16 @@ def asciize(name)
     name.gsub! /\u00f6|o\u0308/, 'oe'
     name.gsub! /\u00fc|u\u0308/, 'ue'
 
-    # latin 1
+    # latin 1 - uppercase
+    name.gsub! /[\u00c0-\u00c5]/, 'a'
+    name.gsub! /\u00c7/, 'c'
+    name.gsub! /[\u00c8-\u00cb]/, 'e'
+    name.gsub! /[\u00cc-\u00cf]/, 'i'
+    name.gsub! /[\u00d2-\u00d6]|\u00d8/, 'o'
+    name.gsub! /[\u00d9-\u00dc]/, 'u'
+    name.gsub! /[\u00dd]/, 'y'
+
+    # latin 1 - lowercase
     name.gsub! /[\u00e0-\u00e5]/, 'a'
     name.gsub! /\u00e7/, 'c'
     name.gsub! /[\u00e8-\u00eb]/, 'e'

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message