farling42 / RWoutput

Tool to convert a Realm Works Output file into other formats.
GNU General Public License v3.0
14 stars 0 forks source link

Feedback - Text Formatting #43

Closed Sklore closed 2 years ago

Sklore commented 2 years ago

Morning, Starting to really slow down and look at the output in detail. Not sure if there's anything that can be done about this. I've noticed over the years that the way text works in RW is rather odd (it cold also just be me, who knows) and it tends to add spaces in where they don't belong. This seems to be having an impacted on the output.

Between paragraphs theres usually an empty line. If that line is clean, then the output format is fantastic. However in some situations there's spaces on the empty lines. Where that occurs the output format has a large gap between the paragraphs.

Here's an example: image

And as you can see. The reason for the gap is there a spaces on the empty line. image

So yeah. Not sure if anything can be done. I see this as an issue with the source realm but FYI.

farling42 commented 2 years ago

The removal of these extraneous spaces should be getting done in v 3.16. So that only a single line break.

Sklore commented 2 years ago

It's worked on some. Again though I think it's my data that's the issue. I have a heap of these.



![image](https://user-images.githubusercontent.com/8046697/145644934-50b7fae6-d5f1-495b-af50-6e9a51d7b4fd.png) ![image](https://user-images.githubusercontent.com/8046697/145645108-2af7ccef-c207-477f-8246-3718da37b4b3.png)
farling42 commented 2 years ago

RW seems to add some sort of non-standard space if you manually add a blank line between paragraphs in a single snippet.

It looks like the RWoutput tool removes some of them, but there is any formatting then the extra line isn't removed. e.g. if the whole snippet is set to italic, then internally in RW each paragraph is marked as italic, so the output tool doesn't notice that the "blank line paragraph" only has a space on it.

Sklore commented 2 years ago

Aren't you meant to be levelling ;)

farling42 commented 2 years ago

I think I can remove blank paragraphs by simply checking for a paragraph consisting of only format symbols and white space.

I don't know if any people have added extra blank lines as intentional formatting - but markdown might mess with those anyway.

farling42 commented 2 years ago

Have a look at the formatting improvements in 4.5 or later. I think it might improve this.

Sklore commented 2 years ago

Much better thanks!