add initial marp implementation with sample content and build configuration

This commit is contained in:
2025-09-13 18:13:22 +02:00
parent dcacc9b409
commit e5f219507f
10319 changed files with 1402023 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { createLocale } from '../locale.js';
import { nestingToString } from '../locale_util.js';
import { NUMBERS } from '../numbers/numbers_sv.js';
import * as tr from '../transformers.js';
let locale = null;
export function sv() {
if (!locale) {
locale = create();
}
return locale;
}
function create() {
const loc = createLocale();
loc.NUMBERS = NUMBERS;
loc.FUNCTIONS.radicalNestDepth = nestingToString;
loc.FUNCTIONS.fontRegexp = function (font) {
return new RegExp('((^' + font + ' )|( ' + font + '$))');
};
loc.ALPHABETS.combiner = tr.Combiners.prefixCombiner;
loc.ALPHABETS.digitTrans.default = NUMBERS.numberToWords;
loc.CORRECTIONS.correctOne = (num) => num.replace(/^ett$/, 'en');
return loc;
}