<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">

<!--
simple definition to highlight direct speech, provided it is quoted with one of "" ‘’ “”
-->

<language name="eBook txt" version="0.1" kateversion="2.3" section="Other" extensions="*.txt" mimetype="text/plain" author="Moritz Schmidt (fusselwurm@gmail.com)" license="">
<highlighting>
	<contexts>
		<context attribute="Normal Text" lineEndContext="#stay" name="Normal">
			<DetectChar attribute="String Char" context="Quotation" char="&quot;"/>
			<StringDetect attribute="String Char" context="Quotation 1" String="‘"/>
			<StringDetect attribute="String Char" context="Quotation 2" String="“"/>
		</context>

		<context attribute="Quotation" lineEndContext="#stay" name="Quotation">
			<StringDetect attribute="String Char" context="Quotation 1" String="‘"/>
			<StringDetect attribute="String Char" context="Quotation 2" String="“"/>
			<LineContinue attribute="Quotation" context="#stay"/>
			<DetectChar attribute="String Char" context="#pop" char="&quot;"/>
		</context>

		<context attribute="Quotation 1" lineEndContext="#stay" name="Quotation 1">
			<DetectChar attribute="String Char" context="Quotation" char="&quot;"/>
			<StringDetect attribute="String Char" context="Quotation 2" String="“"/>
			<LineContinue attribute="Quotation 1" context="#stay"/>
			<StringDetect attribute="String Char" context="#pop" String="’"/>
		</context>

		<context attribute="Quotation 2" lineEndContext="#stay" name="Quotation 2">
			<StringDetect attribute="String Char" context="Quotation 1" String="‘"/>
			<DetectChar attribute="String Char" context="Quotation" char="&quot;"/>
			<LineContinue attribute="Quotation 2" context="#stay"/>
			<StringDetect attribute="String Char" context="#pop" String="”"/>
		</context>
	</contexts>
	<itemDatas>
		<itemData name="Normal Text"  defStyleNum="dsNormal"/>
		<itemData name="Quotation" defStyleNum="dsString" color="#007000"/>
		<itemData name="Quotation 1" defStyleNum="dsString" color="#700000"/>
		<itemData name="Quotation 2" defStyleNum="dsString" color="#000070"/>
		<itemData name="String Char"  defStyleNum="dsChar" color="#909090"/>
	</itemDatas>
</highlighting>
<!--<general>
	<keywords casesensitive="1" />
</general>-->
</language>
