-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (1) .- Knowledge Base  . 

Remove special characters

   1.3  

KDE Service Menu

Score 71%
Remove special characters
zoom


Link:  http://
Downloads:  1206
Submitted:  Mar 10 2007
Updated:  May 9 2007

Description:

Rename all files and directories, including sub directories, removing or replacing special characters.
The new name is compatible with MS-DOS FAT16 and URL (RFC 1738)
All characters different from A–Z, 0–9 and $-_!'() are renamed

For exemple :
* Fichier d'écriture *.txt
Will be renamed in :
-_Fichier_d_ecriture_-.txt

You can edit rm_special_char.py to change the new characters.

To install, simply put rm_special_char.py and rm_special_char.desktop in ~/.kde/share/apps/konqueror/servicemenus

Don't hesitate giving feedbacks or improvements.




Changelog:

1.1 RELEASE
======================================

BUGS FIXES :
001 ==> Include all ASCII characters


1.2 RELEASE
======================================

NEW FEATURES :
001 ==> Choose if you want to rename to lower cases or not

BUGS FIXES :
001 ==> Remove all non ASCII characters
002 ==> Translation table updated for german characters


1.3 RELEASE
======================================

BUGS FIXES :
001 ==> Now it also renames the first directory (the one you make the action on, not only files and sub-directories contained in it)




LicenseGPL
Send to a friend
Subscribe
Other  Apps  from Topazz
Report inappropriate content



-

 nice

 
 by panzi on: Mar 10 2007
 
Score 50%

nice.

Is it checking for collisions? And I would suggest to convert characters like é to e and ä to ae etc. ;)
And what about lower/upper case? FAT ignores the case but linux filesystems don't (cp /extfs/foo /extfs/FOO /fat will raise a error).


Reply to this

-

 Re: nice

 
 by Topazz on: Mar 10 2007
 
Score 50%

> Is it checking for collisions ?
Yes, if a file become the same name as an other one, it ads as many "-" characters it needs at the beginning of the name.
(Since today 20H40, before it was at the end)

> I would suggest to convert characters like é to e and ä to ae
Look at the translation code in rm_special_char.py
You will see that é becomes e as you say, but ä becomes a.
If you think it's better to rename ä to ae, I can modify the source code, but in that case post me a list of all the characters you think it's better to change (looking in rm_special_char.py)

> And what about lower/upper case?
I though at this problem, and for the moment upper case aren't renamed in lower case.
But you're right, I will change that.
In the next version all upper cases will be rename in lower cases.
Check for version 1.2 tomorrow.

Thanks for your suggestions, Topazz.


Reply to this

-

 Re: Re: nice

 
 by panzi on: Mar 11 2007
 
Score 50%

If it's not possible to write an umlaut, it is common to use this translation:

ä -> ae
Ä -> Ae
ü -> ue
Ü -> Ue
ö -> oe
Ö -> Oe
ß -> ss or sz or just s ("sharp s")

These letters are uses in german.


Reply to this

-

 Re: Re: Re: nice

 
 by Topazz on: Mar 11 2007
 
Score 50%

Thanks, I will change that also.

Would you have the german translation of :
Recursively remove special characters
and :
Recursively create M3U playlists
?

Thanks in advance


Reply to this

-

 Re: Re: Re: Re: nice

 
 by Topazz on: Mar 11 2007
 
Score 50%

Version 1.2 is now online.
For this version, I would need also the german translation of :
keeping UPPER cases
renaming in lower cases

Thanks


Reply to this

-
.

 Re: [de]

 
 by quax on: May 1 2007
 
Score 50%
quaxquax
FluxFlux / Lin2Go
Home
-
Manfred Mueller 0

FluxFlux / Lin2Go
Germany, Muelheim an der Ruhr
Last visit 1 hour ago
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Recursively remove special characters
[de]=Sonderzeichen rekursiv entfernen

"Special characters successfully removed for \"%n\""
[de]="Sonderzeichen von \"%n\"erfolgreich entfernt"

keeping UPPER cases
[de]=Grossbuchstaben erhalten


renaming in lower cases
[de]=In Kleinbuchstaben umwandeln



Reply to this

-

 Re: nice

 
 by whiskybar on: Mar 12 2007
 
Score 50%

I don't know but maybe you can transform the accented characters to their unaccented the way unac does it:

http://www.nongnu.org/unac/


Reply to this

-

 Great work !

 
 by daphreak on: Mar 11 2007
 
Score 50%

This is one of the little scripts that makes life easier ! Thanks !


Reply to this

-

 Remove special chara

 
 by poliicallycorrect on: Mar 11 2007
 
Score 50%

Would be better if apps accept special characters !!!! (and no need of this app...)


Reply to this

-

 Re: Remove special c

 
 by Topazz on: Mar 12 2007
 
Score 50%

Sure, but when you went to upload files on the internet, give files to a friend that hasn't got linux (or import files from a fat32 or NTFS drive), read music or pictures files elsewhere than on a computer, ... it's quite safe removing theses characters, specially because computers are designed for english language...


Reply to this

-
.

 Cool!

 
 by app3al on: May 21 2007
 
Score 50%

Nice idea you had!


Reply to this

-

 On single files?

 
 by cewanf on: Jun 16 2007
 
Score 50%

Thanks for great addition to Konqueror!

Would it be possible to have this menu for single files as well, and not just directories?

BR


Reply to this

-

 KDE 4

 
 by danux on: Apr 6 2009
 
Score 50%

I tried to run it in KDE 4 and din't work, so I modified the .desktop file to:


[Desktop Entry]
Version=1.3
Type=Service
ServiceTypes=KonqPopupMenu/Plugin,inode/directory
Actions=Remove_special_characters;Remove_special_characters_lower
X-KDE-Submenu=Recursively remove special characters
X-KDE-Submenu[fr]=Supprimer les caractères spéciaux récursivement
X-KDE-Submenu[es]=Remover caracteres especiales

[Desktop Action Remove_special_characters]
Name=keeping UPPER cases
Name[fr]=en gardant les MAJUSCULES
Name[es]=conservando las MAYÚSCULAS
Icon=background
Exec=~/bin/rm_special_char.py %u %n && kdialog --title "Special characters successfully removed" --passivepopup "" 5; echo
Exec[fr]=~/bin/rm_special_char.py %u %n && kdialog --title "Les caractères spéciaux ont été supprimés avec succès" --passivepopup "" 5; echo
Exec[es]=~/bin/rm_special_char.py %u %n && kdialog --title "Se han removido los caracteres especiales, manteniendo las mayúsculas" --passivepopup "" 5; echo

[Desktop Action Remove_special_characters_lower]
Name=renaming in lower cases
Name[fr]=en renommant en minuscules
Name[es]=renombrar y pasar a minúsculas
Icon=background
Exec=~/bin/rm_special_char.py %u %n -lower && kdialog --title "Special characters successfully removed" --passivepopup "" 5; echo
Exec[fr]=~/bin/rm_special_char.py %u %n -lower && kdialog --title "Les caractères spéciaux ont été supprimés avec succès" --passivepopup "" 5; echo
Exec[es]=~/bin/rm_special_char.py %u %n -lower && kdialog --title "Se han removido los caracteres especiales, cambiando todo a minúsculas" --passivepopup "" 5; echo



By the way I also added Spanish translation.


¡¡Atention KDE4 users!!

You have to put your .desktop file to: ~/.kde4/share/kde4/services/ServiceMenus

You have to put the .py file to:
~/bin (local bin folder)
or specify the correct location in the path of the .desktop file.

If you have some path problems (like me) you can try to change ~/ to /home/yourname/

Hope this helps someone.


Daniel

http://www.danux.inet.cl

Reply to this

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.