Skip to content

a simple ascii text generator for asciidoc and svgbob by gtk4-rs

Notifications You must be signed in to change notification settings

NObodyGX/asciibox

Repository files navigation

Asciibox readme

简体中文说明

description

asciibox is an auxiliary tool intended to simplify ascii text manipulation, include svgbob and asciidoc, the current implementation of the following features:

  1. use mermaid syntax to generate svgbob, it will generate svgbob ascii text and output image(by svgbob)
  2. align and beautify asciidoc tables.

how to run

run sh build.sh in project root dir

if you want to debug with cargo, the config.rs will be generated differently than the installation. so you link file with your build, which should be done with build.sh, if not, you should run ln -s $PKGDATA_DIR/asciibox.gresource $PROJECTDIR/_build/data/asciibox.gresource, PKGDATA_DIR define in config.rs, PROJECTDIR is project folder locate

roadmap

  • flowchart(svgbob impl)
    • zh-cn support
    • basic arrow(left/down/up/right) support
    • subgraph support
    • multi arrow support
    • preview
  • table
    • beautify table
    • output table
    • op table
  • asciidoc
    • beautify code
    • transform from markdown
    • preview

install

linux

# for arch linux
paru -S asciibox

# for other linux
git clone --depth=1 https://github.com/nobodygx/asciibox
meson setup build
meson compile -C build
meson install -C build

# run asciibox to enjoy!!

windows

# Install MSYS2
pacman -S mingw-w64-x86_64-gtk4 mingw-w64-x86_64-gettext mingw-w64-x86_64-libxml2 mingw-w64-x86_64-librsvg mingw-w64-x86_64-pkgconf mingw-w64-x86_64-gcc mingw-w64-x86_64-libadwaita

# add into paths
C:\msys64\mingw64\include
C:\msys64\mingw64\bin
C:\msys64\mingw64\lib

# install rust
rustup toolchain install stable-gnu
rustup default stable-gnu

# before cargo run
# sh build.sh  # --> to build asciibox, but without install
# cp _build/data/asciibox.gresource /mingw/share/asciibox/
# cargo run to enjoy

About

a simple ascii text generator for asciidoc and svgbob by gtk4-rs

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published