![]() |
#31 | |
Connoisseur
![]() Posts: 69
Karma: 34
Join Date: Dec 2006
Location: Dallas, TX
Device: PRS-500
|
Quote:
|
|
![]() |
![]() |
![]() |
#32 | |
Member
![]() Posts: 20
Karma: 10
Join Date: Nov 2006
Device: Sony Reader
|
Quote:
Code:
from ctypes import * xylog = windll.LoadLibrary("XylogParser.dll") check = xylog.MSXML_InitInstance() if check: success = xylog.XYP_Create() print "create=",success xylog.XYP_SetTextCompressionFlag(0) xylog.XYP_SetPCMCompressionFlag(0) xylog.XYP_SetFontEncFlag(0) xylog.XYP_SetProducerName(u"test") #XYP_SetMsgWnd(wnd); #XYP_SetMsgID(WM_USER + 100) parse = xylog.XYP_ParseDocument(u"test.lrs") print "parse=",parse xylog.XYP_Release() create= 1 parse= 0 Last edited by esperanc; 04-08-2007 at 12:59 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
![]() I really think they're all dead. You all keep claiming they read MR, never heard from them here (PM, Posting, nor Email). Someone puts up prslabs.com to communicate with content developers, but we never hear from them on that BBS. Dead, they're all dead I tell ya. Maybe Stringer cashiered them all and their jobs are all being off shored? ![]() |
|
![]() |
![]() |
![]() |
#34 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
![]() My guess would be that the current working directory for the DLL isn't what you expect it to be. I would suggest you replace "test.lrs" with "C:\My\Exact\Path\test.lrs". Hope that helps. |
|
![]() |
![]() |
![]() |
#35 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 692
Join Date: Oct 2006
Device: SONY reader
|
scotty1024
I think you're right ![]() seriously though I don't get what they want. Their licenses are very restrictive. In my understanding it only allows "lone wolf" development for personal use... it doesn't encourage or permit any kind of community effort. e.g. see my previous note about posting the DTD here on MR... wouldn't that violate their terms? |
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Member
![]() Posts: 20
Karma: 10
Join Date: Nov 2006
Device: Sony Reader
|
Quote:
Code:
xylog.XYP_SetXmlFileName(ur"C:\test.lrs") |
|
![]() |
![]() |
![]() |
#37 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
1. Does that ur mean "16 bit character string with a 0 character at the end of the string? 2. Where did test.lrs come from? Are you using one of the sample projects provided by Sony? Is the path for the required CThumbnail correct? I'm also pretty sure the LRS file has to be in UTF-16LE with the 16 bit marker character 0xfffe as the first character. I don't think it will eat UTF-8 even if that encoding is set in the XML marker e.g. 'encoding="UTF-8"?>' isn't respected. 3. If you can setup the MsgID and MsgWnd you might get better error messages. |
|
![]() |
![]() |
![]() |
#38 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 65
Karma: 1695
Join Date: Oct 2006
|
What Sony did is just gave us the stuff we already know (thanks to igorsk).
1. XYLogparser.dll. The same XYLogParser (from BookCreator) we are using for more than a year with the lrs2lrf wrapper by igorsk. Moreover new XYLogparser.dll is fully compatible with the lrs2lrf and produces the same result. 2. Wrapper interface. Almost no difference compared to lrs2lrf (except probably some more functions like TOC, author etc). But the same result could be achived with the lrs content and lrs2lrf. 3. LRS specification. The same to published previously and found by igorsk 3 month ago. May be they fixed known bug from previous parser, I did not check. The same l-o-o-o-ng conversion. Just checked: both XYLogParsers.dll (the old one and new one) do conversion of some book for 5 minutes, while homemade MSH_LRSparser do the same for 2 seconds! With absolutely the same result. I don't think we can expect from Sony something really useful. |
![]() |
![]() |
![]() |
#39 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
The useful thing we got from prslabs.com is permission to use the dll, which was something we didn't have before.
|
![]() |
![]() |
![]() |
#40 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 202
Karma: 692
Join Date: Oct 2006
Device: SONY reader
|
scotty, I don't think so:
Quote:
|
|
![]() |
![]() |
![]() |
#41 | |
Member
![]() Posts: 20
Karma: 10
Join Date: Nov 2006
Device: Sony Reader
|
Quote:
2. The file is the OZ example downloaded from prslabs, so it should work... 3. You are right about that, but given the post above by obelix I think it is just too much work for too little gain. I was hoping that the .dll would support some things that MSH_parser does not support yet, namely plot commands for images... Thanks for the help! |
|
![]() |
![]() |
![]() |
#42 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
Alas, it doesn't and thus apparently they aren't. ![]() After publishing a document on the topic of picking the proper values to put in the <BookID> they of course chose to use a value that is improper and the parser refuses to accept. You need to alter "CBUS00100000200C" to be "FBUS00100000200C". You then of course need to make sure the "data\t_book19.gif" is supplied properly. Even after all of that? The resulting LRF is 5K different in size from the published reference LRF file that the LRS is supposed to produce. But the Sony does view it properly whatever the difference in size. And for those following along using Vista, yes, the parser rolls over dead if it generates any error during parsing and Vista offers to search Microsoft for a fix for it. ![]() So long as the parser runs with no errors, it runs on Vista. |
|
![]() |
![]() |
![]() |
#43 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Quote:
Neither of which existed before, and while the parser is of dubious quality, its release by Sony is a step forward on Sony's part. |
|
![]() |
![]() |
![]() |
#44 | |
Member
![]() Posts: 19
Karma: 25
Join Date: Apr 2007
Device: PRS-505
|
Quote:
paris hilton can read? |
|
![]() |
![]() |
![]() |
#45 | |
Fully Converged
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,175
Karma: 14021202
Join Date: Oct 2002
Location: Switzerland
Device: Too many to count here.
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Makers by Cory Doctorow officially launched, free on his site | zacheryjensen | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 10-29-2009 12:06 PM |
Sony Reader and ebook websites launched in Belgium in October | AlfonsVH | News | 20 | 08-27-2009 04:43 PM |
Sony's Developer Site - ? | Dr. Drib | Sony Reader Dev Corner | 2 | 02-05-2009 08:08 AM |
iLiad iRex Developer Site launched! | CommanderROR | iRex Developer's Corner | 14 | 07-19-2006 12:17 PM |