Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Removed space between digits and a fraction (Swedish)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Håkansson committed Aug 14, 2013
1 parent b1899db commit 979b91c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ public void setLocale(FilterLocale target) {
filters = new CombinationFilter();
// Remove zero width space
filters.add(new RegexFilter("\\u200B", ""));
// vulgar fraction preceded by a digit must be separated by a space
filters.add(new RegexFilter("([\\d]+)([¼½¾])", "$1 $2"));
// One or more digit followed by zero or more digits, commas or periods
filters.add(new RegexFilter("([\\d]+[\\d,\\.]*)", "\u283c$1"));
// Insert a "reset character" between a digit and lower case a-j
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,6 @@ public void testFinalizer_performance() {

@Test
public void testFractions_001() {
assertEquals("⠼⠃ ⠼⠁⠌⠼⠙⠂ ⠼⠁ ⠼⠁⠌⠼⠃⠂ ⠼⠉ ⠼⠉⠌⠼⠙", filter.filter("2¼, 1½, 3¾"));
assertEquals("⠼⠃⠼⠁⠌⠼⠙⠂ ⠼⠁⠼⠁⠌⠼⠃⠂ ⠼⠉⠼⠉⠌⠼⠙", filter.filter("2¼, 1½, 3¾"));
}
}

0 comments on commit 979b91c

Please sign in to comment.