Coder Social home page Coder Social logo

Cyrillic about translationframework2 HOT 6 CLOSED

kaplas80 avatar kaplas80 commented on August 17, 2024
Cyrillic

from translationframework2.

Comments (6)

Kaplas80 avatar Kaplas80 commented on August 17, 2024

Hi! In Yakuza games, the cyrillic font have "fixed width".

To adjust the width, you can try to replace the characters in the occidental font (hd_hankaku.dds) with cyrillic ones but, in that case, you'd have to modify and recompile my app (file Encoding.cs) to make the characters substitutions in game files.

from translationframework2.

JackMonores avatar JackMonores commented on August 17, 2024

This file needs to be edited in Kiwami or Zero version and what exactly will need to be changed? I only recently started doing this, and I apologize for such stupid questions. (I translate Kiwami)
Снимок
Снимок

from translationframework2.

Kaplas80 avatar Kaplas80 commented on August 17, 2024

Hi. You have to modify EncodingReplacements list, adding the characters you want to replace. You have to add one tuple for each replaced character, the first item in the tuple is the cyrillic char and the second one is the original char.

If you are translating Yakuza Kiwami, you have to modify Kiwami's Encoding.cs

from translationframework2.

JackMonores avatar JackMonores commented on August 17, 2024

Hi. You have to modify EncodingReplacements

I have to modify it in Encoding.cs? If so, can you tell us exactly where and how?(if you wish)

from translationframework2.

Kaplas80 avatar Kaplas80 commented on August 17, 2024

Yes, it starts in line 24 of Encoding.cs

            EncodingReplacements = new List<Tuple<string, string>>
            {
                new Tuple<string, string>("\\r", "\r"),
                new Tuple<string, string>("\\n", "\n"),
                //new Tuple<string, string>("®", "\u007F"),
                new Tuple<string, string>("¥", "\\"),
            };

You have to add one tuple for each char you want to replace. For example, if you replace A with Д in the .dds image, you have to modify EncodingReplacements this way:

            EncodingReplacements = new List<Tuple<string, string>>
            {
                new Tuple<string, string>("\\r", "\r"),
                new Tuple<string, string>("\\n", "\n"),
                //new Tuple<string, string>("®", "\u007F"),
                new Tuple<string, string>("¥", "\\"),
                new Tuple<string, string>("Д", "A"),
            };

from translationframework2.

JackMonores avatar JackMonores commented on August 17, 2024

Thanks, I'll try

from translationframework2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.