feat(snip)!: update latin greek map with reasons

This commit is contained in:
arne314
2025-08-03 12:00:15 +02:00
parent fcd3edbad2
commit 517d60b72a
2 changed files with 18 additions and 12 deletions

View File

@@ -16,31 +16,32 @@ local greek_letters_map = {
['c'] = 'chi',
['d'] = 'delta',
['e'] = 'epsilon',
['f'] = 'phi',
['f'] = 'phi', -- sound
['g'] = 'gamma',
['h'] = 'eta',
['h'] = 'eta', -- look
['i'] = 'iota',
['j'] = 'theta',
['k'] = 'kappa',
['l'] = 'lambda',
['m'] = 'mu',
['n'] = 'nu',
['o'] = 'omega',
['o'] = 'omikron',
['p'] = 'psi',
['q'] = 'eta',
['q'] = 'theta', -- look?
['r'] = 'rho',
['s'] = 'sigma',
['t'] = 'tau',
['v'] = 'nu',
['w'] = 'omega',
['u'] = 'upsilon',
['v'] = 'nu', -- look
['w'] = 'omega', -- look
['x'] = 'xi',
['y'] = 'upsilon',
['y'] = 'upsilon', -- look
['z'] = 'zeta',
}
local greek_keys = {}
local greek_letters_set = {}
local common_indices = { '\\d+', '[i-n]' }
-- buitins and caligraphic letters from github.com/lentilus/readable-typst
-- builtins and calligraphic letters from github.com/lentilus/typst-scribe
local index_conflicts = { 'Im', 'in', 'ln', 'Pi', 'pi', 'Xi', 'xi', 'Ii', 'Jj', 'Kk', 'Ll', 'Mm', 'Nn' }
local index_conflicts_set = {}
local punctuation_prepend_space = { ',', ';' }