-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcustomTxtDefinition.txt
More file actions
116 lines (116 loc) · 4.15 KB
/
customTxtDefinition.txt
File metadata and controls
116 lines (116 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#CustomTypeRegex_1=(\$.+)\t(.+) regex for parsing each line of the text file.
#CustomTypeLabel_1=mcm label of the txt (also used as a suffixe for dictionary
#CustomTypeEncoding_1=utf16 encoding for output (saving). Can be utf16, utf8 or Ansi numeric code (1252, 1250 etc...)
#CustomTypeBackrefID_1=1 indicate the backref for the string ID (first index is 1. if 0, there is no string ID)
#CustomTypeRestrictExt_1=.txt not used for now
#CustomTypeIsFallback_1=false define if the pattern is the fallback if no pattern in the list can match.
#CustomTypeSaveLangSuffixe_1=true if true, rebuild the output name with the target language suffixe (ex: mcmcfile_en.txt)
#CustomTypeSearchByLine_1=true if true, analyse the text with a single match per line, if false, process a match-again routine over the whole text in a raw. The later process might be very slow on big files.
#CustomTypeLineLimit_1=50 define the maximum number of lines to look for a regex match, starting from the beginning.
#CustomTypeSizeLimit_1=2048 define the maximum number of characters to look for a regex match, starting from the first one.
#---------
SupportedTxtExt=*.txt;*.ini;*.csv;*.pas;*.xml;*.json;*.pot;
#---------
CustomTypeCount=6
#---------
CustomTypeRegex_1=^(\$.+?)\t+(.+)$
CustomTypeLabel_1=mcm
CustomTypeEncoding_1=utf16
CustomTypeBackrefID_1=1
CustomTypeRestrictExt_1=.txt
CustomTypeSaveLangSuffixe_1=true
CustomTypeIsFallback_1=false
CustomTypeSearchByLine_1=true
CustomTypeLineLimit_1=50
CustomTypeSizeLimit_1=2048
#---------
CustomTypeRegex_2=^(?![;#])([^=]+)====(?!.*={2,})(.*)$
CustomTypeLabel_2=res
CustomTypeEncoding_2=Utf8
CustomTypeBackrefID_2=1
CustomTypeRestrictExt_2=.ini
CustomTypeSaveLangSuffixe_2=false
CustomTypeIsFallback_2=false
CustomTypeSearchByLine_2=true
CustomTypeLineLimit_2=50
CustomTypeSizeLimit_2=2048
#---------
CustomTypeRegex_3=^(?!#)(.+~[0-9a-fA-F]+)\|.*?name\("(.+?)"\)(?:\|.*?name\("(.+?)"\))?
CustomTypeLabel_3=rftp
CustomTypeEncoding_3=Utf8
CustomTypeBackrefID_3=1
CustomTypeRestrictExt_3=.txt
CustomTypeSaveLangSuffixe_3=false
CustomTypeIsFallback_3=false
CustomTypeSearchByLine_3=true
CustomTypeLineLimit_3=50
CustomTypeSizeLimit_3=2048
#---------
CustomTypeRegex_4=^(0x.+~[^\|]+)\|([^\|]+)
CustomTypeLabel_4=descfw
CustomTypeEncoding_4=Utf8
CustomTypeBackrefID_4=1
CustomTypeRestrictExt_4=.txt
CustomTypeSaveLangSuffixe_4=false
CustomTypeIsFallback_4=false
CustomTypeSearchByLine_4=true
CustomTypeLineLimit_4=50
CustomTypeSizeLimit_4=2048
#-----fallback: catch each line directly--------
CustomTypeRegex_5=^(.*)$
CustomTypeLabel_5=Generic
CustomTypeEncoding_5=Utf8
CustomTypeBackrefID_5=0
CustomTypeRestrictExt_5=*
CustomTypeSaveLangSuffixe_5=false
CustomTypeIsFallback_5=true
CustomTypeSearchByLine_5=true
CustomTypeLineLimit_5=50
CustomTypeSizeLimit_5=2048
#---------
CustomTypeRegex_6=<(description|moduleName)>(.*?)<\/\1>
CustomTypeLabel_6=fomod
CustomTypeEncoding_6=Utf16
CustomTypeBackrefID_6=1
CustomTypeRestrictExt_6=.txt
CustomTypeSaveLangSuffixe_6=false
CustomTypeIsFallback_6=false
CustomTypeSearchByLine_6=false
CustomTypeLineLimit_6=50
CustomTypeSizeLimit_6=2048
#---------testPOT
#CustomTypeRegex_7=^(?!#)msgctxt "(.*?)"$^(?!#)msgid "(.*?)"$
#CustomTypeRegex_7=msgctxt "(.*?)".*?msgid "(.*?)"
#CustomTypeLabel_7=POT_1
#CustomTypeEncoding_7=Utf8
#CustomTypeBackrefID_7=1
#CustomTypeRestrictExt_7=.pot
#CustomTypeSaveLangSuffixe_7=false
#CustomTypeIsFallback_7=false
#CustomTypeSearchByLine_7=false
#CustomTypeLineLimit_7=50
#CustomTypeSizeLimit_7=2048
#---------test
#CustomTypeRegex_9=^(?!#)msgctxt "(.*?)"$^(?!#)msgid "(.*?)"$
#CustomTypeRegex_9=msgid "(.*?)"$
#CustomTypeLabel_9=POT_1
#CustomTypeEncoding_9=Utf8
#CustomTypeBackrefID_9=0
#CustomTypeRestrictExt_9=.pot
#CustomTypeSaveLangSuffixe_9=false
#CustomTypeIsFallback_9=false
#CustomTypeSearchByLine_9=true
#CustomTypeLineLimit_9=50
#CustomTypeSizeLimit_9=2048
#---------test
#CustomTypeRegex_8="form_id": "(.*?)",.*?"original": "(.*?)",
#CustomTypeRegex_8="original": "(.*?)",
#CustomTypeLabel_8=Json
#CustomTypeEncoding_8=Utf8
#CustomTypeBackrefID_8=0
#CustomTypeRestrictExt_8=.txt
#CustomTypeSaveLangSuffixe_8=false
#CustomTypeIsFallback_8=false
#CustomTypeSearchByLine_8=true
#CustomTypeLineLimit_8=50
#CustomTypeSizeLimit_8=2048