Skip to content

Commit

Permalink
change .yml root form umlaut to lofis
Browse files Browse the repository at this point in the history
  • Loading branch information
wingfire committed Nov 30, 2010
1 parent 19044b9 commit 924d840
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Lofis is a small helper to fix lexicographical order for international sorting.

Syntax
------
umlaut:
lofis:
replacement_string:
- string_to_replace

Expand Down
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ task :compile, :files do |t, args|

data = YAML.load_file(file.to_s)

if !data || !data.is_a?(Hash) || !data['umlaut']
if !data || !data.is_a?(Hash) || !data['lofis']
puts ' - no lofis data found'
next
end

data['umlaut'].each do |k,v|
data['lofis'].each do |k,v|
result[k].concat(v)
end

Expand All @@ -53,7 +53,7 @@ task :compile, :files do |t, args|

f.puts

{ 'umlaut' => result }.to_yaml(f)
{ 'lofis' => result }.to_yaml(f)
end

end
2 changes: 1 addition & 1 deletion lib/lofis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.mapping
end

def self.load_file(file)
@mapping = YAML.load_file(file)['umlaut'].map { |r,s| [Regexp.new(s.map { |c| Regexp.escape(c) }.join('|')), r] }
@mapping = YAML.load_file(file)['lofis'].map { |r,s| [Regexp.new(s.map { |c| Regexp.escape(c) }.join('|')), r] }
end

def self.to_sortable(s)
Expand Down
2 changes: 1 addition & 1 deletion lofis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# source/italian.yml

---
umlaut:
lofis:
ss:
- "ß"
"":
Expand Down
2 changes: 1 addition & 1 deletion source/czech_slovak_slovenian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Á Ą Ä É Ę Ě Í Ó Ô Ú Ů Ý Č Ĺ Ň Ŕ Ř Š Ž
# á ą ä é ę ě í ó ô ú ů ý č ď ť ĺ ň ŕ ř š ž

umlaut:
lofis:
A:
- Á
- Ą
Expand Down
2 changes: 1 addition & 1 deletion source/french.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# à â æ ç è é ê ë î ï ô œ ù û ü
# « »

umlaut:
lofis:
A:
- À
- Â
Expand Down
2 changes: 1 addition & 1 deletion source/german.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# « » „ “ ”
# °

umlaut:
lofis:
A:
- Ä
E:
Expand Down
2 changes: 1 addition & 1 deletion source/greek.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

# TODO

umlaut:
lofis:
2 changes: 1 addition & 1 deletion source/hawaiian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Ä Ē Ī Ō Ū
# ä ē ī ō ū ʻ

umlaut:
lofis:
A:
- Ä
E:
Expand Down
2 changes: 1 addition & 1 deletion source/italian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# à á è é ì í ò ó ù ú
# « »

umlaut:
lofis:
A:
- À
- Á
Expand Down
2 changes: 1 addition & 1 deletion source/polish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Ą Ę Ó Ć Ł Ń Ś Ź Ż
# ą ę ó ć ł ń ś ź ż

umlaut:
lofis:
A:
- Ą
C:
Expand Down
2 changes: 1 addition & 1 deletion source/romanian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Ă Â Î Ș Ş Ț Ţ
# ă â î ș ş ț ţ

umlaut:
lofis:
A:
- Ă
- Â
Expand Down
2 changes: 1 addition & 1 deletion source/russian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

# TODO

umlaut:
lofis:
2 changes: 1 addition & 1 deletion source/spanish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# á é í ñ ó ú ü
# « » ¿ ¡

umlaut:
lofis:
A:
- Á
E:
Expand Down
2 changes: 1 addition & 1 deletion source/turkish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# İ Ö Ü Ç Ğ Ş
# ı ö ü ç ğ ş

umlaut:
lofis:
C:
- Ç
G:
Expand Down

0 comments on commit 924d840

Please sign in to comment.