Skip to content

A text converter that transforms plain text into gText resources that fit the font and box size limitations of gen 3 pokemon games

Notifications You must be signed in to change notification settings

hxhelm/porytext-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

porytext-rs

This is a Rust CLI tool for converting plaintext files to gText entries for use with the Pokémon generation 3 decompilation projects (pokeruby, pokeemerald, and pokefirered).

Usage

> ./porytext --help
A simple CLI tool to convert plain text to gText entries

Usage: porytext [OPTIONS] <FILE>

Arguments:
  <FILE>  The input file to read from

Options:
  -f, --font-id <FONT_ID>        Set the id for the font to use, default is defined in the font config file
  -c, --font-config <FILE>       Set the path to the font config file, default is ./font_config.json
  -b, --block-name <BLOCK_NAME>  The name of the generated gText block
  -h, --help                     Print help
  -V, --version                  Print version

Example:

input.txt:

The quick, brown fox jumps over a lazy dog.

DJs flock by when MTV ax quiz prog.

One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin.

Waltz, bad nymph, for quick jigs vex!
> ./porytext -b Porytext_Test input.txt
gText_PoryText_Test::
        .string "The quick, brown fox jumps over a lazy\n"
        .string "dog.\p"
        .string "DJs flock by when MTV ax quiz prog.\p"
        .string "One morning, when Gregor Samsa woke\n"
        .string "from troubled dreams, he found himself\l"
        .string "transformed in his bed into a horrible\l"
        .string "vermin.\p"
        .string "Waltz, bad nymph, for quick jigs vex!$"

About

A text converter that transforms plain text into gText resources that fit the font and box size limitations of gen 3 pokemon games

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages