Open Sazaju opened 9 years ago
I have started to implement something. So far, given an existing Japanese file and an existing English file, it creates 2 new files : the new English file aligned with the Japanese + the obsolete English entries. So from:
ScriptTextEnglish.rvtext
ScriptTextJapanese.rvtext
I obtain:
ScriptTextEnglish.rvtext
ScriptTextEnglish.rvtext.new
ScriptTextEnglish.rvtext.unused
ScriptTextJapanese.rvtext
The original files are not touched. The "new" file is strictly aligned to the Japanese version (same entries in the same order) such that when an English entry is available, it is used, otherwise this is the Japanese entry which is used. The "unused" file contains all the English entries of the original file which cannot be mapped to an entry in the Japanese file.
If you make a diff between the Japanese file and the "new" file, you would see that only the content of the entries is modified (so they are actually in the same order):
And in order for you to have an idea of the steps done and the time it takes, here is the short log:
2015-09-03 04:57:55.315 INFO: Loading Japanese file MGQ-EX/ScriptTextJapanese.rvtext... [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
2015-09-03 04:57:55.790 INFO: Reading MGQ-EX/ScriptTextJapanese.rvtext... [fr.vergne.translation.impl.PatternFileMap.startIterator()]
2015-09-03 04:57:57.555 INFO: Japanese loaded: 74309 entries. [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
2015-09-03 04:57:57.556 INFO: Loading English file MGQ-EX/ScriptTextEnglish.rvtext... [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
2015-09-03 04:57:57.557 INFO: Reading MGQ-EX/ScriptTextEnglish.rvtext... [fr.vergne.translation.impl.PatternFileMap.startIterator()]
2015-09-03 04:57:59.024 INFO: English loaded: 74309 entries. [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
2015-09-03 04:57:59.025 INFO: Writing new English file MGQ-EX/ScriptTextEnglish.rvtext.new... [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
2015-09-03 04:58:01.416 INFO: New English file written: 274 entries remaining [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
2015-09-03 04:58:01.417 INFO: Writing unused English file MGQ-EX/ScriptTextEnglish.rvtext.unused... [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
2015-09-03 04:58:01.426 INFO: Unused English file written: 274 entries [fr.sazaju.mgqupdater.MGQUpdater.<init>()]
Japanese loading: 2.24s English loading: 1.47s New English creation: 2.40s Unused English creation : 0.01s
I see that some entries have additional codes in English (e.g.
In order to make a dedicated program to automatise some manual stuff, I need you to tell me the different tasks to achieve. For each of them, I would need one or several representative examples with:
By having the two first points, I can implement automatic tests to guarantee that it works as intended. The last point helps me to understand the requirements of the task so that I can generalize the example.
We can go one task after the other, or you may give me all the tasks at once, as you want.