Podgotovka i chtenie russkogo teksta dlya PalmTop'ov i KPK
CHtenie ebooks na Palm s pomoshch'yu iSilo
---------------------------------------------------------------
From: Max T (maximt@online.ru)
----------------------
Dlya chteniya ebooks na Palm udobno pol'zovat'sya programmoj iSilo
(http://www.isilo.com) Ona obespechivaet luchshee szhatie tekstov, chem
pal'movskij format DOC, sohranyaet formatirovanie, illyustracii i linki vnutri
fajla i mezhdu dokumentami.
Konverter (besplatnyj) est' dlya platform Win32, Mac OS, Linux Intel, Free
BSD Intel, Solaris Sparc (sm. tut http://www.isilo.com/download.htm).
CHitalka dlya Palm est' v dvuh versiyah: besplatnaya oblechennaya (no vpolne
funkcional'naya) i polnaya, kotoraya stoit deneg. Skachat' mozhno tam zhe.
Konverter mozhet rabotat' s plain-text i HTML fajlami. Dlya chteniya knig iz
biblioteki Moshkova udobnee vsego okazalos' delat' tak: cherez oglavlenie
fajla (ikonka ryadom s nazvaniem) vyjti na link na fajl v formate HTML,
skopirovat' URL i vstavit' v konverter iSilo. Togda a) v Palm'e sohranit'sya
formatirovanie teksta, vydelenie glav, itd i b) abzacy budut nachinat'sya s
krasnoj stroki i *ne* budut razdeleny pustymi strokami.
Pri podgotovke tekstov v HTML iz drugih istochnikov dlya razdeleniya abzacev
vmesto tegov <P> luchshe pol'zovat'sya kombinaciej
<BR>
Abzacy poluchatsya s krasnoj strokoj i bez lishnego promezhutka.
Dlya udobstva chteniya fajl iSilo mozhno razmetit' zakladkami, naprimer po
glavam, razdelam i pr. sm. http://www.isilo.com/support/html.htm#bookmarks
Podgotovka russkogo teksta dlya PalmTop'a
From: Mark Geyzer
Date: 13 Jun 2000
YA nemnogo poigralsya so svoim Palm-om i smog zagruzit' russkij tekst. V
pervuyu ochered', esli Palm ne nastroen na russkij alfavit (moj sluchaj), mozhno
sgruzit' CyrHack s sajta http://palm.tucows.com , kategoriya 'Hacks'. Dlya ego
zapuska nuzhen HackMaster - tam zhe.
Dlya chteniya na Palm ya ispol'zuyu MobiBook, a dlya preobrazovaniya formata
na PC - MobiBook Publisher. Oba poslednih dostupny na http://www.mobipocket.com
Dlya preobrazovaniya vnachale nado sohranit' web-stranicu v tekstovom
formate. Zatem zapustit' Publisher 'One step conversion', i postroit'
Palm-tekst. YA otmenil opciyu szhatiya - po-moemu, szhatie portit tekst.
Zagruzit' sozdannyj fajl v Palm - i chitat' v udovol'stvie.
Maksim Borisov. Programmy dlya chteniya knig PDA - PocketPC
(pomimo, sootvetstvenno, vstroennyh - PocketWord (txt), Pocket Internet
Explorer (html) i MS Reader (lit))
Samye populyarnye storonnih proizvoditelej:
1) MobiPocket (for PalmOS, for Windows CE) (free download at
http://www.mobibook.com/download.htm) - besplatnaya, pomimo sobstvennogo
formata *.prc otkryvaet txt (prichem, po-vidimomu, chastyami, potomu chto v
otlichie ot Word prakticheski momental'no - eto ochen' cenno, vordom romany ne
osobenno pochitaesh' v txt) i html (prichem tozhe bystro v otlichie ot IE i,
glavnoe, ignoriruet vse "ukrashatel'stva" tipa tablic, kartinok i t.d. -
tol'ko tekst, razmery, nachertaniya - prostejshie tegi - to est' mozhno chitat'
romany kak oni est' v lib.ru - ne razbivaya na kusochki i ne pereformatiruya,
chtob vlezalo v ekran).
Nedostatki - vse vremya propihivaet vpered svoj sobstv. knizhnyj format
(dlya togo i sdelana), poetomu chtoby chitat' txt i html prihoditsya zatrachivat'
lishnie usiliya, krome togo, html poryadkom glyuchil i ne sohranyalis' nuzhnye
nastrojki (osobenno v prezhnih versiyah). Da, est' emulyaciya na desktop, kak u
MS Reader, tol'ko u menya lichno ona ne rabotaet - da i ni k chemu ona po suti
:-)
2) Starbuck http://www.thumbsupsoft.com/maphtm/starbuck.html - eta
shtuka sharovarnaya. Bez sobstvennogo formata, txt i html. Bol'shie plyusy -
vozmozhen polnoekrannyj rezhim (v poslednem MobiPocket, kstati, - tozhe), bez
polej, vozmozhen avtoskroling, ves' list mozhno povorachivat' s shagom 90 grad.
Prosmotr html mozhno nastraivat' - s sohraneniem elementov dizajna i bez nih,
no ssylki kakogo-to cherta ne rabotayut :-(.
S sharovarnost'yu mozhno mirit'sya - cherez kakoe-to vremya vybrasyvaet iz
teksta s pros'boj zaplatit', kazhetsya, 10 $ - no tut zhe mozhno nazhat' OK i
sootvetstvuyushchuyu ikonku programmy i prodolzhit' chtenie (na iPaq u menya - dva
nazhatiya podryad na "dzhojstik" - i otkryvaetsya na tom zhe meste). Eshche vrode by
vremya ot vremeni pridetsya skachivat' novyj ekzemplyar programmy, chtob
prodolzhala rabotat' - nu ili perevodit' sistemnoe vremya nazad.
Nu v obshchem ya pol'zuyus' teper' bol'she MobiPocket, a MS Reader - tol'ko
na ostavshiesya v lit knizhki...
3) Sobstvenno, s MS Reader: vo-pervyh, rekomenduetsya besplatno zakazat'
po pochte u Paragona Paragon FontFix (nu ili vruchnuyu podmenit'
nerusificirovannyj shrift) - chtoby _vse_ normal'no chitat', vo-vtoryh,
sobstvennye knizhki v lit mozhno izgotavlivat' libo ReaderWorks Standard (iz
txt i html), libo special'nym plaginom pod Word ot MS (i to i drugoe
skachivaetsya besplatno... est' i bolee obstoyatel'nye opisaniya, kak eto delat'
- i s lib.ru prezhde vsego :-), - esli netu, mogu eti ssylki posmotret', tam,
sobstvenno, i skol'ko-to knig v lit...
From: "Oleg Orlov"
To:
Sent: Friday, August 30, 2002 3:45 PM
> Mozhet kto-to chitaet knigi s lib.ru na karmannom
> PK s pomoshch'yu haliridera. Vot skriptik, kotoryj
> kachaet tekst, nemnogo chistit ego i zipuet.
> Ispol'zovat':
> libru.py http://www.lib.ru/DOWLATOW/chemodan.txt
> Konechno, proksi nuzhno propisat' svoj, ili
> zakommentirovat' initproxy().
import sys, re, StringIO, gzip, zipfile, urllib2
def initproxy():
proxy_support = urllib2.ProxyHandler({"http" : "http://user:password@proxy.domain.ru:3128"})
opener = urllib2.build_opener(proxy_support,urllib2.HTTPHandler)
urllib2.install_opener(opener)
def doprepare(text):
text = text.replace("\024", "").replace("\025",".\r\n").replace("\241","")
text = re.sub(r"[ \t]+", " ", text)
text = re.sub(r"[\f\v]+", "\r\n", text)
text = re.sub(r"(?s)-{63,}.{1,500}-{63,}", "\r\n", text, 1)
parags = [re.sub(r"\s+", " ", p) for p in re.split(r"(?m)^\s", text)]
text = "\r\n ".join(parags)
return text
def download(url):
data = urllib2.urlopen(url + ".gz").read()
return data
def handleurl(url):
inname = url.split("/")[-1]
text = gzip.GzipFile(fileobj = StringIO.StringIO(download(url))).read()
zf = zipfile.ZipFile(inname.split('.')[0] + ".zip", "w")
info = zipfile.ZipInfo(inname)
info.compress_type = zipfile.ZIP_DEFLATED
zf.writestr(info, doprepare(text))
if __name__ == '__main__':
initproxy()
handleurl(sys.argv[1])
Last-modified: Thu, 05 Sep 2002 14:32:13 GMT