move dictionaries to folder
This commit is contained in:
parent
3770b228e7
commit
6f8f06d5e2
12
x2i/index.ts
12
x2i/index.ts
|
@ -38,7 +38,7 @@ const regex = OuterXRegExp(
|
||||||
const defaultMatchAction = (left: string, match: string, right: string) => left + match + right;
|
const defaultMatchAction = (left: string, match: string, right: string) => left + match + right;
|
||||||
const defaultMatchFunction = (match: string, keys: ([RegExp, string | ((m: {[key: string]: string;}) => string), string][])) => OuterXRegExp.replaceEach(match, keys as (RegExp | string)[][])
|
const defaultMatchFunction = (match: string, keys: ([RegExp, string | ((m: {[key: string]: string;}) => string), string][])) => OuterXRegExp.replaceEach(match, keys as (RegExp | string)[][])
|
||||||
|
|
||||||
import * as chr from "./chr";
|
import * as chr from "./dictionaries/chr";
|
||||||
|
|
||||||
const matchType: { [key: string]: IMatchInstructions } = {
|
const matchType: { [key: string]: IMatchInstructions } = {
|
||||||
chr: {
|
chr: {
|
||||||
|
@ -47,21 +47,21 @@ const matchType: { [key: string]: IMatchInstructions } = {
|
||||||
},
|
},
|
||||||
ik: {
|
ik: {
|
||||||
join: (_, match) => `- ${match}`,
|
join: (_, match) => `- ${match}`,
|
||||||
keys: readKeys("./x2i/ik-keys.yaml"),
|
keys: readKeys("./x2i/dictionaries/ik-keys.yaml"),
|
||||||
},
|
},
|
||||||
p: {
|
p: {
|
||||||
join: (_, match) => `*${match}`,
|
join: (_, match) => `*${match}`,
|
||||||
keys: readKeys("./x2i/apie-keys.yaml"),
|
keys: readKeys("./x2i/dictionaries/apie-keys.yaml"),
|
||||||
},
|
},
|
||||||
x: {
|
x: {
|
||||||
keys: readKeys("./x2i/x2i-keys.yaml"),
|
keys: readKeys("./x2i/dictionaries/x2i-keys.yaml"),
|
||||||
},
|
},
|
||||||
z: {
|
z: {
|
||||||
keys: readKeys("./x2i/z2i-keys.yaml"),
|
keys: readKeys("./x2i/dictionaries/z2i-keys.yaml"),
|
||||||
},
|
},
|
||||||
i: {
|
i: {
|
||||||
join: (_, match) => `- ${match}`,
|
join: (_, match) => `- ${match}`,
|
||||||
keys: readKeys("./x2i/i-keys.yaml"),
|
keys: readKeys("./x2i/dictionaries/i-keys.yaml"),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue