gedcom-ts
Version:
TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.
16 lines (15 loc) • 885 B
TypeScript
import type { Act } from "../commons/Act";
import type { ReadGed } from "../import/ReadGed";
/**
* Égalité stricte de libellé (casse / espaces / NFKC uniquement).
* Pour regrouper des variantes (« Pleurtuit » vs « Pleurtuit, Ille-et-Vilaine »),
* utiliser {@link citiesAreSimilar}, {@link clusterKeyForCity} ou {@link groupActsBySimilarCity}.
*/
export declare function normalizeCityKey(city: string): string;
/** Libellé affiché : trim + espaces internes unifiés (sans forcer la casse). */
export declare function tidyCityDisplay(city: string): string;
/**
* Libellé canonique par **égalité stricte** {@link normalizeCityKey} (pas `citiesAreSimilar`).
* Pour une ville « proche », préférer le `cityLabel` d’un {@link groupActsBySimilarCity}.
*/
export declare function findCanonicalCityLabel(ged: ReadGed, cityInput: string, excludeAct: Act | null): string;