﻿//---- 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.0.7523_target\usr\local\Kobo\libnickel.so.1.0.0

// -------------------------------------------------- Keyboard
<patch>
name=keyboard Sanskrit IAS transcription (part 1) (āīūṛṝḷḥṅ)
enabled=false
setbaseaddress=\xc3\xa6\x00\xc3\xa0\x00\xc3\xa8\x00\xc3\xac\x00\xc3\xb2\x00\xc3\xb9\x00\xc3\xa1\x00\xc3\xa9\x00\xc3\xad\x00\xc3\xb3\x00\xc3\xba\x00\xc3\xbd\x00\xc5\x93\x00\xc3\xa2\x00\xc3\xaa\x00\xc3\xae\x00\xc3\xb4\x00\xc3\xbb\x00\xc3\xa4\x00\xc3\xab\x00\xc3\xaf\x00\xc3\xb6\x00\xc3\xbc\x00\xc3\xbf\x00\xc3\xa3\x00\xc3\xb1\x00\xc3\xb5\x00\xc3\xa5\x00\xc3\x9f\x00\xc3\xa7\x00\xc4\x91\x00\xc3\xb8\x00\xc4\xb3\x00\xc5\x82\x00
position=0
action=replace_utf8chars_3
oldpart=æàèìòùáéíóúýœâêîôûäëïöüÿãñõåßçđøĳł
newpart=æàèìòùáéíóúýœāêīôūäëïöüṛṝñṅåßçđøḷḥ
combineparts
</patch>


<patch>
name=keyboard Sanskrit IAS transcription (part 2) (ṣśṇṃ)
enabled=false
setbaseaddress=\xc5\xa1\x00\xc5\xbe\x00\xc3\xbe\x00\xc5\x80\x00\xce\xbc\x00\xc2\xaa\x00\xc2\xba\x00
position=0
action=replace_utf8chars_3
oldpart=šžþŀμªº
newpart=ṣśþŀμṇṃ
combineparts
</patch>

<patch>
name=keyboard Cyrillic (part 1)
enabled=false
position=autodetect
action=replace_utf8chars_3
oldpart=æàèìòùáéíóúýœâêîôûäëïöüÿãñõåßçđøĳł
newpart=йцукенгшщзхъфывапролджэёячсмитьбю.
combineparts
</patch>

<patch>
name=keyboard Cyrillic (part 2)
enabled=false
position=autodetect
action=replace_utf8chars_3
note=on  Touch etc. these characters appear in the first row on positions 4,5,3,6,8,9,10
oldpart=šžþŀμªº
#newpart=!"?,()-
newpart="?!,()-
combineparts
</patch>

<patch>
name=keyboard Cyrillic (part 3)
note=will the anker for the base address hold for some firmwares?
enabled=false
setbaseaddress=[with View = QWidget*]\x00\xc6\x92
position=17
action=replace_utf8chars_3
oldpart=ƒ
newpart=.
combineparts
</patch>


<patch>
name=keyboard Arabic (part 1)
enabled=false
position=autodetect
action=replace_utf8chars_3
oldpart=æàèìòùáéíóúýœâêîôûäëïöüÿãñõåßçđøĳł
newpart=ذصثقفغعهخحجدضشسيبلاتنمكطئءؤرىةوزظ.
combineparts
</patch>


<patch>
name=keyboard Arabic (part 2)
enabled=false
position=autodetect
action=replace_utf8chars_3
oldpart=šžþŀμªº
newpart=أإآ,()-
combineparts
</patch>




<patch>
name=keyboard Arabic (part 3)
note=will the anker for the base address hold for some firmwares?
enabled=false
setbaseaddress=[with View = QWidget*]\x00\xc6\x92
position=17
action=replace_utf8chars_3
oldpart=ƒ
newpart=x
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:29px;\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:20px;\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>

