mls-m5 / neo-font-editor

Edit alphasmart neo fonts
4 stars 1 forks source link

neo_font_editor

Edit alphasmart neo and neo 2 fonts.

Edit font by dumping to text file, edit and encode back again

used together with neotools to extract and install fonts.

This project is based on neofontlib that is in turn a stripped down version of neofonteditor.

News

You can run the application online here.

Workflow

  1. Build the project with cmake. After these commands there should be an executable font_editor in the build directory.
    git submodule update --init --recursive
    mkdir build
    cd build
    cmake ..
    make
  2. Use neotools to extract your font applet
  3. Run ./font_editor your_font.os3kapp -f font-data.txt
  4. Create a remap-file with the characters you want to move
  5. Change appletname and id and other information in your font-data file
  6. Encode your app back to a applet ./font_editor --encode -f font-data.txt -o new-font-location.os3kapp --remap remap-scheme-uk-sv-dvorak.txt
  7. Install the new code on your neo with neotools

Example remap file

To find what character is look inside the dumped text file


# define chearacters
(  40
)  41
,  44

# Define which keys should replace which
# First the key you want -> then what character it should replace
, -> )
) -> (
) -> ,

Example editable file:


appletname Neo Font - Small (6 lines)
appletinfo _opyright (c) 19?8-2005 by Alpha_mart, LLC
fontname Small (6 lines)
version 1.0
id 44800
height 11
char 0
width 5
height 11

xxxxx.
xxxxx.
xxxxx.
xxxxx.
xxxxx.
xxxxx.
xxxxx.
xxxxx.
xxxxx.
xxxxx.
xxxxx.

char 1
width 5
height 11

     .
 xx  .
x  x .
 x   .
x x  .
x  x .
x  x .
 xx  .
     .
     .
     .

char 2
width 8
height 11

        .
   x    .
  x x   .
  x x   .
 x   x  .
 x   x  .
x     x .
xxxxxxx .
        .
        .
        .

... etc