Skip to content

Tool for translating *.tex with SCn macros into SCs-code

Notifications You must be signed in to change notification settings

MakarenkoAI/tex2scs-translator

 
 

Repository files navigation

Tex2SCs-translator

Tex2SCs-translator is a tool for translating SCn-represented *.tex files into SCs-represented *.scs files.

Quick start

Installation

There are two available options to use this translator:

  1. Native (Debian based distros support only)
# install dependencies
./install_deps_ubuntu.sh [--dev]
# build translator
./scripts/make_all.sh
  1. Docker
# build image
docker build --build-arg UID="${UID}" --build-arg GID="${GID}" -t tex2scs:latest .

Usage

  1. Native
# translate files
./bin/scn-tex2scs -d -c -s <path to folder with scn-tex sources> -t <target folder for translated scs sources>
  1. Docker NOTE: if you wouldn't like to change ownership of translated files then create output directory (e.g. ./kb-translated) before running this command.
# translate files
docker run --rm -ti -v ${PWD}/kb/docs/sc-network:/kb -v ${PWD}/kb-translated:/kb-translated tex2scs:latest

Feedback

Contributions, bug reports and feature requests are welcome! Feel free to check our issues page and file a new issue (or comment in existing ones).

About

Tool for translating *.tex with SCn macros into SCs-code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 81.2%
  • TeX 17.7%
  • ANTLR 0.4%
  • C 0.2%
  • CMake 0.2%
  • Shell 0.2%
  • Dockerfile 0.1%