UBB to WXF in the plainest words

Sort:
ebillgo

The most ubiquitous game scores in Xiangqi are generated by www.dpxq.com.

   Unfortunately, most XQ softwares in English( unlike those in Chinese ) do not come with the the option of accepting text format ( in the dpxq game scores ) as a way of copying the moves in the games. Every time you want to replay a game of ther players, you have to download a game score in text format to a word file. From there, you copy the game move by move on your XQ software. It is like copying a poem word by word in order to appreciate it. My modest contribution to xiangqi is that I create a simple conversion kit ( together with XieXieMaster 2.5) which helps chess enthusiasts to get the game scores through a simple coversion process. It is like using a photocopying machine to prodcue copies of a poem.

A word about the conversion kit. The heart of the kit is the Excel file. The programming for the conversion is in fact very low-tech. Only a few simple excel functions are needed ( e.g. the vlookup function ).Not even a VBA macro is used,except for the rather optional button for erasing old data. 

Not to be long-winded, I just recommend you to download my conversion kit and begin your journey into the world of xiangqi. I have uploaded the conversion kit along with a detailed instruction menu in the Downloads section. ( Chess Downloads > Database Programs ). There are two versions. Please download the revised version ( Revised Edition of UBB to WXF ) for better results.

 

 

ebillgo

Hong Kong Chinese Chess Association ( www.hkcca.org.hk ) is another

source with lots of games in the dpxq format.

Find the entry highlighted in red and you get games ( at least in

hundreds ) with ubb codes .  

HGMuller

The links you give are all in Chinese, so I cannot even figure out how to get a single game there. Could you post an example here of a game in this format?

I am not a big fan of conversion kits. So I would want to be able to copy-paste this format directly into WinBoard. What kind of move notation is used in this game format? Is it the traditional notation like <piece><start file> <direction-specifier> <final file or distance traveled>, written in Chinese characters? The problem with texts in Chinese is that you always have to worry about encoding; in can be Unicode (UTF8 or UTF16), Big5 or GB2314, while the same format also has an ascii version.

HGMuller

I put a version of WinBoard that can parse the UBB format at http://hgm.nubati.net/winboardUBB.zip . (Just a zipped .exe file,intended for replacing winboard.exe in a complete install.)

The entire UBB code (not just the numeric move string) has to be pasted (as game) into WinBoard for it to work. At least if you want it to automatically switch to Xiangqi. But even if you have already selected variant xiangqi, the [Dhtml_movelist] tag will have to be pasted with the moves. As this is what triggers WinBoard into interpreting the following number as a move list.

I am not sure if other relevant info could be extracted from the UBB code. I noticed there are also [DhtmlXQ_binit] tags, which presumably indicate the initial board setup, but I am not sure how the encoding of this works in general. So for now WinBoard ignores that info, and assumes the game starts from the standard opening position.

There do not seem to be explicit tags for the player names or game result, although there is a [DhtmlXQ_title] tag that might contain such info. (But I am not sure if there is any standardization there.) The names would be often spelled in Chinese anyway, so I am not sure if attempting to display them (e.g. as Event tag) would be a good idea...

ebillgo

I installed a Chinese XQ software called CCbridge a few years ago. It accepts the whole UBB code ( moves, players, site and all ) and the games can be saved in the cbr format unique to CCbridge. Now CCbridge is not downloadable anymore and even if I put it in the Downloads section, most fellow members cannot make use of it due to the language interface problem.  I think for the moment we have to be content with the UBB to wxf "trick" . 

HGMuller

Ah, that is what .cbr format means. The maintainerof the xqinenglish.com website had sent me a few such files for certain end-games, but when I tried to look up what they were for, I could only find "Comic-Book Reader". And of course a reader for those did not understand them.

In the end I built my own tablebases to solve these end-games (KCEPKd and such).