﻿//---- CONTENT
// -------------------------------------------------- Keyboard
// -------------------------------------------------- Search in dictionaries of extra languages
// -------------------------------------------------- Dictionary
// -------------------------------------------------- unclassified, increase by 30%

// the code names
// Touch: Trilogy
// Touch 2: 
// Mini: Pixie
// AuraHD: Dragon
// Aura 6": Phoenix
// Glo: uses the values of  Phoenix
// H2O: uses the values of Dragon
// Glo HD: Alyssum
// Aura Edition 2: might use the values of Phonix 
// Aura One: Daylight

sourcefile=libnickel.so.1.0.0
targetfile=..\4_plus_target\usr\local\Kobo\libnickel.so.1.0.0



// -------------------------------------------------- Keyboard
<patch>
name=keyboard devanagari
enabled=false
position=autodetect
action=replace_utf8chars_list
oldpart=à,è,ì,ò,ù,á,é,í,ó,ú,ý,œ,â,ê,î,ô,û,ä,ë,ï,ö,ü,ÿ,ã,ñ,õ,å,ß,ç,đ,ø,ĳ
newpart=क,0,ख,1,ग,2,घ,3,ङ,4,च,5,छ,6,ज,7,झ,8,ञ,9,ट,a,ठ,b,ड,c,ढ,e,ण,f,त,0
combineparts
</patch>

<patch>
name=keyboard sanskrit transliteration
enabled=false
position=autodetect
action=replace_utf8chars_list
oldpart=à,è,ì,ò,ù,á,é,í,ó,ú,ý,œ,â,ê,î,ô,û,ä,ë,ï,ö,ü,ÿ,ã,ñ,õ,å,ß,ç,đ,ø,ĳ
newpart=ṛ,0,ṝ,1,ḷ,2,ṅ,3,ṇ,4,ṃ,5,ṣ,6,ṭ,7,ḍ,8,ḥ,9,ā,ī,ū,ś,ñ,õ,å,ß,ç,đ,ø
combineparts
</patch>

// -------------------------------------------------- Search in dictionaries of extra languages

<patch>
name=allow search of extra language dictionaries
note:cf. http://www.mobileread.com/forums/showpost.php?p=3311316&postcount=6
enabled=true
action=replace_string
position=autodetect
olddata=\x00E\x00x\x00t\x00r\x00a\x00:\x00 
newdata=\x00E\x00x\x00t\x00r\x00a\x00:\x00:
</patch>


// -------------------------------------------------- Dictionary

<patch>
name=Dictionary, remove long winded closest match notification
note=Idea by pakoe
note=cf. http://www.mobileread.com/forums/showpost.php?p=3043631&postcount=111
enabled=true
action=replace_string
position=autodetect
olddata=Your search for &ldquo;%1&rdquo; did not match any words in the dictionary. The closest match was &ldquo;%2&rdquo;.
newdata=
</patch>

<patch>
name=Dictionary (Georgia)
note=if you use this definition, disable the other Dictionary definition(s)
note=BD3664(3.19.5761)
enabled=false
action=replace_string
position=autodetect
oldpart=* { font: %1px %2; line-height: %5em; }\n
oldpart=div.descriptionFont { font-family: %3; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %4em }\n
oldpart=ol p { font-size: %1px; font-weight:normal; }\n
oldpart=b { font-weight: bold; }\n
oldpart=i { font-style: italic; }\n
oldpart=b * { font-weight: bold; }\n
oldpart=i * { font-style: italic; }\n
oldpart=img {display: inline-block; width: 1em; height: 1em; vertical-align: -10% !important; }\n
oldpart=::selection { background: #FFFFFF !important; }
if $auraone
    newpart=* { font-family: Georgia; font-size: 55px; line-height: 60px; } \n
    newpart=ol { margin-left: 28px; } \n
    newpart=ol p { font-size: 55px; font-weight:normal; }
else if $aurahd or $h2o
    newpart=* { font-family: Georgia; font-size: 50px; line-height: 54px; } \n
    newpart=ol { margin-left: 28px; } \n
    newpart=ol p { font-size: 50px; font-weight:normal; }
else if $glo or $aura
    newpart=* { font-family: Georgia; font-size: 40px; line-height: 44px; } \n
    newpart=ol { margin-left: 24px; } \n
    newpart=ol p { font-size: 40px; font-weight:normal; }
else if $glohd
    newpart=* { font-family: Georgia; font-size: 56px; line-height: 60px; } \n
    newpart=ol { margin-left: 30px; } \n
    newpart=ol p { font-size: 56px; font-weight:normal; }
else
    newpart=* { font-family: Georgia; font-size: 32px; line-height: 36px; } \n
    newpart=ol { margin-left: 14px; } \n
    newpart=ol p { font-size: 32px; font-weight:normal; }
end
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic;  }\n
newpart=img {display: inline-block; width: 1em; height: 1em; vertical-align: -10% !important; }\n
newpart=::selection { background: #FFFFFF !important; }
combineparts
</patch>

<patch>
name=Dictionary (font chosen by software)
note=if you use this definition, disable the other Dictionary definition(s)
note=BD3664(3.19.5761)
enabled=true
action=replace_string
position=autodetect
oldpart=* { font: %1px %2; line-height: %5em; }\n
oldpart=div.descriptionFont { font-family: %3; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %4em }\n
oldpart=ol p { font-size: %1px; font-weight:normal; }\n
oldpart=b { font-weight: bold; }\n
oldpart=i { font-style: italic; }\n
oldpart=b * { font-weight: bold; }\n
oldpart=i * { font-style: italic; }\n
oldpart=img {display: inline-block; width: 1em; height: 1em; vertical-align: -10% !important; }\n
oldpart=::selection { background: #FFFFFF !important; }
if $auraone
    newpart=* { font-family: Georgia; font-size: 55px; line-height: 60px; } \n
    newpart=ol { margin-left: 28px; } \n
    newpart=ol p { font-size: 55px; font-weight:normal; }
else if $aurahd or $h2o
    newpart=* { font-family: %2; font-size: 50px; line-height: 54px; } \n
    newpart=ol { margin-left: 28px; } \n
    newpart=ol p { font-size: 50px; font-weight:normal; }
else if $glo or $aura
    newpart=* { font-family: %2; font-size: 40px; line-height: 44px; } \n
    newpart=ol { margin-left: 24px; } \n
    newpart=ol p { font-size: 40px; font-weight:normal; }
else if $glohd
    newpart=* { font-family: %2; font-size: 56px; line-height: 60px; } \n
    newpart=ol { margin-left: 30px; } \n
    newpart=ol p { font-size: 56px; font-weight:normal; }
else
    newpart=* { font-family: %2; font-size: 32px; line-height: 36px; } \n
    newpart=ol { margin-left: 14px; } \n
    newpart=ol p { font-size: 32px; font-weight:normal; }
end
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic;  }\n
newpart=img {display: inline-block; width: 1em; height: 1em; vertical-align: -10% !important; }\n
newpart=::selection { background: #FFFFFF !important; }
combineparts
</patch>



// -------------------------------------------------- unclassified, increase by 30%

<patch>
name=91A21C(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=* {\nfont-size: 36px;\nfont-family: Georgia;\npadding-bottom:10px;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
newpart=* {\nfont-size: 45px;\nfont-family: Georgia;\npadding-bottom:10px;\n}\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
combineparts
</patch>


<patch>
name=91A298(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
newpart=* {\nfont-size: 26px;\nfont-family: Avenir;\n}\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
combineparts
</patch>


<patch>
name=925286(4.0.7523)
enabled=false
note=already in identified jobs
action=replace_string
position=autodetect
oldpart=* { font: %1px %2; line-height: %5em; }\n
oldpart=div.descriptionFont { font-family: %3; }\n
oldpart=ol { font-size: %1px; font-weight: bold; margin-left: %4em }\n
oldpart=ol p { font-size: %1px; font-weight:normal; }\n
oldpart=b { font-weight: bold; }\n
oldpart=i { font-style: italic; }\n
oldpart=b * { font-weight: bold; }\n
oldpart=i * { font-style: italic; }\n
oldpart=img {display: inline-block; width: 1em; height: 1em; vertical-align: -10% !important; }\n
oldpart=::selection { background: #FFFFFF !important; }
newpart=* { font: %1px %2; line-height: %5em; }\n
newpart=div.descriptionFont { font-family: %3; }\n
newpart=ol { font-size: %1px; font-weight: bold; margin-left: %4em }\n
newpart=ol p { font-size: %1px; font-weight:normal; }\n
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic; }\n
newpart=img {display: inline-block; width: 1em; height: 1em; vertical-align: -10% !important; }\n
newpart=::selection { background: #FFFFFF !important; }
combineparts
</patch>


<patch>
name=92E997(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=#text {\n\tpadding-left: 0px;\n     }\n
oldpart=#text[qApp_deviceIsAlyssum="true"][qApp_localeName="tr_TR"] {\n        font-size:29px;\n}\n
newpart=#text {\n\tpadding-left: 0px;\n }\n
newpart=#text[qApp_deviceIsAlyssum="true"][qApp_localeName="tr_TR"] {\n font-size:35px;\n}\n
combineparts
</patch>


<patch>
name=92ED0B(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=* {\n\tfont-family: Georgia;\n}\n\n
oldpart=[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 22px;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\n\tfont-family: Sans-SerifJP;\n\tqproperty-leading: 5;\n}\n\n
oldpart=[colorTheme="darkGrey"] {\n\tcolor: white;\n}
newpart=* {\n\tfont-family: Georgia;\n}\n
newpart=[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 28px;\n}\n
newpart=[qApp_localeName="ja_JP"] {\n\tfont-family: Sans-SerifJP;\n\tqproperty-leading: 5;\n}\n
newpart=[colorTheme="darkGrey"] {\n\tcolor: white;\n}
combineparts
</patch>


<patch>
name=931FDF(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=body { font: %1px %2; } table, thead, tbody, tr, td, th { font-size: inherit; font-family: inherit; }
newpart=body { font: %1px %2; } table, thead, tbody, tr, td, th { font-size: inherit; font-family: inherit; }
combineparts
</patch>


<patch>
name=934C98(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=* {\nfont-size: 48px;\nfont-family: Georgia;\npadding-top: 5px;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
newpart=* {\nfont-size: 60px;\nfont-family: Georgia;\npadding-top: 5px;\n}\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
combineparts
</patch>


<patch>
name=934D47(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=* {\nfont-size: 26px;\nfont-family: Georgia;\npadding-top: 2px;\n}\n\n
oldpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
newpart=* {\nfont-size: 32px;\nfont-family: Georgia;\npadding-top: 2px;\n}\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
combineparts
</patch>


<patch>
name=93C7F8(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=#label[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 24px;\n}\n
newpart=#label[qApp_deviceIsPhoenix="true"] {\n\tfont-size: 30px;\n}\n
combineparts
</patch>


<patch>
name=952B52(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=body {font: %1px %3; line-height: 1.775em;}h1 {font: %2px %3; line-height: 1.775em; font-weight:bold;}h2 {font: %1px %3; line-height: 1.775em; font-weight:bold;}
newpart=body {font: %1px %3; line-height: 1.775em;}h1 {font: %2px %3; line-height: 1.775em; font-weight:bold;}h2 {font: %1px %3; line-height: 1.775em; font-weight:bold;}
combineparts
</patch>


<patch>
name=972520(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=#text {\n\tfont-size:20px;\n\tpadding-left:8px;\n\tpadding-right:8px;\n}\n\n
oldpart=#frame {\n\tborder:2px solid black;\n}\n
newpart=#text {\n\tfont-size:26px;\n\tpadding-left:8px;\n\tpadding-right:8px;\n}\n
newpart=#frame {\n\tborder:2px solid black;\n}\n
combineparts
</patch>


<patch>
name=97C345(4.0.7523)
enabled=true
action=replace_string
position=autodetect
oldpart=.mfss { color: black !important; font-size: medium !important; } \n* { -webkit-text-size-adjust: auto !important; }
newpart=.mfss { color: black !important; font-size: medium !important; } \n* { -webkit-text-size-adjust: auto !important; }
combineparts
</patch>

