egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

chars

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Thu Feb 04, 2010 7:41 am    Post subject: chars Reply with quote

quick help here

i use imdb

BUT there is some chars it's dosnt convert

is should read
""SGU Stargate Universe" (2009)"

but the output is
""SGU Stargate Universe" (2009)"

Code:
proc htmlcodes1 {tempfile} {
    set mapfile [string map {" \" & & ' ' [ ( \ / ] ) { ( } )   " " £ £ ¨ ¨ © © « « ­ ­ ® ® ¡ ¡ ¿ ¿ } $tempfile]
    set mapfile [string map {´ ´ · · ¹ ¹ » » ¼ ¼ ½ ½ ¾ ¾ À À Á Á Â Â } $mapfile]
    set mapfile [string map {Ã Ã Ä Ä Å Å Æ Æ Ç Ç È È É É Ê Ê Ë Ë Ì Ì Í Í Î Î Ï Ï Ð Ð Ñ Ñ Ò Ò Ó Ó Ô Ô Õ Õ Ö Ö } $mapfile]
    set mapfile [string map {× × Ø Ø Ù Ù Ú Ú Û Û Ü Ü Ý Ý Þ Þ ß ß à à á á â â ã ã ä ä å å æ æ ç ç è è é é ê ê } $mapfile]
    set mapfile [string map {ë ë ì ì í í î î ï ï ð ð ñ ñ ò ò ó ó ô ô õ õ ö ö ÷ ÷ ø ø ù ù ú ú û û ü ü ý ý þ þ } $mapfile]
    set mapfile [string map {è è } $mapfile]   
    set mapfile [string map {  "" & "&" " \"} $mapfile]
    return $mapfile

_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze


Last edited by Fire-Fox on Sun Feb 07, 2010 4:56 pm; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
Papillon
Owner


Joined: 15 Feb 2002
Posts: 724
Location: *.no

PostPosted: Sat Feb 06, 2010 8:13 am    Post subject: Reply with quote

Code:
set mapfile [string map {  "" & "&" " \" " \"} $mapfile]

_________________
Elen sila lúmenn' omentielvo
Back to top
View user's profile Send private message MSN Messenger
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Sun Feb 07, 2010 4:36 pm    Post subject: Reply with quote

Thanks for the help Smile

new problem

what about

Tom & Viv (1994)

to

Tom & Viv (1994)
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Feb 07, 2010 5:06 pm    Post subject: Reply with quote

Fire-Fox wrote:
Thanks for the help Smile

new problem

what about

Tom & Viv (1994)

to

Tom & Viv (1994)

Cannot post the fix on this forum. Even within [code] tags it still renders some of the entities. Use the procedure found in the url below:
http://paste.tclhelp.net/?id=616
This will do them all, credit perplexa.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Tue Feb 09, 2010 11:47 am    Post subject: Reply with quote

Thanks again Smile
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber