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:
parent
39168765cb
commit
04e72cc8c8
9 changed files with 57 additions and 55 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
smu
|
||||
smu.o
|
||||
scq
|
||||
scq.o
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: smu
|
||||
Upstream-Contact: Enno Tensing <tenno+smu@suij.in>
|
||||
Source: https://code.suij.in/tenno/smu
|
||||
Upstream-Name: scq
|
||||
Upstream-Contact: Enno Tensing <tenno+scq@suij.in>
|
||||
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>
|
||||
License: MIT
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -2,6 +2,8 @@ MIT/X Consortium License
|
|||
|
||||
(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
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
|
|
54
Makefile
54
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
|
||||
|
|
|
@ -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
|
||||
|
||||
<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
|
||||
-----
|
||||
|
@ -168,7 +168,7 @@ Result:
|
|||
<pre><code>this.is(code, too)
|
||||
</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
|
||||
-----------------------
|
||||
|
|
|
@ -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
|
|
@ -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>
|
||||
// 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
|
||||
|
||||
#define _LARGEFILE64_SOURCE
|
||||
|
@ -17,7 +17,7 @@
|
|||
#include <errno.h>
|
||||
|
||||
#ifndef PACKAGE
|
||||
#define PACKAGE "smu"
|
||||
#define PACKAGE "scq"
|
||||
#endif
|
||||
|
||||
#ifndef VERSION
|
|
@ -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, ...);
|
2
testdoc
2
testdoc
|
@ -1,4 +1,4 @@
|
|||
smu test
|
||||
scq test
|
||||
========
|
||||
|
||||
simple tests
|
||||
|
|
Loading…
Add table
Reference in a new issue