Cascade Posted February 24, 2004 Report Share Posted February 24, 2004 The program now reads a .lin file and creates automatically:[hv=d=w&v=b&n=saqj53hj82dj63ct8&w=s2hakt95dq94ca964&e=sk84h7643dkt52ck5&s=st976hqda87cqj732]399|300|Scoring: IMP[/hv]West North East South1♥ 1♠ 2N! 4♠ 5♣ Pass 5♥ Dbl Rdbl Pass Pass Pass What program ? Wayne Link to comment Share on other sites More sharing options...
Erkson Posted February 24, 2004 Report Share Posted February 24, 2004 What program ?version 03c of Lin2B(bo)F(orum). Erkson Link to comment Share on other sites More sharing options...
Gerardo Posted February 24, 2004 Report Share Posted February 24, 2004 Where to find it? Link to comment Share on other sites More sharing options...
mishovnbg Posted February 24, 2004 Report Share Posted February 24, 2004 What program ?version 03c of Lin2B(bo)F(orum).Erkson ...Can you be more concrette about about "program" and "read" - how to import lin files in BBO forum, but please step by step, like for idiots, please :D . ------------------------------------------------------Misho Link to comment Share on other sites More sharing options...
Erkson Posted February 24, 2004 Report Share Posted February 24, 2004 ...Can you be more concrette about about "program" and "read" - how to import lin files in BBO forum, but please step by step, like for idiots, please :D .Hi, Misho. Do yo really want to fight with a buggy, undocumented, dirty and ugly 6-page C software draft which doesn't obey but to its master's voice, only because it reads a .lin file and writes a few text lines that you would have to cut and paste into your post ? Keep away from it ! :angry: Erkson Link to comment Share on other sites More sharing options...
Erkson Posted February 24, 2004 Report Share Posted February 24, 2004 Where to find it?Hi, Gerardo, and many thanks for the tags. I wrote a program which reads a .lin file, asks about hand rotation (0, 1, 2, 3 positions), asks about display (FULLHAND, ONEHAND etc.... except ONESUIT) and writes the lines in a text file to be cut and pasted.But it is not all tested yet.Even when it is, it will remain undocumented and without error catching. A draft for home use. Erkson Link to comment Share on other sites More sharing options...
mishovnbg Posted February 24, 2004 Report Share Posted February 24, 2004 ...Can you be more concrette about about "program" and "read" - how to import lin files in BBO forum, but please step by step, like for idiots, please :D .Hi, Misho. Do yo really want to fight with a buggy, undocumented, dirty and ugly 6-page C software draft which doesn't obey but to its master's voice, only because it reads a .lin file and writes a few text lines that you would have to cut and paste into your post ? Keep away from it ! :) Erkson -------------------------------------------------Hi Erkson! --- My last progarm for real estate traders was about 50 pages, so somehaw will menage your excellent 6 B) . 20 years ago I did C program for import/export between ORCAD and REDAC systems, so may be will undestand someting from you source B) . But will be better if you can send me very ugly and undocumented compiled version of your software with need parameters, I promisse love to it and not share mistakes with anybody :) .[HIDDEN]------------------------------------------Thanks in advance, you are really friendly, Misho Link to comment Share on other sites More sharing options...
Erkson Posted February 24, 2004 Report Share Posted February 24, 2004 ...it will be better if you can send me very ugly and undocumented compiled version of your software with need parameters...OK, Misho.I will send you the v.03d version today : the source and the compiled .exe I will find your e-mail address somewhere, or I will see if private messages admit attached files.Or I will send the stuff to your best friend, and he will know how to send it to you. No problem. 16:08 GMT : files sent to your hotmail address. Erkson Link to comment Share on other sites More sharing options...
inquiry Posted February 24, 2004 Report Share Posted February 24, 2004 I don't know who misho's best friend is, but if you send the d version to me, I will forward to him for you. lol.... Thanks for this neat new tool. Ben Link to comment Share on other sites More sharing options...
Gerardo Posted February 24, 2004 Report Share Posted February 24, 2004 Please count me in. Link to comment Share on other sites More sharing options...
inquiry Posted February 24, 2004 Report Share Posted February 24, 2004 Part of the neat thing about this Lin2BF program is the layout of the auction. It really isn't that hard to input hands (although the automated process is nice), but lining up auctions is a pain. I wonder if we could get an auction button like the hand buttons... maybe the default should be always print auction results starting wtih WEST, but if the DEALER was selected, it would enter -- for bids WEST if north bid, and -- for WEST and norht if east bids, etc. Maybe with East the dealer, the input format might be something like P1N2S3CP3HXXXPPP... and the output look like this (program knows where first bid goes)...West North East-- South ---- ---- -- 1N---2♠ -3♣-Pass- 3♥- -Pass Rdbl-Pass-Pass-Pass As pretty much a nonprogrammer.. i feel free to suggest any wacky thing... :-) Ben Link to comment Share on other sites More sharing options...
Erkson Posted February 24, 2004 Report Share Posted February 24, 2004 I don't know who misho's best friend is, but if you send the d version to me, I will forward to him for you. lol.... :) B) B) 17:11 GMT I sent you the 03d version.I sent it to Misho also. As I don't know how to send files to Gerardo, perhaps you will be able to send him a copy. Erkson Link to comment Share on other sites More sharing options...
Erkson Posted February 24, 2004 Report Share Posted February 24, 2004 Please count me in. You will soon receive a copy of v.03d. The program only converts history.lin files (NOT movie.lin files). You know that auction is not coded the same way in a history.lin : mb|1H|mb|1S|mb|2N!|an|9-12p 4+!h|mb|4S|mb|5C|mb|p|mb|5H|mb|d|mb|r|mb|p|mb|p|mb|p| and a movie.lin : mb|---1H2C4H5Cdrppp| The coding of hands is also completely different : in a history.lin : md|2S679THQD78AC237JQ,S2H59TKAD49QC469A,S35JQAH28JD36JC8T,| in a movie.lin : md|1S3HJ76432DAQ32CA3,SA2HAQ9D4CQJ96542,SKJT9875HT85D97C7,SQ64HKDKJT865CKT8| Erkson Link to comment Share on other sites More sharing options...
mishovnbg Posted February 24, 2004 Report Share Posted February 24, 2004 Thank you very much, can I help you with something too? Misho Link to comment Share on other sites More sharing options...
Erkson Posted February 24, 2004 Report Share Posted February 24, 2004 I wonder if we could get an auction button like the hand buttons... A table with colums and rows would be nice. A tag for the hard space (=#1 6 0) could be a more simple substitute and allow a good lining-up. Erkson Link to comment Share on other sites More sharing options...
Cascade Posted February 24, 2004 Report Share Posted February 24, 2004 I wonder if we could get an auction button like the hand buttons... A table with colums and rows would be nice. A tag for the hard space (=#1 6 0) could be a more simple substitute and allow a good lining-up. Erkson How exactly do I put one of these hard spaces into a post? Can I write one directly in here? TIA Wayne Link to comment Share on other sites More sharing options...
inquiry Posted February 24, 2004 Report Share Posted February 24, 2004 How exactly do I put one of these hard spaces into a post?What Erkson has discovered is that you need six characters to insert a single hard space. These are in sequence   Don't forget that semicolon at the end... when you put it all together it will look like this, but without the space between the semicolon and the 0 ;, so for instance 1♥ ; ; ;, 1♠ (without the space between 0 and ; looks like this...1♥ 1♠ rather than 1♥ 1♠ Ben Link to comment Share on other sites More sharing options...
Erkson Posted February 25, 2004 Report Share Posted February 25, 2004 Don't forget that semicolon at the end... when you put it all together it will look like this, but without the space between the semicolon and the 0 ;, so for instance 1♥ ; ; ;, 1♠ (without the space between 0 and ; looks like this...1♥ 1♠ rather than 1♥ 1♠ BenOn Ben's post we can see the limits of the trick : three hard spaces are narrower than three letters of "looks like" which is above, and the lining-up is not perfect.That is caused by the proportional font used here.I amplify the problem with this sample where I wrote 6 hard spaces :AAAAAAAAAAAA1♥ 1♠Their total width corresponds to only three A. By the way : look at what is displayed by : 1&spades 1&hearts if you complete each code with the required ;. You will get :1♠ 1♥ One more thing : I wonder if it would be useful to write a Lin2BF converter for movie.lin files. I don't know if movie.lin files are used as a source for posting hands. I never had to. I use history.lin from \myhands. Erkson Link to comment Share on other sites More sharing options...
Cascade Posted February 25, 2004 Report Share Posted February 25, 2004 I will double check later ... but I think I have a Lin2Txt program that works with movies.lin files. It will be easy to adapt that to write forum hands in fact I started last night ... I just never checked what the source file is but I am pretty sure I use the movie files saved on my machine. Wayne Link to comment Share on other sites More sharing options...
Erkson Posted February 25, 2004 Report Share Posted February 25, 2004 I will double check later ... but I think I have a Lin2Txt program that works with movies.lin files. It will be easy to adapt that to write forum hands in fact I started last night ... I just never checked what the source file is but I am pretty sure I use the movie files saved on my machine. WayneHi, Wayne. Version 01 of my Movie2B(bo)F(orum) is ready. When you finish yours, we will compare ! Erkson Link to comment Share on other sites More sharing options...
Cascade Posted February 27, 2004 Report Share Posted February 27, 2004 This is the forum hands I generated automatically: [hv=d=w&v=b&n=s52ha8dqj98754ct6&w=skt976hj643dktcq3&e=sj43hk2d62ckj9842&s=saq8hqt975da3ca75]399|300|Scoring: IMP[/hv] West North East South Pass 2♦! Pass 2♥ Pass 3♥ Pass 4♥ Pass Pass Pass [hv=d=w&v=b&n=s52ha8dqj98754ct6&w=skt976hj643dktcq3&e=sj43hk2d62ckj9842&s=saq8hqt975da3ca75]399|300|Scoring: IMP[/hv] West North East South Pass Pass 1♥ 1♠ Dbl Pass 2♥ Pass 3♥ Pass Pass Pass These come from this lin file: vg|Bridge Base Online,IMP Pairs,P,1,2,,,,|rs|4HS-1,,3HS=,|pw|Walddk,tsanders,ghinze,clarsen,,,,|mp|,7.1,0.2,|bn|12,13|pg||qx|o1|pn|Walddk,tsanders,ghinze,clarsen|st||md|2S8QAH579TQD3AC57A,S679TKH346JDTKC3Q,S25H8AD45789JQC6T,|rh||ah|Board 12|sv|n|mb|p|mb|2D!|an|since we didnt talk|mb|p|mb|2H|mb|p|mb|3H|mb|p|mb|4H|mb|p|mb|p|mb|p|pg||pc|S9|pc|S2|pc|SJ|pc|SQ|pg||pc|C5|pc|CQ|pc|C6|pc|C9|pg||pc|SK|pc|S5|pc|S4|pc|SA|pg||pc|CA|pc|C3|pc|CT|pc|C2|pg||pc|C7|pc|S6|pc|H8|pc|C4|pg||pc|DQ|pc|D6|pc|DA|pc|DT|pg||pc|S8|pc|ST|pc|HA|pc|S3|pg||pc|D4|pc|D2|pc|D3|pc|DK|pg||pc|S7|pc|D5|pc|C8|pc|H5|pg||pc|HQ|pc|H3|pc|D7|pc|HK|pg||pc|CJ|mc|9|pg||qx|o2|pn|Walddk,tsanders,ghinze,clarsen|st||md|3S39H34568KD3AC3TA,S678TQKH9AD67C47J,S25AH2JD2TJQC269K,|rh||ah|Board 13|sv|b|mb|p|mb|p|mb|1H|mb|1S|mb|d|mb|p|mb|2H|mb|p|mb|3H|mb|p|mb|p|mb|p|pg||pc|SK|pc|S2|pc|S4|pc|S3|pg||pc|D7|pc|DQ|pc|D4|pc|D3|pg||pc|SA|pc|SJ|pc|S9|pc|SQ|pg||pc|S5|pc|D5|pc|H3|pc|S6|pg||pc|H4|pc|H9|pc|HJ|pc|HQ|pg||pc|D8|pc|DA|pc|D6|pc|D2|pg||pc|C3|pc|C4|pc|CK|pc|C5|pg||pc|H2|pc|H7|pc|H8|pc|HA|pg||pc|ST|pc|C2|pc|D9|mc|9|pg|| Wayne Link to comment Share on other sites More sharing options...
Erkson Posted February 27, 2004 Report Share Posted February 27, 2004 This is the forum hands I generated automatically...Good work, Wayne ! Do you agree to exchange sources ? I would like to read yours. I am sure I will learn from it. Your .lin file is a movie lin file that I call a "vugraph file". There are (at least) two other kinds of .lin files :1. history.lin produced by \myhands (single deal)2. movie.lin produced by the MOVIE button (single deal, too) The three are not exactly identical, as I explained in an anterior post. My Lin2PB works for history.lin (single deal)and my Movie2PB works for movie.lin (single deal). About the auction lining-up : West North East South Pass 2♦! Pass 2♥ Pass 3♥ Pass 4♥ Pass Pass Pass you chose a narrow spacing between words West, North, East, South (one character), so the imperfect lining-up caused by proportional font is reduced, but it still exits. There is nothing simple that we can do to avoid it. Erkson Link to comment Share on other sites More sharing options...
Cascade Posted February 27, 2004 Report Share Posted February 27, 2004 I am not a trained programmer. My code is brute force and ignorance. But sure you can look at it. I will tidy it up a little and then send it to you. I am nearly finished adding functionality fo the other hand diagram buttons. Actually there was a error in the code that I have now fixed. The proportional font issue is a much bigger problem. There is a courier font available. There is still a problem with that FONT as the images are a fixed size. Is it possible to change their size. Any ideas? Here is the courier font example [hv=d=s&v=b&n=s52ha8dqj98754ct6&w=skt976hj643dktcq3]266|200|Scoring: IMP[/hv] West North East South Pass 2♦! Pass 2♥ Pass 3♥ Pass 4♥ Pass Pass Pass [hv=d=s&v=b&n=s52ha8dqj98754ct6&w=skt976hj643dktcq3]266|200|Scoring: IMP[/hv] West North East South Pass Pass 1♥ 1♠ Dbl Pass 2♥ Pass 3♥ Pass Pass Pass Wayne Link to comment Share on other sites More sharing options...
Erkson Posted February 27, 2004 Report Share Posted February 27, 2004 The proportional font issue is a much bigger problem. There is a courier font available. There is still a problem with that FONT as the images are a fixed size. Is it possible to change their size. Any ideas? Hi, Wayne. at 11:20 GMT I sent you my sources and .exe.I will be happy to receive yours. About the lining-up I don't see any solution. Anyway, the lag is small, especially choosing a narrow spacing as you did. Erkson Link to comment Share on other sites More sharing options...
Cascade Posted February 27, 2004 Report Share Posted February 27, 2004 Erkson I have sent you a copy of my code. You get slightly better alignment when you use the {FONT=Courier} tag. But there are still minor problems. I think they are caused by suit symbol images being different sizes. A table tag would be ideal. Wayne West North East South Pass 2♦! Pass 2♥ Pass 3♥ Pass 4♥ Pass Pass Pass West North East South Pass 2♦! Pass 2♥ Pass 3♥ Pass 4♥ Pass Pass Pass Maybe the alignment isn't better with courier. That is weird that the diamond symbol is a different size when I use Courier font. Link to comment Share on other sites More sharing options...
Recommended Posts