SynWrite (Syn2)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

Why do you want to change the name?
I think the name change is a good idea. Syn is also placed on some freeware download sites (Softpedia, Chip.eu, ..) to reach new users. So a good understandable name is helpful.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

trouble recognizing descript.ion files

Post by *sgp »

I some cases when I press F3 to view a descript.ion file, I get the default built-in text viewer instead of Syn2. In other cases, F3 to view a descript.ion file gets me Syn2, as expected.
I noticed that the descript.ion file that triggers the built-in viewer contains character 0x04C2, while the other descript.ion file contains ASCII characters only.
For both files the status line shows: ANSI,Win,(None)
Is there a way to make TC/Syn2 recognize all descript.ion files the same?

Syn2 beta 4760, WinXP Pro SP3 English.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

You can try setup syn to open *.ion files always in ascii mode.
Options -> Misc -> Open in OEM encoding files: ion

If this doesn't work you can try to force Syn to always open *.ion files in wincmd.ini
10=%COMMANDER_PATH%\Extensions\Syn2\Syn2.wlx
10_detect="EXT="ION""
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Thanks.
Matthias030 wrote:Options -> Misc -> Open in OEM encoding files: ion
didn't work
in wincmd.ini
10=%COMMANDER_PATH%\Extensions\Syn2\Syn2.wlx
10_detect="EXT="ION""
didn't work either. I already had a detect string, so I changed to
7=%COMMANDER_PATH%\plugins\wlx\Syn2\Syn2.wlx
;7_detect="(EXT!="RTF") & (SIZE<20000000)"
7_detect="EXT="ION""
and restarted TC, but I still get the built-in viewer instead ofSyn2.
BTW, what does the old (RTF...) detect string mean? Should I enable it back?
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

what does it mean ;7_detect="(EXT!="RTF") & (SIZE<20000000)"
This string means that syn does never open RTF files and never opens files larger than 20000000 Bytes (around 19MB)

For your problem with *.ion files: Have you try to set Syn as first Lister plugin?
1=%COMMANDER_PATH%\plugins\wlx\Syn2\Syn2.wlx
1_detect="EXT="ION""

Please try also to disable this option in Syn:
Options -> Misc -> Non-text files: Open
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Matthias030 wrote:
Have you try to set Syn as first Lister plugin?
1=%COMMANDER_PATH%\plugins\wlx\Syn2\Syn2.wlx
1_detect="EXT="ION""
didn't help. I used 0 instead of 1 because my wincmd.ini starts counting plugins at 0.
disable this option in Syn:
Options -> Misc -> Non-text files: Open
It was set to "Don't open". If I set it to "Open" Syn2 opens both descript.ion files. So should we say that when character 0x04C2 is included in the file, Syn2 thinks that the file is non-text? Is that the correct behavior? I don't know.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

It was set to "Don't open". If I set it to "Open" Syn2 opens both descript.ion files. So should we say that when character 0x04C2 is included in the file, Syn2 thinks that the file is non-text? Is that the correct behavior?
Maybe it is a bug in detection routine for text files. Please can you upload both discript.ion files, so author can check the problem? Also you can send files to authors email address. It's shown in Help -> About dialog.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Sure, but I can't see how to upload files to this board.
As for sending them via email, I'll wait for the author to reply to this subject before I send him email. Thanks.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

i donot understand. if file in Ansi, how u see that code of char is 0xNNNN? In status bar? what ansi code of char is (if u see '3' Lister view)
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

I see char codes in the status bar, after I open the file with File/Open because F3 doesn't open it.
I actually see two characters, the first one is 0x04 followed by 0xC2.
I don't know what those characters are or how they got into the descript.ion file.
But this is not the only descript.ion file that Syn2 doesn't open with F3.
It's just one file that I isolated.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

symb. 0x04 is 'binary'. 0x20...., 9, D, A are text
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Thanks for explaining. I will have to scan all my descript.ion files and try to figure out how byte 0x04 got in. It's either TC, 4NT or a bad disk write.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

name chg. Beta upd. Nasty work to chg it..
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

1st post chg. 2.4. Matthias: if have time pls update sites (name, url)
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Post by *Matthias030 »

New name is good.
Why is syn.dklang so much smaller now?
Post Reply