Coder Social home page Coder Social logo

bdsp-worddatagen's Introduction

BDSP-worddatagen

Generates a wordDataArray for use in english BDSP message files

Example

input: Excuse me, are you a Trainer?\nYou are? Lovely!\nI have several fossils here that some of my colleagues have collected from the tunnels underground.\nThere's a machine in Oreburgh's museum that can revive the Pokémon in these fossils.\nWould you be willing to take the fossils over there? They'll know what to do.

result:

{

"wordDataArray": [

    {
    
        "patternID": 7,
        "eventID": 1,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "Excuse me, are you a Trainer? ",
        "strWidth": 343.53125
    },
    {
        "patternID": 7,
        "eventID": 1,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "You are? Lovely! ",
        "strWidth": 199.046875
    },
    {
        "patternID": 7,
        "eventID": 1,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "I have several fossils here that some of my ",
        "strWidth": 475.953125
    },
    {
        "patternID": 7,
        "eventID": 3,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "colleagues have collected from the tunnels ",
        "strWidth": 510.9375
    },
    {
        "patternID": 7,
        "eventID": 3,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "underground. ",
        "strWidth": 173.40625
    },
    {
        "patternID": 7,
        "eventID": 1,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "There’s a machine in Oreburgh’s museum that can ",
        "strWidth": 584.3125
    },
    {
        "patternID": 7,
        "eventID": 3,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "revive the Pokémon in these fossils. ",
        "strWidth": 415.65625
    },
    {
        "patternID": 7,
        "eventID": 1,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "Would you be willing to take the fossils over there? ",
        "strWidth": 589.453125
    },
    {
        "patternID": 7,
        "eventID": 7,
        "tagIndex": -1,
        "tagValue": 0.0,
        "str": "They’ll know what to do. ",
        "strWidth": 285.078125
    }
]

}

bdsp-worddatagen's People

Contributors

ycdevbdsp avatar ai0796 avatar

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.