View Single Post
Old 09-06-2015, 07:32 AM   #25
gipsy
Connoisseur
gipsy began at the beginning.
 
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
@CalibUser: Those are some fixes in greek language if you want to place them in your plygin. I try to find a solution and for some other things and i keep you posted


Code:
#Greek line break fix
	if allBreaks == 'Yes':
		CorrectText("Fixed false line breaks:", r'(([\x{0370}-\x{03FF}\x{1F00}-\x{1FFF},\'–’“”][</ib>]*)</p>\s+<p>([<ib>]*[\x{0370}-\x{03FF}\x{1F00}-\x{1FFF},\'–’“”]))', r'\1 \2')
	return(0)
Code:
	#Fixes Έ when PDFd as 'Ε or "Ε
	CorrectText("Changed 'Ε,\"Ε to Έ", r'(\'Ε|\"Ε)', r'Έ')

	#Fixes Ύ when PDFd as 'Υ or "Υ
	CorrectText("Changed 'Υ,\"Υ to Ύ", r'(\'Υ|\"Υ)', r'Ύ')

	#Fixes Ί when PDFd as 'Ι or "Ι
	CorrectText("Changed 'Ι,\"Ι to Ί", r'(\'Ι|\"Ι)', r'Ί')

	#Fixes Ό when PDFd as 'Ο or "Ο
	CorrectText("Changed 'Ο,\"Ο to Ό", r'(\'Ο|\"Ο)', r'Ό')

	#Fixes Ά when PDFd as 'Α or "Α
	CorrectText("Changed 'Α,\"Α to Ά", r'(\'Α|\"Α)', r'Ά')

	#Fixes Ή when PDFd as 'Η or "Η
	CorrectText("Changed 'Η,\"Η to Ή", r'(\'Η|\"Η)', r'Ή')

	#Fixes Ώ when PDFd as 'Ω or "Ω
	CorrectText("Changed 'Ω,\"Ω to Ώ", r'(\'Ω|\"Ω)', r'Ώ')

	#Fixes ύ when PDFd as ΰ
	CorrectText("Changed ΰ to ύ", r'ΰ', r'ύ')
EDIT: The fix line breaks doesn't work fine. I'm gonna check it again

Last edited by gipsy; 09-06-2015 at 11:25 AM.
gipsy is offline   Reply With Quote