Thread: PDFtoPub
View Single Post
Old 01-26-2011, 08:02 AM   #14
Stenis
Connoisseur
Stenis has a complete set of Star Wars action figures.Stenis has a complete set of Star Wars action figures.Stenis has a complete set of Star Wars action figures.Stenis has a complete set of Star Wars action figures.
 
Posts: 65
Karma: 306
Join Date: May 2007
Location: Husum, Nf
Device: PRS505, Ipad
Wordpad ist für sowas auch nur bedingt geeignet, nimm einfach den Editor, drück Strg-f und such die Zeilen, wo "need_extrac_space_before_str" drin steht, dann kommst Du automatisch dahin:

local need_extrac_space_before_str=false
-- insert a space character
if os==nil then
if merged_with_prev_obj then
-- I'm sure this is the first object in whole page
need_extrac_space_before_str=true
end
-- first string in the current object
elseif os.str:byte(#os.str)~=CHAR_SPACE and crt_str:byte(1)~=CHAR_SPACE then
if math.abs(s.x-os.x1)>=g_min_space_width then
if not (s.x-os.x1<0 and os.str:byte(#os.str)==CHAR_MINUS) then
need_extrac_space_before_str=true
end
end
else

Dann die Zeille mit -- auskommentieren, alternativ true durch false ersetzen, speichern. Alternativ ConText runterladen, ist free und hat Zeilenanzeige.

Zeile 132 bleibt so drin, ist also einmalig, ich habe sie nur bis jetzt nur bis Seite 175 gemacht, den Rest muss ich nochmal machen, ist aber ein bißchen frickelig, offenbar muss man die Leerzeichen und so auch wirklich genau einhalten sonst gibt (relativ sinnfreie) Fehlermeldungen und dann geht das Suchen los, also am besten immer Schritt für Schritt.

g_page_num_of_chapters={ {25,"Seite 25-49"}, {50,"Seite 50-75"}, {75,"Seite 76-100"}, {100,"Seite 101-125"}, {125,"Seite 126-150"}, {150,"Seite 151-175"}, {175,"Seite 151-175"} }
Stenis is offline   Reply With Quote