﻿//---- 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=à,è,ì,ò,ù,á,é,í,ó,ú,ý,œ,â,ê,î,ô,û,ä,ë,ï,ö,ü,ÿ,ã,ñ,õ,å,ß,ç,đ,ø,ĳ
oldpart=ý,ÿ,š,ž,æ,œ,þ,ĳ,ŀ,μ,ª,º,à,á,â,ä,ã,å,è,é,ê,ë,ì,ò,ù,í,ó,ú,ô,ö,õ,ø,î,ï,û,ü,ñ,ç,đ,ł
#newpart=क,0,ख,1,ग,2,घ,3,ङ,4,च,5,छ,6,ज,7,झ,8,ञ,9,ट,a,ठ,b,ड,c,ढ,e,ण,f,त,0
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=à,è,ì,ò,ù,á,é,í,ó,ú,ý,œ,â,ê,î,ô,û,ä,ë,ï,ö,ü,ÿ,ã,ñ,õ,å,ß,ç,đ,ø,ĳ
oldpart=ý,ÿ,š,ž,æ,œ,þ,ĳ,ŀ,μ,ª,º,à,á,â,ä,ã,å,è,é,ê,ë,ì,ò,ù,í,ó,ú,ô,ö,õ,ø,î,ï,û,ü,ñ,ç,đ,ł
#newpart=ṛ,0,ṝ,1,ḷ,2,ṅ,3,ṇ,4,ṃ,5,ṣ,6,ṭ,7,ḍ,8,ḥ,9,ā,ī,ū,ś,ñ,õ,å,ß,ç,đ,ø
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 (font chosen by software)
note=if you use this definition, disable the other Dictionary definition(s)
note=92CFBD(4.4.9298)
enabled=true
action=replace_string
position=autodetect
oldpart=p { padding: 0px; margin: 0px; }\n
oldpart=body { padding-left: 8px; }\n
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; margin-top: 0px; }\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; }\n
oldpart=.dividerLine { height: 1px; background: #BBBBBB; }\n
oldpart=.btnAddedFrom { float: left; }\n
oldpart=.btnViewInBook { float: right; }
newpart=p { padding: 0px; margin: 0px; }\n
newpart=body { padding-left: 8px; }\n
#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; margin-top: 0px; }\n
#newpart=ol p { font-size: %1px; font-weight:normal; }\n
###
if $auraone
    newpart=* { font-family: %2; 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; }\n
newpart=.dividerLine { height: 1px; background: #BBBBBB; }\n
newpart=.btnAddedFrom { float: left; }\n
newpart=.btnViewInBook { float: right; }
combineparts
</patch>

// -------------------------------------------------- unclassified, increase by 30%
<patch>
name=9215C4(4.4.9298)
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\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
combineparts
</patch>


<patch>
name=92CFBD(4.4.9298)
note=dictionary font
enabled=false
action=replace_string
position=autodetect
oldpart=p { padding: 0px; margin: 0px; }\n
oldpart=body { padding-left: 8px; }\n
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; margin-top: 0px; }\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; }\n
oldpart=.dividerLine { height: 1px; background: #BBBBBB; }\n
oldpart=.btnAddedFrom { float: left; }\n
oldpart=.btnViewInBook { float: right; }
newpart=p { padding: 0px; margin: 0px; }\n
newpart=body { padding-left: 8px; }\n
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; margin-top: 0px; }\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; }\n
newpart=.dividerLine { height: 1px; background: #BBBBBB; }\n
newpart=.btnAddedFrom { float: left; }\n
newpart=.btnViewInBook { float: right; }
combineparts
</patch>


<patch>
name=936CE7(4.4.9298)
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=93AEB8(4.4.9298)
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\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
combineparts
</patch>


<patch>
name=93AF67(4.4.9298)
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\n
newpart=[qApp_localeName="ja_JP"] {\nfont-family: Sans-SerifJP;\n}
combineparts
</patch>


<patch>
name=95CD77(4.4.9298)
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=97ADE4(4.4.9298)
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\n
newpart=#frame {\n\tborder:2px solid black;\n}\n
combineparts
</patch>


<patch>
name=985135(4.4.9298)
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>

