View Single Post
Old 09-30-2010, 03:38 AM   #204
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Quote:
Originally Posted by AtomicDryad View Post
ID files are supported already via your friendly neighborhood unix shell: fflag -f epub `cat mylistofurls.txt`
I'm ashamed that I've forgot about that one. Then again, my main use for that syntax is: cat `which braindead-script.sh` on a particularly frustrating AIX server.

Quote:
Originally Posted by AtomicDryad View Post
I'm mostly concerned with the cruddy state of the various regexp used; I've only just looked into php and it's quirky regex functionality (compared to perl). I'm thinking that a true HTML parser should be used for alot of this stuff as using css selectors is probably more reliable.
Agreed. Something like:
PHP Code:
$doc = new DOMDocument();
$doc->loadHTML($chapter_contents);
$story_text $doc->getElementById('storytext'); 
or something like the XPaths functions.
Quote:
Originally Posted by AtomicDryad View Post
I'm curious to hear from erayd about the possibility of throwing this up on code.google.com svn, and collaborative coding in general.
Seconded.

N.
aleyx is offline   Reply With Quote