diff --git a/.gitignore b/.gitignore index ac72e66..1d05f75 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -smu -smu.o +scq +scq.o diff --git a/.reuse/dep5 b/.reuse/dep5 index 0bb4582..006b3cb 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -1,8 +1,8 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: smu -Upstream-Contact: Enno Tensing -Source: https://code.suij.in/tenno/smu +Upstream-Name: scq +Upstream-Contact: Enno Tensing +Source: https://code.suij.in/tenno/scq -Files: smu.1 .gitignore documentation Makefile testdoc +Files: scq.1 .gitignore documentation Makefile testdoc Copyright: 2007 - 2014 Enno Boland License: MIT diff --git a/LICENSE b/LICENSE index 5956c4f..f54c2d1 100644 --- a/LICENSE +++ b/LICENSE @@ -2,6 +2,8 @@ MIT/X Consortium License (c) 2007-2014 Enno Boland +(C) 2025 Enno Tensing + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation diff --git a/Makefile b/Makefile index 9387864..2b26f88 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# libsmu - simple markup +# libscq - simple markup # (c) 2007, 2008 Enno Boland VERSION = 1.5 @@ -9,61 +9,61 @@ PGO_GEN = ${CFLAGS} -fprofile-generate PGO_USE = ${CFLAGS} -fprofile-use -fprofile-correction LDFLAGS ?= CC ?= cc -SRC = smu.c +SRC = scq.c -all: smu +all: scq options: - @echo smu build options: + @echo scq build options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" -smu: ${SRC} +scq: ${SRC} @echo CC $@ @${CC} -o $@ ${SRC} ${CFLAGS} ${LDFLAGS} pgo-build: ${SRC} - @echo CC smu - @${CC} -o smu ${SRC} ${PGO_GEN} ${LDFLAGS} + @echo CC scq + @${CC} -o scq ${SRC} ${PGO_GEN} ${LDFLAGS} @echo Generating pgo data @printf . - @./smu testdoc > /dev/null + @./scq testdoc > /dev/null @printf . - @cat testdoc | ./smu > /dev/null + @cat testdoc | ./scq > /dev/null @printf . - @./smu -n testdoc > /dev/null + @./scq -n testdoc > /dev/null @printf . - @cat testdoc | ./smu -n > /dev/null + @cat testdoc | ./scq -n > /dev/null @printf . - @rm smu + @rm scq @printf '\n' @echo Recompiling with pgo data - @echo CC smu - @${CC} -o smu ${SRC} ${PGO_USE} ${LDFLAGS} - @rm smu.gcda + @echo CC scq + @${CC} -o scq ${SRC} ${PGO_USE} ${LDFLAGS} + @rm scq.gcda clean: - rm -f smu ${OBJ} ${LIBOBJ} smu-${VERSION}.tar.gz + rm -f scq ${OBJ} ${LIBOBJ} scq-${VERSION}.tar.gz dist: clean - mkdir -p smu-${VERSION} - cp -R LICENSE Makefile config.mk smu.1 ${SRC} smu-${VERSION} - tar -cf smu-${VERSION}.tar smu-${VERSION} - gzip smu-${VERSION}.tar - rm -rf smu-${VERSION} + mkdir -p scq-${VERSION} + cp -R LICENSE Makefile config.mk scq.1 ${SRC} scq-${VERSION} + tar -cf scq-${VERSION}.tar scq-${VERSION} + gzip scq-${VERSION}.tar + rm -rf scq-${VERSION} install: all mkdir -p ${DESTDIR}${PREFIX}/bin - cp -f smu ${DESTDIR}${PREFIX}/bin - chmod 755 ${DESTDIR}${PREFIX}/bin/smu + cp -f scq ${DESTDIR}${PREFIX}/bin + chmod 755 ${DESTDIR}${PREFIX}/bin/scq mkdir -p ${DESTDIR}${MANPREFIX}/man1 - sed "s/VERSION/${VERSION}/g" < smu.1 > ${DESTDIR}${MANPREFIX}/man1/smu.1 - chmod 644 ${DESTDIR}${MANPREFIX}/man1/smu.1 + sed "s/VERSION/${VERSION}/g" < scq.1 > ${DESTDIR}${MANPREFIX}/man1/scq.1 + chmod 644 ${DESTDIR}${MANPREFIX}/man1/scq.1 uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/smu - rm -f ${DESTDIR}${MANPREFIX}/man1/smu.1 + rm -f ${DESTDIR}${PREFIX}/bin/scq + rm -f ${DESTDIR}${MANPREFIX}/man1/scq.1 .PHONY: all options clean dist install uninstall pgo-build diff --git a/documentation b/documentation index a5f11c3..814af3c 100644 --- a/documentation +++ b/documentation @@ -1,21 +1,21 @@ -smu - a Simple Markup Language +scq - a Simple Markup Language ============================== -_smu_ is a very simple and minimal markup language. It is designed for use in -wiki-like environments. smu makes it very easy to write your documents on the +_scq_ is a very simple and minimal markup language. It is designed for use in +wiki-like environments. scq makes it very easy to write your documents on the fly and convert them into HTML. -smu is capable of parsing very large documents. It scales just great as long +scq is capable of parsing very large documents. It scales just great as long as you avoid a huge amount of indents (this will be fixed in future releases -of smu). +of scq). Syntax ====== -smu was started as a rewrite of +scq was started as a rewrite of [markdown](http://daringfireball.net/projects/markdown/) but became something -more lightweight and consistent. The biggest difference between markdown and smu -is that smu doesn't support _reference style links_ +more lightweight and consistent. The biggest difference between markdown and scq +is that scq doesn't support _reference style links_ Inline pattern -------------- @@ -52,7 +52,7 @@ There are several pattern you can use to highlight your text: Titles ------ -Creating titles in smu is very easy. There are two different syntax styles. The +Creating titles in scq is very easy. There are two different syntax styles. The first is underlining: Heading @@ -89,11 +89,11 @@ You can do the same for E-Mail addresses: If you want to define a label for the url, you have to use a different syntax - [smu - simple mark up](http://s01.de/~gottox/index.cgi/proj_smu) + [scq - simple mark up](http://s01.de/~gottox/index.cgi/proj_scq) The resulting HTML-Code -

smu - simple mark up

+

scq - simple mark up

Lists ----- @@ -168,7 +168,7 @@ Result:
this.is(code, too)
 	
-Please note that you can't use HTML or smu syntax in a code block. +Please note that you can't use HTML or scq syntax in a code block. Other interesting stuff ----------------------- diff --git a/smu.1 b/scq.1 similarity index 64% rename from smu.1 rename to scq.1 index d29e1d1..c74657c 100644 --- a/smu.1 +++ b/scq.1 @@ -1,14 +1,14 @@ -.TH smu 1 smu\-VERSION +.TH scq 1 scq\-VERSION .SH NAME -smu \- simple markup +scq \- simple markup .SH SYNOPSIS -.B smu +.B scq .RB [ \-h ] .RB [ \-v ] .RB [ \-n ] .RB [ file ] .SH DESCRIPTION -smu is a simple interpreter for a simplified markdown dialect. +scq is a simple interpreter for a simplified markdown dialect. .SH OPTIONS .TP .B \-v @@ -20,4 +20,4 @@ prints usage information to standard error, then exits. .B \-n escapes all HTML Tags. .SH BUGS -Report any bugs to tenno+smu@suij.in +Report any bugs to tenno+scq@suij.in diff --git a/smu.c b/scq.c similarity index 99% rename from smu.c rename to scq.c index 66b228e..99bf07d 100644 --- a/smu.c +++ b/scq.c @@ -1,7 +1,7 @@ -// Copyright (C) 2025 Enno Tensing +// Copyright (C) 2025 Enno Tensing // Copyright (C) <2007, 2008> Enno Boland // SPDX-FileCopyrightText: (C) 2007 - 2014 Enno Boland -// SPDX-FileCopyrightText: (C) 2025 Enno Tensing +// SPDX-FileCopyrightText: (C) 2025 Enno Tensing // SPDX-License-Identifier: MIT #define _LARGEFILE64_SOURCE @@ -17,7 +17,7 @@ #include #ifndef PACKAGE -#define PACKAGE "smu" +#define PACKAGE "scq" #endif #ifndef VERSION diff --git a/smu.h b/scq.h similarity index 88% rename from smu.h rename to scq.h index 179b5f7..e506f24 100644 --- a/smu.h +++ b/scq.h @@ -11,7 +11,7 @@ * * Returns 0 on success. */ -int smu_convert(FILE *out, FILE *in, int suppresshtml); +int scq_convert(FILE *out, FILE *in, int suppresshtml); /** utility */ void eprint(const char *format, ...); diff --git a/testdoc b/testdoc index a0c90c6..5150311 100644 --- a/testdoc +++ b/testdoc @@ -1,4 +1,4 @@ -smu test +scq test ======== simple tests