Please elaborate. What do you want to do with them?Hi,How can I show the position of line breaks in the imported text?And how are you handling those text line breaks?
To avoid automatic line breaks that result in too many lines!Please elaborate. What do you want to do with them?
Using Javascript (or the regex option in the search menu) you can address line breaks in Translator++ using "\n".
I don't understand the question.To avoid automatic line breaks that result in too many lines!
Do you have a Javascript script that checks for line breaks?
if (!this.cells[1]) return;
this.cells[1] = this.cells[1].replaceAll(/\n/g, "");
//Executed on "Row Level" this removes all linebreaks from the "Initial" row.
//Change to "this.cells[2]" for "Machine Translation", "this.cells[3]" for "Better Translation", etc.
I mean is there any way to detect the number of line breaks in the text in the current MAP, there is no way to see the line breaks in the software.I don't understand the question.
What kind of automatic line breaks?
If your word wrapping results in too many lines why not just increase the amount of characters each line?
If your text box cuts off the 4. line or something like that, why not edit the text box instead?
And "Do you have a Javascript script that checks for line breaks?" can't be the full question.
What do you want to check? How many there are?
What is the goal here?
Edit: If you just want to remove all linebreaks to rewrap or something like that you can do:
JavaScript:if (!this.cells[1]) return; this.cells[1] = this.cells[1].replaceAll(/\n/g, ""); //Executed on "Row Level" this removes all linebreaks from the "Initial" row. //Change to "this.cells[2]" for "Machine Translation", "this.cells[3]" for "Better Translation", etc.
I used the Warp Project function in the software and some of the text was getting more and more line breaks, causing the text to be lost in the game. So I'm asking how you solved the line breaks problem.I don't understand the question.
What kind of automatic line breaks?
If your word wrapping results in too many lines why not just increase the amount of characters each line?
If your text box cuts off the 4. line or something like that, why not edit the text box instead?
And "Do you have a Javascript script that checks for line breaks?" can't be the full question.
What do you want to check? How many there are?
What is the goal here?
Edit: If you just want to remove all linebreaks to rewrap or something like that you can do:
JavaScript:if (!this.cells[1]) return; this.cells[1] = this.cells[1].replaceAll(/\n/g, ""); //Executed on "Row Level" this removes all linebreaks from the "Initial" row. //Change to "this.cells[2]" for "Machine Translation", "this.cells[3]" for "Better Translation", etc.
I mean is there any way to detect the number of line breaks in the text in the current MAP, there is no way to see the line breaks in the software.
You must be talking about some really obscure engine that doesn't even allow Translator++ to handle linebreaks, or I don't really know what you mean.I used the Warp Project function in the software and some of the text was getting more and more line breaks, causing the text to be lost in the game. So I'm asking how you solved the line breaks problem.
Yes, I turned on "auto line feed."You must be talking about some really obscure engine that doesn't even allow Translator++ to handle linebreaks, or I don't really know what you mean.
The only thing I can come up with is that you have "word wrapping and explicit white spaces" turned on, if so, please toggle it off, I have no idea why that stupid option even exists.
View attachment 2979554
Then text will be formatted with the actual linebreaks.
View attachment 2979555
But after a MTL some text would escape the screen because there's way too much in one line, and that's when you use the wrap option.
The number of characters per line depends on the setup of the dialogue box the font and the font size. There's no one fits all.
View attachment 2979560
And after wrapping the linebreaks in RPGM text look like this:
View attachment 2979559
If you want to see the actual linebreaks in your cells you need to turn it OFF.Yes, I turned on "auto line feed."
So how do I see the actual line breaks in the cells, does that function show them?If you want to see the actual linebreaks in your cells you need to turn it OFF.
"Word wrapping and explicit white spaces" is only a visual thing inside the editor, it does not change the output.
It's off by default though. (I've been using v5.3.31B for a while now)First, to whomever that can edit this thread, it's perhaps better to mention that author hasYou must be registered to see the links, while the latest version in this thread is still 4.9.28
===============================
Then, I just found out a rather obscured mistake I made and think should share it here.
From some time ago whenever I uses the RPG maker parser V2, there's a high probability that it would get stuck at parsing commonEvents.json or some other relatively large data file. This has prevented me from working on many rpgm titles.
Today I decided to try my luck sniffing around its log file, and found a barrage of error:
Error: EMFILE: too many open files, open 'data/logs/trans.log'
so, it's stuck because for every log entry translator++ tries to open the log file without closing its previous handler opened during the last log attempt. when the file being parsed generates sufficiently large amount of log, it crashes the js node.
go to options -> general -> Log & debugging, disable 'Log to file'. Works like a charm.
I must have turned it on a long time ago when working on a much earlier version of translator, trying to debug a game crash caused by including js script handling. Back then there's no parser V2. That config passed over to new versions that has the parser V2.It's off by default though. (I've been using v5.3.31B for a while now)
But I'm still stuck at CommonEvents at this game RJ356908.
Maybe because it has almost 8MB worth of text?
Can you share the link for this version "right now I installed the 5.3.31b from the Russians page", thanksSo which version do you recommend? right now I installed the 5.3.31b from the Russians page, is that the good one or another? the version I found has all the addons and much more, but I do not know if it has a crack or something but if it is functional so far I have tried it although I am new I have not used very complex functions. and what is the function of the run translator?
Download from the author's page, freeCan you share the link for this version "right now I installed the 5.3.31b from the Russians page", thanks