wordgrinder-0.5.1.orig/ 0000755 0000000 0000000 00000000000 12251160512 011663 5 ustar wordgrinder-0.5.1.orig/COPYING 0000644 0000000 0000000 00000002042 11523516526 012727 0 ustar Copyright © 2007-2009 David Given 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 the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. wordgrinder-0.5.1.orig/Makefile 0000644 0000000 0000000 00000016244 12251157336 013344 0 ustar # © 2007-2013 David Given. # WordGrinder is licensed under the MIT open source license. See the COPYING # file in this distribution for the full text. hide = @ PREFIX = $(HOME) CC = gcc WINCC = mingw32-gcc.exe WINDRES = windres.exe MAKENSIS = makensis ifneq ($(findstring Windows,$(OS)),) OS = windows else OS = unix endif VERSION := 0.5.1 FILEFORMAT := 4 DATE := $(shell date +'%-d %B %Y') override CFLAGS += \ -DVERSION='"$(VERSION)"' \ -DFILEFORMAT=$(FILEFORMAT) \ -DPREFIX='"$(HOME)"' \ -Isrc/c \ -Isrc/c/minizip \ -Wall \ -ffunction-sections \ -fdata-sections \ --std=gnu99 override LDFLAGS += \ WININSTALLER := bin/WordGrinder\ $(VERSION)\ setup.exe all: unix unix: \ bin/wordgrinder \ bin/wordgrinder-debug \ bin/wordgrinder-static .PHONY: unix windows: \ bin/wordgrinder.exe \ bin/wordgrinder-debug.exe \ $(WININSTALLER) .PHONY: windows wininstaller: $(WININSTALLER) .PHONY: wininstaller install: bin/wordgrinder bin/wordgrinder.1 @echo INSTALL $(hide)install -D -m 755 bin/wordgrinder $(PREFIX)/bin/wordgrinder $(hide)install -D -m 644 bin/wordgrinder.1 $(PREFIX)/share/man/man1/wordgrinder.1 $(hide)install -D -m 644 README.wg $(PREFIX)/share/doc/wordgrinder/README.wg # --- Builds the script blob ------------------------------------------------ LUASCRIPTS := \ src/lua/_prologue.lua \ src/lua/xml.lua \ src/lua/utils.lua \ src/lua/events.lua \ src/lua/redraw.lua \ src/lua/document.lua \ src/lua/forms.lua \ src/lua/ui.lua \ src/lua/browser.lua \ src/lua/html.lua \ src/lua/margin.lua \ src/lua/fileio.lua \ src/lua/export.lua \ src/lua/export/text.lua \ src/lua/export/html.lua \ src/lua/export/latex.lua \ src/lua/export/troff.lua \ src/lua/export/opendocument.lua \ src/lua/import.lua \ src/lua/import/html.lua \ src/lua/import/text.lua \ src/lua/import/opendocument.lua \ src/lua/navigate.lua \ src/lua/addons/goto.lua \ src/lua/addons/autosave.lua \ src/lua/addons/docsetman.lua \ src/lua/addons/scrapbook.lua \ src/lua/addons/pagecount.lua \ src/lua/addons/widescreen.lua \ src/lua/menu.lua \ src/lua/cli.lua \ src/lua/main.lua .obj/luascripts.c: $(LUASCRIPTS) @echo SCRIPTS @mkdir -p .obj @lua tools/multibin2c.lua script_table $^ > $@ clean:: @echo CLEAN .obj/luascripts.c @rm -f .obj/luascripts.c # --- Builds a single C file ------------------------------------------------ define cfile $(objdir)/$(1:.c=.o): $1 Makefile @echo CC $$@ @mkdir -p $$(dir $$@) $(hide)$(cc) $(CFLAGS) $(cflags) $(INCLUDES) -c -o $$@ $1 $(objdir)/$(1:.c=.d): $1 Makefile @echo DEPEND $$@ @mkdir -p $$(dir $$@) $(hide)$(cc) $(CFLAGS) $(cflags) $(INCLUDES) \ -MP -MM -MT $(objdir)/$(1:.c=.o) -MF $$@ $1 DEPENDS += $(objdir)/$(1:.c=.d) objs += $(objdir)/$(1:.c=.o) endef # --- Builds a single RC file ----------------------------------------------- define rcfile $(objdir)/$(1:.rc=.o): $1 Makefile @echo WINDRES $$@ @mkdir -p $$(dir $$@) $(hide)$(WINDRES) $1 $$@ objs += $(objdir)/$(1:.rc=.o) endef # --- Links WordGrinder ----------------------------------------------------- define build-wordgrinder $(exe): $(objs) Makefile @echo LINK $$@ @mkdir -p $$(dir $$@) $(hide)$(cc) $(CFLAGS) $(cflags) $(LDFLAGS) -o $$@ $(objs) $(ldflags) clean:: @echo CLEAN $(exe) @rm -f $(exe) $(objs) endef # --- Builds the WordGrinder core code -------------------------------------- define build-wordgrinder-core $(call cfile, src/c/utils.c) $(call cfile, src/c/zip.c) $(call cfile, src/c/main.c) $(call cfile, src/c/lua.c) $(call cfile, src/c/word.c) $(call cfile, src/c/screen.c) $(call cfile, .obj/luascripts.c) endef # --- Builds the LFS library ------------------------------------------------ define build-wordgrinder-lfs $(call cfile, src/c/lfs/lfs.c) endef # --- Builds the minizip library -------------------------------------------- define build-wordgrinder-minizip $(call cfile, src/c/minizip/ioapi.c) $(call cfile, src/c/minizip/zip.c) $(call cfile, src/c/minizip/unzip.c) endef # --- Builds emulation routines --------------------------------------------- define build-wordgrinder-emu $(call cfile, src/c/emu/wcwidth.c) endef # --- Builds the ncurses front end ------------------------------------------ define build-wordgrinder-ncurses $(call cfile, src/c/arch/unix/cursesw/dpy.c) endef # --- Builds the Windows front end ------------------------------------------ define build-wordgrinder-windows $(call cfile, src/c/arch/win32/gdi/dpy.c) $(call cfile, src/c/arch/win32/gdi/glyphcache.c) $(call cfile, src/c/arch/win32/gdi/realmain.c) $(call rcfile, src/c/arch/win32/wordgrinder.rc) src/c/arch/win32/wordgrinder.rc: \ src/c/arch/win32/manifest.xml endef # --- Unix ------------------------------------------------------------------ ifeq ($(OS),unix) cc := gcc INCLUDES := -I/usr/include/lua5.2 UNIXCFLAGS := \ -D_XOPEN_SOURCE_EXTENDED \ -D_XOPEN_SOURCE \ -D_GNU_SOURCE \ -DARCH=\"unix\" \ -I/usr/include/ncursesw ldflags := \ -lncursesw \ -llua5.2 \ -lz cflags := $(UNIXCFLAGS) -Os -DNDEBUG objdir := .obj/release exe := bin/wordgrinder objs := $(eval $(build-wordgrinder-core)) $(eval $(build-wordgrinder-ncurses)) $(eval $(build-wordgrinder-minizip)) $(eval $(build-wordgrinder)) cflags := $(UNIXCFLAGS) -g objdir := .obj/debug exe := bin/wordgrinder-debug objs := $(eval $(build-wordgrinder-core)) $(eval $(build-wordgrinder-ncurses)) $(eval $(build-wordgrinder-minizip)) $(eval $(build-wordgrinder)) cflags := $(UNIXCFLAGS) -g -DEMULATED_WCWIDTH -DBUILTIN_LFS objdir := .obj/debug-static exe := bin/wordgrinder-static objs := $(eval $(build-wordgrinder-core)) $(eval $(build-wordgrinder-ncurses)) $(eval $(build-wordgrinder-minizip)) $(eval $(build-wordgrinder-lfs)) $(eval $(build-wordgrinder-emu)) $(eval $(build-wordgrinder)) bin/wordgrinder.1: wordgrinder.man @echo MANPAGE $(hide)sed -e 's/@@@DATE@@@/$(DATE)/g; s/@@@VERSION@@@/$(VERSION)/g' $< > $@ endif # --- Windows --------------------------------------------------------------- ifeq ($(OS),windows) cc := $(WINCC) WINDOWSCFLAGS := \ -DEMULATED_WCWIDTH \ -DBUILTIN_LFS \ -DWIN32 \ -DWINVER=0x0501 \ -DARCH=\"windows\" \ -Dmain=appMain \ -mwindows ldflags := \ -static \ -lcomctl32 \ -llua \ -lz cflags := $(WINDOWSCFLAGS) -Os -DNDEBUG objdir := .obj/win32-release exe := bin/wordgrinder.exe objs := $(eval $(build-wordgrinder-core)) $(eval $(build-wordgrinder-minizip)) $(eval $(build-wordgrinder-lfs)) $(eval $(build-wordgrinder-emu)) $(eval $(build-wordgrinder-windows)) $(eval $(build-wordgrinder)) cflags := $(WINDOWSCFLAGS) -g objdir := .obj/win32-debug exe := bin/wordgrinder-debug.exe objs := $(eval $(build-wordgrinder-core)) $(eval $(build-wordgrinder-minizip)) $(eval $(build-wordgrinder-lfs)) $(eval $(build-wordgrinder-emu)) $(eval $(build-wordgrinder-windows)) $(eval $(build-wordgrinder)) src/c/arch/win32/wordgrinder.rc: \ src/c/arch/win32/icon.ico \ src/c/arch/win32/manifest.xml $(WININSTALLER): extras/windows-installer.nsi bin/wordgrinder.exe @echo INSTALLER @mkdir -p bin # $(dir) doesn't work with spaces $(hide)$(MAKENSIS) -v2 -nocd -dVERSION=$(VERSION) -dOUTFILE=$(WININSTALLER) $< clean:: @echo CLEAN $(WININSTALLER) @rm -f $(WININSTALLER) endif # --- Final setup ----------------------------------------------------------- -include $(DEPENDS) wordgrinder-0.5.1.orig/README.Unix 0000644 0000000 0000000 00000011243 12251157265 013501 0 ustar WORDGRINDER V0.5.1 ================== © 2007-2013 David Given 2013-12-06 Unix version INTRODUCTION ============ WordGrinder is a simple, Unicode-aware word processor that runs on the console. It's designed to get the hell out of your way and let you write; it does very little, but what it does it does well. It supports basic paragraph styles, basic character styles, basic screen markup, a menu interface that means you don't have to remember complex key sequences, HTML import and export, and some other useful features. WordGrinder does not require X. It runs in a terminal. INSTALLATION ============ WordGrinder needs the following packages installed: - ncursesw, the wide-character version of curses. This is supplied with most systems. - Lua 5.2, the programming language. This is available from: http://www.lua.org/ - zlib. You will already have this, but just on the offchance, it's here: http://www.zlib.net/ - LuaFileSystem 1.2, the file system access extension to Lua. This is available from: http://www.keplerproject.org/luafilesystem/index.html - a terminal emulator that supports UTF-8. gnome-terminal, konsole, xterm and rxvt-unicode do. rxvt and the Linux console don't (unless you use jfbterm). You will also need a decent set of Unicode fonts or WordGrinder will look funny. If you have Debian, you've already got all these. Merely install these packages: libncursesw5-dev liblua5.2-dev lua-filesystem-dev zlib1g-dev To build, simply do: make To install, do: sudo make install PREFIX=/usr (Change PREFIX to whatever you like; naturally, if you're not installing in a global location, you don't need sudo.) It is now ready to use. USAGE ===== Do this: wordgrinder ...to get a blank document. You can load an existing document with: wordgrinder README.wg Please read README.wg; it contains the manual. There is also a man page, which describes the command line interface. If you use WordGrinder, please join the mailing list. This will allow you to ask questions, hopefully receive answers, and get news about any new releases. You can subscribe or view the archives at the following page: https://lists.sourceforge.net/lists/listinfo/wordgrinder-users LICENSE ======= WordGrinder is available under the MIT license. Please see the COPYING file for the full text. WordGrinder contains a copy of the LuaFileSystem code. This is also MIT licensed and is © The Kepler Project. See http://www.keplerproject.org/luafilesystem for more information. REVISION HISTORY ================ WordGrinder 0.5: 2013-12-06: Major overhaul: fixed hideous file corruption bug; much improved Windows text renderer; bold; page count; widescreen mode; UI style overhaul; many other minor bugfixes. Many thanks to Connor Karatzas for extensive Windows testing. WordGrinder 0.4.1: 2013-04-14: Minor bugfixes and build optimisation in aid of the Debian package. WordGrinder 0.4: 2013-03-24: Major overhaul: OpenDocument import/export, new much smaller file format, a proper Windows port, updated to Lua 5.2, switched away from Prime Mover to make (sob), much bug fixage. WordGrinder 0.3.3: 2009-12-13: Fixed a bug when searching for or replacing strings containing multiple whitespace characters (that was triggering the crash handler). Thanks to lostnbronx for the report. Added RAW and PRE paragraph styles. Cleaned up HTML import. Add customisability to HTML export. Relicensed to MIT. WordGrinder 0.3.2: 2008-11-03: Fixed a very simple and very stupid typo that caused a crash if you tried to turn autosave on. Added a simple exception handler to try and prevent data loss on error in the future. WordGrinder 0.3.1: 2008-09-08: Minor bugfix revision to correct a few minor but really embarrassing crashes problems in 0.3: no crash on HTML import, no crash on File->New. Also some minor cosmetic fixes I noticed while doing the work. WordGrinder 0.3: 2008-09-07: Lots more bug fixes. Added LaTeX export; troff export; next/previous word/character; table of contents; autosave; scrapbook; Windows console port. Fixed some issues with key binding. Lua bytecode is now embedded in the executable, making it self contained. --lua option. General overhaulage. WordGrinder 0.2: 2008-01-13: Lots of bug fixes. Added word count. Added about dialogue. WordGrinder 0.1: 2007-10-14: Initial release. THE AUTHOR ========== WordGrinder was written by me, David Given. You may contact me at dg@cowlark.com, or visit my website at http://www.cowlark.com. There may or may not be anything interesting there. wordgrinder-0.5.1.orig/README.Windows.txt 0000644 0000000 0000000 00000010137 12251157305 015022 0 ustar WORDGRINDER V0.5 ================ © 2007-2013 David Given 2013-12-06 Windows version INTRODUCTION ============ WordGrinder is a simple, Unicode-aware word processor. It's designed to get the hell out of your way and let you write; it does very little, but what it does it does well. It supports basic paragraph styles, basic character styles, basic screen markup, a menu interface that means you don't have to remember complex key sequences, HTML import and export, and some other useful features. Note: WordGrinder originated as a Unix program and as such it does not behave anything like a traditional Windows application. You Have Been Warned. INSTALLATION ============ Run the supplied installer. It's done. You can switch to use a different font with the drop-down menu from the application icon in the top-left corner of the screen. Important note! To quit, you'll have to use the menus inside WordGrinder (because the application knows nothing about the Windows window close button). Do CTRL+Q to quit. You can toggle full-screen mode with ALT+ENTER. USAGE ===== Run WordGrinder from the start menu. There's an option for the menu. Please read it, as WordGrinder doesn't work like other Windows applications. Press ESC to get the menu. Press ESC, F, O to open a file. If you use WordGrinder, please join the mailing list. This will allow you to ask questions, hopefully receive answers, and get news about any new releases. You can subscribe or view the archives at the following page: https://lists.sourceforge.net/lists/listinfo/wordgrinder-users LICENSE ======= WordGrinder is available under the MIT license. Please see the COPYING file for the full text. WordGrinder contains a copy of the LuaFileSystem code. This is also MIT licensed and is © The Kepler Project. See http://www.keplerproject.org/luafilesystem for more information. REVISION HISTORY ================ WordGrinder 0.5: 2013-12-06: Major overhaul: fixed hideous file corruption bug; much improved Windows text renderer; bold; page count; widescreen mode; UI style overhaul; many other minor bugfixes. Many thanks to Connor Karatzas for extensive Windows testing. WordGrinder 0.4.1: 2013-04-14: Minor bugfixes and build optimisation in aid of the Debian package. WordGrinder 0.4: 2013-03-24: Major overhaul: OpenDocument import/export, new much smaller file format, a proper Windows port, updated to Lua 5.2, switched away from Prime Mover to make (sob), much bug fixage. WordGrinder 0.3.3: 2009-12-13: Fixed a bug when searching for or replacing strings containing multiple whitespace characters (that was triggering the crash handler). Thanks to lostnbronx for the report. Added RAW and PRE paragraph styles. Cleaned up HTML import. Add customisability to HTML export. Relicensed to MIT. WordGrinder 0.3.2: 2008-11-03: Fixed a very simple and very stupid typo that caused a crash if you tried to turn autosave on. Added a simple exception handler to try and prevent data loss on error in the future. WordGrinder 0.3.1: 2008-09-08: Minor bugfix revision to correct a few minor but really embarrassing crashes problems in 0.3: no crash on HTML import, no crash on File->New. Also some minor cosmetic fixes I noticed while doing the work. WordGrinder 0.3: 2008-09-07: Lots more bug fixes. Added LaTeX export; troff export; next/previous word/character; table of contents; autosave; scrapbook; Windows console port. Fixed some issues with key binding. Lua bytecode is now embedded in the executable, making it self contained. --lua option. General overhaulage. WordGrinder 0.2: 2008-01-13: Lots of bug fixes. Added word count. Added about dialogue. WordGrinder 0.1: 2007-10-14: Initial release. THE AUTHOR ========== WordGrinder was written by me, David Given. You may contact me at dg@cowlark.com, or visit my website at http://www.cowlark.com. There may or may not be anything interesting there. wordgrinder-0.5.1.orig/README.wg 0000644 0000000 0000000 00000032554 12251160346 013175 0 ustar WordGrinder dumpfile v2: this is not a text file! xua{γyb11O|Y.Lā0CMNtL9}/%j#ڨCMϺ[ V9UoU9^nVj!;լoʅD-eZXRaK+5z:"꺗WQFFY UpjC0!o"*y\atzRf@7_3uys^O]]iw(AhFBpRB2h|),p`/ү:b8\?g3PͰjtxJpZ fXčZTƦJ evXl7J$g3bkp!s}1ᖺ畃R]be"=KE襃/ϙueN79 'JwR_ #Q9\ ȩv@C[W9~u ]AN%W51s!\oiRFt)0_yܩI9䏧;4]L ]"kn 4QO8XH5(>)1{pFP)/MR &BU#5l5}1e HhFQ߫ 3\*va1r\G9Y-] B1E#eЭ+cV
'dԎP/MWnz5Lp.+Rih%vr1SbTCqQt|z^GA\*s"@NHiTYu#ŭp%:pFuCDZ8 =o$Ժ<$U; A&K,hsRHnDOGuj63#R -hYCѯVEh$yhE!OeX1 swsr08B&+c)c?JZVN:kIo, EI?ME-l7L
Km@0\$!::~7\FjT_0L~C
}Yu&Dgp(DQ2KA8#!Wj`kJ%l?ڔ3)ZBe|}T\7"EU"H_A!\%U25-=
VJQ-7kY8MT+ẼNc:fv]U61IoyMliDr&.<ltvNȼ_`lRAWc*xE)c 1eq7v9u~Rp(vƠh;r[ǃy+Mm7^= hf,%IKl(kZ4^~ɯSo7u6P0QgH`: rB| ;'0,R1h ef`36
nz2m˘+2[?DiM8D5^O j&,g7=_͜8(^f=)b (;&L"`bL=(a5WQlK dlr\fٛY vnƿ08/n5j0 OJl
ԮrM ~-,")]YGȃo,ofx'{-iˀfHݎ} eO_lE{'Í1ۄ_r'1n,6' 7[\+2d2N}rvMqhA "~PĻ}@=
i~sut|KӠ7wAVF,=A9,$Q+ 6*,9ٚ=6p VPwTop~ⷿv5;5+ESCoÀ1Epm4դ>yYv@6*ƒO}7l>>o<=@ ?ò$Q {\PVDBU,bfyg06J+"NKp̔r|
M;j.@Hl֠f-8[٠,+cNf=oQ#HX
|na26PT!\@ QB(YDgRT(8jJC'5lau vs9TPȲ͆Q7.p>Xgi{Dhl@ɮz augkf:vQmΠ7hՄQ=
t#zexbܑ0NTlDGoq$YN$&G˿s#߹iM9ظ_nC6-C`~