WME PLN Core Loader

Cargador de módulos del núcleo para WME Place Normalizer. No funciona por sí solo.

08.09.2025 itibariyledir. En son verisyonu görün.

Bu script direkt olarak kurulamaz. Başka scriptler için bir kütüphanedir ve meta yönergeleri içerir // @require https://update.greasyfork.org/scripts/548748/1656817/WME%20PLN%20Core%20Loader.js

// ==UserScript==
// @name         WME PLN Core Loader
// @namespace    https://greasyfork.org/en/users/mincho77
// @version      9.0.0
// @description  Cargador de módulos del núcleo para WME Place Normalizer. No funciona por sí solo.
// @author       mincho77
// @license      MIT
// @grant        none
// @require https://update.greasyfork.org/scripts/548744/1656810/WME%20PLN%20Core%20-%20Utils.js
// @require https://update.greasyfork.org/scripts/548745/1656811/WME%20PLN%20Core%20-%20XML%20Handler.js
// @require https://update.greasyfork.org/scripts/548746/1656813/WME%20PLN%20Core%20-%20AI%20Handler.js
// @require https://update.greasyfork.org/scripts/548747/1656814/WME%20PLN%20Core%20-%20Normalization%20Engine.js
// ==/UserScript==

(function() {
    'use strict';

    // Este objeto global 'PLNCore' contendrá todas las funciones de los módulos.
    // Esto mantiene el scope global limpio y el código organizado.
    window.PLNCore = {
        // Desde _core_normalization.js
        normalize: processPlaceName,
        applyReplacements: aplicarReemplazosDefinidos,
        applySwap: applySwapRules,

        // Desde _core_ai.js
        ai: {
            getSuggestions: getAiSuggestions,
            adjustPayload: plnAdjustAiPayloadIfNeeded
        },

        // Desde _core_xml.js
        xml: {
            exportData: exportSharedDataToXml,
            importData: handleXmlFileDrop,
            getProcessedSection: exportProcessedPlacesSectionXML,
            importProcessedSection: importProcessedPlacesFromXML
        },

        // Desde _core_utils.js
        utils: {
            calculateDistance: calculateDistance,
            calculateArea: calculateAreaMeters,
            removeDiacritics: removeDiacritics,
            isDateWithinRange: isDateWithinRange,
            xmlEscape: xmlEscape,
            plnPostSwapCap: plnPostSwapCap
        }
    };
})();