# GPL-2+ MAPPING-PREFIX = Ω ; # just something that we don't use in tags (default is @, but we want to map even if incoming readings have @) DELIMITERS = "<.>" "<:>" "" "" "<|>" "<$.>" "<$:>" "<$!>" "<$?>" "<$|>" sent ; SECTION # Based on transfer.cc:Transfer::copycase # except we don't consider uppercase if there is at least one lowercase in the middle ("Statford A") LIST lastupper = "<.*\\p{Lu}>"r ; LIST firstupper = "<\\p{Lu}.*>"r ; LIST haslower = "<.*\\p{Ll}.*>"r ; LIST sizeone = "<.>"r ; LIST unknown = ("\\*.*"r) ; LIST cmp = cmp ; PROTECT cmp ; # «20.45-kamp» gets cmp-tag on the left even if separate LU's PROTECT unknown ; MAP (Aa) sizeone + firstupper ; MAP (aa) sizeone ; MAP (AA) firstupper + lastupper - haslower ; MAP (Aa) firstupper ; MAP (aa) (*) ;