Revision: 1094
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1094&view=rev
Author: frlan
Date: 2009-12-31 15:14:21 +0000 (Thu, 31 Dec 2009)
Log Message:
-----------
Update documentation to state that we now need plugin API v166 for plugin
Modified Paths:
--------------
trunk/geanylatex/doc/geanylatex.tex
Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex 2009-12-31 02:17:37 UTC (rev 1093)
+++ trunk/geanylatex/doc/geanylatex.tex 2009-12-31 15:14:21 UTC (rev 1094)
@@ -102,6 +102,7 @@
\item Some general bugfixes and improvments. As always, see
ChangeLog or svn log.
\item Switch to waf for building the plugin
+ \item Increasing depency for plugin to Geany Plugin API v166
\end{itemize}
\subsection*{GeanyLaTeX{} 0.4 -- 2009-05-26}
@@ -135,7 +136,7 @@
you used a prepared package e.g. from your distribution you probably
need to install an additional package, this might be called geany-dev
or geany-devel. Please note that in order to compile and use this
-plugin, you need Geany 0.19svn or later (Geany Plugin API v159 or higher).
+plugin, you need Geany 0.19svn or later (Geany Plugin API v166 or higher).
Furthermore you need, of course, a C compiler and python installed. The
GNU version of the C compiler is recommended. Also there should be a
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1092
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1092&view=rev
Author: frlan
Date: 2009-12-31 02:16:33 +0000 (Thu, 31 Dec 2009)
Log Message:
-----------
Make usage of plugin API v166 and replace some hard coded \n with native/users preferred end of line symbol.
Modified Paths:
--------------
trunk/geanylatex/src/geanylatex.c
trunk/geanylatex/src/latexenvironments.c
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2009-12-26 20:57:13 UTC (rev 1091)
+++ trunk/geanylatex/src/geanylatex.c 2009-12-31 02:16:33 UTC (rev 1092)
@@ -24,7 +24,7 @@
#include "geanylatex.h"
-PLUGIN_VERSION_CHECK(159)
+PLUGIN_VERSION_CHECK(166)
PLUGIN_SET_INFO(_("GeanyLaTeX"), _("Plugin to provide better LaTeX support"),
VERSION,"Frank Lanitz <frank(a)frank.uvena.de>")
Modified: trunk/geanylatex/src/latexenvironments.c
===================================================================
--- trunk/geanylatex/src/latexenvironments.c 2009-12-26 20:57:13 UTC (rev 1091)
+++ trunk/geanylatex/src/latexenvironments.c 2009-12-31 02:16:33 UTC (rev 1092)
@@ -1,22 +1,22 @@
/*
- * latexenvironments.c
+ * latexenvironments.c
*
- * Copyright 2009 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
+ * Copyright 2009 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
*/
#include "latexenvironments.h"
@@ -68,18 +68,19 @@
if (doc != NULL && environment != NULL)
{
if (sci_has_selection(doc->editor->sci))
- {
+ {
gchar *selection = NULL;
gchar *replacement = NULL;
+ const gchar *eol = editor_get_eol_char(doc->editor);
+ selection = sci_get_selection_contents(doc->editor->sci);
- selection = sci_get_selection_contents(doc->editor->sci);
+ replacement = g_strconcat("\\begin{", environment, "}",
+ eol,selection, eol, "\\end{", environment, "}", eol, NULL);
- replacement = g_strconcat("\\begin{", environment, "}\n",
- selection,"\n\\end{", environment, "}\n", NULL);
+ sci_replace_sel(doc->editor->sci, replacement);
+ g_free(selection);
+ g_free(replacement);
- sci_replace_sel(doc->editor->sci, replacement);
- g_free(selection);
- g_free(replacement);
}
else
{
@@ -87,17 +88,23 @@
gint len = strlen(environment);
GString *tmpstring = NULL;
gchar *tmp = NULL;
+ const gchar *eol = editor_get_eol_char(doc->editor);
tmpstring = g_string_new("\\begin{");
g_string_append(tmpstring, environment);
- g_string_append(tmpstring, "}\n");
+ g_string_append(tmpstring, "}");
+ g_string_append(tmpstring, eol);
if (type == GLATEX_ENVIRONMENT_TYPE_LIST)
- g_string_append(tmpstring, "\\item \n");
+ {
+ g_string_append(tmpstring, "\\item");
+ g_string_append(tmpstring, eol);
+ }
g_string_append(tmpstring, "\\end{");
g_string_append(tmpstring, environment);
- g_string_append(tmpstring,"}\n");
+ g_string_append(tmpstring,"}");
+ g_string_append(tmpstring, eol);
tmp = g_string_free(tmpstring, FALSE);
sci_insert_text(doc->editor->sci, pos, tmp);
@@ -110,12 +117,12 @@
void
glatex_environment_insert_activated (G_GNUC_UNUSED GtkMenuItem *menuitem,
- G_GNUC_UNUSED gpointer gdata)
+ G_GNUC_UNUSED gpointer gdata)
{
- gint env = GPOINTER_TO_INT(gdata);
+ gint env = GPOINTER_TO_INT(gdata);
if (glatex_environment_array[env].cat == ENVIRONMENT_CAT_LISTS)
- glatex_insert_environment(glatex_environment_array[env].latex,
+ glatex_insert_environment(glatex_environment_array[env].latex,
GLATEX_ENVIRONMENT_TYPE_LIST);
else
glatex_insert_environment(glatex_environment_array[env].latex,
@@ -125,7 +132,7 @@
void
glatex_insert_environment_dialog(G_GNUC_UNUSED GtkMenuItem *menuitem,
- G_GNUC_UNUSED gpointer gdata)
+ G_GNUC_UNUSED gpointer gdata)
{
GtkWidget *dialog = NULL;
GtkWidget *vbox = NULL;
@@ -171,7 +178,7 @@
gtk_widget_show_all(vbox);
- if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)
+ if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT)
{
gchar *env_string = NULL;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1091
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1091&view=rev
Author: frlan
Date: 2009-12-26 20:57:13 +0000 (Sat, 26 Dec 2009)
Log Message:
-----------
Document hidden pref for deactivating toolbar items for non-TeX types
Modified Paths:
--------------
trunk/geanylatex/doc/geanylatex.tex
Modified: trunk/geanylatex/doc/geanylatex.tex
===================================================================
--- trunk/geanylatex/doc/geanylatex.tex 2009-12-26 20:56:49 UTC (rev 1090)
+++ trunk/geanylatex/doc/geanylatex.tex 2009-12-26 20:57:13 UTC (rev 1091)
@@ -274,7 +274,7 @@
store it inside the directory. On most Linux systems this should be
\texttt{\textasciitilde/.config/geany/geanyLaTeX/}.
-Inside your template you can refer to wizard's field by using some
+Inside your template you can refer to wizard's field by using some
special strings which are:
\begin{table}[H]
@@ -305,17 +305,17 @@
\end{tabular}
\end{table}
-If you have other than the default templates defined they will be
-add to templates pulldown. So when creating a template, please keep
-care to set up a good name for the file, as the filename will be
+If you have other than the default templates defined they will be
+add to templates pulldown. So when creating a template, please keep
+care to set up a good name for the file, as the filename will be
the identifier you can choose from on pulldown.
-In future a number of templates should be available also online at
-\url{http://frank.uvena.de/files/geany/data/geanyLaTeX/}. Please
-feel also free to publish templates in case of you have some useful
+In future a number of templates should be available also online at
+\url{http://frank.uvena.de/files/geany/data/geanyLaTeX/}. Please
+feel also free to publish templates in case of you have some useful
one.
-If you need more general templates, you may have a look onto Geany's
+If you need more general templates, you may have a look onto Geany's
build in template feature -- briefly introduced on chapter \ref
{sec:recommended_things_geany_template_system}, page \pageref
{sec:recommended_things_geany_template_system}.
@@ -541,8 +541,36 @@
\end{tabular}
\end{table}
-\newpage
+\subsection{Hidden preferencess}
+As not all users need to configure everything on there plugin, Geany
+\LaTeX{} has some hidden preferences which can be set through
+command line.
+\subsubsection{Deactivate toolbar items if document is a non \TeX-type}
+
+By defaul, Geany\LaTeX{} is deactivating buttons inside toolbar, which
+don't make much sense to be applied on non-\TeX{} file types. As
+this is not always wished, its possible to turn this feature off
+via a hidden preferences.
+
+If you want to do so, just add a new section called \texttt{toolbar}
+into your general.conf file of Geany\LaTeX{} plugin which stats
+\texttt{glatex\_deactivate\_toolbaritems\_with\_non\_latex=false}.
+As a result, your config file could look similar to this:
+
+\begin{lstlisting}
+[general]
+glatex_set_koma_active=false
+glatex_set_toolbar_active=true
+
+[toolbar]
+glatex_deactivate_toolbaritems_with_non_latex=false
+\end{lstlisting}
+
+Setting this option back to true will go back to default behaviour.
+
+Please ensure, you reload the plugin once this option has been changed.
+
\section{Contribution to the plugin}
If you like the plugin, there are a number of ways, how to
contribute to the development of the plugin.
@@ -581,10 +609,10 @@
sources mentioned before listed items. Just contact one of the authors
(see chapter \ref{contact}).
-\subsection{Testing \& bug reporting} Geany\LaTeX{} is tested mainly
-on x86 and x86\_64 architecture running GNU/Linux. Also it was
-tested on some Windows 32 versions like XP SP3 very briefly. Since
-there are also other systems available, testing on other platforms
+\subsection{Testing \& bug reporting} Geany\LaTeX{} is tested mainly
+on x86 and x86\_64 architecture running GNU/Linux. Also it was
+tested on some Windows 32 versions like XP SP3 very briefly. Since
+there are also other systems available, testing on other platforms
and maybe reporting of issues is highly appreciate.
\subsection{Packaging}
@@ -654,15 +682,15 @@
\subsection{Geany's template system}
\label{sec:recommended_things_geany_template_system}
-If you don't need a dynamic template as described in chapter \ref
-{sec:extending_wizard_by_own_templates}, page \pageref
-{sec:extending_wizard_by_own_templates} you can also use Geany's
-buildin template function which allows to also add customised
-templates, including placeholders for e.g. author's name, but in a
-more general and non\LaTeX{}-specific way. Nevertheless you should
-give it a try as it useful in many cases. For information how to
-create your own template using Geany's build in feature, please
-check manual.
+If you don't need a dynamic template as described in chapter \ref
+{sec:extending_wizard_by_own_templates}, page \pageref
+{sec:extending_wizard_by_own_templates} you can also use Geany's
+buildin template function which allows to also add customised
+templates, including placeholders for e.g. author's name, but in a
+more general and non\LaTeX{}-specific way. Nevertheless you should
+give it a try as it useful in many cases. For information how to
+create your own template using Geany's build in feature, please
+check manual.
\subsection{Geany's code snippet function}
Geany is allowing you to define code snippets and inserting them easy
@@ -705,12 +733,12 @@
\textbf{Homepage:} \url{http://plugins.geany.org/geanyvc/}
\subsubsection{Spellcheck}
-Nobody is perfect - in special with typing mistakes on writing a
-text. Spellcheck is offering a way on Geany to make usage of a
-common spellchecking sytem as aspell, myspell or hunspell. Wrong
-spelled words can be marked with an red line and the plugin is
-offering suggestions for correct the word. Unfortunately right now
-its not supporting some special things common in \TeX{} and \LaTeX{}.\\
+Nobody is perfect - in special with typing mistakes on writing a
+text. Spellcheck is offering a way on Geany to make usage of a
+common spellchecking sytem as aspell, myspell or hunspell. Wrong
+spelled words can be marked with an red line and the plugin is
+offering suggestions for correct the word. Unfortunately right now
+its not supporting some special things common in \TeX{} and \LaTeX{}.\\
\textbf{Homepage:} \url{http://plugins.geany.org/spellcheck/}
\subsubsection{tasks out of the addons plugins}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1087
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1087&view=rev
Author: frlan
Date: 2009-12-23 21:32:14 +0000 (Wed, 23 Dec 2009)
Log Message:
-----------
Do only special character replacement in case of we really have an LaTeX file here.
Modified Paths:
--------------
trunk/geanylatex/ChangeLog
trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/ChangeLog
===================================================================
--- trunk/geanylatex/ChangeLog 2009-12-21 13:54:56 UTC (rev 1086)
+++ trunk/geanylatex/ChangeLog 2009-12-23 21:32:14 UTC (rev 1087)
@@ -1,3 +1,9 @@
+2009-12-23 Frank Lanitz <frank(a)frank.uvena.de>
+
+ * Do only special character replacement in case of we really have
+ an LaTeX file here.
+
+
2009-12-13 Frank Lanitz <frank(a)frank.uvena.de>
* Show geanyLaTeX inside plugin manager.
Modified: trunk/geanylatex/src/geanylatex.c
===================================================================
--- trunk/geanylatex/src/geanylatex.c 2009-12-21 13:54:56 UTC (rev 1086)
+++ trunk/geanylatex/src/geanylatex.c 2009-12-23 21:32:14 UTC (rev 1087)
@@ -239,7 +239,12 @@
SCNotification *nt, G_GNUC_UNUSED gpointer data)
{
g_return_val_if_fail(editor != NULL, FALSE);
-
+
+ /* Check whether this is a LaTeX file at all. If not, we mot likely
+ * don't want to do anything */
+ if (editor->document->file_type->id != GEANY_FILETYPES_LATEX)
+ return FALSE;
+
if (toggle_active != TRUE)
return FALSE;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1086
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1086&view=rev
Author: frlan
Date: 2009-12-21 13:54:56 +0000 (Mon, 21 Dec 2009)
Log Message:
-----------
geanyVC: Fixes an issue in case of empty language string for spellchecking
Modified Paths:
--------------
trunk/geany-plugins/geanyvc/src/geanyvc.c
Modified: trunk/geany-plugins/geanyvc/src/geanyvc.c
===================================================================
--- trunk/geany-plugins/geanyvc/src/geanyvc.c 2009-12-20 21:53:45 UTC (rev 1085)
+++ trunk/geany-plugins/geanyvc/src/geanyvc.c 2009-12-21 13:54:56 UTC (rev 1086)
@@ -1530,7 +1530,7 @@
g_error_free(spellcheck_error);
spellcheck_error = NULL;
}
- else if (lang != NULL)
+ else if (NZV(lang))
{
gtkspell_set_language(speller, lang, &spellcheck_error);
if (spellcheck_error != NULL)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1085
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1085&view=rev
Author: eht16
Date: 2009-12-20 21:53:45 +0000 (Sun, 20 Dec 2009)
Log Message:
-----------
Hardcoded paths are bad. Update dependency information.
Modified Paths:
--------------
trunk/geany-plugins/build/geany-plugins.nsi
Modified: trunk/geany-plugins/build/geany-plugins.nsi
===================================================================
--- trunk/geany-plugins/build/geany-plugins.nsi 2009-12-13 21:28:57 UTC (rev 1084)
+++ trunk/geany-plugins/build/geany-plugins.nsi 2009-12-20 21:53:45 UTC (rev 1085)
@@ -70,7 +70,7 @@
!define MUI_ABORTWARNING
; FIXME hard-coded path...should we add geany.ico to the geany-plugins repo?
-!define MUI_ICON "c:\geany_svn\icons\geany.ico"
+!define MUI_ICON "\geany_svn\icons\geany.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-full.ico"
; Welcome page
@@ -199,7 +199,7 @@
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "Required plugin files. You cannot skip these files."
!insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "Various translations for the included plugins."
!insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Various documentation files for the included plugins."
-!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Dependency files for various plugins (currently libenchant for Spell Check)."
+!insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Dependency files for various plugins (currently libenchant for Spell Check, Lua for GeanyLua and libxml2 for PrettyPrinter)."
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;;;;;;;;;;;;;;;;;;;;;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.