This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

chars

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

chars

Post by Fire-Fox »

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: Select all

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
Last edited by Fire-Fox on Sun Feb 07, 2010 4:56 pm, edited 2 times in total.
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

Code: Select all

set mapfile [string map {  "" & "&" " \" " \"} $mapfile] 
Elen sila lúmenn' omentielvo
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

Thanks for the help :)

new problem

what about

Tom & Viv (1994)

to

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

Scripts: Relay | Store Text | TvMaze
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Fire-Fox wrote:Thanks for the help :)

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.
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

Thanks again :)
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Post Reply