+2005-01-20 Angus Leeming <leeming@lyx.org>
+
+ * configure.m4: replace all occurences of '$$s/' with '$$s/scripts'.
+
2005-01-15 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* ui/classic.ui, ui/stdmenus.ui: Increase number of bookmarks to 5
test $dvi_to_pdf_command = "dvipdfm" && dvi_to_pdf_command="dvipdfm \$\$i"
# We have a script to convert previewlyx to ppm or to png
-lyxpreview_to_bitmap_command='python $$s/lyxpreview2bitmap.py'
+lyxpreview_to_bitmap_command='python $$s/scripts/lyxpreview2bitmap.py'
# Search for 'dvipng'. Only enable the conversion from lyxpreview -> png
# if dvipng is found.
\\converter docbook html "$docbook_to_html_command" ""
\\converter dvi pdf3 "$dvi_to_pdf_command" ""
\\converter dvi ps "$dvi_to_ps_command" ""
-\\converter fen asciichess "python \$\$s/fen2ascii.py \$\$i \$\$o" ""
-\\converter fig pdftex "sh \$\$s/fig2pdftex.sh \$\$i \$\$o" ""
-\\converter fig pstex "sh \$\$s/fig2pstex.sh \$\$i \$\$o" ""
+\\converter fen asciichess "python \$\$s/scripts/fen2ascii.py \$\$i \$\$o" ""
+\\converter fig pdftex "sh \$\$s/scripts/fig2pdftex.sh \$\$i \$\$o" ""
+\\converter fig pstex "sh \$\$s/scripts/fig2pstex.sh \$\$i \$\$o" ""
\\converter html latex "$html_to_latex_command" ""
\\converter latex html "$latex_to_html_command" "originaldir,needaux"
\\converter latex dvi "$latex_to_dvi" "latex"
cat >>$outfile <<EOF
-\\copier fig "sh \$\$s/fig_copy.sh \$\$i \$\$o"
-\\copier pstex "python \$\$s/tex_copy.py \$\$i \$\$o \$\$l"
-\\copier pdftex "python \$\$s/tex_copy.py \$\$i \$\$o \$\$l"
+\\copier fig "sh \$\$s/scripts/fig_copy.sh \$\$i \$\$o"
+\\copier pstex "python \$\$s/scripts/tex_copy.py \$\$i \$\$o \$\$l"
+\\copier pdftex "python \$\$s/scripts/tex_copy.py \$\$i \$\$o \$\$l"
$rc_entries
\\font_encoding "$chk_fontenc"
+2005-01-20 Angus Leeming <leeming@lyx.org>
+
+ * mover.h: change commentary to reflect the changed meaning of
+ the $$s placeholder.
+
2005-01-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* output_linuxdoc.C (linuxdocParagraphs): silence warning
+2005-01-20 Angus Leeming <leeming@lyx.org>
+
+ * FormPreferences.C: change the tooltip messages to reflect the
+ changed meaning of the $$s placeholder.
+
2005-01-15 Angus Leeming <leeming@lyx.org>
* FormPreferences.C, forms/form_preferences.fd: add an interface
if (ob == dialog_->input_converter)
return _("The conversion command. $$i is the input file name, "
- "$$b is the file name without its extension and $$o is "
- "the name of the output file. $$s can be used as path to "
- "LyX's own collection of conversion scripts.");
+ "$$b is the file name without its extension and $$o "
+ "is the name of the output file. $$s can be used "
+ "as the path to LyX's support directory.");
if (ob == dialog_->input_flags)
return _("Extra information for the Converter class, whether and "
return _("The command used to copy the file. "
"$$i is the \"from\" file name and "
"$$o is the \"to\" file name.\n"
- "$$s can be used as path to "
- "LyX's own collection of scripts.");
+ "$$s can be used as the path to LyX's support "
+ "directory.");
if (ob == dialog_->button_delete)
return _("Remove the current copier from the list of available "
/** @c command should be of the form
* <code>
- * sh $$s/copy_fig.sh $$i $$o $$l
+ * sh $$s/scripts/fig_copy.sh $$i $$o $$l
* </code>
- * where $$s is a placeholder for the lyx script directory,
+ * where $$s is a placeholder for the lyx support directory,
* $$i is a placeholder for the name of the file to be moved,
* $$o is a placeholder for the name of the file after moving,
* $$l is a placeholder for the name of the file after moving,
+2005-01-20 Angus Leeming <leeming@lyx.org>
+
+ * filetools.[Ch] (LibScriptSearch): modify the code that replaces
+ the $$s placeholder with a path, so that it now inserts the path
+ of the lyx support directory, not the scripts subdirectory.
+
2005-01-19 Asger Ottar Alstrup <aalstrup@laerdal.dk>
* lyxsum.C, socktools.C, tempname.C, userinfo.C: use the
string::size_type const pos1 = command.find(token_scriptpath);
if (pos1 == string::npos)
return command;
- // Find the end of the "$$s/some_script" word within command
+ // Find the end of the "$$s/some_script" word within command.
+ // Assumes that the script name does not contain spaces.
string::size_type const start_script = pos1 + 4;
string::size_type const pos2 = command.find(' ', start_script);
string::size_type const size_script = pos2 == string::npos?
// Does this script file exist?
string const script =
- LibFileSearch("scripts", command.substr(start_script, size_script));
+ LibFileSearch(".", command.substr(start_script, size_script));
if (script.empty()) {
// Replace "$$s/" with ""
command.erase(pos1, 4);
} else {
- // Replace "$$s/some_script" with "$LYX_SCRIPT_PATH/some_script"
+ // Replace "$$s/foo/some_script" with "<path to>/some_script".
string::size_type const size_replace = size_script + 4;
command.replace(pos1, size_replace, QuoteName(script));
}
i18nLibFileSearch(std::string const & dir, std::string const & name,
std::string const & ext = std::string());
-/** Takes a command such as "sh $$s/convertDefault.sh file.in file.out"
- * and replaces "$$s/" with the path to the "most important" of LyX's
- * script directories containing this script. If the script is not found,
- * "$$s/" is removed. Executing the command will still fail, but the
- * error message will make some sort of sense ;-)
+/** Takes a command such as "sh $$s/scripts/convertDefault.sh file.in file.out"
+ * and replaces "$$s/" with the path to the LyX support directory containing
+ * this script. If the script is not found, "$$s/" is removed. Executing the
+ * command will still fail, but the error message will make some sort of
+ * sense ;-)
*/
std::string const LibScriptSearch(std::string const & command);