##纸质书籍电子版制作一般流程
- 扫描
- OCR文本识别
- 人工校对
- 排版(版面大致/精确还原)
- 二次校对 ……
我们一般从步骤2开始。
if (!Array.prototype.indexOf) { | |
Array.prototype.indexOf = function (item, i) { | |
i || (i = 0); | |
var length = this.length; | |
if (i < 0) i = length + i; | |
for (; i < length; i++) | |
if (this[i] === item) return i; | |
return -1; | |
} | |
} |
// Origin discussion: http://forums.adobe.com/message/4613051 | |
#target "estoolkit" | |
rasterizeFolder(); | |
/********************************************************************************************/ | |
function rasterizeFolder() { | |
//Get the source and destination folders. | |
//If either window is cancelled, end the script. |
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
import mechanize | |
def check_new_posts(username, password): | |
b = mechanize.Browser() | |
b._factory.encoding = "utf8" | |
b.set_handle_robots(False) | |
b.addheaders = [('User-Agent','Mozilla/4.0(compatible; MSIE 6.0; Windows 98;)')] |
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
""" download all cchere posts of the author from pre-collected postlist | |
currently the list was collected manually | |
TODO: get the postlist from cchere user home automatically | |
NOTE: Fanqiang is needed as the exists of GFW | |
code based on: https://code.google.com/p/cchere-thread-saver/ | |
""" |
Credit and Usage: http://www.mobileread.com/forums/showthread.php?t=162972 |
##纸质书籍电子版制作一般流程
我们一般从步骤2开始。
#targetengine "keepWindowBounds" | |
(function() { | |
app.addEventListener("afterOpen", setBounds); | |
function setBounds(ev) { | |
var layoutWin = ev.parent, | |
bounds = eval('[' + app.extractLabel('bounds') + ']'); | |
layoutWin.addEventListener("beforeClose", insertBounds); | |
function insertBounds(ev) { |
##《空园子》 杨键
我是一座空园子,
我是一条空河流,
我是一座空山,
我是一个空了的妈妈,
Dir *.png | rename-item -newname { $_.name -replace ".png",".pdg" } | |
Dir *.pdg | rename-item -newname { "000" + $_.name } | |
//Batch Incremented File Rename | |
$files = Get-ChildItem c:\yourpath\*.ext | |
$id = 1 | |
$files | foreach { | |
Rename-Item -Path $_.fullname -NewName (($id++).tostring() + $_.extension) | |
} |
convert input.pdf -threshold 50% new.pdf |