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.
Help for those learning Tcl or writing their own scripts.
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Thu Feb 04, 2010 7:41 am
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.
Papillon
Owner
Posts: 724 Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no
Post
by Papillon » Sat Feb 06, 2010 8:13 am
Code: Select all
set mapfile [string map { "" & "&" " \" " \"} $mapfile]
Elen sila lúmenn' omentielvo
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Sun Feb 07, 2010 4:36 pm
Thanks for the help
new problem
what about
Tom & Viv (1994)
to
Tom & Viv (1994)
speechles
Revered One
Posts: 1398 Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)
Post
by speechles » Sun Feb 07, 2010 5:06 pm
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 [c
ode] 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.
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Tue Feb 09, 2010 11:47 am
Thanks again