Martin Vermeer wrote: > > What I would like to see work is > > "makeindex.sh -m $$lang" > > so no need to change the string when switching languages. > > Looking at that now...
We seem to have a bunch of '$$' parameters that have developed in an ad hoc way. It would be nice if we could normalize and document them. Filtering the output of grep, it looks like this is the list of all such parameters. Perhaps we could define a class to perform these substitutions but which would also flag an error if an unrecognized token was found? Just a thought, Angus src/converter.C:string const token_from("$$i"); src/converter.C:string const token_base("$$b"); src/converter.C:string const token_to("$$o"); src/converter.C:string const token_path("$$p"); src/format.C:string const token_socket("$$a"); src/lyxfont.C: "$$lang", language()->babel()); src/lyxfunc.C: if (!contains(command, "$$FName")) src/insets/ExternalSupport.C: result = support::subst(s, "$$FName", filename); src/insets/ExternalSupport.C: result = support::subst(result, "$$Basename", basename); src/insets/ExternalSupport.C: result = support::subst(result, "$$Extension", src/insets/ExternalSupport.C: result = support::subst(result, "$$FPath", filepath); src/insets/ExternalSupport.C: result = support::subst(result, "$$AbsPath", abspath); src/insets/ExternalSupport.C: result = support::subst(result, "$$RelPathMaster", relToMasterPath); src/insets/ExternalSupport.C: result = support::subst(result, "$$RelPathParent", relToParentPath); src/insets/ExternalSupport.C: result = support::subst(result, "$$AbsOrRelPathMaster", src/insets/ExternalSupport.C: result = support::subst(result, "$$AbsOrRelPathParent", src/insets/ExternalSupport.C: result = support::subst(result, "$$AbsOrRelPathMaster", src/insets/ExternalSupport.C: result = support::subst(result, "$$AbsOrRelPathParent", src/insets/ExternalSupport.C: result = support::subst(result, "$$Tempname", params.tempname()); src/insets/ExternalSupport.C: result = support::subst(result, "$$Sysdir", support::system_lyxdir()); src/insets/ExternalSupport.C: if (support::contains(result, "$$Contents(\"")) { src/insets/ExternalTransforms.h: { return "$$ResizeFront"; } src/insets/ExternalTransforms.h: { return "$$ResizeBack"; } src/insets/ExternalTransforms.h: { return "$$RotateFront"; } src/insets/ExternalTransforms.h: { return "$$RotateBack"; } src/insets/ExternalTransforms.h: { return "$$Clip"; } src/insets/ExternalTransforms.h: { return "$$Extra"; } src/insets/ExternalTransforms.h: { return "$$Resize"; } src/insets/ExternalTransforms.h: { return "$$Rotate"; }