import document module on-demand
This will save several megabytes of RAM when startup.
rename references to plain "SDL" to "SDL1_2"
Merge pull request #110 from chrox/master

import document module on-demand
switch SDL input handling over to FFI (still SDL1.2)
SDL 2.0 support

this is a straight-forward migration from the SDL 1.2 code we had
before.
add a simple switcher for SDL 2.0 / SDL 1.2

if present, we prefer SDL 2.0 over SDL 1.2
Merge remote-tracking branch 'upstream/master' into SDL2

Conflicts:
	koreader-base
fix concatenate 'int64_t' and 'string' in dbg.lua
Merge pull request #111 from hwhw/SDL2

SDL2 support
create fonts dir in OUTPUT_DIR to avoid polluting mupdf
Merge pull request #112 from houqp/houqp-master

create fonts dir in OUTPUT_DIR to avoid polluting mupdf
add getPageRegions api in libk2pdfopt
Merge pull request #113 from chrox/master

add getPageRegions api in libk2pdfopt
add setBatteryState api for crereader
Merge pull request #114 from chrox/master

add setBatteryState api for crereader
follow typesetting taboo for CJK punctuations
Since there is no space character for word break in CJK typesetting,
line wrap can occur virtually between any two characters. But by
convention some punctuations are not allowed to be placed at the
begining of a line, and other punctuations are not allowed to be
placed at the end of a line. This patch implements two of these
rules.
Merge pull request #115 from chrox/master

follow typesetting taboo for CJK punctuations
clean up punctuation patch and fix floating CJK punctuation
Merge pull request #116 from chrox/master

clean up punctuation patch and fix floating CJK punctuation
Update sdcv (&apos; support)