//---- CONTENT
// -------------------------------------------------- Footer and Header
// -------------------------------------------------- Library
// -------------------------------------------------- Dictionary
// -------------------------------------------------- Annotations
// -------------------------------------------------- Search
// -------------------------------------------------- TOC
sourcefile=libnickel.so.1.0.0
targetfile=..\3.1.1_target\usr\local\Kobo\libnickel.so.1.0.0
// -------------------------------------------------- Footer and Header
name=ReadingFooter
enabled=true
action=replace_xor_9C
position=13FD538
oldpart=ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\n
oldpart=ReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\n
oldpart=ReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n
oldpart=* {\n\tfont-size: 16px;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n
oldpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}
newpart=ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\n
newpart=ReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 15;\n}\n\n
newpart=ReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n
newpart=* {\n\tfont-size: 28px;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 32px;\n}\n\n
newpart=[deviceCodeName="dragon"] {\n\tfont-size: 34px;\n}\n\n
newpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
name=Header
enabled=true
action=replace_xor_A9
position=142DF68
oldpart=* {\nfont-size: 16px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\nqproperty-leading: 0;\n}
newpart=* {\nfont-size: 28px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\nqproperty-leading: 0;\n}
combineparts
// -------------------------------------------------- Library
name=Library Books, author
enabled=true
action=replace_xor_C1
position=13D4EF8
oldpart=* {\nfont-size: 16px;\nfont-family: Avenir;\nmargin-top: 7px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
oldpart=[deviceCodeName="pixie"]{\nfont-size: 17px;\nmargin-top: 5px;\n}
newpart=* {\nfont-size: 24px;\nfont-family: Avenir;\nmargin-top: 1px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 30px;\n}\n\n
newpart=[deviceCodeName="pixie"]{\nfont-size: 25px;\nmargin-top: 3px;\n}
combineparts
name=Library Books, Title
enabled=true
action=replace_xor_FE
position=13D4DE8
oldpart=* {\n\tfont-size: 20px;\n\tfont-family: Georgia;\n}\n\n
oldpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n\tqproperty-forceLeading: 0;\n}\n\n
oldpart=[deviceCodeName="pixie"] {\n\tfont-size: 21px;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 26px;\n}
newpart=* {\n\tfont-size: 24px;\n\tfont-family: Georgia;\n}\n\n
newpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n\tqproperty-forceLeading: 0;\n}\n\n
newpart=[deviceCodeName="pixie"] {\n\tfont-size: 25px;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 30px;\n}
combineparts
name=Library Books, Series
note= I did not check whether it really works
enabled=true
action=replace_xor_EC
position=13D4CD0
oldpart=* {\n\tcolor: #666666;\n\tfont-size: 16px; \n\tfont-family: Avenir;\n\tqproperty-maxNumLines: 1;\n}\n\n
oldpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\n\tfont-size: 18px;\n}\n\n
oldpart=[deviceCodeName="pixie"]{\n\tfont-size: 17px;\n}
newpart=* {\n\tcolor: #666666;\n\tfont-size: 20px; \n\tfont-family: Avenir;\n\tqproperty-maxNumLines: 1;\n}\n\n
newpart=[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\n\tfont-size: 18px;\n}\n\n
newpart=[deviceCodeName="pixie"]{\n\tfont-size: 17px;\n}
combineparts
name=Library Book, READ/FILETYPE/SIZE
note= I change only color for better readability
enabled=true
action=replace_xor_4C
position=13D4BD8
oldpart=* {\ncolor: #666666;\nfont-size: 16px; \nfont-family: Avenir;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
oldpart=[deviceCodeName="pixie"]{\nfont-size: 17px;\n}
newpart=* {\ncolor: #000000;\nfont-size: 16px; \nfont-family: Avenir;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"]{\nfont-size: 18px;\n}\n\n
newpart=[deviceCodeName="pixie"]{\nfont-size: 17px;\n}
combineparts
// -------------------------------------------------- Dictionary
name=Dictionary (Georgia)
note=if you use this definition, disable the two other Dictionary definitions
enabled=false
action=replace_string
position=1150674
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=::selection { background: #FFFFFF !important; }
newpart=* { font-family: Georgia ;font-size: 24px; line-height: 28px; } \n
newpart=ol {margin-left: 8px} \n
newpart=ol p { font-size: 24px; font-weight:normal; }
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic; }\n\n\n\n\n\n\n\n\n
newpart=::selection { background: #FFFFFF !important; }
combineparts
name=Dictionary (Gothic)
note=if you use this definition, disable the two other Dictionary definitions
enabled=true
action=replace_string
position=1150674
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=::selection { background: #FFFFFF !important; }
newpart=* { font-family: A-OTF Gothic MB101 Pr6N;font-size: 36px; line-height: 42px; }\n
newpart=ol {margin-left: 8px}\n
newpart=ol p { font-size: 36px; 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; }
newpart=::selection { background: #FFFFFF !important; }
combineparts
name=Dictionary (Ryumin)
note=if you use this definition, disable the two other Dictionary definitions
enabled=false
action=replace_string
position=1150674
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=::selection { background: #FFFFFF !important; }
newpart=* { font-family: A-OTF Ryumin Pr6N ;font-size: 24px; line-height: 28px; } \n
newpart=ol {margin-left: 8px} \n
newpart=ol p { font-size: 24px; font-weight:normal; }
newpart=b { font-weight: bold; }\n
newpart=i { font-style: italic; }\n
newpart=b * { font-weight: bold; }\n
newpart=i * { font-style: italic; }
newpart=::selection { background: #FFFFFF !important; }
combineparts
// -------------------------------------------------- Annotations
name=Annotations (list), highlighted text
note=uncertain identification
enabled=true
#action=replace_xor_AC
#position=13AA528
note=if this doesn't work, try the following values
action=replace_xor_11
position=1401D78
oldpart=* {\n\tfont-size: 20px;\n\tfont-family: Avenir;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 24px;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\n\tfont-size: 29px;\n\tfont-family: Georgia;\n}
newpart=* {\n\tfont-size: 30px;\n\tfont-family: Avenir;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 34px;\n}\n\n
newpart=[deviceCodeName="dragon"] {\n\tfont-size: 39px;\n\tfont-family: Georgia;\n}
combineparts
name=Annotations (list), text
enabled=true
action=replace_xor_FE
position=13B3B98
#position=13A0918
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\npadding-left: 10px;\npadding-top: 10px;\n}\n\n
oldpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\nfont-size: 25px;\npadding-left: 12px;\npadding-top: 12px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
newpart=* {\nfont-size: 30px;\nfont-family: Avenir;\npadding-left: 10px;\npadding-top: 10px;\n}\n\n
newpart=[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\nfont-size: 35px;\npadding-left: 12px;\npadding-top: 12px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
name=Annotation Details (Latin script)
note=if you use this patch, disable "Annotation Details (JP)"
enabled=true
action=replace_string
position=114909C
oldpart=
newpart=
oldpart=%1
newpart=%1
oldpart=%2
newpart=%2
oldpart=
newpart=
oldpart=%3
newpart=%3
combineparts
name=Annotation Details (JP)
note=for usage with Japanese
note=if you use this patch, disable "Annotation Details (Latin script)"
enabled=false
action=replace_string
position=114909C
oldpart=
newpart=
oldpart=%1
newpart=%1
oldpart=%2
newpart=%2
oldpart=
newpart=
oldpart=%3
newpart=%3
combineparts
name=Edit Note, highlighted text
enabled=true
action=replace_xor_57
position=13B40E0
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\nbackground-color: #CCCCCC;\npadding-right: 20px;\npadding-top: 5px;\npadding-bottom: 5px;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\nbackground-color: white;\nfont-size: 26px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 25px;\npadding-bottom: 25px;\n}\n\n
oldpart=[deviceCodeName="phoenix"] {\nbackground-color: white;\nfont-size: 23px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 0px;\npadding-bottom: 0px;\n}\n\n
oldpart=[deviceCodeName="kraken"] {\nfont-size: 25px;\npadding-right: 25px;\npadding-top: 6px;\npadding-bottom: 6px;\n}\n
newpart=* {\nfont-size: 30px;\nfont-family: Avenir;\nbackground-color: #CCCCCC;\npadding-right: 20px;\npadding-top: 5px;\npadding-bottom: 5px;\n}\n\n
newpart=[deviceCodeName="dragon"] {\nbackground-color: white;\nfont-size: 26px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 25px;\npadding-bottom: 25px;\n}\n\n
newpart=[deviceCodeName="phoenix"] {\nbackground-color: white;\nfont-size: 23px;\nfont-family: Georgia;\npadding-left: 40px;\npadding-right: 40px;\npadding-top: 0px;\npadding-bottom: 0px;\n}\n\n
newpart=[deviceCodeName="kraken"] {\nfont-size: 25px;\npadding-right: 25px;\npadding-top: 6px;\npadding-bottom: 6px;\n}\n
combineparts
name=Edit Note, editor field
enabled=true
action=replace_xor_20
position=13F65F0
oldpart=* {\n\tfont-size:20px;\n\tfont-family: Avenir;\n\tborder: 0px;\t\n\tcolor: #000000;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n\tfont-family: Georgia;\n}\n\n
oldpart=[deviceCodeName="kraken"]{\n\tfont-size: 25px;\n}\n\n
oldpart=[deviceCodeName="phoenix"]{\n\tfont-size: 23px;\n\tfont-family: Georgia;\n}\n
newpart=* {\n\tfont-size:30px;\n\tfont-family: Avenir;\n\tborder: 0px;\t\n\tcolor: #000000;\n}\n\n
newpart=[deviceCodeName="dragon"] {\n\tfont-size: 36px;\n\tfont-family: Georgia;\n}\n\n
newpart=[deviceCodeName="kraken"]{\n\tfont-size: 35px;\n}\n\n
newpart=[deviceCodeName="phoenix"]{\n\tfont-size: 33px;\n\tfont-family: Georgia;\n}\n
combineparts
// -------------------------------------------------- Search
name=Search, history/auto-complete list (in books, in dictionary, in library ...)
enabled=true
action=replace_xor_57
position=13CE9D0
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\npadding-left:25px;\n}\n\n
oldpart=[deviceCodeName="phoenix"] {\nfont-size: 23px;\nfont-family: Georgia;\npadding-left: 31px;\n}\n
oldpart=[deviceCodeName="dragon"] {\nfont-size: 29px;\nfont-family: Georgia;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
newpart=* {\nfont-size: 30px;\nfont-family: Avenir;\npadding-left:25px;\n}\n\n
newpart=[deviceCodeName="phoenix"] {\nfont-size: 33px;\nfont-family: Georgia;\npadding-left: 31px;\n}\n
newpart=[deviceCodeName="dragon"] {\nfont-size: 39px;\nfont-family: Georgia;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}
combineparts
// -------------------------------------------------- TOC
name=TOC
enabled=true
action=replace_xor_C1
position=13B2C08
oldpart=* {\nfont-size: 20px;\nfont-family: Avenir;\nmin-width: 400px;\n}\n\n
oldpart=[dragonStyle="true"] {\nfont-family: Georgia;\n}\n\n
oldpart=[deviceCodeName="dragon"] {\nfont-size: 29px;\nmin-width: 785px;\n}\n\n
oldpart=[deviceCodeName="phoenix"] {\nfont-size: 25px;\nmin-width: 500px;\n}\n\n
oldpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
oldpart=[enableText="false"] {\ncolor: gray;\n}
newpart=* {\nfont-size: 28px;\nfont-family: Avenir;\nmin-width: 400px;\n}\n\n
newpart=[dragonStyle="true"] {\nfont-family: Georgia;\n}\n\n
newpart=[deviceCodeName="dragon"] {\nfont-size: 37px;\nmin-width: 785px;\n}\n\n
newpart=[deviceCodeName="phoenix"] {\nfont-size: 33px;\nmin-width: 500px;\n}\n\n
newpart=[localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}\n\n
newpart=[enableText="false"] {\ncolor: gray;\n}
combineparts