From: <dom...@us...> - 2013-04-13 19:10:19
|
Revision: 233 http://sourceforge.net/p/fvwm-crystal/code/233 Author: dominique_libre Date: 2013-04-13 19:10:16 +0000 (Sat, 13 Apr 2013) Log Message: ----------- doc/FAQ: Added a question about the screwed music menu with 2 relative scripts in addons Modified Paths: -------------- ChangeLog addons/README doc/FAQ Added Paths: ----------- addons/translatechars addons/translatefilesnames Modified: ChangeLog =================================================================== --- ChangeLog 2013-04-13 09:36:25 UTC (rev 232) +++ ChangeLog 2013-04-13 19:10:16 UTC (rev 233) @@ -4,6 +4,9 @@ functions/Music-audacious: -menu: added preferences and recreate playlist + FAQ: Added Q 3.5 ++ addons/translatechars; +addons/translatefilenames: pre alpha quality + scripts to remove special characters in files and directories names. Vendredi 12 Avril 2013 Dominique Michel Modified: addons/README =================================================================== --- addons/README 2013-04-13 09:36:25 UTC (rev 232) +++ addons/README 2013-04-13 19:10:16 UTC (rev 233) @@ -16,12 +16,20 @@ README: this file -searchvartofix: when updating from fvwm-crstal<=3.0.5 +searchvartofix: when updating from fvwm-crystal<=3.0.5 you need to run this script. +varfix.sh: used by searchvartofix sudo: a sudo example file -varfix.sh: used by searchvartofix +translatechars: pre alpha quality scripts. It is run by + translatefilenames +translatefilenames: pre alpha quality script. It will remove + some special characters from your files and directories names. + Adapt translatechars to suit your need and run translatefilenames. + Run it in some directory and it will change all the names + recursively. Please, don't run it as root and make some backup + before to run it. Xressources: Xressources example file to use with FVWM-Crystal. Read INSTALL in main Crystal folder. Added: addons/translatechars =================================================================== --- addons/translatechars (rev 0) +++ addons/translatechars 2013-04-13 19:10:16 UTC (rev 233) @@ -0,0 +1,12 @@ +#!/bin/sh + +if [[ "$1" != "$(echo "$1" | tr '[\!\-(){}]\?]\^\`\=\|\&\%\#\*\\\@\"\|\,\;\:]' '_')" ]]; then + mv "$1" "$(echo $1 | tr '[\!\-(){}]\?]\^\`\=\|\&\%\#\*\\\@\"\|\,\;\:]' '_')"; +fi + +#if [[ "$1" != "$(echo $1 | tr '[\!\-(){}]\?]\^\`\=\|\&\%\#\*\\\@\"\|]' '_')" ]]; then +# echo "$1"; +# echo $1 | tr '[\!\-(){}\?\^\`\=\|]\&\%\#\*\\\@\"\|]' '_' +#fi + +#echo $1 | tr '[cntrl]' _; Property changes on: addons/translatechars ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: addons/translatefilesnames =================================================================== --- addons/translatefilesnames (rev 0) +++ addons/translatefilesnames 2013-04-13 19:10:16 UTC (rev 233) @@ -0,0 +1,4 @@ +#!/bin/sh + +find -type d -exec translatechars {} \; +find -type f -exec translatechars {} \; Property changes on: addons/translatefilesnames ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Modified: doc/FAQ =================================================================== --- doc/FAQ 2013-04-13 09:36:25 UTC (rev 232) +++ doc/FAQ 2013-04-13 19:10:16 UTC (rev 233) @@ -26,6 +26,7 @@ 3.2: Where can I add my prefered fvwm command? 3.3: How can I have a tear off menu? 3.4: How can I record madias with mplayer? + 3.5: The Music menu get screwed. What can I do about this? ----------------------------------------------------------------------------- Frequently Asked Questions @@ -231,3 +232,9 @@ MPEG sources. When watching such a sources, press "c" and mplayer will begin to make a stream dump ro the file ~/stream.dump. Press "c" again to stop capturing. + +3.5 Q: The Music menu get screwed. What can I do about this? + A: According to Thomas Adam, auto-generated menus in FVWM are very + sensitive to special characters. You must change all the special + characters in the directories and folders names where FVWM will + search for your media files. \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |