|
|
#31 |
|
Apprentice Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 92
Karma: 538050
Join Date: May 2011
Location: Doncaster UK
Device: Kobo Touch, Nook Simple
|
One minor point. I have problems seing some colours, especially yellow. Could you change the highlighting of the styles to cyan or green and repost. Thanks
__________________
Things fall apart, the centre cannot hold and mere anarchy is loose upon the world. Last edited by Thasaidon; 06-09-2012 at 04:27 AM. Reason: fumble fingers |
|
|
|
|
|
#32 | |
|
Det
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 716
Karma: 450180
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
And now you can give the highlighting any ugly color you want , i built in a user-interface to define the colors....
|
|
|
|
|
|
Enthusiast
|
|
|
|
#33 | |
|
Apprentice Hedge Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 92
Karma: 538050
Join Date: May 2011
Location: Doncaster UK
Device: Kobo Touch, Nook Simple
|
Quote:
__________________
Things fall apart, the centre cannot hold and mere anarchy is loose upon the world. |
|
|
|
|
|
|
#34 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 22676
Join Date: Feb 2010
Device: none
|
FWIW, I tried it in LibreOffice v. 3.5.3.2, but it fails with an error
"BASIC syntax error. Symbol expected" at this code (among several): Code:
Rem Attribute VBA_ModuleType=VBAModule Option VBASupport 1 Option Explicit Type file <=== error at this line name As String size As Long End Type |
|
|
|
|
|
#35 | |
|
Det
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 716
Karma: 450180
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
Maybe LO doesn't support user defined types. But the more probale reason is that it collides with the reserved names of LO. Replace "file" with "datei" (or "ficher" ) in the "Type" and in the "Dim" - declaration and see if it works.
|
|
|
|
|
|
|
#36 | ||
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 427
Karma: 22676
Join Date: Feb 2010
Device: none
|
Thanks for your reply.
Quote:
Quote:
I also wondered if the actual error (from LO's point of view) occurred earlier in the module, and the line it indicated was merely where the interpreter realized there was an error, not the actual error itself. But messing with the two lines above the type declaration did not help either. Oh, well. |
||
|
|
|
|
|
#37 | |
|
Det
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 716
Karma: 450180
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Quote:
You're right, but looked into the wrong direction ![]() It's the variable "name" (the first of each Type), which hurts. I'll fix that for the next release, but the next problem will be to replace the "Get" somehow. In MSO, it reads the whole file into a string, in OO it's unknown (Maybe not in LO). That's probably not fixed with a simple replace... |
|
|
|
|
|
|
#38 | |
|
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,091
Karma: 6245217
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
|
Quote:
Hitch
__________________
I produce eBooks. www.booknook.biz Follow us on Twitter "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair |
|
|
|
|
|
|
#39 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,036
Karma: 416729
Join Date: Jan 2009
Device: KoboGlo
|
Sounds indeed very useful too. Any idea on how to implement it?
What would be the generic search strings to look for these elements in the xhtml files? |
|
|
|
|
|
#40 | |
|
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,091
Karma: 6245217
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
|
Quote:
I mean, you'd have to (I don't program, so--those with real brains, leap in) aggregate ALL the styles and elements; probably doing so from the top-down, so most-used to least-used makes the most sense; search for all instances of "p," first, and then all classes used in the ePUB--and then do a string-match in the CSS...does that sound right, ye olden programmers? I mean, it seems more efficient to do it by element and then by class, but sometimes, what seems elementary (sorry, sorry, you guys KNOW I can't resist bad punnage!) isn't. We use something SOMEWHAT like this in two places; we have a PERL script and an NTPro script that both check for this--but it's in the HTML. I don't know how we'd adopt it to run inside Sigil, unless we took the additional steps of copying the file, merging it, and exploding it, but even so...it would be a SLICK addition in Sigil. I would infinitely rather the "used in the ePUB but not in the stylesheet" functionality than simply cleaning up the Stylesheet. I know some folks need that--and it would be nice fudge topping--but it's not as needed as the inverse. We have a House CSS that we use, so cleanup isn't as important for us, in the CSS itself...but I think everyone would love the missing classes thing. JMHO, Hitch
__________________
I produce eBooks. www.booknook.biz Follow us on Twitter "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair |
|
|
|
|
|
|
#41 |
|
Det
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 716
Karma: 450180
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
|
Shameless selfpromothion
|
|
|
|
|
|
#42 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,207
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
A popular class used is <body class="text"> where text does not exist in the CSS. Also, dived classes are used at the beginning of a chapter that have no CSS style. I tend to remove the divs that div for the chapter title and then div for the body. No need of them at all.
__________________
|
|
|
|
|
|
|
#43 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,207
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
__________________
|
|
|
|
|
|
|
#44 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,821
Karma: 23139990
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
Quote:
Validation tools should stick to spec stuff... not stuff that simply annoys some of us more obsessive/compulsive coders out there.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
|
#45 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,207
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
XML doesn't allow orphaned classes. So yes, it does break the XML rules and thus breaks the ePub rules. But, unused styles are not breaking anything.
__________________
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Buy Broken or unused readers for the Museum | eBookLuke | Flea Market | 14 | 05-06-2012 11:30 AM |
| Free Broken or unused readers for the Museum | eBookLuke | Flea Market | 0 | 05-22-2011 06:52 AM |
| How often should an unused Kobo be charged? | Gary_M_Mugford | Kobo Reader | 2 | 10-30-2010 10:38 PM |
| Unutterably Silly Zelda's gallery of used and unused avatars | Wetdogeared | Lounge | 40 | 05-16-2009 11:31 AM |
| iLiad The six unused connections | design256 | iRex Developer's Corner | 10 | 09-13-2006 08:52 AM |