Compare commits

...

27 Commits
0.1 ... master

Author SHA1 Message Date
Matteo Bini e13c6d2caa Remove locale dependency 2024-09-08 13:03:29 +02:00
Matteo Bini f2d9c56a12 Clearer code 2024-09-08 11:44:14 +02:00
Matteo Bini 5298a48e41 Typo 2024-09-07 21:18:49 +02:00
Matteo Bini 556d7b6ff8 Function implementations in alphabetical order 2024-09-07 21:00:25 +02:00
Matteo Bini d83e30da19 Cleanup for 0.2 2024-09-07 19:31:03 +02:00
Matteo Bini f24e9c7f62 Make debug target 2024-09-02 09:59:57 +02:00
Matteo Bini e21d6d18e9 Publication date bug (sscanf) 2024-09-02 09:38:03 +02:00
Matteo Bini ca8d6d7161 ul, li tags and generalise p and license tags 2024-09-02 09:37:55 +02:00
Matteo Bini 9b7cfa66ce Complete figure/img support
Default or specific sizes for each one, with optional different values
for print media query
2024-09-01 11:07:46 +02:00
Matteo Bini 337061a3f4 HTML command names 2024-09-01 11:07:03 +02:00
Matteo Bini 3dcf820a24 Better name for function argument 2024-09-01 11:04:49 +02:00
Matteo Bini a636fe0a1b fputs instead of fprintf, when possible 2024-09-01 11:04:49 +02:00
Matteo Bini 0d10bc8b4d Dynamic array type for array-like types 2024-09-01 11:04:33 +02:00
Matteo Bini 465281a163 figcaption tag 2024-08-17 00:01:53 +02:00
Matteo Bini ca9017342b Custom index heading with optional id 2024-08-17 00:01:44 +02:00
Matteo Bini f79292d9f3 Dynamic page index 2024-08-01 18:55:39 +02:00
Matteo Bini 86de41d87c br, em and i tags. Partial img/figure support 2024-07-24 19:35:29 +02:00
Matteo Bini 7a52b2ee33 q tag 2024-07-21 21:07:09 +02:00
Matteo Bini fe87055e6d Clearer README 2024-07-20 16:37:40 +02:00
Matteo Bini 9b25546e58 Standard input 2024-07-15 20:52:30 +02:00
Matteo Bini 31f41d2485 Publication date as pointer 2024-07-15 17:10:57 +02:00
Matteo Bini e54e680d3e Print help and usage. WIP on standard input 2024-07-15 16:50:32 +02:00
Matteo Bini 2f25133615 Print version 2024-07-15 10:44:57 +02:00
Matteo Bini f005138672 Program name in error messages 2024-07-15 10:44:23 +02:00
Matteo Bini fb1c2b971e Disable auto hyphens for URL 2024-07-15 09:58:28 +02:00
Matteo Bini 2f8c6f9ecb Free title 2024-07-13 20:45:52 +02:00
Matteo Bini 59b588498e Remove unused macro 2024-07-13 20:40:53 +02:00
3 changed files with 1202 additions and 460 deletions

View File

@ -1,12 +1,11 @@
BIN = srohtml
VERSION = 0.1
VERSION = 0.2
PREFIX = /usr/local
CPPFLAGS_SROHTML = -DVERSION=\"${VERSION}\" ${CPPFLAGS}
# debug
#CFLAGS_SROHTML = -ggdb -ansi -pedantic ${CPPFLAGS_SROHTML} ${CLAGS}
CFLAGS_SROHTML = -Os -ansi -pedantic ${CPPFLAGS_SROHTML} ${CFLAGS}
CPPFLAGS_SROHTML = -DBIN=\"${BIN}\" -DVERSION=\"${VERSION}\" ${CPPFLAGS}
OPTIMIZATION = -Os
CFLAGS_SROHTML = ${OPTIMIZATION} -ansi -pedantic ${CPPFLAGS_SROHTML} ${CFLAGS}
LDFLAGS_SROHTML = ${LDFLAGS}
SRC = ${BIN}.c
@ -29,6 +28,9 @@ ${BIN}: ${OBJ}
clean:
rm -f ${BIN} ${BIN}-${VERSION}.tar.gz *.o
debug:
@make OPTIMIZATION=-ggdb
dist: clean
mkdir ${BIN}-${VERSION}
cp -R ${SRC} LICENSE Makefile README ${BIN}-${VERSION}

12
README
View File

@ -4,22 +4,22 @@ the suckless philosophy [2].
The idea of updating a website with a roff-like syntax comes from my
preference for the groff typesetting system, obviously, and because my
texts are written without discarding the possibility of an hard copy.
texts are written without discarding the possibility of a hard copy.
With the right macro package you could ask groff to make a PDF out of my
web page sources.
Even if GNU roff outputs in HTML as well, I wasn't happy with the
results and the lack of HTML 5 support. Besides, I needed to hard code
some tags of the very small HTML subset I use, that are absent when
exporting hypertexts in groff.
results and the lack of HTML 5 support. Besides, I wanted to hard code a
bit of CSS for the the very small HTML subset I use, a feature absent
when exporting hypertexts in groff.
Moreover I'm thinking of mirroring my site to Gopherspace. I could
extend this program, or write a new one, to convert my simple roff
syntax to a text only version for Gopher. I could use the text only
version of my writings for the RSS feed too. So roff for the win!
This program is specially tailored for my use case, you might find some
hard coded and specific behaviour you don't agree with.
This program is specially tailored for my use case, you might find
specific behaviour you don't agree with.
[1] http://choice.tiepi.it/~matteobin/

1642
srohtml.c

File diff suppressed because it is too large Load Diff