TEA text editor
Switch branches/tags
Clone or download
Permalink
Failed to load latest commit information.
desktop almost 41.1.1 Nov 19, 2017
encsign initial commit Feb 11, 2016
hls qt 4.x syntax hl engine fix Sep 18, 2018
icons desktop file stuff possibly fixes Nov 19, 2017
images + palettes, + images folders May 28, 2016
manuals term outp fix Sep 15, 2018
palettes + new palettes Sep 15, 2018
specs + specs examples Aug 28, 2018
text-data + basic project/IDE stuff Aug 23, 2018
themes fixes Jul 17, 2017
translations term outp fix Sep 15, 2018
.gitignore add gitignore Jul 14, 2018
AUTHORS cmake fixes, doc update Aug 15, 2018
CMakeLists.txt qt 4 compat again Sep 12, 2018
COPYING initial commit Feb 11, 2016
ChangeLog qt 4 compat again Sep 12, 2018
INSTALL initial commit Feb 11, 2016
NEWS + new palettes Sep 15, 2018
NEWS-RU + new palettes Sep 15, 2018
README qt 4 compat again Sep 12, 2018
TODO logmemo is scriptable again Sep 18, 2018
calendar.cpp fixes Aug 22, 2018
calendar.h cleanup Jun 6, 2018
document.cpp qt 4.x syntax hl engine fix Sep 18, 2018
document.h qr 4.x possible fix Sep 16, 2018
exif.cpp cleanup Jun 6, 2018
exif.h cleanup Jun 6, 2018
fman.cpp doc upd Sep 7, 2018
fman.h doc upd Sep 7, 2018
fontbox.cpp fixes Aug 22, 2018
fontbox.h cleanup Jun 6, 2018
gui_utils.cpp fixes Aug 22, 2018
gui_utils.h fixes Aug 22, 2018
img_viewer.cpp + double click on error line at logmemo opens a file at err (IDE) Aug 25, 2018
img_viewer.h cleanup Jun 6, 2018
ioapi.h big step further Jul 22, 2018
libretta_calc.cpp fixes Aug 22, 2018
libretta_calc.h initial commit Feb 11, 2016
logmemo.cpp qt4 fix Sep 15, 2018
logmemo.h logmemo is scriptable again Sep 18, 2018
main.cpp + --m cm line option; fixes Aug 23, 2018
meson.build compiler log fixes Sep 14, 2018
minizip_crypt.h big step further Jul 22, 2018
myjoystick.cpp qr 4.x possible fix Sep 16, 2018
myjoystick.h qr 4.x possible fix Sep 16, 2018
qioapi.cpp big step further Jul 22, 2018
quaadler32.cpp big step further Jul 22, 2018
quaadler32.h big step further Jul 22, 2018
quachecksum32.h quazip stuff fixes Aug 19, 2018
quacrc32.cpp big step further Jul 22, 2018
quacrc32.h first meson/ninja build Aug 17, 2018
quagzipfile.cpp big step further Jul 22, 2018
quagzipfile.h big step further Jul 22, 2018
quaziodevice.cpp big step further Jul 22, 2018
quaziodevice.h big step further Jul 22, 2018
quazip.cpp spell checker speed-up Aug 21, 2018
quazip.h big step further Jul 22, 2018
quazip_global.h big step further Jul 22, 2018
quazipdir.cpp fix Jul 23, 2018
quazipdir.h big step further Jul 22, 2018
quazipfile.cpp spell checker speed-up Aug 21, 2018
quazipfile.h big step further Jul 22, 2018
quazipfileinfo.cpp big step further Jul 22, 2018
quazipfileinfo.h big step further Jul 22, 2018
quazipnewinfo.cpp big step further Jul 22, 2018
quazipnewinfo.h big step further Jul 22, 2018
rvln.cpp logmemo is scriptable again Sep 18, 2018
rvln.h fix for slack Sep 17, 2018
rvln.qrc palette fixes Sep 13, 2018
shortcuts.cpp fixes Aug 22, 2018
shortcuts.h hunspell fix Jan 21, 2018
single_application.cpp fixes Apr 30, 2017
single_application.h nosingleapp mode May 27, 2018
single_application_shared.cpp 45.0.0 Jul 3, 2018
single_application_shared.h 45.0.0 Jul 3, 2018
spellchecker.cpp spell checker fixes Aug 20, 2018
spellchecker.h hunspell fix Jan 21, 2018
src.pro os/2 small fix Sep 16, 2018
textproc.cpp doc upd Sep 7, 2018
textproc.h doc upd Sep 7, 2018
tio.cpp spell checker speed-up Aug 21, 2018
tio.h fixes Aug 31, 2018
todo.cpp initial commit Feb 11, 2016
todo.h pre-44 May 21, 2017
tzipper.cpp big step further Jul 22, 2018
tzipper.h pre-44 May 21, 2017
unzip.c big step further Jul 22, 2018
unzip.h big step further Jul 22, 2018
utils.cpp cleanup Sep 5, 2018
utils.h cleanup Sep 5, 2018
wavinfo.cpp initial commit Feb 11, 2016
wavinfo.h initial commit Feb 11, 2016
zip.c big step further Jul 22, 2018
zip.h big step further Jul 22, 2018

README

===TEA===

Home sites >
http://semiletov.org/tea
http://tea.ourproject.org

Development >
https://github.com/psemiletov/tea-qt

Communities >
https://vk.com/teaeditor
https://www.facebook.com/groups/766324686841748/

===INTRO===

TEA is a text editor with the hundreds of features.

===INSTALLATION FROM THE SOURCE===

You can install TEA from the source by 4 ways, using build systems qmake/make, meson/ninja, cmake/make, cmake/ninja. But first, you need to install some development libraries.

Mandatory:

Qt 4 or 5 
zlib

Optional:

libaspell (for spell checking engine)
libhunspell (for spell checking engine)
poppler-qt5 (to read the text from PDF)
ddjvuap (to read the text from DJVU)

If you want to build and install TEA with cmake + make, run at the source dir:

mkdir b
cd b
cmake ..
make
make install (as root or with sudo)


To build and install TEA with cmake/ninja and GCC, do:

mkdir b
cd b
cmake -GNinja ..
ninja
ninja install


To build and install TEA with meson/ninja and GCC, do:


mkdir b
meson --buildtype=release b
cd b
ninja
ninja install

To build and install TEA with meson/ninja and CLANG, do:

mkdir b
CC=clang CXX=clang++ meson --buildtype=release b
cd b
ninja
ninja install


With qmake it is even more simplier:

qmake
make
make install (as root or with sudo)


To make some source configuration (with qmake), use CONFIG variable at qmake command line parameter. For example:

qmake "CONFIG+=useclang" "CONFIG+=noaspell"

You can use some values:

nosingleapp - do not build TEA with the single application mode support
nodesktop - do not install desktop files and icons
useclang - TEA will be compiled with Clang.
noaspell - disable the Aspell (if you have it installed, but  do not want to compile TEA with Aspell support)
nohunspell - disable Hunspell for TEA.
usepoppler - use libpoppler-qt5 or qt4 for PDF text layer import. DISABLED by default
usedjvu - use libdjvulibre to read DJVU files text (read only). DISABLED by default
noprinter - disable printing support

Notes:

1. If you have installed both Qt4 and Qt5, use the qmake from Qt4 or Qt5 to configure TEA with exact version of QT. The common solution is to make symlink to qmake from Qt5 and name it qmake5, then use qmake5 instead of the usual qmake.

2. If the context menus in TEA are not localized, install the qttranslations package from your distro's repository.

3. With cmake, there are no way to disable some TEA features manually - they will be compiled if TEA found the libs those needed.

/*
Basic snippet for Ubuntu users (Qt5 build) - run this from Terminal at the TEA source directory (unpacked):

sudo apt-get install g++ pkg-config
sudo apt-get install zlib1g-dev libaspell-dev libhunspell-dev
sudo apt-get install qt5-default qttools5-dev-tools
sudo apt-get install libqt5qml5 libqt5quick5 qtdeclarative5-dev
qmake
make
sudo make install


Snippet for Ubuntu users (Qt4 build):

sudo apt-get install g++ pkg-config
sudo apt-get install zlib1g-dev libaspell-dev libhunspell-dev
sudo apt-get install libqt4-dev qt4-dev-tools
qmake
make
sudo make install
*/


===NOTE FOR PACKAGE MAINTAINERS===

1. TEA after the compilation is a single binary file (with embedded resources). 

2. For the qmake build, to override the default installation path (/usr/local, with binary at /usr/local/bin) use:

qmake PREFIX=your_path
make
make install

3. cmake vs qmake vs meson. TEA's qmake project file is rather old and obscure, but it will be supported forever because it works well with Qt 4 and Qt 5. Use of meson or cmake build system is a modern way to build TEA. I use meson internally, but TEA's cmake stuff more mature.


===NOTE FOR UBUNTU USERS===

User defined hotkeys may not work due to Qt5 and Unity global menu feature. To remove global menu support in Qt5 apps, do 

sudo apt-get autoremove appmenu-qt5

or, if you want to remove also GTK global menus, use:

sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt5


===LICENSE NOTES===

TEA code is licensed under GPL V3 and, partially, as a Public Domain. TEA media (images, etc), manuals and translations are public domain. Note to contributors - please put your translations into the public domain or GPL.

===DONATE===

If you want to support TEA via donation, better give your support to the Ukrainian dog shelter Lyubas House - http://lyubas.pp.ua. There are lot of dogs with disabilities, and they need help more than TEA. To donate via PayPal, please see http://www.ukraineanimalrescue.org/#!lyubas-house/cxfj. Please specify "For Lyubas's House" in the comments of donation, because there are other projects uses that PayPal account.

Ежели вы хотите как-то поддержать разработку TEA денежно, лучше поддержите киевский приют для собак Дом Любчика - http://lyubas.pp.ua. Любчик - это пёс на инвалидной коляске. У него много друзей, которым всегда нужна помощь.