Medabots / medarot3

Medarot 3 GBC disassembly/translation
27 stars 6 forks source link

Line formatting issues #242

Open Blaziken257 opened 3 months ago

Blaziken257 commented 3 months ago

There are occasionally issues where lines of text are too short: They don't contain as much text as they can, and as a result, the text is awkward to read, and it takes up more lines than necessary.

An example (of many) can be found here, in TextSection24, line 8:

bgb07704bgb07705bgb07706

In the spreadsheet, it is formatted like this, with a forced linebreak between "unite" and "mankind", and another between "Mother's" and "guidance":

<D1>And I was given a role to unite
mankind under the Mother's

<D1>guidance...

Whoever wrote this seemed to overestimate the length of the first line.

But this raises a few questions (not just this line, I've seen it elsewhere too):

  1. Does it hurt anything to just include everything in one line? For this example, I assume this wouldn't hurt anything:

    <D1>And I was given a role to unite mankind under the Mother's guidance...

    As a side note, another example of a formatting issue that is now fixed can be found in this commit -- See the removed <D3> line break at TextSection21, line 66 -- removing it fixed the text and didn't seem to cause any issues there.

  2. Was the text manually formatted in the past? It seems like the game auto-formats line breaks if there are none explicitly specified in the spreadsheet. (As a side question, does the formatting happen at build time or run time?)

  3. If there is text that requires forced linebreaks, would it be possible to automate something that checks for formatting issues like these? I know there is a text previewer somewhere, but I'm guessing that is manually done one line at a time.

VariantXYZ commented 3 months ago

Lines auto-format, I think this is included in the contributing document and first page of the spreadsheet. It happens during runtime, because text may contain variable-length strings.

The maintained formatting is usually matching the Japanese text.

We can probably create a script to catch formatting.