meta: Rename to scq

smu is the ISO 639-3 code of Somray language from Cambodia, while scq is
the ISO 639-3 code of the Sa'och (or Chung) language from Cambodia and
Thailand.
This commit is contained in:
Enno Tensing 2025-01-22 20:43:49 +01:00
parent 39168765cb
commit 04e72cc8c8
Signed by: tenno
GPG key ID: 95265603BD36E66C
9 changed files with 57 additions and 55 deletions

4
.gitignore vendored
View file

@ -1,2 +1,2 @@
smu scq
smu.o scq.o

View file

@ -1,8 +1,8 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: smu Upstream-Name: scq
Upstream-Contact: Enno Tensing <tenno+smu@suij.in> Upstream-Contact: Enno Tensing <tenno+scq@suij.in>
Source: https://code.suij.in/tenno/smu 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 <g s01 de> Copyright: 2007 - 2014 Enno Boland <g s01 de>
License: MIT License: MIT

View file

@ -2,6 +2,8 @@ MIT/X Consortium License
(c) 2007-2014 Enno Boland <g s01 de> (c) 2007-2014 Enno Boland <g s01 de>
(C) 2025 Enno Tensing <tenno+scq@suij.in>
Permission is hereby granted, free of charge, to any person obtaining a Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"), copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation to deal in the Software without restriction, including without limitation

View file

@ -1,4 +1,4 @@
# libsmu - simple markup # libscq - simple markup
# (c) 2007, 2008 Enno Boland # (c) 2007, 2008 Enno Boland
VERSION = 1.5 VERSION = 1.5
@ -9,61 +9,61 @@ PGO_GEN = ${CFLAGS} -fprofile-generate
PGO_USE = ${CFLAGS} -fprofile-use -fprofile-correction PGO_USE = ${CFLAGS} -fprofile-use -fprofile-correction
LDFLAGS ?= LDFLAGS ?=
CC ?= cc CC ?= cc
SRC = smu.c SRC = scq.c
all: smu all: scq
options: options:
@echo smu build options: @echo scq build options:
@echo "CFLAGS = ${CFLAGS}" @echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}" @echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}" @echo "CC = ${CC}"
smu: ${SRC} scq: ${SRC}
@echo CC $@ @echo CC $@
@${CC} -o $@ ${SRC} ${CFLAGS} ${LDFLAGS} @${CC} -o $@ ${SRC} ${CFLAGS} ${LDFLAGS}
pgo-build: ${SRC} pgo-build: ${SRC}
@echo CC smu @echo CC scq
@${CC} -o smu ${SRC} ${PGO_GEN} ${LDFLAGS} @${CC} -o scq ${SRC} ${PGO_GEN} ${LDFLAGS}
@echo Generating pgo data @echo Generating pgo data
@printf . @printf .
@./smu testdoc > /dev/null @./scq testdoc > /dev/null
@printf . @printf .
@cat testdoc | ./smu > /dev/null @cat testdoc | ./scq > /dev/null
@printf . @printf .
@./smu -n testdoc > /dev/null @./scq -n testdoc > /dev/null
@printf . @printf .
@cat testdoc | ./smu -n > /dev/null @cat testdoc | ./scq -n > /dev/null
@printf . @printf .
@rm smu @rm scq
@printf '\n' @printf '\n'
@echo Recompiling with pgo data @echo Recompiling with pgo data
@echo CC smu @echo CC scq
@${CC} -o smu ${SRC} ${PGO_USE} ${LDFLAGS} @${CC} -o scq ${SRC} ${PGO_USE} ${LDFLAGS}
@rm smu.gcda @rm scq.gcda
clean: clean:
rm -f smu ${OBJ} ${LIBOBJ} smu-${VERSION}.tar.gz rm -f scq ${OBJ} ${LIBOBJ} scq-${VERSION}.tar.gz
dist: clean dist: clean
mkdir -p smu-${VERSION} mkdir -p scq-${VERSION}
cp -R LICENSE Makefile config.mk smu.1 ${SRC} smu-${VERSION} cp -R LICENSE Makefile config.mk scq.1 ${SRC} scq-${VERSION}
tar -cf smu-${VERSION}.tar smu-${VERSION} tar -cf scq-${VERSION}.tar scq-${VERSION}
gzip smu-${VERSION}.tar gzip scq-${VERSION}.tar
rm -rf smu-${VERSION} rm -rf scq-${VERSION}
install: all install: all
mkdir -p ${DESTDIR}${PREFIX}/bin mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f smu ${DESTDIR}${PREFIX}/bin cp -f scq ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/smu chmod 755 ${DESTDIR}${PREFIX}/bin/scq
mkdir -p ${DESTDIR}${MANPREFIX}/man1 mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < smu.1 > ${DESTDIR}${MANPREFIX}/man1/smu.1 sed "s/VERSION/${VERSION}/g" < scq.1 > ${DESTDIR}${MANPREFIX}/man1/scq.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/smu.1 chmod 644 ${DESTDIR}${MANPREFIX}/man1/scq.1
uninstall: uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/smu rm -f ${DESTDIR}${PREFIX}/bin/scq
rm -f ${DESTDIR}${MANPREFIX}/man1/smu.1 rm -f ${DESTDIR}${MANPREFIX}/man1/scq.1
.PHONY: all options clean dist install uninstall pgo-build .PHONY: all options clean dist install uninstall pgo-build

View file

@ -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 _scq_ 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 wiki-like environments. scq makes it very easy to write your documents on the
fly and convert them into HTML. 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 as you avoid a huge amount of indents (this will be fixed in future releases
of smu). of scq).
Syntax Syntax
====== ======
smu was started as a rewrite of scq was started as a rewrite of
[markdown](http://daringfireball.net/projects/markdown/) but became something [markdown](http://daringfireball.net/projects/markdown/) but became something
more lightweight and consistent. The biggest difference between markdown and smu more lightweight and consistent. The biggest difference between markdown and scq
is that smu doesn't support _reference style links_ is that scq doesn't support _reference style links_
Inline pattern Inline pattern
-------------- --------------
@ -52,7 +52,7 @@ There are several pattern you can use to highlight your text:
Titles 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: first is underlining:
Heading 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 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 The resulting HTML-Code
<p><a href="http://s01.de/~gottox/index.cgi/proj_smu">smu - simple mark up</a></p> <p><a href="http://s01.de/~gottox/index.cgi/proj_scq">scq - simple mark up</a></p>
Lists Lists
----- -----
@ -168,7 +168,7 @@ Result:
<pre><code>this.is(code, too) <pre><code>this.is(code, too)
</code></pre> </code></pre>
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 Other interesting stuff
----------------------- -----------------------

View file

@ -1,14 +1,14 @@
.TH smu 1 smu\-VERSION .TH scq 1 scq\-VERSION
.SH NAME .SH NAME
smu \- simple markup scq \- simple markup
.SH SYNOPSIS .SH SYNOPSIS
.B smu .B scq
.RB [ \-h ] .RB [ \-h ]
.RB [ \-v ] .RB [ \-v ]
.RB [ \-n ] .RB [ \-n ]
.RB [ file ] .RB [ file ]
.SH DESCRIPTION .SH DESCRIPTION
smu is a simple interpreter for a simplified markdown dialect. scq is a simple interpreter for a simplified markdown dialect.
.SH OPTIONS .SH OPTIONS
.TP .TP
.B \-v .B \-v
@ -20,4 +20,4 @@ prints usage information to standard error, then exits.
.B \-n .B \-n
escapes all HTML Tags. escapes all HTML Tags.
.SH BUGS .SH BUGS
Report any bugs to tenno+smu@suij.in Report any bugs to tenno+scq@suij.in

View file

@ -1,7 +1,7 @@
// Copyright (C) 2025 Enno Tensing <tenno+smu@suij.in> // Copyright (C) 2025 Enno Tensing <tenno+scq@suij.in>
// Copyright (C) <2007, 2008> Enno Boland <g s01 de> // Copyright (C) <2007, 2008> Enno Boland <g s01 de>
// SPDX-FileCopyrightText: (C) 2007 - 2014 Enno Boland <g s01 de> // SPDX-FileCopyrightText: (C) 2007 - 2014 Enno Boland <g s01 de>
// SPDX-FileCopyrightText: (C) 2025 Enno Tensing <tenno+smu@suij.in> // SPDX-FileCopyrightText: (C) 2025 Enno Tensing <tenno+scq@suij.in>
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
#define _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE
@ -17,7 +17,7 @@
#include <errno.h> #include <errno.h>
#ifndef PACKAGE #ifndef PACKAGE
#define PACKAGE "smu" #define PACKAGE "scq"
#endif #endif
#ifndef VERSION #ifndef VERSION

View file

@ -11,7 +11,7 @@
* *
* Returns 0 on success. * Returns 0 on success.
*/ */
int smu_convert(FILE *out, FILE *in, int suppresshtml); int scq_convert(FILE *out, FILE *in, int suppresshtml);
/** utility */ /** utility */
void eprint(const char *format, ...); void eprint(const char *format, ...);

View file

@ -1,4 +1,4 @@
smu test scq test
======== ========
simple tests simple tests