Project

General

Profile

Revision 1bce78aa

ID1bce78aa3b383c90fb0faeb1f21fda28a7a5796a
Parent ee278452
Child 6b711d1a

Added by Andreas Müller almost 3 years ago

ref #3665 use high quotation marks and round not square brackets

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/UTF8.java
20 20
	NO_BREAK_SPACE("\u00A0"),
21 21
	POLISH_L("\u0142"),
22 22
	SMALL_A_ACUTE("\u00E1"),
23
	RIGHT_SINGLE_QUOT("\u2019"), // Right single quotation mark
24
	QUOT_DBL_LEFT("\u201c"),  //LEFT DOUBLE QUOTATION MARK Left English quotation mark
23
	QUOT_SINGLE_RIGHT("\u2019"), // Right single quotation mark
24
	QUOT_SINGLE_HIGH_REV9("\u201b"), // Left high single quotation mark
25
    QUOT_DBL_LEFT("\u201c"),  //LEFT DOUBLE QUOTATION MARK Left English quotation mark
25 26
	QUOT_DBL_RIGHT("\u201d"),  //RIGHT DOUBLE QUOTATION MARK Right English quotation mark
26 27
    QUOT_DBL_LOW9("\u201e"),  //DOUBLE LOW-9 QUOTATION MARK  Left English quotation mark Low
27 28
	QUOT_DBL_HIGH_REV9("\u201f"),  //DOUBLE HIGH-REVERSED-9 QUOTATION MARK Right English quotation mark -‟-
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/name/NonViralNameDefaultCacheStrategy.java
862 862
    				INonViralName originalNvName = CdmBase.deproxy(originalName);
863 863
    				originalNameString = makeOriginalNameString(currentName, originalNvName, originalNameTaggs);
864 864
    			}
865
    			originalNameStrings.add("[as " + UTF8.QUOT_DBL_LOW9 + originalNameString + UTF8.QUOT_DBL_LEFT + "]");
865
    			originalNameStrings.add("(as " + UTF8.QUOT_DBL_LEFT + originalNameString + UTF8.QUOT_DBL_RIGHT + ")");
866 866
    		}
867 867
		}
868 868
    	if (originalNameStrings.size() > 0){
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/parser/NonViralNameParserImplRegExBase.java
93 93

  
94 94

  
95 95
    //AuthorString
96
    protected static String qm = "[" + UTF8.RIGHT_SINGLE_QUOT + UTF8.ACUTE_ACCENT + "'`]";
96
    protected static String qm = "[" + UTF8.QUOT_SINGLE_RIGHT + UTF8.ACUTE_ACCENT + "'`]";
97 97
    protected static String authorPart = "(" + "([OdDL]"+qm+"|"+ qm + "t\\s?|ten\\s||l[ae]\\s|zur\\s)?" + "(" + capital2charDotWord + "|DC\\.)I?" + "(" + qm + nonCapitalDotWord + ")?" + "|[vV][ao]n(\\sder)?|da|du|-e|de(n|l|\\sla)?)" ;
98 98
    protected static String author = "((" + authorPart + "(" + fWs + "|-)" + ")+" + "(f(il)?\\.|secundus|jun\\.|ter|bis)?|Man in "+qm+"t Veld|Sant"+qm+"Anna)" ;
99 99
    protected static String finalTeamSplitter = "(" + fWs + "(&)" + fWs + "|" + oWs + "et" + oWs + ")";

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)