Git Product home page Git Product logo

rubi's Introduction

Rubi

Requires Fabric Loader.

Rubi is a utility mod for Minecraft that, hopefully, will enable you to more easily learn (for example) Japanese words through gameplay by allowing the display of furigana/ruby annotations within the game itself. Additionally, I created/generated a dedicated resource pack to provide compatible ruby annotations for the Japanese language. While the resource pack is fairly comprehensive, please note that I haven't thoroughly verified every annotation (there are a lot of them), so I should expect there to be some inaccuracies.

NOTE: This mod does basically nothing without a compatible language resource pack.

Options

By default, ruby annotations are displayed aboveəˈbʌv the annotated text. This can be changed in the game's accessibility settings. There are four options:

  • Above Text (Default): The ruby annotations are displayed above the annotated text.
  • Below Text: The ruby annotations are displayed below the annotated text.
  • Replace Text: The annotated text is replaced with the ruby annotations.
  • Hidden: Self explanatory.

Compatible resource packs

Japanese

For resource pack creators

Assuming you already know how to create a resource pack, you can include ruby annotations in the translations for your language using the format §^<text>(<ruby>) where <text> is the text to be annotated and <ruby> is the ruby annotation. For example, the following translation:

{
    "item.minecraft.diamond_sword": "ダイヤモンドの§^剣(けん)"
}

will display as:

ダイヤモンドのけん

Any whitespace around the <text> and <ruby> are stripped out, so the following translation:

{
    "item.minecraft.diamond_sword": "ダイヤモンドの§^  剣 (    けん  )"
}

will look exactly the same as the previous example when the mod is installed. However, when the mod is not installed, the text will be displayed as it is in the translation file (without the initial §^):

ダイヤモンドの  剣 (    けん  )

This means that compatible resource packs can be used without having installed the mod, albeit without proper ruby rendering.

rubi's People

Contributors

keve1227 avatar venroydev 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.