View Single Post
Old 02-19-2012, 03:50 AM   #252
FMarkus
Junior Member
FMarkus began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: Kindle 4
Quote:
Originally Posted by pchrist7 View Post
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

Last edited by FMarkus; 02-19-2012 at 04:46 AM.
FMarkus is offline   Reply With Quote