Quote:
Originally Posted by pchrist7
Hi Markus
Yes, the examples only works for english status text.
However, here's a German version that should work, at least it does here, using your example. You'll have to modify the template.
Make a copy of the line mg = rematch etc., and insert it below the original line.
Disable the original by entering a # sign at the front
Modify the copy line (or copy from the code below) to handle german text.
Please be carefull you have a TAB in front of the copy line.
Code:
# mg = re.match('.*\s(\d+[-/]\d+[-/]\d+).*?Last Page Read: Location \d+ \((\d+)%\)', val, re.I + re.DOTALL);
mg = re.match('.*\s(\d+[-/\.]\d+[-/\.]\d+).*?Zuletzt gelesene Seite: Ort \d+ \((\d+)%\)', val, re.I + re.DOTALL);
Edit: Remember to restart Calibre
Hope this works for you,
Cheers Per
|
Thanks for your help, now it works.
Another question, any idea how to hide the .mbp file in the format column?
Hopefully it was ok to post a german translation in the german Sub Forum ->
Link