I have an error while parsing the following text file and can not parsing all its contents. This is a BUG? Please help me.
Files:
http://jp.wanfutrade.com/download/ErrorInTextParser.rar
I received the files, but from the screen shot I don't see what the problem could be. The project and the rule you created for the HCS file is missing, but needed to do tests. If not strings are imported as expected you should change the regular expression that parses the content.
I analyzed the file and the rule and I can reproduce the problem. Please note that some of your translatable text entries that are stored in one single text file line are complete XML files with > 10 kb in size. A single regular expression in the text file parser cannot evaluate more than 16 kb, but your expression is evaluating 2 lines and the line above the translatable content also contains the translatable string which doubles the size. Here are my recommendations that may help to solve the problem.
Hope this helps.
Thank you for your detailed reply.
Need further explanation is that this HCS file is hard-coded strings extracted from a PE file by my own macros.
When these strings are translated, also need to write in the PE file to complete the localization.
This HCS file contains the complete XML text, and some elements of these XML text also need to be translated.
Of course, can export the XML text as XML files and to parses by the XML parser.
But write the translated XML text is a very troublesome thing because with third-party software is required to complete.
If can use Passolo text parser to parses the XML text directly, will save a lot of trouble and improve work efficiency.
So, I would like to ask:
1, Why to limit length of a single string for the text parser? As far as I know, the regular expression do not have this limitation.
2, Can lift this limitation in future versions?
Thank you!