-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -17,8 +17,9 @@ | |||||||||||||||||
*/ | ||||||||||||||||||
package net.sf.jabref.logic.formatter; | ||||||||||||||||||
|
||||||||||||||||||
import net.sf.jabref.logic.formatter.casechanger.*; | ||||||||||||||||||
|
||||||||||||||||||
import java.util.*; | ||||||||||||||||||
import java.util.stream.Collectors; | ||||||||||||||||||
|
||||||||||||||||||
/** | ||||||||||||||||||
* Class with static methods for changing the case of strings and arrays of strings. | ||||||||||||||||||
|
@@ -28,330 +29,11 @@ | |||||||||||||||||
* This can be done by starting at the letter position and moving forward and backword to see if there is a '{' and '}, respectively. | ||||||||||||||||||
*/ | ||||||||||||||||||
public class CaseChangers { | ||||||||||||||||||
|
||||||||||||||||||
public static final Set<String> SMALLER_WORDS; | ||||||||||||||||||
|
||||||||||||||||||
static { | ||||||||||||||||||
Set<String> smallerWords = new HashSet<>(); | ||||||||||||||||||
// NOTE: before JabRef 2.80, it was SKIP_WORDS = {"a", "an", "the", "for", "on", "of"}; in net.sf.jabref.logic.labelPattern.LabelPatternUtil.SKIP_WORDS | ||||||||||||||||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
stefan-kolb
Author
Member
|
Set<String> smallerWords = new HashSet<>(); | |
// Articles | |
smallerWords.addAll(Arrays.asList("a", "an", "the")); | |
// Prepositions | |
smallerWords.addAll(Arrays.asList("above", "about", "across", "against", "along", "among", "around", "at", "before", "behind", "below", "beneath", "beside", "between", "beyond", "by", "down", "during", "except", "for", "from", "in", "inside", "into", "like", "near", "of", "off", "on", "onto", "since", "to", "toward", "through", "under", "until", "up", "upon", "with", "within", "without")); | |
// Conjunctions | |
smallerWords.addAll(Arrays.asList("and", "but", "for", "nor", "or", "so", "yet")); |
List of all English articles, prepositions and conjunctions which should remain in lowercase in Titles - source TBD
Of course this is only sensible if we actually have a source 😉
Why was this comment removed? I think, it helps when thinking of the functionality, don't you?