arcusmaximus / VNTranslationTools

Tools for translating visual novels
MIT License
304 stars 46 forks source link

question on wrapping kirikiri script #124

Closed shiny-ribbon closed 1 year ago

shiny-ribbon commented 1 year ago

how can I disable the fancify quotes function? the reason is that with the font I'm using, it adds an unreasonable amount of width to apostrophes. before and after:

31969 31971

I tried downloading the source code, but the build.bat didn't build anything for me, and of course I'm not entirely sure what part of the code would need disabling. so basically, can I disable the quote / apostrophe replacing, and how can I compile after doing so. Thank you and sorry for the beginner question

arcusmaximus commented 1 year ago

Simply edit this line: https://github.com/arcusmaximus/VNTranslationTools/blob/main/VNTextPatch.Shared/Scripts/Kirikiri/KirikiriScnScript.cs#L65 to this:

psb.Text.Value = ProportionalWordWrapper.Default.Wrap(str.Text, ControlCodeRegex, "\\n");

You can then open VNTranslationTools.sln in Visual Studio (there's a free Community edition) and press F5 to build it.

shiny-ribbon commented 1 year ago

Thank you for the help. Unfortunately even after installing VS, I couldn't rebuild it myself. I ran into a bunch of errors and the program is way too complicated for me. Oh well, I tried

Cosetto commented 1 year ago

I bet you forgot to download external/Freemote